@jjanczur/tyran 0.1.42 → 0.1.44
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.
- package/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/CHANGELOG.md +185 -0
- package/README.md +9 -2
- package/hooks/HOOK-CONTRACT-MEASURED.md +6 -1
- package/hooks/scripts/hook-io.mjs +66 -8
- package/hooks/scripts/policy-gate.mjs +141 -9
- package/package.json +1 -1
- package/scripts/board-html.mjs +504 -78
- package/scripts/doctor.mjs +48 -1
- package/scripts/scan-repo.mjs +17 -1
- package/scripts/schema.mjs +88 -1
- package/scripts/settings.mjs +215 -3
- package/skills/setup/SKILL.md +20 -0
- package/templates/config.yaml +28 -0
- package/templates/policies/autonomy.yaml +29 -9
|
@@ -16,8 +16,17 @@
|
|
|
16
16
|
#
|
|
17
17
|
# Validate: node scripts/schema.mjs validate policy .tyran/policies/autonomy.yaml
|
|
18
18
|
|
|
19
|
-
# Applied when no rule matches.
|
|
20
|
-
|
|
19
|
+
# Applied when no rule matches. AUTO since 0.1.44 (operator-decided
|
|
20
|
+
# 2026-08-19: the shipped defaults were stricter than a new install needs).
|
|
21
|
+
# What this actually reaches is small: the gate is silent outside its
|
|
22
|
+
# governed prefixes (`.tyran/`, `.claude/`, the hooks directory), so this
|
|
23
|
+
# default was never what protected your source tree — it decided only the
|
|
24
|
+
# paths under those prefixes that no rule below names. What it gives up:
|
|
25
|
+
# an UNKNOWN file there — a new state file from a newer Tyran, a stray
|
|
26
|
+
# `.claude/` helper — is now writable by a subagent instead of denied.
|
|
27
|
+
# Every named rule below still applies, the KERNEL floors cannot be edited
|
|
28
|
+
# away, and setting this back to GATED is one word in this file.
|
|
29
|
+
default: AUTO
|
|
21
30
|
|
|
22
31
|
rules:
|
|
23
32
|
- path: .tyran/knowledge/**
|
|
@@ -41,11 +50,15 @@ rules:
|
|
|
41
50
|
# 0.1.9 is `.tyran/state/<slug>/locks/`, covered by the `.tyran/state/**`
|
|
42
51
|
# rule above; `doctor --state` reports a leftover `.tyran/initiatives/`
|
|
43
52
|
# directory. The measured incident that produced this rule: leases matched
|
|
44
|
-
# NO rule, fell through to `default: GATED`, and
|
|
45
|
-
# unsupervised)` denies unconditionally — so no
|
|
46
|
-
# could satisfy the take-your-own-lease protocol of
|
|
47
|
-
# conductor had to write every lease itself, putting
|
|
48
|
-
# holds a resource in the one place rule 7 says it must
|
|
53
|
+
# NO rule, fell through to the then-shipped `default: GATED`, and
|
|
54
|
+
# `verdictForClass(GATED, unsupervised)` denies unconditionally — so no
|
|
55
|
+
# implementer in any repo could satisfy the take-your-own-lease protocol of
|
|
56
|
+
# iron rule 7, and the conductor had to write every lease itself, putting
|
|
57
|
+
# the record of who holds a resource in the one place rule 7 says it must
|
|
58
|
+
# not live: the lead. The default is AUTO now, which closes that incident
|
|
59
|
+
# class by itself; the rule stays because an explicit reason beats a
|
|
60
|
+
# fall-through, and because an operator who tightens the default back to
|
|
61
|
+
# GATED must not resurrect the incident.
|
|
49
62
|
- path: .tyran/initiatives/*/locks/**
|
|
50
63
|
class: AUTO
|
|
51
64
|
reason: legacy lease location for installs adopted at <= 0.1.8; GATED denies every subagent unconditionally, which makes the take-your-own-lease protocol of iron rule 7 unsatisfiable
|
|
@@ -66,9 +79,16 @@ rules:
|
|
|
66
79
|
class: AUTO
|
|
67
80
|
reason: mostly a description of this repo — validation commands, package manager, shared zones — and an agent that finds it wrong is what is best placed to correct it
|
|
68
81
|
|
|
82
|
+
# Was GATED ("overriding a core agent freezes it at the version it was
|
|
83
|
+
# copied from" — still true, still the cost). Relaxed with the default in
|
|
84
|
+
# 0.1.44: GATED denies a subagent unconditionally, so the retro agent —
|
|
85
|
+
# whose whole job includes maintaining these files — could only ever
|
|
86
|
+
# propose. The trade, stated because an unstated cost is a false
|
|
87
|
+
# guarantee: an agent can now freeze or degrade a core agent by writing
|
|
88
|
+
# here; the rollback is a git revert, and the freeze is doctor's to find.
|
|
69
89
|
- path: .claude/agents/**
|
|
70
|
-
class:
|
|
71
|
-
reason:
|
|
90
|
+
class: AUTO
|
|
91
|
+
reason: agent definitions are the material the retro loop maintains; a bad write is one git revert, and an override that freezes a core agent is what doctor reports
|
|
72
92
|
|
|
73
93
|
# Operator-owned prose, loaded into every session in this repository. The
|
|
74
94
|
# gate is otherwise SILENT at the repo root — the governed prefixes are
|