simt-dev 0.7.0 → 0.7.1

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 (112) hide show
  1. package/CHANGELOG.md +158 -872
  2. package/README.md +19 -133
  3. package/bin/simt.mjs +19 -55
  4. package/docs/decisions/ADR-014-workspace-is-configuration.md +1 -1
  5. package/docs/decisions/ADR-099-the-release-verifies-served-bytes-and-the-formula-mirrors-them.md +1 -1
  6. package/docs/decisions/ADR-117-the-darwin-release-builds-on-supported-macos-15-runners-and-a-re-run-is-idempotent.md +81 -0
  7. package/docs/decisions/ADR-118-the-bench-corpus-is-keyed-on-history-is-append-only-and-is-portable-as-a-sealed-document.md +91 -0
  8. package/docs/decisions/ADR-119-the-environment-variable-points-into-a-workspace-the-repo-declared.md +90 -0
  9. package/docs/decisions/ADR-120-a-pre-push-whose-tree-is-already-proven-green-skips-the-test-gate-on-that-evidence.md +96 -0
  10. package/docs/decisions/ADR-122-the-shims-move-into-the-state-directory-and-the-legacy-directory-removes-itself.md +94 -0
  11. package/docs/decisions/ADR-123-a-surplus-positional-is-not-refused-because-arity-is-not-in-the-source.md +57 -0
  12. package/docs/decisions/ADR-124-the-manifest-has-a-schema-in-the-tool-and-its-unknown-keys-stay-the-repositorys.md +64 -0
  13. package/docs/decisions/ADR-125-a-shared-context-belongs-to-a-read-and-a-writer-reads-directly.md +65 -0
  14. package/package.json +10 -2
  15. package/rules/core.md +7 -0
  16. package/rules/mdc/slice-commit.mdc +57 -4
  17. package/src/agenthooks/prompt.mjs +5 -2
  18. package/src/agenthooks/shim.mjs +1 -1
  19. package/src/api.mjs +29 -0
  20. package/src/argv.mjs +29 -3
  21. package/src/bench/adapters.json +16 -0
  22. package/src/bench/corpus.mjs +150 -0
  23. package/src/bench/grade.mjs +23 -49
  24. package/src/bench/mine.mjs +199 -35
  25. package/src/bench/probes.mjs +99 -62
  26. package/src/bench/process.mjs +128 -0
  27. package/src/bench/report.mjs +17 -4
  28. package/src/bench/run.mjs +242 -142
  29. package/src/brief/assemble.mjs +38 -3
  30. package/src/ci/workflow.mjs +30 -7
  31. package/src/cli.mjs +45 -0
  32. package/src/commands/agent.mjs +3 -4
  33. package/src/commands/agenthook.mjs +4 -5
  34. package/src/commands/bench.mjs +190 -17
  35. package/src/commands/brief.mjs +5 -4
  36. package/src/commands/ci.mjs +2 -1
  37. package/src/commands/compare.mjs +42 -42
  38. package/src/commands/completions.mjs +2 -6
  39. package/src/commands/decide.mjs +4 -4
  40. package/src/commands/distill.mjs +4 -3
  41. package/src/commands/doctor.mjs +11 -7
  42. package/src/commands/evidence.mjs +6 -9
  43. package/src/commands/explain.mjs +0 -1
  44. package/src/commands/gate.mjs +16 -12
  45. package/src/commands/graph.mjs +2 -3
  46. package/src/commands/harness.mjs +3 -2
  47. package/src/commands/help.mjs +125 -17
  48. package/src/commands/hooks.mjs +100 -30
  49. package/src/commands/ignore.mjs +2 -1
  50. package/src/commands/impact.mjs +4 -7
  51. package/src/commands/index.mjs +273 -188
  52. package/src/commands/init.mjs +2 -1
  53. package/src/commands/lease.mjs +6 -7
  54. package/src/commands/lessons.mjs +10 -9
  55. package/src/commands/local.mjs +3 -3
  56. package/src/commands/map.mjs +14 -9
  57. package/src/commands/mcp.mjs +0 -1
  58. package/src/commands/pack.mjs +9 -6
  59. package/src/commands/plan.mjs +6 -5
  60. package/src/commands/plugin.mjs +2 -2
  61. package/src/commands/prbody.mjs +3 -3
  62. package/src/commands/repoindex.mjs +4 -3
  63. package/src/commands/review.mjs +2 -2
  64. package/src/commands/rules.mjs +33 -16
  65. package/src/commands/shared.mjs +2 -3
  66. package/src/commands/skills.mjs +28 -26
  67. package/src/commands/skillscompile.mjs +4 -5
  68. package/src/commands/skillsinstall.mjs +2 -2
  69. package/src/commands/slice.mjs +21 -10
  70. package/src/commands/spec.mjs +151 -0
  71. package/src/commands/status.mjs +4 -7
  72. package/src/commands/sync.mjs +13 -11
  73. package/src/commands/tests.mjs +6 -9
  74. package/src/commands/tokens.mjs +2 -2
  75. package/src/commands/undo.mjs +5 -15
  76. package/src/commands/upgrade.mjs +7 -3
  77. package/src/commands/why.mjs +9 -8
  78. package/src/compare/row.mjs +0 -2
  79. package/src/context.mjs +64 -0
  80. package/src/decisions/index-doc.mjs +46 -0
  81. package/src/diff.mjs +1 -1
  82. package/src/distill/distill.mjs +14 -1
  83. package/src/distill/engine.mjs +5 -1
  84. package/src/graph/load.mjs +4 -1
  85. package/src/hooks/capability.mjs +3 -3
  86. package/src/hooks/dispatcher.mjs +198 -43
  87. package/src/hooks/gates.mjs +0 -43
  88. package/src/hooks/resolve.mjs +2 -7
  89. package/src/hooks/shim.mjs +5 -2
  90. package/src/identity.mjs +29 -1
  91. package/src/journal.mjs +78 -9
  92. package/src/ledger/index.mjs +30 -1
  93. package/src/local/client.mjs +4 -6
  94. package/src/locate.mjs +33 -9
  95. package/src/manifest/schema.mjs +213 -0
  96. package/src/mcp/resources.mjs +7 -10
  97. package/src/mcp/server.mjs +70 -16
  98. package/src/mcp/tools.mjs +45 -7
  99. package/src/measure/session.mjs +3 -2
  100. package/src/node-version.mjs +37 -0
  101. package/src/output/index.mjs +111 -3
  102. package/src/packs/manage.mjs +17 -3
  103. package/src/packs.mjs +20 -2
  104. package/src/projection/lock.mjs +11 -1
  105. package/src/projection/manifest.mjs +20 -34
  106. package/src/projection/rules.mjs +4 -3
  107. package/src/repo-root.mjs +19 -0
  108. package/src/resolve/fingerprint.mjs +19 -15
  109. package/src/review/critic.mjs +2 -1
  110. package/src/toolwords.mjs +3 -0
  111. package/src/workspace.mjs +55 -10
  112. package/docs/decisions/README.md +0 -600
package/CHANGELOG.md CHANGED
@@ -6,822 +6,253 @@ All notable changes to this package are recorded here. The format follows
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
- ## [0.7.0] — 2026-10-31
9
+ ## [0.7.1] — 2026-11-01
10
10
 
11
11
  ### Added
12
12
 
13
- `simt agent-hooks install --harness <id>` writes the policies into one
14
- harness instead of all of them; an unknown id is a usage error that names
15
- the valid ones. The readers the run skipped are named in the report
16
- (`SKIPPED`) and in the JSON document's `notWritten`, so a narrowed install
17
- cannot read as full coverage (ADR-107).
18
-
19
- `simt init --yes` builds the repository index as part of the adoption, so
20
- the first `simt map` or `simt brief` in a fresh repository answers from real
21
- files. Commands that read the index (`map`, `brief`, `slice`) now refresh it
22
- from the git index on every read — unchanged blobs are not re-read, so a
23
- current repository pays for one `git ls-files -s` — and the prompt hook and
24
- MCP surface still report a cold index rather than build one (ADR-108).
25
-
26
- The rule text names the manifest as `simt.json`, the name it has had since
27
- the rename; four rule files still said `simt-dev.json`, which resolves in no
28
- repository.
13
+ - `simt --help` answers one command at a time from the spec table, and a core page that fits a terminal; `--all` prints everything.
14
+ - Every command declares the flags it reads in one spec table that owns the command list, the group defaults and the MCP tool surface; the parser accepts exactly what the table declares.
15
+ - The `simt.json` manifest has a schema in the tool: the loader names an unknown key, and the keys the tool generates come from the table, so a repository's own keys stay the repository's. — [ADR-124](docs/decisions/ADR-124-the-manifest-has-a-schema-in-the-tool-and-its-unknown-keys-stay-the-repositorys.md)
16
+ - The `simt.lock.json` lock records its own format version, and namespaces register the keys they own.
17
+ - The read commands are a library imported by name: `check`, `fingerprint`, `skills`, `doctor` and `rules` read the repository through one shared context, so a read that asked five questions walks the tree once. — [ADR-125](docs/decisions/ADR-125-a-shared-context-belongs-to-a-read-and-a-writer-reads-directly.md)
18
+ - The `Co-Authored-By` trailer is written into the commit template and into `slice finish` commits.
19
+ - `SIMT_DEV_WORKSPACE` points into a workspace the repository declared. — [ADR-119](docs/decisions/ADR-119-the-environment-variable-points-into-a-workspace-the-repo-declared.md)
29
20
 
30
21
  ### Changed
31
22
 
32
- The projection lock is `simt.lock.json`, the name that follows the command
33
- and the manifest. A lock written under the old `simt-dev.lock.json` is still
34
- read — including the `variants` winners nothing else records — and migrates
35
- on the next write (ADR-110).
23
+ The git shims move from the top-level `.simt-hooks/` directory into the state
24
+ directory at `.simt/hooks/`, and `core.hooksPath` follows (ADR-122). Every
25
+ piece of per-repo state now has one root, and the ignore line that existed
26
+ only for the shims is dropped. A repository installed before the move
27
+ self-heals on its next `hooks install --yes`: the routing re-points, the new
28
+ shims land, and the legacy directory is removed — journaled, so `undo`
29
+ brings it back — but only when every file in it carries a simt-dev marker; a
30
+ file the tool cannot recognise as its own leaves the directory in place.
31
+ Because the shims land under the state directory, the journal records writes
32
+ to the shim directory: it is the one named exception to the unjournaled state
33
+ directory, since the undo that restores `core.hooksPath` must restore the
34
+ shims with it.
35
+
36
+ Journal sets that predate the move into `.simt/local/journal` live in the
37
+ fallback directory `.simt/journal`, which `undo` can only see while the
38
+ current directory is absent — a repository that accumulated history under the
39
+ old path lost it to `undo` on its first write after the move. The next
40
+ journal write now moves the legacy sets into the current directory, and the
41
+ fallback directory goes with its last file: a name present in both keeps
42
+ both records when the bytes differ, and a crash mid-move is finished by the
43
+ next write, so the migration is idempotent.
44
+
45
+ - The CLI loads only the command module the matched path needs, so a run pays for one command, not the registry.
46
+ - The `--json` envelope carries the canonical command path and the run's exit code, and `ok` agrees with the exit code.
47
+ - Run warnings travel in the JSON document, not only on stderr, and run notices are named distinctly from the warnings count the commands already report.
48
+ - A pre-push whose tree already passed the full suite skips the test gate on that evidence and says so, naming the push kind; the hook runs in a clone, and main is gated with a timeout that fits the run. — [ADR-120](docs/decisions/ADR-120-a-pre-push-whose-tree-is-already-proven-green-skips-the-test-gate-on-that-evidence.md)
49
+ - The decisions index is rendered from the decision records and leaves the shipped records directory, so it cannot drift from what the records say.
50
+ - The bench corpus is keyed on history, append-only, and portable as a sealed document; a re-mine no longer silently replaces it, and the Gradle and Maven graders read nothing from the corpus. — [ADR-118](docs/decisions/ADR-118-the-bench-corpus-is-keyed-on-history-is-append-only-and-is-portable-as-a-sealed-document.md)
51
+ - The publish workflow's version input may be `latest`, resolved before the guard runs, and the darwin release targets build on supported macOS 15 runners. — [ADR-117](docs/decisions/ADR-117-the-darwin-release-builds-on-supported-macos-15-runners-and-a-re-run-is-idempotent.md)
52
+ - The npm tarball excludes the decisions index, and the shipped surface is linted before publish.
36
53
 
37
- This repository is now a consumer of itself: `simt init` ran on its own
38
- source, so the two tests that asserted it was *not* a consumer are rewritten
39
- to assert the new state, and `AGENTS.md`'s "not self-adopted" section now
40
- says what is true (ADR-109). A gate finding whose `detail` is absent is now
41
- `null` rather than `undefined`, so the CLI's JSON and the MCP structured
42
- surface of one answer deep-equal.
43
-
44
- ## [0.6.3] — 2026-10-29
45
-
46
- ### Added
47
-
48
- `simt explain <CODE>` names what a `check` finding means, the decision behind
49
- it, how to fix it, and a concrete trigger — one table row per finding code, so
50
- every code `check` can emit has an entry.
54
+ ### Fixed
51
55
 
52
- `simt doctor --fix` applies only the remedies flagged safe (local, idempotent,
53
- journaled) and lists the rest; a fixture with three safe and two unsafe findings
54
- fixes exactly three.
56
+ - The parser refuses a value a flag does not accept, a second value for a flag that is not repeatable, and the tolerated flags once the release that removes them ships.
57
+ - The tool no longer lets a repository-local `user.*` setting shadow the shared `git.config` identity.
58
+ - The MCP protocol validates the envelope and the arguments it advertised.
59
+ - A gate is bounded in time, and its output is read as a tail, so a hung gate cannot hang the hook.
60
+ - The runtime floor is checked before the CLI loads, so a Node that is too old fails before the tool does.
61
+ - `simt brief` names only what this tool can resolve.
62
+ - `simt packs`: a preview stays offline, a link is pinned or refused, and the positional argument wins over the flag.
63
+ - `simt bench`: a run cannot outlive its deadline, a failed run is a record, and the small bugs report what they measured.
64
+ - `simt ledger` names the tree when `.gitignore` ignores the state directory.
65
+ - The upgrade verdict and the exit code are one thing, so `ok` and the exit code cannot disagree.
55
66
 
56
- `simt status --line` prints the gate state from the last `check` in under
57
- 50 ms from cache — `simt PASS ✓rules ✓hooks 3/3gates` — for shell prompts, tmux
58
- and agent status lines.
67
+ ## [0.7.0] — 2026-10-31
59
68
 
60
- Every write records `{path, beforeDigest, afterDigest, beforeBytes}` in
61
- `.simt/journal/`, and `simt undo` restores the last set when every file in it
62
- is untouched since.
69
+ ### Added
63
70
 
64
- `--diff` on every writer prints a unified diff of the plan next to the report,
65
- changing nothing about what the run writes.
71
+ - `simt agent-hooks install --harness <id>` writes the policies into one harness instead of all of them; an unknown id is a usage error that names the valid ones. — [ADR-107](docs/decisions/ADR-107-an-install-can-name-one-harness-and-the-skipped-ones-are-named.md)
72
+ - `simt init --yes` builds the repository index as part of the adoption, so the first `simt map` or `simt brief` in a fresh repository answers from real files. — [ADR-108](docs/decisions/ADR-108-an-adoption-builds-the-index-and-a-command-refreshes-it-on-read.md)
73
+ - The rule text names the manifest as `simt.json`, the name it has had since the rename; four rule files still said `simt-dev.json`, which resolves in no repository.
66
74
 
67
- `simt completions <bash|zsh|fish>` prints a completion script generated from the
68
- command registry, so the three shells complete exactly the commands the binary
69
- dispatches.
75
+ ### Changed
70
76
 
71
- One ignore list (`.simtignore`) renders `.cursorignore`, `.aiderignore`,
72
- `.geminiignore` and Claude `permissions.deny`, and a zero-dependency
73
- staged-diff secret scan (vendor patterns plus Shannon entropy over added lines
74
- only) blocks a commit carrying a probable secret without printing the bytes.
77
+ - The projection lock is `simt.lock.json`, the name that follows the command and the manifest. — [ADR-110](docs/decisions/ADR-110-the-lock-file-follows-the-manifest-name-and-the-old-name-is-read-until-the-next-write.md)
78
+ - This repository is now a consumer of itself: `simt init` ran on its own source, so the two tests that asserted it was *not* a consumer are rewritten to assert the new state, and `AGENTS.md`'s "not self-adopted" section now says what is true — [ADR-109](docs/decisions/ADR-109-simt-dev-is-its-own-consumer-and-the-guards-that-kept-it-from-being-one-are-retired.md)
75
79
 
76
- `simt slice start <id>` isolates the work in a linked worktree on branch
77
- `slice/<id>` with the brief preloaded and flips the tracker row In progress;
78
- `simt slice finish <id>` runs the declared gates, commits a Conventional
79
- subject from the row title, and records the SHA and test command on the row.
80
+ ## [0.6.3] — 2026-10-29
80
81
 
81
- `simt lease <paths> --session <id>` claims files until a TTL in
82
- `.simt/leases.json`, and the pre-edit hook denies an edit leased by another
83
- session (ADR-101).
82
+ ### Added
84
83
 
85
- `simt pr-body [--base <ref>]` assembles the pull request body from the evidence
86
- ledger, the decision records the diff touches, the gate state from the last
87
- check, and the residual risk in ADR-008 vocabulary. It is also exposed as the
88
- `pr_body` MCP tool; the two longest tool descriptions were shortened to hold
89
- the 2 KB `tools/list` budget.
84
+ - `simt explain <CODE>` names what a `check` finding means, the decision behind it, how to fix it, and a concrete trigger — one table row per finding code, so every code `check` can emit has an entry.
85
+ - `simt doctor --fix` applies only the remedies flagged safe (local, idempotent, journaled) and lists the rest; a fixture with three safe and two unsafe findings fixes exactly three.
86
+ - `simt status --line` prints the gate state from the last `check` in under 50 ms from cache — `simt PASS ✓rules ✓hooks 3/3gates` — for shell prompts, tmux and agent status lines.
87
+ - Every write records `{path, beforeDigest, afterDigest, beforeBytes}` in `.simt/journal/`, and `simt undo` restores the last set when every file in it is untouched since.
88
+ - `--diff` on every writer prints a unified diff of the plan next to the report, changing nothing about what the run writes.
89
+ - `simt completions <bash|zsh|fish>` prints a completion script generated from the command registry, so the three shells complete exactly the commands the binary dispatches.
90
+ - One ignore list (`.simtignore`) renders `.cursorignore`, `.aiderignore`, `.geminiignore` and Claude `permissions.deny`, and a zero-dependency staged-diff secret scan (vendor patterns plus Shannon entropy over added lines only) blocks a comm
91
+ - `simt slice start <id>` isolates the work in a linked worktree on branch `slice/<id>` with the brief preloaded and flips the tracker row In progress; `simt slice finish <id>` runs the declared gates, commits a Conventional subject from the
92
+ - `simt lease <paths> --session <id>` claims files until a TTL in `.simt/leases.json`, and the pre-edit hook denies an edit leased by another session (ADR-101). — [ADR-101](docs/decisions/ADR-101-a-file-lease-belongs-to-one-session-and-the-pre-edit-hook-refuses-another.md)
93
+ - `simt pr-body [--base <ref>]` assembles the pull request body from the evidence ledger, the decision records the diff touches, the gate state from the last check, and the residual risk in ADR-008 vocabulary. — [ADR-008](docs/decisions/ADR-008-verdict-vocabulary.md)
90
94
 
91
95
  ## [0.6.2] — 2026-10-27
92
96
 
93
97
  ### Fixed
94
98
 
95
- The v0.6.1 tag run failed its own tests step: two decision-corpus lists in
96
- `test/rules.test.mjs` were not moved with ADR-099 (the partial-supersession
97
- shapes and the leaking-paths count, both designed to move with the corpus).
98
- Same product as v0.6.1; this tag exists so the release automation is proven by
99
- a green run rather than described by a red one.
99
+ - The v0.6.1 tag run failed its own tests step: two decision-corpus lists in `test/rules.test.mjs` were not moved with ADR-099 (the partial-supersession shapes and the leaking-paths count, both designed to move with the corpus). — [ADR-099](docs/decisions/ADR-099-the-release-verifies-served-bytes-and-the-formula-mirrors-them.md)
100
100
 
101
101
  ## [0.6.1] — 2026-10-27 (tagged, never published to npm)
102
102
 
103
103
  ### Fixed
104
104
 
105
- The release automation, which the v0.6.0 tag proved broken in two places. The
106
- tag workflow compared CI-built binaries against locally-built committed
107
- checksums, but the build is deterministic per host family, not across them —
108
- the check could never pass, and darwin binaries cannot be finished on ubuntu
109
- runners for lack of `codesign` anyway. Each target now builds on its native
110
- runner, the release verifies the served bytes equal the built bytes, and a
111
- `sync-formula` job re-renders the committed formula from the served bytes
112
- (ADR-099). The formula description no longer starts with an article, which is
113
- what failed the Homebrew channel's `brew style` on v0.6.0. No product change.
105
+ - The release automation, which the v0.6.0 tag proved broken in two places. — [ADR-099](docs/decisions/ADR-099-the-release-verifies-served-bytes-and-the-formula-mirrors-them.md)
114
106
 
115
107
  ## [0.6.0] — 2026-10-27
116
108
 
117
109
  ### Added
118
110
 
119
- `simt plugin <claude|gemini|cursor> --out <dir>` generates one of the three
120
- harness packages from the same tables `agent-hooks install` writes — the hooks
121
- file, the MCP registration and, for cursor, the kernel rules — each carrying a
122
- self-contained copy of the runtime so it installs into a clean profile. Dry-run
123
- unless `--yes`. The Gemini reader row gains its hooks file (`.gemini/settings.json`),
124
- which extends `agent-hooks install` and `status` to a fifth adapter.
125
-
126
- The MCP server answers `prompts/list` and `prompts/get` with two templates:
127
- `simt-brief` starts a task from the pre-assembled brief packet, and `simt-slice`
128
- implements one slice of the working plan (the next one whose dependencies are
129
- complete, or a named one) — reading the repo's rules through `simt://kernel`
130
- first, testing per the slice's acceptance check, committing locally and pushing
131
- only on explicit approval. A prompt names the tools; the server stays read-only.
132
-
133
- Two fixed resources join `simt://rules/{id}` and `simt://decisions/{adr}`:
134
- `simt://kernel` serves the collaborating region rendered in kernel mode for
135
- whatever repository the server runs in — the URI promises the kernel's bytes,
136
- whatever `mode` the manifest declares — and `simt://plan/next` serves the
137
- section of the next ready plan slice, listed only while one is ready. A listed
138
- resource's size is the size its read returns.
139
-
140
- The tool descriptions in `tools/list` are cut from 2,783 bytes to 1,949,
141
- inside the 2 KB budget plan 0003 R41 sets for a cacheable tools list; the
142
- input and output schemas stay full, per ADR-068.
143
-
144
- `harness detect` reports the MCP registration files the loader table records —
145
- `.mcp.json` (Claude Code), `.codex/config.toml`, `.cursor/mcp.json`,
146
- `.agents/mcp_config.json`, `.gemini/settings.json`, `.vscode/mcp.json` — as
147
- `kind: 'mcp'` rows whose provenance is the vendor page each path was read from.
148
- A row rests on the file existing, never on a directory's presence, and never
149
- counts toward the no-rule-channel note: a config file doesn't claim one.
150
-
151
- The loader table gains the Gemini CLI reader, whose configuration reference the
152
- table previously recorded as unavailable: it is live again (read 2026-10-26), so
153
- the row carries the GEMINI.md chain with `.git` boundary markers, the
154
- `context.fileName` rename (the only documented way this reader picks up
155
- AGENTS.md), depth-5 `@path` imports, no published cap, and the `mcpServers`
156
- registration. It stays a facts row — the `gemini-md` pointer remains the one
157
- rule channel for that reader.
158
-
159
- Each release now carries a fourth artefact beside the tarball, the wheel and the
160
- formula: one single-file executable per target (`darwin-arm64`, `darwin-x64`,
161
- `linux-x64`), built from the same `files` set with a pinned Node runtime, published to
162
- the GitHub release with a `.sha256` beside it and a build-provenance attestation. It is
163
- the channel for a machine that has no toolchain to install one with — the binary lands
164
- as one file in `.simt/bin/` and carries its own runtime — and its acceptance is
165
- executable: a Gradle fixture with every directory containing a node removed from `PATH`
166
- runs `check` and the hook shim from the built bytes.
167
-
168
- `simt pack new <name> --source <npm:<package>|git+https://…>` scaffolds a
169
- versioned pack — `pack.json`, an unmeasured `bench.json`, one stack rule — and
170
- `simt pack lint [dir]` validates it and states its measured ΔR, rejecting a pack
171
- with no bench summary under `--require-measured`. `simt pack publish [dir]` lints
172
- first, publishes an npm-sourced pack idempotently (a live version is skipped),
173
- and names the tag-and-push for a git-sourced one. The summary binds to every
174
- byte but itself, so recording a measurement cannot invalidate it.
111
+ - `simt plugin <claude|gemini|cursor> --out <dir>` generates one of the three harness packages from the same tables `agent-hooks install` writes — the hooks file, the MCP registration and, for cursor, the kernel rules — each carrying a self-c
112
+ - The MCP server answers `prompts/list` and `prompts/get` with two templates: `simt-brief` starts a task from the pre-assembled brief packet, and `simt-slice` implements one slice of the working plan (the next one whose dependencies are compl
113
+ - Two fixed resources join `simt://rules/{id}` and `simt://decisions/{adr}`: `simt://kernel` serves the collaborating region rendered in kernel mode for whatever repository the server runs in — the URI promises the kernel's bytes, whatever `m
114
+ - The tool descriptions in `tools/list` are cut from 2,783 bytes to 1,949, inside the 2 KB budget plan 0003 R41 sets for a cacheable tools list; the input and output schemas stay full, per ADR-068. — [ADR-068](docs/decisions/ADR-068-the-mcp-revision-list-cites-what-was-read.md)
115
+ - `harness detect` reports the MCP registration files the loader table records — `.mcp.json` (Claude Code), `.codex/config.toml`, `.cursor/mcp.json`, `.agents/mcp_config.json`, `.gemini/settings.json`, `.vscode/mcp.json` — as `kind: 'mcp'` ro
116
+ - The loader table gains the Gemini CLI reader, whose configuration reference the table previously recorded as unavailable: it is live again (read 2026-10-26), so the row carries the GEMINI.md chain with `.git` boundary markers, the `context.
117
+ - Each release now carries a fourth artefact beside the tarball, the wheel and the formula: one single-file executable per target (`darwin-arm64`, `darwin-x64`, `linux-x64`), built from the same `files` set with a pinned Node runtime, publish
118
+ - `simt pack new <name> --source <npm:<package>|git+https://…>` scaffolds a versioned pack — `pack.json`, an unmeasured `bench.json`, one stack rule — and `simt pack lint [dir]` validates it and states its measured ΔR, rejecting a pack with n
175
119
 
176
120
  ### Changed
177
121
 
178
- `harness detect`'s "some readers read AGENTS.md" rows no longer say bare "some"
179
- when the row knows which one: the `readsAgentsMdNote` travels to the text
180
- output, and `.gemini` graduates from unverified candidate to verified detection
181
- facts (presence implies Gemini CLI; AGENTS.md only when `context.fileName`
182
- names it).
183
-
184
- The one-line description the three channels publish (npm, PyPI and Homebrew) now
185
- names the goal plan `0003` is building toward — an intelligence amplifier for AI
186
- coding agents — instead of the adoption-only story it grew out of.
187
-
188
- The per-repository state directory is renamed from `.simt-dev/` to `.simt/`: the
189
- index, ledger, lessons, bench artifacts, local-model proposals (`distilled/`,
190
- `reviews/`) and repo-local profiles all live under `.simt/` now. Existing state is
191
- not migrated — a repository that carries a `.simt-dev/` directory moves it once by
192
- hand (`mv .simt-dev .simt`); everything in it is cache or ledger, regenerable from
193
- git. The names this tool writes into files it does not own stay put: the `simt.json`
194
- manifest, the `simt-dev-check.yml` gate, the user-level config directory and the
195
- `SIMT_DEV_*` environment variables keep their names.
196
-
197
- The skill registry leaves the published set again, as ADR-061 ruled when it
198
- first left in 0.2.1. It is a catalogue of one workspace's skills — the
199
- repositories whose bodies it resolves — and an installed copy serving that
200
- catalogue to an adopting repository is a confident wrong answer: the skills
201
- it names do not live in the reader's workspace. 0.5.0 carried the registry
202
- because a fresh install's `simt skills *` and `simt distill` otherwise found
203
- none; the fix is the honest absence the tiered loader already reports — the
204
- path it would have read, and the `simt graph lint <path>` remedy — with a
205
- workspace that owns the registry naming it through `--workspace`,
206
- `SIMT_DEV_WORKSPACE` or the user config file. Custom skills were never part
207
- of the registry: they live in each repository, and the disclosure scan
208
- projects them into AGENTS.md.
209
-
210
- The entry point file is renamed from `bin/simt-dev.mjs` to `bin/simt.mjs`,
211
- matching the command it installs: the command has been `simt` for a long
212
- time, the package is still `simt-dev`, and the file path was the last place
213
- that carried the old spelling. `BIN_REL` in `src/name.mjs` is the single
214
- source of truth, so the generated hook shim and CI workflow pick up the new
215
- path on their next regeneration; the channels (npm, PyPI, Homebrew), the
216
- repository's own CI and the test harnesses follow.
217
-
218
- The hook shim's remedy and the generated CI workflow now install the release binary
219
- for a repository without npm, instead of the pinned global npm install (`npm i -g`)
220
- that needed the npm that repository kind is defined by not having. The remedy is the
221
- one-line download the binary channel names, with its platform derived from `uname`;
222
- the CI step verifies the download against the published `.sha256` and runs with no
223
- `setup-node` step at all — a file that runs without a Node toolchain should not have
224
- one installed to run it.
225
-
226
- The locator resolves `.simt/bin/simt` between `node_modules` and `PATH`, so the bytes
227
- a repository downloaded are the bytes its gate runs and a machine-wide install cannot
228
- shadow them. The dispatcher's version check is unchanged and still refuses a stale
229
- copy, whichever path found it.
230
-
231
- Homebrew's formula downloads the release binaries rather than the npm tarball — one
232
- `url`/`sha256` pair per target, chosen at install time — and no longer declares
233
- `depends_on "node"`. `scripts/release-formula.mjs` patches each pair by content, and
234
- the release refuses to publish a formula whose checksums are not the bytes the tagged
235
- tree builds (ADR-098).
122
+ - `harness detect`'s "some readers read AGENTS.md" rows no longer say bare "some" when the row knows which one: the `readsAgentsMdNote` travels to the text output, and `.gemini` graduates from unverified candidate to verified detection facts
123
+ - The one-line description the three channels publish (npm, PyPI and Homebrew) now names the goal plan `0003` is building toward — an intelligence amplifier for AI coding agents — instead of the adoption-only story it grew out of.
124
+ - The per-repository state directory is renamed from `.simt-dev/` to `.simt/`: the index, ledger, lessons, bench artifacts, local-model proposals (`distilled/`, `reviews/`) and repo-local profiles all live under `.simt/` now.
125
+ - The skill registry leaves the published set again, as ADR-061 ruled when it first left in 0.2.1. — [ADR-061](docs/decisions/ADR-061-the-skill-registry-is-workspace-data.md)
126
+ - The entry point file is renamed from `bin/simt-dev.mjs` to `bin/simt.mjs`, matching the command it installs: the command has been `simt` for a long time, the package is still `simt-dev`, and the file path was the last place that carried the
127
+ - The hook shim's remedy and the generated CI workflow now install the release binary for a repository without npm, instead of the pinned global npm install (`npm i -g`) that needed the npm that repository kind is defined by not having.
128
+ - The locator resolves `.simt/bin/simt` between `node_modules` and `PATH`, so the bytes a repository downloaded are the bytes its gate runs and a machine-wide install cannot shadow them.
129
+ - Homebrew's formula downloads the release binaries rather than the npm tarball — one `url`/`sha256` pair per target, chosen at install time — and no longer declares `depends_on "node"`. — [ADR-098](docs/decisions/ADR-098-the-fourth-channel-is-one-file-and-it-needs-no-toolchain.md)
236
130
 
237
131
  ## [0.5.0] — 2026-10-25
238
132
 
239
- ### An offline distiller that proposes, never projects
240
-
241
- `simt distill <skill|doc>` writes a budgeted summary of a skill body or repository
242
- document with citations to source line ranges (`[L12-L15]`). The default engine is a
243
- deterministic outline pass with no model and no network; `--local` uses the configured
244
- local model endpoint from plan 0003 R37. Proposals are cached by content digest in
245
- `.simt-dev/distilled/<digest>.md` and carry provenance frontmatter (source digest,
246
- engine, prompt hash, `verified`), so a human merges them into the pack or repository:
247
- model output never lands in projected or committed text (ADR-090). Every citation is
248
- verified against the source, and a fabricated one makes the proposal
249
- `verified: false` with the fault named.
250
-
251
- ### An advisory critic over the staged diff
252
-
253
- `simt review` gathers the brief — the governing decision records and scoped rules for
254
- the staged files — with no model and no network. `simt review --local` sends that brief
255
- plus the staged diff to the local model and receives an ADR-008 verdict skeleton
256
- (`BLOCK`, `APPROVE WITH RESIDUAL RISK` or `APPROVE`) that cites rule ids with an
257
- `@` marker; a citation to an id that governs nothing is named a fabrication, a
258
- `BLOCK` carries no weight without a file:line or command finding, and a residual-risk
259
- approval must list what the critic did not review. Verdicts land as proposals in
260
- `.simt-dev/reviews/<digest>.md` and stay advisory: they become a gate only when
261
- `simt bench critic --labels <path>` measures precision of at least 0.8 (with recall
262
- reported) on at least 30 historical diffs human-labelled in a JSONL file the tool
263
- consumes but never writes.
264
-
265
- ### Model and effort advice in the brief header
266
-
267
- `simt brief` now carries an `ADVICE` header, such as `small model, no plan mode` or
268
- `frontier model, plan first`, derived from the estate's own bench history: the brief's
269
- task kind and estimated file size pick a neighbourhood of similar bench tasks, the
270
- cheapest model class that actually resolved them sets the tier on a thirds ladder of
271
- the classes the estate has observed (no vendor names in code), and median tool calls in
272
- the neighbourhood set the effort. Nothing is selected: a human still names the model.
273
- With no history the brief says nothing, and with a thin one it prints a caution rather
274
- than a guess. The advice is advisory until a held-out bench shows a cost cut of at
275
- least 25% at a resolved-rate loss of at most 2 points, so the unmeasured bar travels
276
- in every packet the advice appears in.
133
+ - **An offline distiller that proposes, never projects** — `simt distill <skill|doc>` writes a budgeted summary of a skill body or repository document with citations to source line ranges (`[L12-L15]`). — [ADR-090](docs/decisions/ADR-090-an-optional-adapter-is-off-until-named.md)
134
+
135
+ - **An advisory critic over the staged diff** — `simt review` gathers the brief — the governing decision records and scoped rules for the staged files — with no model and no network. — [ADR-008](docs/decisions/ADR-008-verdict-vocabulary.md)
136
+
137
+ - **Model and effort advice in the brief header** — `simt brief` now carries an `ADVICE` header, such as `small model, no plan mode` or `frontier model, plan first`, derived from the estate's own bench history: the brief's task kind and estimated file size pick a neighbourhood of similar ben
277
138
 
278
139
  ### Fixed
279
140
 
280
- `package.json` gained the `repository` field npm's provenance verification requires:
281
- the sigstore bundle is checked against the public source repository, and the missing
282
- URL rejected the 0.4.0 upload with `E422`.
141
+ - `package.json` gained the `repository` field npm's provenance verification requires: the sigstore bundle is checked against the public source repository, and the missing URL rejected the 0.4.0 upload with `E422`.
283
142
 
284
143
  ## [0.4.0] — 2026-10-20
285
144
 
286
- ### Hybrid retrieval fuses BM25, the code graph, and the resolver
287
-
288
- `simt index` indexes full-text tokens across `code`, `docs`, `skills`, `decisions` and
289
- `lessons` into the SQLite FTS5 `fts` table (with an Okapi BM25 fallback when the index is
290
- JSON-lines). `simt map` and `simt brief` fuse FTS5 `bm25()`, PageRank graph proximity and
291
- resolver signals with reciprocal-rank fusion (`RRF_K = 40`), raising gold-file recall@10 on
292
- the 20 mined tasks here from 54.3% to 61.3% (above the 60% bar in ADR-091). With `--embed`
293
- and a configured `local.embed` endpoint, `simt index` stores `Float32Array` vector blobs in
294
- the `embeddings` table and `simt map --embed` adds brute-force cosine similarity; embeddings
295
- stay off by default unless they raise recall@10 by at least 10 percentage points.
296
-
297
- ### A local model adapter that opens zero sockets until named
298
-
299
- `simt local doctor` probes the OpenAI-compatible `local.chat` and `local.embed` endpoints
300
- declared in `simt.json` (`/v1/models`, `/v1/chat/completions`, `/v1/embeddings` for Ollama,
301
- `llama-server`, LM Studio and MLX servers) and reports reachability, model presence and
302
- latency. Non-loopback URLs are refused unless `--allow-remote` is given (ADR-075, ADR-090),
303
- and when `local` is unset nothing opens a socket.
304
-
305
- ### Estate learning and ADR drafts across a workspace
306
-
307
- `simt compare --learn` aggregates benchmark uplift (`ΔR`, `ΔC`) per rule section across
308
- adopted sibling repositories, promotes lessons repeated across at least two repositories as
309
- shared candidates, and flags gates that fail more than 20% of the time as `NOISY-GATE`.
310
- `simt compare --draft-adr <pattern>` writes a proposed ADR draft under `docs/decisions/`
311
- carrying `Origin: simt compare --draft-adr` and the workspace evidence behind it.
312
-
313
- ### Rule text variants have to win on the bench
314
-
315
- A rule may declare candidate wordings under `simt-variants:` in its frontmatter (or supply
316
- them with `--variants-file`). `simt bench variants <rule-id>` evaluates each candidate on
317
- paired benchmark runs with McNemar on resolved rate and Wilcoxon signed-rank on cost,
318
- promotes a wording only when `ΔR > 0` (or `ΔR == 0` and `ΔC < 0`) at `p < 0.05`, and records
319
- the winning variant and its `p`-value in `simt-dev.lock.json`.
320
-
321
- ### Decision records carry structured supersession frontmatter
322
-
323
- `simt decide "<title>"` scaffolds the next numbered ADR in `docs/decisions/` with structured
324
- frontmatter (`Status`, `Date`, `Supersedes`, `Superseded-by`, `Affects`) and updates the
325
- records it supersedes when `--supersedes` and `--yes` are given. `simt rules lint` reports
326
- `PARTIAL-SUPERSEDE` when prose claims to supersede part of an earlier record without
327
- matching frontmatter links.
328
-
329
- ### Lessons are captured from failure-to-fix pairs, recalled on match, and expire
330
-
331
- When a failing gate or test run in `.simt-dev/ledger.jsonl` is followed by a passing run on
332
- the same package, `simt lessons` records a deterministic candidate in
333
- `.simt-dev/lessons-candidates.jsonl`. `simt lessons promote <id> --yes` writes a reviewed
334
- lesson to `docs/lessons/<id>.md` with `Paths`, `Check`, `Expires` and `ADR` fields, and
335
- `simt check` reports `LESSON-EXPIRED` once the date passes or the linked ADR is superseded.
336
- Matching lessons (at most two) are recalled in `simt brief` and by `simt agent-hook
337
- after-tool` when a tool call fails on the same package or error signature.
338
-
339
- ### Skills compile to the Agent Skills standard and report their triggers
340
-
341
- `simt skills compile` validates and compiles skill sources against the Agent Skills standard
342
- (frontmatter `name` and `description`, description under 1024 characters, `SKILL.md` body at
343
- most 500 lines, and on-demand `references/` and `scripts/` links). `simt skills triggers
344
- "<prompt>"` previews which skills match a task and the score breakdown behind each match.
345
-
346
- ### A task brief fits in the bytes a prompt can carry
347
-
348
- `simt brief "<task>"` assembles what a task needs into one packet: the kind of the task
349
- and the commands that kind needs, the files the map ranks highest, the tests the index
350
- knows for them, the decisions that govern them, the skills the resolver selects, the
351
- lessons that name those paths, and the cautions — dirty files to leave alone, generated
352
- paths, files no test covers. The packet stays inside `--budget` bytes (2048 by default,
353
- `0` for all of it), ends with the number of items it had to cut, and prints the same bytes
354
- on the same tree; `--explain` prints every item with the reason it was kept or dropped.
355
- The accept figure it was designed against — 20% fewer turns, 15% cheaper than the kernel
356
- arm at no loss of resolved rate — is unmeasured here, because it needs a bench run and an
357
- installed agent CLI and neither is on this machine. `simt skills brief` keeps its own
358
- behaviour for now: retiring it changes two accepted decisions and an MCP output schema,
359
- and this slice carries no decision to do it.
360
-
361
- ### The packet arrives without being asked for
362
-
363
- A repository that declares a `brief` key in its manifest gets the packet injected as context
364
- before every prompt: `simt agent-hooks install` writes a `UserPromptSubmit` hook into Claude
365
- Code's and Codex's own config, and `simt agent-hook prompt-submit --harness <id>` answers in
366
- that harness's dialect with `hookSpecificOutput.additionalContext`. It never decides and never
367
- exits 2 — no prompt text, no opt-in, a cold index or an assembly error all print why on stderr
368
- and exit 0. The injection is capped at 2048 bytes; `brief.bytes` may lower that and may not
369
- raise it. Cursor and Gemini CLI are not in the table: Cursor's prompt event can only block a
370
- prompt, and Gemini CLI's replacement is not in the reader table. The pre-tool path pays nothing
371
- for this — the repository is reached through a dynamic import only a prompt event opens. MCP
372
- gains a `brief` tool so a client can pull the same packet, assembled by the same code as the
373
- command.
374
-
375
- ### A brief can cite a code graph it did not build
376
-
377
- A repository may declare a `federation` block in `simt.json` naming external code-graph
378
- servers, each with the command that starts it and, optionally, the MCP tool to ask, the
379
- argument the question goes in, the languages it covers and the timeout to wait. `simt brief`
380
- and the MCP `brief` tool then ask each declared server one structural question for the task
381
- and add the answer to a `FEDERATION` section that names its source; a `covers <languages>`
382
- line records what a server claims without yet skipping the index's own extraction of those
383
- languages. The list is the repository's own committed declaration, the same trust model as
384
- `gates.commands`, and nothing is started that the manifest did not name. A malformed entry, a
385
- spawn failure, a protocol error or a timeout all become a caution and the brief still exits
386
- `0`; a server that never answers is bounded by its own per-server timeout. MCP also gains a
387
- `federation_query` tool, which asks a named server (or every declared one) one structural
388
- question on demand and returns the answer with its source; like the brief's fan-out it goes
389
- only to the tool and argument the manifest declared. The packet delivered at prompt submit
390
- does not federate — starting someone else's process is not a wait a 300 ms submit may take.
145
+ - **Hybrid retrieval fuses BM25, the code graph, and the resolver** — `simt index` indexes full-text tokens across `code`, `docs`, `skills`, `decisions` and `lessons` into the SQLite FTS5 `fts` table (with an Okapi BM25 fallback when the index is JSON-lines). — [ADR-091](docs/decisions/ADR-091-the-map-ranks-files-a-task-mentions.md)
391
146
 
392
- ## [0.3.1] — 2026-10-18
147
+ - **A local model adapter that opens zero sockets until named** — `simt local doctor` probes the OpenAI-compatible `local.chat` and `local.embed` endpoints declared in `simt.json` (`/v1/models`, `/v1/chat/completions`, `/v1/embeddings` for Ollama, `llama-server`, LM Studio and MLX servers) and reports rea — [ADR-075](docs/decisions/ADR-075-nothing-leaves-the-machine.md), [ADR-090](docs/decisions/ADR-090-an-optional-adapter-is-off-until-named.md)
393
148
 
394
- ### Who a change reaches
149
+ - **Estate learning and ADR drafts across a workspace** — `simt compare --learn` aggregates benchmark uplift (`ΔR`, `ΔC`) per rule section across adopted sibling repositories, promotes lessons repeated across at least two repositories as shared candidates, and flags gates that fail more than 20% o
395
150
 
396
- `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).
151
+ - **Rule text variants have to win on the bench** — A rule may declare candidate wordings under `simt-variants:` in its frontmatter (or supply them with `--variants-file`).
397
152
 
398
- ### A gate report keeps the failures and counts the passes
153
+ - **Decision records carry structured supersession frontmatter** — `simt decide "<title>"` scaffolds the next numbered ADR in `docs/decisions/` with structured frontmatter (`Status`, `Date`, `Supersedes`, `Superseded-by`, `Affects`) and updates the records it supersedes when `--supersedes` and `--yes` are
399
154
 
400
- `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).
155
+ - **Lessons are captured from failure-to-fix pairs, recalled on match, and expire** — When a failing gate or test run in `.simt-dev/ledger.jsonl` is followed by a passing run on the same package, `simt lessons` records a deterministic candidate in `.simt-dev/lessons-candidates.jsonl`.
401
156
 
402
- ### A change runs the tests that import it
157
+ - **Skills compile to the Agent Skills standard and report their triggers** — `simt skills compile` validates and compiles skill sources against the Agent Skills standard (frontmatter `name` and `description`, description under 1024 characters, `SKILL.md` body at most 500 lines, and on-demand `references/` and `scrip
403
158
 
404
- `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).
159
+ - **A task brief fits in the bytes a prompt can carry** — `simt brief "<task>"` assembles what a task needs into one packet: the kind of the task and the commands that kind needs, the files the map ranks highest, the tests the index knows for them, the decisions that govern them, the skills the re
405
160
 
406
- ### what governs a file is the decision, rule, skill, gate or lesson that names it
161
+ - **The packet arrives without being asked for** — A repository that declares a `brief` key in its manifest gets the packet injected as context before every prompt: `simt agent-hooks install` writes a `UserPromptSubmit` hook into Claude Code's and Codex's own config, and `simt agent-hook pr
407
162
 
408
- `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).
163
+ - **A brief can cite a code graph it did not build** — A repository may declare a `federation` block in `simt.json` naming external code-graph servers, each with the command that starts it and, optionally, the MCP tool to ask, the argument the question goes in, the languages it covers and the t
409
164
 
410
- ### The tests of a file are its importers, its conventional neighbour, and its coverage
165
+ ## [0.3.1] — 2026-10-18
411
166
 
412
- `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).
167
+ - **Who a change reaches** — `simt impact` takes a tracked path or the name of one export. — [ADR-096](docs/decisions/ADR-096-impact-names-who-a-change-reaches.md)
413
168
 
414
- ### The map ranks the files a task is likely to touch
169
+ - **A gate report keeps the failures and counts the passes** — `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`. — [ADR-095](docs/decisions/ADR-095-gate-output-keeps-the-failures.md)
415
170
 
416
- `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).
171
+ - **A change runs the tests that import it** — `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. — [ADR-094](docs/decisions/ADR-094-a-change-runs-the-tests-that-import-it.md)
417
172
 
418
- ### The index names the exports and the imports
173
+ - **what governs a file is the decision, rule, skill, gate or lesson that names it** — `simt why` reads an Affects line as the tokens in backticks, including a line the paragraph wraps onto. — [ADR-017](docs/decisions/ADR-017-a-declared-gate-must-be-runnable.md), [ADR-093](docs/decisions/ADR-093-why-names-what-governs-a-file.md)
419
174
 
420
- `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).
175
+ - **The tests of a file are its importers, its conventional neighbour, and its coverage** — `simt tests` lists the tests that exercise a file. — [ADR-092](docs/decisions/ADR-092-tests-are-imports-conventions-and-coverage.md)
421
176
 
422
- ### The local index is a cache of git blobs
177
+ - **The map ranks the files a task is likely to touch** — `simt map` orders the index by the task's words and by the import and call edges around them. — [ADR-091](docs/decisions/ADR-091-the-map-ranks-files-a-task-mentions.md)
423
178
 
424
- `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).
179
+ - **The index names the exports and the imports** — `simt index` fills symbols and import edges from the blob it already hashes. — [ADR-090](docs/decisions/ADR-090-an-optional-adapter-is-off-until-named.md)
425
180
 
426
- ### A marked line is enforced by a checker
181
+ - **The local index is a cache of git blobs** — `simt index` rebuilds `.simt-dev/index.sqlite` from `git ls-files`. — [ADR-089](docs/decisions/ADR-089-the-local-index-is-a-cache-of-git-blobs.md)
427
182
 
428
- 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).
183
+ - **A marked line is enforced by a checker** — A rule line may name a checker with `simt-check`. — [ADR-088](docs/decisions/ADR-088-a-marked-line-is-enforced-by-a-checker.md)
429
184
 
430
- ### A run is evidence for one tree
185
+ - **A run is evidence for one tree** — `simt evidence` prints the runs recorded against the tree on disk. — [ADR-087](docs/decisions/ADR-087-a-run-is-evidence-for-one-tree.md)
431
186
 
432
- `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).
187
+ - **A workspace carries its repeated rules once** — `simt shared plan` names the rules every repository in a workspace renders with the same bytes, and where each harness would load that copy. — [ADR-084](docs/decisions/ADR-084-a-workspace-carries-its-repeated-rules-once.md)
433
188
 
434
- ### A workspace carries its repeated rules once
189
+ - **The region ends with the names of what it kept out** — 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. — [ADR-085](docs/decisions/ADR-085-the-region-ends-with-the-names-it-kept-out.md)
435
190
 
436
- `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).
191
+ - **The stable prefix comes first** — Shipped rules lead the region, and the command card follows them, so an edit this repository makes changes only the tail. — [ADR-086](docs/decisions/ADR-086-the-stable-prefix-comes-first-and-the-lock-records-both-digests.md)
437
192
 
438
- ### The region ends with the names of what it kept out
193
+ - **Kernel mode packs to the budget the repository declared** — `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. — [ADR-083](docs/decisions/ADR-083-a-budget-is-met-by-cutting-the-kernel-and-hard-is-the-floor.md)
439
194
 
440
- 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).
195
+ - **Vulnerability reports** — `SECURITY.md` names the two places a report goes: a GitHub issue on this repository, or `security@simt.space`.
441
196
 
442
- ### The stable prefix comes first
197
+ ## [0.3.0] — 2026-10-17
443
198
 
444
- 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).
199
+ - **The rules and the decisions are readable as MCP resources** — 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. — [ADR-074](docs/decisions/ADR-074-a-rule-and-a-decision-are-readable-by-uri.md)
445
200
 
446
- ### Kernel mode packs to the budget the repository declared
201
+ - **A plan is resumed one slice at a time** — `simt plan next` returns the next ready slice and only its section. — [ADR-081](docs/decisions/ADR-081-a-tracker-is-read-through-the-repositorys-template.md), [ADR-082](docs/decisions/ADR-082-the-tracker-override-is-a-manifest-key.md)
447
202
 
448
- `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).
203
+ - **The rules are enforced at the tool call** — 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. — [ADR-079](docs/decisions/ADR-079-the-rules-are-enforced-at-the-tool-call-from-one-policy-table.md)
449
204
 
450
- ### Vulnerability reports
205
+ - **A line the repository already proves does not ship** — A rule line may say when the repository already proves it. — [ADR-078](docs/decisions/ADR-078-a-line-the-repository-already-proves-does-not-ship.md)
451
206
 
452
- `SECURITY.md` names the two places a report goes: a GitHub issue on this repository, or `security@simt.space`.
207
+ - **The region leads with this repository's commands** — 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). — [ADR-077](docs/decisions/ADR-077-the-command-card-leads-the-region-and-reads-committed-evidence.md)
453
208
 
454
- ## [0.3.0] — 2026-10-17
209
+ - **A change to what an agent reads can be measured** — `simt bench mine`, `run`, `report`, `ablate` and `probes` measure a change to projected context against tasks taken from this repository's own history. — [ADR-076](docs/decisions/ADR-076-a-change-to-what-agents-read-is-measured.md)
455
210
 
456
- ### The rules and the decisions are readable as MCP resources
211
+ - **What each reader loads, and a transcript split** — `simt harness loaders` reports what each reader loads at session start, in bytes, and what its size cap drops.
457
212
 
458
- 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.
213
+ - **A name this tool owns is not reported as a repository** — `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). — [ADR-080](docs/decisions/ADR-080-the-tools-own-names-are-not-repositories-and-neither-reader-decides-by-shape.md)
459
214
 
460
- 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).
215
+ ## [0.2.2] — 2026-10-14
461
216
 
462
- ### A plan is resumed one slice at a time
217
+ - **A repository can ask for a smaller projection** — `simt tokens` measured the cost and `check` now holds the line the repository draws: `budget.bytes` in `simt.json` is how many always-on bytes that repository has agreed to carry, and both the meter and the gate report the overflow with the — [ADR-073](docs/decisions/ADR-073-a-kernel-is-a-smaller-projection-the-repository-asks-for.md)
463
218
 
464
- `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.
219
+ - **A repository can declare how many always-on bytes it is willing to carry** — `simt tokens` has reported that number since the meter landed, against a constant nobody could argue with. — [ADR-072](docs/decisions/ADR-072-the-budget-is-a-declaration-beside-the-gates.md)
465
220
 
466
- ### The rules are enforced at the tool call
221
+ - **A repository can declare the always-on bytes it intends to carry** — `simt tokens` measured the number; it could not be held to one. — [ADR-072](docs/decisions/ADR-072-the-budget-is-a-declaration-beside-the-gates.md)
467
222
 
468
- 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).
223
+ - **A stack profile loads only when a matching file is in play** — A stack profile used to be always-on everywhere, because profiles reached a reader through the generated region in AGENTS.md and through nothing else. — [ADR-071](docs/decisions/ADR-071-a-rule-that-can-be-narrowed-is-written-narrow.md)
469
224
 
470
- ### A line the repository already proves does not ship
225
+ - **Every `--json` payload says which version it is** — An agent that parses `--json` had no way to notice that a field had moved: the parse succeeds, the lookup returns `undefined`, and the answer is quietly wrong. — [ADR-070](docs/decisions/ADR-070-the-json-payload-carries-its-own-version.md)
471
226
 
472
- 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).
227
+ - **`graph lint` now checks skills against the published specification** — The Agent Skills specification sets limits nobody here was checking: a name of lowercase letters, digits and single hyphens that equals the directory it lives in; a description under 1,024 characters; a compatibility note under 500; a body
473
228
 
474
- ### The region leads with this repository's commands
229
+ - **The MCP surface speaks three protocol revisions, and answers in the shape each asks for** — The server was pinned to one revision and returned pretty JSON in a text block, so a client could read the answer but could not validate it, could not cache it, and could not tell a read-only tool from one that writes.
475
230
 
476
- 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).
231
+ - **Which harnesses a repository is set up for is now answerable** — `simt-dev harness detect` looks at the configuration directories that exist and says which harnesses this repository — and, with `--user`, its reader — is set up for.
477
232
 
478
- ### A change to what an agent reads can be measured
233
+ - **A monorepo gets rules for each of its packages** — One repository, one projection: every package under the root was given the root's rules, so a React application inside a node workspace was handed the node profile and nothing else, and the profile that should have applied to it was applied
479
234
 
480
- `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).
235
+ - **One rule set, shared by the repositories that agreed on it** — Several repositories want the same rules and each kept its own copy, so a policy change was several edits that could be several-minus-one, and the repository that missed it carried instructions nobody there wrote. — [ADR-065](docs/decisions/ADR-065-a-pack-is-one-shared-rule-set-pinned-by-digest.md)
481
236
 
482
- ### What each reader loads, and a transcript split
237
+ - **`simt tokens` counts what a reader loads** — Review 0002 filed the estate's always-on context at 90 KB per turn, 72% of it a paragraph an earlier repository had already loaded — a number produced by reading seven repositories by hand, which ages the moment a rule is edited and cannot — [ADR-064](docs/decisions/ADR-064-the-context-meter-counts-what-the-tool-wrote.md)
483
238
 
484
- `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.
239
+ ## [0.2.1] — 2026-10-13
485
240
 
486
- ### A name this tool owns is not reported as a repository
241
+ - **`init` writes in place; the backup tag and adopt branch are opt-in** — `simt init --yes` used to always tag the pre-adoption commit and branch onto a dedicated adopt branch before writing. — [ADR-063](docs/decisions/ADR-063-the-adoption-escape-hatch-is-opt-in.md)
487
242
 
488
- `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).
243
+ - **A fresh adoption seeds the gates it can run — and only those** — The eight common ecosystems outside the JavaScript world — Rust, Go, .NET, Swift, Deno, Ruby, Dart and Elixir — were recognised by the fingerprint and served by nothing: no profile selected them, no gate was proposed for them. — [ADR-062](docs/decisions/ADR-062-a-fresh-adoption-seeds-the-gates-it-can-run.md)
489
244
 
490
- ## [0.2.2] — 2026-10-14
245
+ - **The resolver is measured against a gold corpus** — `simt skills eval` scores the skill resolver against a corpus of real tasks × real repositories, each case carrying a gold list of the skills it should select and a list of the ones it must not.
491
246
 
492
- ### A repository can ask for a smaller projection
493
-
494
- `simt tokens` measured the cost and `check` now holds the line the repository draws: `budget.bytes`
495
- in `simt.json` is how many always-on bytes that repository has agreed to carry, and both the meter and
496
- the gate report the overflow with the two numbers in them. It sits beside `gates` rather than inside
497
- `projection`, because that key belongs to this tool and an upgrade replaces it.
498
-
499
- `mode: kernel` is the other half. It keeps the rules a reader cannot do without — the ones a hard
500
- constraint or a command depends on — and defers the rest behind a `## Deferred rules` section that
501
- names each one and the command that shows it. A Python fixture projects 16% smaller. `full` is still
502
- the default, because nobody has measured yet whether the smaller projection loses compliance, and a
503
- tool that made that trade silently would be deciding it on the reader's behalf (ADR-073).
504
-
505
- ### A repository can declare how many always-on bytes it is willing to carry
506
-
507
- `simt tokens` has reported that number since the meter landed, against a constant nobody
508
- could argue with. A repository can now say what it will carry — `budget: { bytes: N }`
509
- beside `limits` and `gates` in the manifest — and both `simt tokens` and `simt-dev check`
510
- measure against that line. One declaration, one meter, one function that words the finding.
511
-
512
- The declaration is deliberately *not* inside `projection`, which is the one block this tool
513
- owns and `upgrade` is allowed to replace: a number written there would be deleted silently
514
- on the next upgrade and never reported as drift. And a repository that declares nothing is
515
- reported as declaring nothing, rather than being quietly handed the default as though it
516
- had chosen it.
517
-
518
- Over budget is reported and never fails the gate. Nothing was cut — the projection is
519
- still full mode, every rule loaded as written — so the honest thing to say is "you are
520
- over your line", not to fail a repository over a ceiling it wrote down itself. Which rules
521
- move behind skills stays with the evaluation that has to decide it (ADR-072).
522
-
523
- ### A repository can declare the always-on bytes it intends to carry
524
-
525
- `simt tokens` measured the number; it could not be held to one. A manifest now carries
526
- `budget.bytes` — a declaration beside `limits` and `gates`, not inside `projection`,
527
- because that block is regenerated on every upgrade and nothing in the repair would notice
528
- its budget disappearing. A repository that declares nothing is measured against the
529
- review's 30 KB and reports `declared: false` rather than looking like it chose it.
530
-
531
- Over budget is reported, never enforced, and the report says what was not done: nothing
532
- was cut, because the projection is still in full mode. Which rules move behind skills is a
533
- measurement that has not been taken yet, and a budget that quietly dropped rules would be
534
- enforcing a decision nobody made (ADR-072).
535
-
536
- ### A stack profile loads only when a matching file is in play
537
-
538
- A stack profile used to be always-on everywhere, because profiles reached a reader through
539
- the generated region in AGENTS.md and through nothing else. A profile can now declare
540
- `simt-scope`, and a repository on Cursor, Copilot or Antigravity gets it as a file the
541
- surface attaches on patterns: `.cursor/rules/python.mdc` with `globs` and
542
- `alwaysApply: false`, an Antigravity rule with `trigger: glob`, a Copilot
543
- `.instructions.md` with `applyTo`. AGENTS.md keeps one line naming the profile, the
544
- patterns and the file it moved to — a profile that vanishes from the region reads as one
545
- that was deleted.
546
-
547
- The narrowing happens only when every selected surface can do it. Claude Code's `paths:`
548
- key is documented and silently fails to lazy-load for quoted values, and opencode has no
549
- per-rule channel at all, so a repository carrying either keeps its profiles in the region
550
- and is told which surface stopped it. A rule that never loads is worse than a rule that
551
- loads eagerly.
552
-
553
- Reading the two vendors' docs changed the shape of this: Antigravity requires patterns
554
- starting with `*` to be quoted or YAML reads them as an alias anchor and the rule is
555
- discarded with no message, and it documents a 20,000-token budget for always_on rules past
556
- which they are demoted to pointers — so eager profiles cost the reader a real budget. A
557
- `simt-scope` that matches everything is now refused, since that is the same behaviour with
558
- a narrowing-looking spelling (ADR-071).
559
-
560
- ### Every `--json` payload says which version it is
561
-
562
- An agent that parses `--json` had no way to notice that a field had moved: the parse
563
- succeeds, the lookup returns `undefined`, and the answer is quietly wrong. Every payload now
564
- opens with `schemaVersion`, and a version in a comment is not a version, so it travels in
565
- the document every reader is guaranteed to see.
566
-
567
- The same document is now one line rather than four columns of whitespace, because the reader
568
- of `--json` is a program and it pays for every byte. `--pretty` asks for the other form, and
569
- a terminal gets it without being asked, because there the reader is a person.
570
-
571
- Writing the contract test found two things the review that asked for this missed. Eight
572
- commands — `doctor`, `mcp --list`, `graph lint`, `rules list`, and the `skills` ones — had a
573
- private `emit(JSON.stringify(..., null, 2))` instead of the shared helper, so `--json` meant
574
- something different depending on which command you asked. And a command that *failed* under
575
- `--json` wrote only to stderr, so a scripted caller got an empty document and a non-zero
576
- exit and no way to learn what went wrong. It now answers in the shape it was asked in (ADR-070).
577
-
578
- ### `graph lint` now checks skills against the published specification
579
-
580
- The Agent Skills specification sets limits nobody here was checking: a name of lowercase
581
- letters, digits and single hyphens that equals the directory it lives in; a description
582
- under 1,024 characters; a compatibility note under 500; a body recommended under 5,000
583
- tokens because an agent loads all of it once the skill activates. `graph lint --spec
584
- agentskills` checks every skill against those, and the specification was fetched rather
585
- than recalled — reading it turned up four rules the review that asked for this did not
586
- list, including the one that breaks installs.
587
-
588
- What the specification calls a must fails the exit code; what it calls a recommendation
589
- warns. A lint that fails on advice is a lint that gets skipped. `skills install` now asks
590
- the same name rules, since the directory is created from the name and an unaddressable
591
- skill would be the last thing anyone notices.
592
-
593
- ### The MCP surface speaks three protocol revisions, and answers in the shape each asks for
594
-
595
- The server was pinned to one revision and returned pretty JSON in a text block, so a
596
- client could read the answer but could not validate it, could not cache it, and could not
597
- tell a read-only tool from one that writes. All three published revisions were read rather
598
- than guessed at, and each is answered in its own shape: the newest drops the handshake for
599
- a version carried on every request, adds a discovery method servers must implement,
600
- requires a result-type field and a cache lifetime on list results, and deleted the liveness
601
- method — which older clients still get, and newest clients are told is gone by name.
602
-
603
- Every tool now declares what it returns and says it is a reader, and every call returns
604
- the answer in both shapes: the text block for a client that predates structured content,
605
- the structured block for one that validates against the declared schema. The byte ceiling
606
- bounds the text only, so the block a client can check still checks. The schema checker
607
- that makes this testable lives in the package rather than in a dependency.
608
-
609
- ### Which harnesses a repository is set up for is now answerable
610
-
611
- `simt-dev harness detect` looks at the configuration directories that exist and says
612
- which harnesses this repository — and, with `--user`, its reader — is set up for. It
613
- claims presence and nothing else: a directory found is not a claim about what its owner
614
- reads, because the tool cannot answer that without a vendor document, and a guess here
615
- would be the reader's problem the first time it was wrong. A harness that reads
616
- AGENTS.md is served by the standard surface whatever else it reads, and every surface row
617
- now records that in three values rather than two, because "reads AGENTS.md" and "is
618
- covered for this harness" are not the same sentence — Copilot's CLI reads it and its
619
- editor, code review and cloud agent do not.
620
-
621
- No new harness rows ship with it. The candidates are recorded as directory names, which
622
- claim presence and not coverage; a row still requires the vendor document it cites, and
623
- one that reads nothing has to be added on purpose.
624
-
625
- ### A monorepo gets rules for each of its packages
626
-
627
- One repository, one projection: every package under the root was given the root's rules,
628
- so a React application inside a node workspace was handed the node profile and nothing
629
- else, and the profile that should have applied to it was applied by nobody. The rule that
630
- package needed was not wrong — it was missing.
631
-
632
- Packages are now discovered from the declarations that already list them (npm and pnpm
633
- workspaces, turbo, Cargo members, `go.work`, Gradle includes) rather than by walking the
634
- tree, because a declaration states which directories are members and a marker file only
635
- says there is a build here. The root keeps what every package shares; each package that
636
- selects something new gets a generated region carrying exactly its own delta, and a
637
- package that selects nothing new gets no file at all. `check` reports every package
638
- region and fails on any one of them, and `compare` counts the drifted regions rather than
639
- the repositories that hold them.
640
-
641
- A gate can also name the directory it runs in, which is what a monorepo with no root test
642
- script needs: `gates.cwd` maps a gate to a directory, a directory that does not exist or
643
- resolves outside the repository fails the event and is reported by `check` before the
644
- commit rather than at it, and a directory named for a gate that is not declared is
645
- reported as the inert entry it is.
646
-
647
- ### One rule set, shared by the repositories that agreed on it
648
-
649
- Several repositories want the same rules and each kept its own copy, so a policy change
650
- was several edits that could be several-minus-one, and the repository that missed it
651
- carried instructions nobody there wrote. A pack is that shared set: `packs` in the manifest
652
- declares it, the bytes live in the repository, and a digest of them is recorded so nobody
653
- has to trust that the two agree.
654
-
655
- A pack's rules are selected by the same matcher as any profile and appear in the region's
656
- source list under the pack's own directory. Precedence is the repository, then a pack it
657
- declares, then what the tool ships, and every replacement is reported rather than silent.
658
-
659
- A pack that disagrees with its pin still projects — the gate blocks and prints both
660
- digests, because dropping it would let the repair delete the rules it is reporting. One
661
- that is missing blocks with a remedy that restores it, and one with no digest is reported
662
- without failing anything, since its rules render correctly. `compare` lists every pack and
663
- the digest it is pinned to, so a repository behind a shared change is visible before
664
- anyone follows stale instructions. Nothing is fetched: the bytes are in the repository,
665
- which is what makes the rendered region reproducible from what the reader has (ADR-065).
666
-
667
- ### `simt tokens` counts what a reader loads
668
-
669
- Review 0002 filed the estate's always-on context at 90 KB per turn, 72% of it a paragraph
670
- an earlier repository had already loaded — a number produced by reading seven
671
- repositories by hand, which ages the moment a rule is edited and cannot be re-derived by
672
- the reader who has to act on it.
673
-
674
- `simt tokens` is that reading, as a command. It reports the bytes this tool wrote per
675
- channel (region, rule files, skill metadata), an approximate token figure, and — with
676
- `--repos` — the same figure across a workspace, with every repeated paragraph attributed
677
- to the first root that carries it. A region that ends past a harness's read limit is
678
- reported with its byte offset, using the same numbers the existing check uses.
679
-
680
- Three choices keep the figure honest, and all three are recorded in ADR-064: the meter
681
- counts what the projection wrote and reports hand-written bytes beside it rather than
682
- folding them into the budget; a region is the span between its two markers, so the blank
683
- line a person left above the marker is billed to nobody; and an over-budget repository is
684
- reported rather than failed, because a meter that went red would train people to ignore
685
- the number.
686
-
687
- S38 stays open — this is the instrument. Whether the estate gets under 30 KB is R07's
688
- kernel, R08's budget field and R11's dedupe, measured with this.
247
+ - **The skill registry is workspace data; the package ships none of it** — The npm tarball and the wheel carried `graph/skills.graph.json` — the directory of skill sources for one workspace, naming the repositories whose bodies it resolves. — [ADR-061](docs/decisions/ADR-061-the-skill-registry-is-workspace-data.md)
689
248
 
690
- ## [0.2.1] — 2026-10-13
249
+ - **No published file may name a repository from this estate** — The decision records ship in all three channels — npm, the wheel and the sdist — so a private repository name written into one is published to three registries.
691
250
 
692
- ### `init` writes in place; the backup tag and adopt branch are opt-in
693
-
694
- `simt init --yes` used to always tag the pre-adoption commit and branch onto a dedicated
695
- adopt branch before writing. The safety argument was sound, but consumers kept reporting
696
- the branch switch as a surprise — a well-announced surprise is still a surprise.
697
-
698
- The default now writes in place on the branch you already have: nothing is tagged, nothing
699
- is branched, and the run says so in an `in place` line. The reviewable diff survives —
700
- `git diff` shows the whole adoption, and discarding it is a checkout and a clean.
701
-
702
- The old behaviour moves behind `--backup`: `simt init --yes --backup` tags the pre-adoption
703
- commit and branches as before, for readers who want the named undo path. ADR-063 records
704
- the decision and the one behaviour it invalidates: consumers who scripted against the old
705
- default add `--backup`.
706
-
707
- ### A fresh adoption seeds the gates it can run — and only those
708
-
709
- The eight common ecosystems outside the JavaScript world — Rust, Go, .NET, Swift, Deno,
710
- Ruby, Dart and Elixir — were recognised by the fingerprint and served by nothing: no
711
- profile selected them, no gate was proposed for them. A fresh Rust repository received the
712
- core essay and a manifest that runs nothing, while the ecosystems that emit stack tags got
713
- the full treatment.
714
-
715
- Each now has a profile that selects on its own `has-*` fact, so one marker file reaches
716
- both the rules the repository reads and the gates its commits run. Maven's profile predates
717
- this; its row is gates-only, wrapper-first, like `gradlew`.
718
-
719
- `simt init` now seeds the canonical commands for a detected ecosystem — `cargo fmt
720
- --check`, `go vet ./...`, `dotnet test`, and the rest of the table — into the manifest's
721
- gates, but only where a probe found the tool: a binary on PATH, or a file in the repository
722
- for the Maven wrapper. A marker says the ecosystem is here; the probe says its program can
723
- run. A declared gate that cannot run fails closed on every commit, so the seed fires only
724
- when both are true — and where the probe fails, the gate is dropped with a remedy that
725
- names the install instead of blocking the first commit.
726
-
727
- A seed is a default: a command the repository already declared is never re-seeded, and an
728
- npm runner keeps its own scripts, because `package.json` is the repository's own answer to
729
- "how do I test and format". ADR-062 rules the shape of all of it.
730
-
731
- ### The resolver is measured against a gold corpus
732
-
733
- `simt skills eval` scores the skill resolver against a corpus of real tasks × real
734
- repositories, each case carrying a gold list of the skills it should select and a list
735
- of the ones it must not. It reports precision and recall, prints a PASS/FAIL line per
736
- case naming the skills it missed or selected that it should not have, and exits
737
- non-zero on a regression — so it can be run from CI the way the gate is run.
738
-
739
- The scoring lives in `src/resolve/eval.mjs`, which the command and
740
- `test/eval.test.mjs` both call, so a test cannot drift from what the command measures.
741
- The corpus lives under `test/` because test data does not ship in the package: an
742
- installed copy names the path it would have read and says so instead of scoring the
743
- author's.
744
-
745
- ### The skill registry is workspace data; the package ships none of it
746
-
747
- The npm tarball and the wheel carried `graph/skills.graph.json` — the directory
748
- of skill sources for one workspace, naming the repositories whose bodies it
749
- resolves. Every installed copy served that catalogue to readers who have none
750
- of those skills, and `skills install` pointed at paths that exist only in the
751
- workspace that wrote them. ADR-061 rules the registry out of the published set:
752
- it is data about one workspace, not content of the package.
753
-
754
- The default registry path now resolves in tiers, and every tier is file
755
- existence plus configuration — nothing a pull request cannot diff:
756
-
757
- 1. an explicit path, the positional of `simt graph lint`,
758
- 2. the package's own `graph/skills.graph.json` — present in a source checkout,
759
- absent from an installed copy,
760
- 3. the member of a configured workspace that holds one — naming the workspace
761
- it came from, and refusing when several members hold one, because picking
762
- would be a guess.
763
-
764
- An installed copy in a workspace with no registry says so, and names the three
765
- ways to configure one (`--workspace`, `SIMT_DEV_WORKSPACE`, the user config
766
- file) instead of failing on a path it does not have. `simt graph lint`'s
767
- no-registry remedy names the path explicitly, because its default is the
768
- registry it lints.
769
-
770
- The provenance digest stops walking `graph/` for the same reason it no longer
771
- leaves the package: the digest covers what a published copy ships, and the
772
- registry is no longer among it.
773
-
774
- ### No published file may name a repository from this estate
775
-
776
- The decision records ship in all three channels — npm, the wheel and the sdist — so a
777
- private repository name written into one is published to three registries. That happened:
778
- the records were pseudonymised once, across 28 files, and nothing stopped the next one. The
779
- sweep's own commit says why, and it is the right reason: the redaction it used runs on the
780
- way *out*, at print time, and the bytes on disk are what get published.
781
-
782
- `test/shipped.test.mjs` now fails on an estate name anywhere in a published file, and
783
- asserts its own scope against `package.json` in **both** directions — a directory added to
784
- `files` without being guarded fails, and so does one guarded that nothing publishes, because
785
- a guard nobody can fail is one somebody eventually deletes. It is scoped to the published
786
- set rather than a hand-written list for the same reason: the sweep took 28 files to undo by
787
- hand, and the guard should not need undoing at all.
788
-
789
- Names are not removed, they are described. The records that use a repository as *evidence* —
790
- a table of how three repositories answer the same question — carry stable `repo-NN` labels,
791
- so the comparison survives. Everything else is better off naming what the repository *is*:
792
- "a Gradle module with no wrapper", "a repository with no package.json". That reads to
793
- someone outside the estate without a lookup table they do not have.
794
-
795
- The one place estate names remain is `docs/reviews/`, which is not published by either
796
- channel. A review whose subject is fourteen repositories cannot pseudonymise them without
797
- becoming a document about `repo-01` that never existed.
798
-
799
- ### Four shipped strings named a command this package does not install
800
-
801
- `0.2.0` installs one binary, `simt`, and `package.json`'s `bin` map says so. Four
802
- places still said `simt-dev`, which a reader types and is met with `unknown command`:
803
-
804
- - the default remedy on every bad invocation, `run: simt-dev --help` — so the advice
805
- printed after a bad command could not be followed
806
- - the usage line, `usage: simt-dev <command>`, sitting above a command list that spelled
807
- the same tool `simt`
808
- - `.github/dependabot.yml`'s header, which said `Yours from here: simt-dev` while the
809
- gate beside it said `Yours from here: simt`
810
- - the hook shim, whose own resolution list said `simt-dev on PATH` directly above the
811
- `command -v simt` that does the looking
812
-
813
- `test/naming.test.mjs` was supposed to prevent this and did not: its rule required a
814
- verb after the project name, and none of the four is followed by one. It now also
815
- catches a flag, a `<placeholder>`, the end of a line, and a program name in a
816
- resolution list — while still accepting the sentences where the project is the
817
- subject, which is the spelling that is correct. The two `.github` templates get their
818
- own assertion, because the fourth of these was not a wrong word in a sentence; it was
819
- two templates disagreeing with each other in the same position.
251
+ - **Four shipped strings named a command this package does not install** — `0.2.0` installs one binary, `simt`, and `package.json`'s `bin` map says so.
820
252
 
821
253
  ### Fixed
822
254
 
823
255
  - `hooks install` removes a shim whose gate was dropped from the manifest instead of leaving it to run nothing. A repository that removed its last gate was refused outright, with a remedy telling it to put the gate back; only un-routing git was left to the reader. install also no longer chains a hook to itself.
824
-
825
256
  - **Dead exports and duplicated frontmatter, with a test that stops them returning (S21).**
826
257
  Eight functions were exported and called by nothing (`gateKind`, `gateWhy`, `gateAdr`,
827
258
  `resetWorkspace`, `tracksIdentity`, `isTty`, `surfaceFrontmatter`, `workspaceOrNull`),
@@ -832,7 +263,6 @@ two templates disagreeing with each other in the same position.
832
263
  had already drifted: it carried `doctor`, a bare command the group lookup can never
833
264
  reach. `mdcFrontmatter` was a second construction of frontmatter the writer now derives
834
265
  itself, with a test asserting the copy rather than the behaviour.
835
-
836
266
  - **"Did you mean" offered the shortest fragment first, and a misspelt skill was
837
267
  suggested for a correctly spelled one (S22).** `nearMatches` had no test at all.
838
268
  Both directions of substring scored 0 — the same score as an exact match — so the
@@ -843,7 +273,6 @@ two templates disagreeing with each other in the same position.
843
273
  counts only when it is at least half the query, and the edit bound scales with the
844
274
  query's length — three edits is a typo in `slice-commmit` and is most of a
845
275
  four-character query.
846
-
847
276
  - **The conflict scanner skipped two of the five rule surfaces, and one pointer file
848
277
  (S22).** `rulePaths` enumerated filenames by hand, so `.claude/rules/` and
849
278
  `.agents/rules/` — added to the surface table after the list was written — were
@@ -853,167 +282,24 @@ two templates disagreeing with each other in the same position.
853
282
 
854
283
  ## [0.2.0] — 2026-10-11
855
284
 
856
- ### Publishable from PyPI and Homebrew as well as npm
285
+ - **Publishable from PyPI and Homebrew as well as npm** — simt-dev is a *repository* tool, and the people who adopt a repository are not all Node developers. — [ADR-058](docs/decisions/ADR-058-one-tool-three-channels-and-the-order-is-forced.md)
857
286
 
858
- simt-dev is a *repository* tool, and the people who adopt a repository are not
859
- all Node developers. Somebody running `simt init` inside a repository with no
860
- `package.json` has no reason to install a package manager, and a Homebrew user
861
- has no reason to install Node to install a tool that needs Node.
862
-
863
- So it now publishes to three channels, from one version number:
864
-
865
- ```sh
866
- npm i -D simt-dev # a tarball of .mjs files
867
- pip install simt-dev # a wheel carrying those same bytes
868
- brew install QuazarMedia/tap/simt-dev
869
- ```
870
-
871
- The wheel is not a wrapper around `npm install`. It carries the tool's own
872
- source, and `scripts/verify-wheel.mjs` builds both artefacts and hashes every
873
- file in both — a release fails when a single byte differs between them. That
874
- check exists because the obvious defect in this arrangement is the wheel and the
875
- tarball quietly shipping different code.
876
-
877
- `simt` is the one command, on every channel. Where node comes from is
878
- `SIMT_DEV_NODE`, then the bundled node from `pip install "simt-dev[node]"`,
879
- then `node` on `PATH` — and if none of those resolve you get the remedy rather
880
- than a placeholder path. There are no required dependencies on any channel.
881
- *(ADR-058)*
287
+ ## [0.1.1] — 2026-10-11
882
288
 
883
- The channels are published in a fixed order rather than in parallel, and the
884
- reason is not taste: the Homebrew formula downloads the npm tarball at install
885
- time, so a formula naming a version still sitting in npm's staging area
886
- installs a 404. Both jobs fail with that stated, and are run again after
887
- `npm stage approve`.
289
+ - **A foreign hook on an event this repo does not gate is chained** — `0.1.0` chained the wrong set of hooks and is worth replacing rather than recommending. — [ADR-018](docs/decisions/ADR-018-an-unset-hooks-path-is-not-an-absent-hook.md)
888
290
 
889
- ## [0.1.1] — 2026-10-11
291
+ ## [0.1.0] — 2026-10-11
890
292
 
891
- ### A foreign hook on an event this repo does not gate is chained
293
+ - **The command is `simt`** — The package is `simt-dev` and the command is `simt`.
892
294
 
893
- `0.1.0` chained the wrong set of hooks and is worth replacing rather than
894
- recommending. It chained on the event *vocabulary* — anything that was not
895
- `pre-commit` or `pre-push` — when the question worth asking is whether **this
896
- repository** declares a gate for that event.
295
+ - **The manifest is `simt.json`** — The manifest was called `simt-dev.json`; it is now `simt.json`. — [ADR-056](docs/decisions/ADR-056-three-names-one-of-which-is-cheap-to-move.md)
897
296
 
898
- The difference is a repository whose `pre-push` is `git-lfs`. `pre-push` is an
899
- event this tool gates in general, so `0.1.0` displaced that hook; and because
900
- that repository declares no `pre-push` gate there was no shim for the event
901
- either, so git would have found no `pre-push` hook at all. LFS objects would have
902
- stopped being uploaded, with nothing to notice it — the exact silent failure
903
- chaining exists to prevent, reached by fixing the wrong half of it.
297
+ - **The region markers are `simt:`** — The generated region was stamped `<!-- simt-dev:begin -->` / `<!-- simt-dev:end -->` — and so was the provenance header inside it; every one of those lines is now `simt:`. — [ADR-056](docs/decisions/ADR-056-three-names-one-of-which-is-cheap-to-move.md)
904
298
 
905
- `0.1.1` asks the manifest. An event the repo declares a gate for is left to
906
- `gates.commands`, where the hook runs as a gate and its verdict appears in the
907
- report; every other foreign hook is chained. That also picks up a static
908
- site's Lighthouse pre-push, which declares no gates at all.
909
- *(ADR-018, as amended)*
299
+ - **A hook you already had keeps running** — `hooks install` points `core.hooksPath` at `.simt-hooks/`, and git reads **every** hook from that one directory — not just the two events this tool gates. — [ADR-018](docs/decisions/ADR-018-an-unset-hooks-path-is-not-an-absent-hook.md)
910
300
 
911
- Upgrade with `npm i -D simt-dev@0.1.1`, then `simt hooks install --yes`. Any
912
- repository already routed with `0.1.0` should re-run it: the shims it writes
913
- will differ where a gated event was previously displaced.
301
+ - **What a first release has to say out loud** — These are the behaviours a reader is most likely to trip over. — [ADR-010](docs/decisions/ADR-010-runner-invocation.md), [ADR-012](docs/decisions/ADR-012-drop-windows-support.md), [ADR-017](docs/decisions/ADR-017-a-declared-gate-must-be-runnable.md), [ADR-018](docs/decisions/ADR-018-an-unset-hooks-path-is-not-an-absent-hook.md), [ADR-021](docs/decisions/ADR-021-one-surface-per-repo.md), [ADR-035](docs/decisions/ADR-035-one-write-decision-and-one-json-document.md), [ADR-036](docs/decisions/ADR-036-a-writer-that-writes-says-so-and-the-instructions-naming-it-move-with-it.md), [ADR-046](docs/decisions/ADR-046-one-rule-one-copy.md)
914
302
 
915
- ## [0.1.0] — 2026-10-11
303
+ - **Packaging** — - Licence set to Apache-2.0; the `LICENSE` file is the canonical, unmodified text.
916
304
 
917
- The first release with real contents in it. `1.0.0` was an empty reservation of the name
918
- and `0.0.0-stage` was its rehearsal; neither shipped a byte anyone could run, so this entry
919
- is the whole history. The decisions behind it are readable in the package under
920
- `docs/decisions/`, and from any checkout with `simt rules why <id>`.
921
-
922
- ### The command is `simt`
923
-
924
- The package is `simt-dev` and the command is `simt`. They are not the same thing and were
925
- never required to be: the command appears only in text the tool itself writes, and that
926
- text migrates on the next write. The package name, the `.simt-hooks/` directory and the
927
- `simt-dev-check.yml` gate already exist in every repository that adopted this tool, and
928
- they did not move. The manifest and the region markers did — see below.
929
-
930
- ### The manifest is `simt.json`
931
-
932
- The manifest was called `simt-dev.json`; it is now `simt.json`. The move is a
933
- read-both/write-new, so nothing in an adopting repository has to be done:
934
-
935
- - Every read takes `simt.json` if it exists, else `simt-dev.json`, so a repository that
936
- has not written since the upgrade is still seen as adopted.
937
- - Every write goes to `simt.json`, and a lone `simt-dev.json` is moved, not shadowed.
938
- - The old name keeps working until the first `init` or manifest write in each repository,
939
- and that write closes it. *(ADR-056)*
940
-
941
- ### The region markers are `simt:`
942
-
943
- The generated region was stamped `<!-- simt-dev:begin -->` / `<!-- simt-dev:end -->` — and
944
- so was the provenance header inside it; every one of those lines is now `simt:`. The move
945
- is the same read-both/write-new as the manifest:
946
-
947
- - Every read accepts either spelling, so a repository that has not written since the
948
- upgrade is still seen as adopted.
949
- - Every write emits `simt:` only, so the first `sync` in each repository migrates its
950
- regions in place, and that write closes the window.
951
- - A file holding two regions — one of each spelling — is a state only a hand edit can
952
- make, and it is reported malformed rather than merged. *(ADR-056)*
953
-
954
- ### A hook you already had keeps running
955
-
956
- `hooks install` points `core.hooksPath` at `.simt-hooks/`, and git reads **every** hook from
957
- that one directory — not just the two events this tool gates. So adopting a repository that
958
- had its own `post-commit`, `post-checkout` or `post-merge` would have quietly stopped them:
959
- nothing fails, nothing is logged, and the hook is still on disk looking intact.
960
-
961
- Those hooks are now **chained**. Install writes a shim for them that runs the repository's
962
- own hook and forwards git's arguments, so nothing is lost and the reason is in the file. If
963
- the hook is gone, the shim refuses and names the path instead of passing quietly. A hook on
964
- an event this tool *does* gate (`pre-commit`, `pre-push`) is deliberately not chained —
965
- declare it under `gates.commands` so the dispatcher runs it and its verdict appears in the
966
- gate report. *(ADR-018, as amended)*
967
-
968
- ### What a first release has to say out loud
969
-
970
- These are the behaviours a reader is most likely to trip over. Each one is deliberate,
971
- and each has a numbered decision record behind it — but a behaviour nobody can discover
972
- without reading the source is not a documented one.
973
-
974
- - **`sync` and `init` write nothing without `--yes`.** Both print a plan and exit. `sync`
975
- exits **1** when the plan is non-empty, so bare `sync` doubles as a check. Neither ever
976
- commits or pushes. *(ADR-035, ADR-036)*
977
- - **`upgrade` moves a pin and nothing else.** It never adopts a repository, never repairs
978
- one, and never rewrites a manifest. Every consumer moves to the same version as one set.
979
- - **A pre-commit hook with no reachable binary fails closed.** The refusal is the correct
980
- behaviour, not a bug; the remedy it prints is the command that obtains one.
981
- *(ADR-010, ADR-018)*
982
- - **A gate whose tool is not installed is dropped, with a remedy naming the package.**
983
- It is never declared and silently unrunnable. *(ADR-017)*
984
- - **Two rules are never loaded twice.** Each rule projects to exactly one place, chosen by
985
- what the harness actually reads. *(ADR-021, ADR-046)*
986
- - **macOS and Linux only.** Windows `npm i` fails with npm's `EBADPLATFORM`, which npm
987
- will not let a package explain; use WSL2. See the platform section of the README.
988
- *(ADR-012)*
989
-
990
- ### Packaging
991
-
992
- - Licence set to Apache-2.0; the `LICENSE` file is the canonical, unmodified text.
993
- - `files` no longer lists `skills`, `agents`, `tooling` or `hooks`, none of which exist,
994
- and no longer ships `docs/plans`. The tarball is the tool and the decisions behind it,
995
- and nothing else.
996
- - The package `description` no longer names an internal ecosystem. It is the first line
997
- anybody outside the project reads.
998
- - Unscoped, so the install command is `npm i -D simt-dev` rather than a name under an
999
- organisation. The `@simt` and `@quazarmedia` scopes were both free; an unscoped name is
1000
- the one a reader can guess.
1001
-
1002
- ### Notes for anyone upgrading a hook
1003
-
1004
- A shim installed by an earlier version looks for `SIMT_DEV_BIN`, then for
1005
- `node_modules/simt-dev/bin/simt-dev.mjs`, then for a program named `simt` on `PATH`. The
1006
- last of those is new, so a machine that installed the package before this release and
1007
- never ran `simt hooks install` again will find nothing until the dependency is refreshed
1008
- and `simt hooks install --yes` is re-run. That is a real upgrade step and it is called out
1009
- here rather than discovered.
1010
-
1011
- [0.5.0]: https://github.com/QuazarMedia/simt-dev/releases/tag/v0.5.0
1012
- [0.4.0]: https://github.com/QuazarMedia/simt-dev/releases/tag/v0.4.0
1013
- [0.3.1]: https://github.com/QuazarMedia/simt-dev/releases/tag/v0.3.1
1014
- [0.3.0]: https://github.com/QuazarMedia/simt-dev/releases/tag/v0.3.0
1015
- [0.2.2]: https://github.com/QuazarMedia/simt-dev/releases/tag/v0.2.2
1016
- [0.2.1]: https://github.com/QuazarMedia/simt-dev/releases/tag/v0.2.1
1017
- [0.2.0]: https://github.com/QuazarMedia/simt-dev/releases/tag/v0.2.0
1018
- [0.1.1]: https://github.com/QuazarMedia/simt-dev/releases/tag/v0.1.1
1019
- [0.1.0]: https://github.com/QuazarMedia/simt-dev/releases/tag/v0.1.0
305
+ - **Notes for anyone upgrading a hook** — A shim installed by an earlier version looks for `SIMT_DEV_BIN`, then for `node_modules/simt-dev/bin/simt-dev.mjs`, then for a program named `simt` on `PATH`.