@jjanczur/tyran 0.1.0 → 0.1.3

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.
@@ -11,7 +11,7 @@
11
11
  {
12
12
  "name": "tyran",
13
13
  "description": "A task conductor for Claude Code: multi-agent orchestration with an enforced evidence contract, repo-specific learning, and update-safe local evolution.",
14
- "version": "0.1.0",
14
+ "version": "0.1.3",
15
15
  "source": "./",
16
16
  "author": {
17
17
  "name": "Jacek Janczura",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tyran",
3
- "version": "0.1.0",
3
+ "version": "0.1.3",
4
4
  "description": "A task conductor for Claude Code: multi-agent orchestration with an enforced evidence contract, repo-specific learning, and update-safe local evolution.",
5
5
  "author": {
6
6
  "name": "Jacek Janczura",
package/CHANGELOG.md CHANGED
@@ -1,6 +1,270 @@
1
1
  # Changelog
2
2
 
3
- ## 0.1.0 — unreleased
3
+ ## 0.1.3 — 2026-07-29
4
+
5
+ From two independent field reports on complete initiatives — one M, one L —
6
+ run on 0.1.1 and 0.1.2. Five of the reported items are fixed; the rest are
7
+ recorded here as open, with the reason.
8
+
9
+ ### A git worktree is the same repository
10
+
11
+ Two reports described **opposite** failures with one cause: the policy gate
12
+ read "the repository" as "this directory tree", and a worktree is neither
13
+ inside it nor a different repository.
14
+
15
+ - **Silent.** A session running *in* a worktree found no `.tyran/` there — the
16
+ directory is committed data and `git worktree add` gives a fresh checkout —
17
+ so the gate concluded Tyran had not been adopted and said nothing. Four
18
+ worktrees, four implementers with no autonomy class and no path classes, and
19
+ `git push origin main` passing at every deployment class.
20
+ - **Loud.** A session in the main checkout writing *into* a worktree got
21
+ `normalizePath → null → KERNEL`: every `Edit` refused as "outside this
22
+ repository", while `skills/run/SKILL.md` rule 7 *requires* a worktree per
23
+ agent. Five agents hit it in one initiative and all rerouted through `Bash`
24
+ heredocs — a channel the gate does not class at all. A refusal that moves
25
+ work somewhere less visible is worse than no refusal, and this one was the
26
+ plugin contradicting itself.
27
+
28
+ The gate now asks which repository a path belongs to. Detection is pure
29
+ filesystem — a linked worktree's `.git` is a *file* holding `gitdir:` — so the
30
+ write path still runs no child processes. Policy and config are inherited from
31
+ the main checkout, and the test is **identity, not proximity**: both sides must
32
+ resolve to the same main checkout, so a path in a different repository is still
33
+ KERNEL. Three mutants were installed and killed, including one that survived
34
+ the first version of the push test — it refused for the wrong reason and the
35
+ assertion could not tell.
36
+
37
+ ### `git stash push` was read as `git push`
38
+
39
+ `words.has('push')` was true when the word appeared anywhere in the segment, so
40
+ `git stash push --staged -m "conductor: ..."` — purely local — was classified as
41
+ a publish. The remote was then read as the token after the word: `conductor` out
42
+ of the message, or `2` out of a `2>&1`. The refusal told the operator to run
43
+ `git remote set-head conductor -a`, which cannot succeed, about a repository
44
+ whose default branch was recorded all along.
45
+
46
+ The cost was not one bad refusal: rule 7 *requires* addressed stashes to protect
47
+ other windows' work, so the gate refused the safe half of a workflow the plugin
48
+ mandates and pushed agents toward the deprecated positional form. `git remote
49
+ add` and `git worktree add` had the same shape against the `add` rule — and
50
+ `worktree add` is what rule 7 tells every parallel agent to run.
51
+
52
+ Classification now resolves the **subcommand slot**. It is not a pure narrowing:
53
+ `git subtree push` publishes for real and its verb is the second word, so
54
+ namespace subcommands forward their verb. Dropping that would have traded a
55
+ false positive for a false negative on a genuine push.
56
+
57
+ ### `journal.mjs append` issues the id it used to demand
58
+
59
+ `skills/run/SKILL.md` says IDs never come from memory, because after a
60
+ compaction memory hands out the same number twice — and `append` then *rejected*
61
+ a missing `data.id`, leaving the conductor to remember a separate `next-id`
62
+ call. Measured: 12 decision IDs hand-assigned from memory in one initiative,
63
+ the exact failure the rule names, with nothing objecting. Both reports raised
64
+ it independently. An explicit id still wins.
65
+
66
+ Two errors that could only be answered by grepping the plugin's source now
67
+ answer themselves: a rejected `ev` lists the closed set, and a missing `data`
68
+ key names the whole contract for that event rather than the first key checked.
69
+ `--help` prints the per-event table.
70
+
71
+ ### Worktrees, in the conductor's own words
72
+
73
+ Rule 7 said "a git worktree per agent" and stopped. A fresh worktree has no
74
+ dependencies, so every validation command exits 127 and the evidence contract
75
+ cannot be satisfied by construction. The rule now says to link the main
76
+ checkout's dependency directory — safe precisely because the manifest and
77
+ lockfile are already a shared zone nobody may edit — and notes that
78
+ `.tyran/state/**` exists only in the main checkout.
79
+
80
+ Also: the conductor is told it is notified when a subagent finishes and should
81
+ not poll. On a real run most polled checkpoints fired after the agent had
82
+ already reported, and the operator watched the conductor disown dozens of stale
83
+ notifications.
84
+
85
+ ### Open, and why
86
+
87
+ - **No lease on the checkout.** Two agents in one checkout is the failure rule 7
88
+ exists to prevent, and nothing enforces it; leases cover the heavy slot and
89
+ not the working tree. The reporting retro reached the same conclusion and
90
+ refused to patch it locally, correctly — the only real fix is a hook, and
91
+ `hooks/**` is KERNEL, so no session can build one. It needs a design pass,
92
+ not a hurried one.
93
+ - **The gate matches command TEXT**, so `ls -1 .npmrc` is refused as a
94
+ credential read though it reads nothing, and the scratch directory a `GATED`
95
+ refusal tells an agent to write its diff into is refused as outside the repo.
96
+ The second is self-defeating and should be fixed; both are refusal semantics.
97
+ - **`doctor` does not enumerate worktrees or cross-check `RELEASED` leases**
98
+ against resources that still exist. A field run lost a validation baseline to
99
+ 32,243 phantom lint errors from leftover worktrees.
100
+ - **Forge detection.** Tyran assumes GitHub; on Bitbucket the default terminal
101
+ step of the default autonomy class has no defined path, and two agents each
102
+ rediscovered that.
103
+
104
+ ## 0.1.2 — 2026-07-29
105
+
106
+ From a field report on a real 0.1.1 install. Every item below is a failure
107
+ somebody hit, not one anybody predicted.
108
+
109
+ ### The worktree with no boundary
110
+
111
+ **`git worktree add` carries tracked files only, and the policy gate is
112
+ deliberately silent in a repo with no `.tyran/`.** Put those together and an
113
+ uncommitted `.tyran/` means every worktree the conductor creates has no config
114
+ and no policy — so the agents there run with **no autonomy class and no path
115
+ classes at all**. Nothing is refused, nothing fails, and `git push origin main`
116
+ returns `PASS` on line 1213 of the gate. Measured: four worktrees, four ungated
117
+ implementers, and no way for the operator to see it.
118
+
119
+ This is the worst kind of defect this project can have, because Tyran's whole
120
+ argument is that the boundary is a mechanism rather than a promise — and here
121
+ it was absent precisely where the most agents run.
122
+
123
+ Three changes, none of which touch the gate:
124
+
125
+ - `doctor --state` gains **`tyran-dir-untracked`** (warning): git is asked
126
+ whether anything under `.tyran/` is tracked. It returns *no answer* outside a
127
+ work tree rather than inventing one, the same discipline the lockfile rule
128
+ below uses;
129
+ - `/tyran:setup` now ends by asking for the commit, **with the reason**, rather
130
+ than leaving `.tyran/` sitting untracked;
131
+ - the conductor treats a worktree without `.tyran/` as a precondition failure,
132
+ and is told to fix it by committing on the main checkout — not by copying the
133
+ file in, which just makes four divergent configs one layer down.
134
+
135
+ ### Two inferences that produced a broken gate
136
+
137
+ **A validation command that watches does not fail an agent, it hangs it.**
138
+ Setup wrote `pnpm test` into a repo whose `test` script is bare `vitest` —
139
+ watch mode, no output, no timeout, a session that simply stops. `detectValidation`
140
+ now reroutes to a run-once variant (`test:run`, `test:ci`, `test:once`) and, if
141
+ there is none, **leaves the command out** and flags the config rather than
142
+ writing a booby trap. The rule is deliberately narrow — `jest` runs once by
143
+ default and is not treated as a watcher — because a false positive here silently
144
+ drops a real test command.
145
+
146
+ **A lockfile on disk is not evidence that it is the repo's lockfile.** The same
147
+ install had `pnpm-lock.yaml` gitignored and untracked alongside the tracked
148
+ `package-lock.json` that its deploy actually builds from, and `.gitignore` said
149
+ so in words. Picking by disk order chose pnpm, and then every single validation
150
+ command was wrong. `detectPackageManager` now asks git which lockfiles are
151
+ tracked and says which one it rejected. An empty `git ls-files` means git could
152
+ not answer and changes nothing — "not a git repo" is not evidence that a file is
153
+ ignored.
154
+
155
+ Both replay clean against the repository that produced them.
156
+
157
+ ### Errors that named the wrong cause
158
+
159
+ `yaml-lite` answered every unbalanced quote with *"quote the whole value if it
160
+ contains an apostrophe"*. An operator writing a long `source:` as a multi-line
161
+ double-quoted string was sent hunting an apostrophe that did not exist, three
162
+ times. A value that opens a quote and never closes it now says exactly that,
163
+ and says the subset has no multi-line scalars. The apostrophe advice survives
164
+ only on the case it is actually about.
165
+
166
+ `doctor.mjs` with no flag printed *"--state is the only mode today"* long after
167
+ `--hooks` shipped, sending readers to look for a flag they already had.
168
+
169
+ The generated `config.yaml` header now states the YAML subset and asks for the
170
+ commit, since both traps are sprung by hand-editing a file whose constraints
171
+ were documented somewhere else.
172
+
173
+ ### Still open, deliberately
174
+
175
+ The report also found that the gate matches on command TEXT, so `ls -1 .npmrc`
176
+ is refused as a credential read though it reads nothing, and that a `GATED`
177
+ refusal tells an agent to write a diff for the operator while `outside this
178
+ repository is never autonomous` refuses the scratch directory that is the
179
+ obvious place to put it. That second one is self-defeating and worth fixing.
180
+ Both are changes to refusal semantics in a KERNEL file and are not being made
181
+ in the same pass as everything above.
182
+
183
+ ## 0.1.1 — 2026-07-29
184
+
185
+ Both entries below come from one install of 0.1.0 on a real repository. The
186
+ version is bumped rather than folded into 0.1.0 because `claude plugin update`
187
+ compares **versions**, not commits: with the manifest left at 0.1.0 it reports
188
+ "already at the latest version" and users never receive the fix.
189
+
190
+ ### `.tyran/config.yaml` is AUTO, and what that costs is written down
191
+
192
+ **The file that says how to validate this repo was one an agent could not
193
+ fix.** Measured on the same install as below: setup inferred `pnpm test`,
194
+ which in that repo is bare `vitest` — watch mode, it never exits, and it would
195
+ have hung every agent handed to it. The session that *discovered* that could
196
+ not repair the file that said it. It produced a diff, then a heredoc for the
197
+ operator to paste, then explained why it would not route around its own gate.
198
+ It was right not to. The gate was wrong.
199
+
200
+ So the shipped policy classes `.tyran/config.yaml` `AUTO`. It is mostly a
201
+ description of the repository — package manager, validation commands, shared
202
+ zones — and the agent that finds it wrong is what is best placed to correct it.
203
+
204
+ The cost is real and is now stated in all four places a user might read
205
+ (`templates/policies/autonomy.yaml`, `docs/configuration.md`,
206
+ `docs/policy-gate.md`, `docs/self-improvement.md`), because an unstated cost is
207
+ a false guarantee: **`autonomy:` lives in this file too, so an agent can raise
208
+ its own deployment class from P1 to P3 and then push to main.** What remains is
209
+ weaker and is said as such — nothing *infers* a raise, and a raise is a diff in
210
+ a committed file with its provenance beside it. Note that `docs/policy-gate.md`
211
+ had already measured this exact escalation happening *under* GATED, in an
212
+ unattended main loop, wherever `Write` is allow-listed; GATED was buying less
213
+ here than it looked like it was buying.
214
+
215
+ The push gate's own refusal named the old class too, and naming a class there
216
+ was the underlying mistake rather than naming the wrong one: the text is
217
+ per-repo configuration, so any class it prints goes stale the moment somebody
218
+ reclassifies the file. It now says the policy decides and names nothing, and
219
+ the test asserts the *absence* of a class claim instead of pinning a string
220
+ that has already been wrong once.
221
+
222
+ Two claims that had gone false are corrected rather than left standing:
223
+ `README.md`'s "the config file holding it is GATED, not KERNEL" and
224
+ `docs/configuration.md`'s "Tyran never raises it on its own — that path is
225
+ blocked by the policy hook". A test now pins the class *and* pins that the
226
+ template still spells out what it gives up, because flipping it back is a
227
+ one-word edit nobody would notice in review.
228
+
229
+ ### Setup no longer locks the repository it is setting up
230
+
231
+ **`/tyran:setup` created `.tyran/config.yaml` and stopped, and that one
232
+ missing file made the repository unwritable.** The policy gate is silent in a
233
+ repo with no `.tyran/` directory and refuses every write in a repo that has
234
+ one without `.tyran/policies/autonomy.yaml` under it. Both halves are right;
235
+ their seam was not. Setup's own first command moved a fresh repo from
236
+ "unmanaged" to "refuses everything" — including the write that would have
237
+ installed the missing policy. Measured on a real install: the session ended
238
+ with the operator being handed a `mkdir` and a `cp` to run by hand, in the
239
+ middle of a one-command setup.
240
+
241
+ `scan-repo.mjs` now installs the policy from the shipped template **before**
242
+ it writes the config, and removes what it created if it cannot, so a failed
243
+ bootstrap cannot leave behind the exact state it exists to prevent. A repo
244
+ from before this change is repaired with `--ensure-policy`, which touches
245
+ nothing else.
246
+
247
+ That is bootstrap, not a loop authorizing itself, and the difference is
248
+ mechanical rather than a matter of intent: it only ever creates — an existing
249
+ policy is never read, merged or overwritten — and what it writes is the
250
+ shipped template byte for byte, the strictest default Tyran has. No input
251
+ makes it emit something weaker. Editing the file afterwards is human-only,
252
+ enforced exactly as before. Three tests pin the properties that make that
253
+ sentence true rather than aspirational: byte-identity with the template, an
254
+ untouched hand-written policy across setup and repair, and no `.tyran/` left
255
+ on disk when the install fails.
256
+
257
+ Two smaller things the same incident exposed. `doctor`'s `policy-missing`
258
+ finding was severity `info` — a repository where every tool call is denied,
259
+ reported as a note — and its suggested fix was a `cp` naming the policy path,
260
+ which the gate refuses when an agent runs it; it is now an `error` carrying a
261
+ command that works. And the documented `schema.mjs validate policy
262
+ .tyran/policies/…` line is one a **human** runs: inside a session it names a
263
+ path under `.tyran/policies/**` and is refused like any other. `doctor --state
264
+ --dir .tyran` validates the same file and names only the directory. The docs
265
+ say so now, and `/tyran:setup` runs the latter.
266
+
267
+ ## 0.1.0 — 2026-07-27
4
268
 
5
269
  ### Six protocol skills, and the budget raised once to pay for them
6
270
 
package/README.md CHANGED
@@ -21,11 +21,15 @@
21
21
  <h3 align="center">The more you use it, the better it gets.</h3>
22
22
 
23
23
  <p align="center">
24
- Tyran is a task conductor for Claude Code: it interviews you, plans, and drives a team of
25
- fresh-context agents through your work — <b>refusing to believe any agent that can't show
26
- raw command output as proof</b>, routing every subtask to the cheapest model that can do
27
- it, and keeping each agent in the context band where it still thinks clearly. When the
28
- work is done, it will not let the initiative end until it has learned something from it.
24
+ Never written a skill, spun up a subagent, or run an agent team yourself? Tyran does all
25
+ three automatically, on your behalf — and the retrospective it runs after every initiative
26
+ means it keeps learning your repo's way of working instead of repeating a generic playbook.
27
+ </p>
28
+
29
+ <p align="center">
30
+ Under the hood: it interviews you, plans, and drives a team of fresh-context agents through
31
+ your work, routing every subtask to the cheapest model that can actually do it — so a file
32
+ rename doesn't burn through your subscription at top-tier rates.
29
33
  </p>
30
34
 
31
35
  ---
@@ -142,7 +146,7 @@ Initiative 20 Has written repo-specific skills for your recurring work and
142
146
  ```text
143
147
  /plugin marketplace add jjanczur/tyran
144
148
  /plugin install tyran@tyran
145
- /tyran:setup # scans the repo, writes .tyran/config.yaml, installs /tyran
149
+ /tyran:setup # scans the repo, writes .tyran/, installs /tyran
146
150
  /tyran # then just describe what you want done
147
151
  ```
148
152
 
@@ -158,9 +162,11 @@ Install the Tyran plugin in this repository and set it up for me.
158
162
  1. Run: claude plugin marketplace add jjanczur/tyran
159
163
  2. Run: claude plugin install tyran@tyran
160
164
  3. Tell me to restart Claude Code, so the hooks and agents load.
161
- 4. After the restart, run /tyran:setup. It scans this repo and writes
162
- .tyran/config.yaml. Walk me through what it inferred - especially the
163
- validation commands and the deployment autonomy class - before we commit it.
165
+ 4. After the restart, run /tyran:setup, then /tyran:doctor. Setup writes the
166
+ two files under .tyran/ that Tyran needs - the config, and the autonomy
167
+ policy the write gate reads - and doctor proves the install actually
168
+ works. Walk me through what setup inferred - especially the validation
169
+ commands and the deployment autonomy class - before we commit it.
164
170
 
165
171
  Docs: https://jjanczur.github.io/tyran/getting-started/
166
172
  ```
@@ -278,10 +284,12 @@ echo "wrong branch — hold everything" > .tyran/STOP
278
284
  force-pushes are refused; a push to your production branch is refused at the
279
285
  strictest autonomy class, including through `HEAD`, `@`, a shell variable or
280
286
  a `git -c` alias. **What it does not do is stop an agent from raising the
281
- class itself:** the config file holding it is GATED, not KERNEL, so an agent
282
- with a broad allow-list can edit it in the main loop — measured, not
283
- supposed. Autonomy classes are a convention the gate enforces downward, not
284
- a lock. Not a firewall, and
287
+ class itself:** the config file holding it is `AUTO` in the shipped policy,
288
+ so an agent can edit it. That is deliberate — the same file holds your
289
+ validation commands, and an agent that cannot correct a wrong one is an
290
+ agent that runs your test suite wrong forever. Set the rule back to `GATED`
291
+ in one word if you want the other trade. Autonomy classes are a convention
292
+ the gate enforces downward, not a lock. Not a firewall, and
285
293
  [docs/hooks.md](docs/hooks.md) says exactly where it stops — including the
286
294
  scanner's own measured false-negative rate.
287
295
 
@@ -341,53 +349,48 @@ one directory each.</sub>
341
349
 
342
350
  ## Command-line use (outside Claude Code)
343
351
 
344
- A single `bin/tyran.mjs` entry point exposes the same scripts the plugin's
345
- hooks and skills already call — `doctor`, `scan-repo`, `tiers`, `journal`,
346
- `schema`, `stop-check`, `scan-control-chars`, `desc-budget` — for a shell or a
347
- CI job with no Claude Code session. Zero dependencies; `--help` lists them.
352
+ Published on npm as [`@jjanczur/tyran`](https://www.npmjs.com/package/@jjanczur/tyran)
353
+ — scoped, not the bare name `tyran`, which carries an unpublish tombstone from
354
+ 2021-03-30 that npm's abuse policy blocks anyone from reusing, permanently. The
355
+ command stays `tyran` either way; only the registry name is scoped, the same
356
+ pattern as `@angular/cli` giving you `ng`. `bin/tyran.mjs` exposes the same
357
+ scripts the plugin's hooks and skills already call — `doctor`, `scan-repo`,
358
+ `tiers`, `journal`, `schema`, `stop-check`, `scan-control-chars`,
359
+ `desc-budget` — for a shell or a CI job with no Claude Code session. Zero
360
+ dependencies; `--help` lists them.
348
361
 
349
362
  ```bash
350
- node bin/tyran.mjs doctor --hooks # is any gate installed but unable to fire?
351
- node bin/tyran.mjs scan-repo --dir . # what this repo looks like, with provenance
363
+ npx @jjanczur/tyran doctor --hooks # is any gate installed but unable to fire?
364
+ npx @jjanczur/tyran scan-repo --dir . # what this repo looks like, with provenance
352
365
  ```
353
366
 
354
367
  Exit codes propagate to the digit, so a CI step reddens exactly when the
355
368
  underlying script does.
356
369
 
357
- > **Not on npm yet — so `npx @jjanczur/tyran` does not work today.** The
358
- > package is built, versioned and tested; only the publish is outstanding.
359
- > Saying it works here before that is true would be exactly the kind of claim
360
- > this project refuses to accept from its own agents. It publishes under the
361
- > scope, not the bare name `tyran` — that name carries an npm unpublish
362
- > tombstone from 2021-03-30, and npm's policy against reusing an unpublished
363
- > name is permanent, for anyone, not a grace period this project could wait
364
- > out. The command stays `tyran` either way; only the registry name is scoped.
365
- >
366
- > **And it would not install the Claude Code plugin either.** For that, run
370
+ > **This does not install the Claude Code plugin.** For that, run
367
371
  > `/plugin marketplace add jjanczur/tyran` inside Claude Code — that name is
368
- > the Claude Code marketplace identity, a separate namespace from npm and
369
- > unaffected by any of the above. The npm package is the tooling; the plugin
370
- > is the conductor.
372
+ > the Claude Code marketplace identity, a separate namespace from npm. The npm
373
+ > package is the tooling; the plugin is the conductor.
371
374
 
372
375
  ## Documentation
373
376
 
374
377
  **Everything below also reads as a site: [jjanczur.github.io/tyran](https://jjanczur.github.io/tyran/)**
375
378
  — same text, with search, rendered diagrams and per-page status badges.
376
379
 
377
- - 📖 [Getting started](docs/getting-started.md)
378
- - 🧰 [Skills and agents](docs/skills.md) — all fourteen skills and four agents, what each assumes, and who invokes it
379
- - ⚙️ [Configuration](docs/configuration.md) — `.tyran/config.yaml`, cost profiles, autonomy classes
380
- - 🎭 [The roster and model routing](docs/agents.md) — the four agents, the tier and effort table, dynamic overrides, the `.tyran/STOP` brake (shipped)
381
- - 🏛️ [Architecture](docs/architecture.md) — the three layers, the journal, the hooks
382
- - 📜 [Journal reference](docs/journal.md) — the append-only event schema (shipped)
383
- - 🧾 [Projections](docs/projections.md) — generated `STATE.md` / `PROGRESS.md` and `--check` (shipped)
384
- - 🩺 [Doctor](docs/doctor.md) — `--state` consistency check: drift, orphan leases, dead policy rules (shipped)
385
- - 🪝 [Hook runtime](docs/hooks.md) — gates vs probes, why hooks fail open, and what the deadline really promises (shipped)
386
- - 🧾 [Evidence gate](docs/evidence-gate.md) — the criterion, who it binds, the recorded escape hatch, and the line between silence and forgery (shipped)
387
- - 🛡️ [Policy gate](docs/policy-gate.md) — path classes, the deployment class, the one rule on reads, and where each stops (shipped)
388
- - 🧠 [Self-improvement](docs/self-improvement.md) — how Tyran learns your repo, and its guardrails
389
- - ❓ [FAQ](docs/faq.md)
390
- - 🤝 [Contributing](CONTRIBUTING.md)
380
+ - 📖 [Getting started](https://jjanczur.github.io/tyran/getting-started/)
381
+ - 🧰 [Skills and agents](https://jjanczur.github.io/tyran/skills/) — all fourteen skills and four agents, what each assumes, and who invokes it
382
+ - ⚙️ [Configuration](https://jjanczur.github.io/tyran/configuration/) — `.tyran/config.yaml`, cost profiles, autonomy classes
383
+ - 🎭 [The roster and model routing](https://jjanczur.github.io/tyran/agents/) — the four agents, the tier and effort table, dynamic overrides, the `.tyran/STOP` brake (shipped)
384
+ - 🏛️ [Architecture](https://jjanczur.github.io/tyran/architecture/) — the three layers, the journal, the hooks
385
+ - 📜 [Journal reference](https://jjanczur.github.io/tyran/journal/) — the append-only event schema (shipped)
386
+ - 🧾 [Projections](https://jjanczur.github.io/tyran/projections/) — generated `STATE.md` / `PROGRESS.md` and `--check` (shipped)
387
+ - 🩺 [Doctor](https://jjanczur.github.io/tyran/doctor/) — `--state` consistency check: drift, orphan leases, dead policy rules (shipped)
388
+ - 🪝 [Hook runtime](https://jjanczur.github.io/tyran/hooks/) — gates vs probes, why hooks fail open, and what the deadline really promises (shipped)
389
+ - 🧾 [Evidence gate](https://jjanczur.github.io/tyran/evidence-gate/) — the criterion, who it binds, the recorded escape hatch, and the line between silence and forgery (shipped)
390
+ - 🛡️ [Policy gate](https://jjanczur.github.io/tyran/policy-gate/) — path classes, the deployment class, the one rule on reads, and where each stops (shipped)
391
+ - 🧠 [Self-improvement](https://jjanczur.github.io/tyran/self-improvement/) — how Tyran learns your repo, and its guardrails
392
+ - ❓ [FAQ](https://jjanczur.github.io/tyran/faq/)
393
+ - 🤝 [Contributing](CONTRIBUTING.md) — not a docs-site page, so this one stays a repo link
391
394
 
392
395
  ## Strategic principles
393
396
 
@@ -406,9 +409,9 @@ underlying script does.
406
409
  generalizable improvements travel to the core as pull requests.
407
410
  6. **Autonomy earns trust in layers.** Detected once, confirmed with you, and
408
411
  enforced downward by the policy gate. Not *"never self-escalated"* — the
409
- file holding the class is GATED rather than KERNEL, and an agent with a
410
- broad allow-list can edit it. Measured, not assumed; see
411
- [the policy gate](docs/policy-gate.md).
412
+ file holding the class is `AUTO`, so an agent can edit it, chosen so that
413
+ an agent can also repair the validation commands stored beside it.
414
+ Measured, not assumed; see [the policy gate](docs/policy-gate.md).
412
415
 
413
416
  ## Roadmap
414
417