tamperward 2.34.0 → 2.36.0
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/dist/cli/index.js +746 -192
- package/package.json +1 -1
- package/schemas/status-v1.schema.json +205 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tamperward",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.36.0",
|
|
4
4
|
"description": "The deterministic agent-integrity gate. One ruleset, evaluated on the actual diff/commands as a verdict, enforced everywhere a change can be made.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "hexrift",
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://raw.githubusercontent.com/hexrift/tamperward/v1/schemas/status-v1.schema.json",
|
|
4
|
+
"title": "TamperWard status JSON output v1",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": [
|
|
7
|
+
"schema_version",
|
|
8
|
+
"command",
|
|
9
|
+
"authority",
|
|
10
|
+
"intervention",
|
|
11
|
+
"verification",
|
|
12
|
+
"runtime"
|
|
13
|
+
],
|
|
14
|
+
"properties": {
|
|
15
|
+
"schema_version": {
|
|
16
|
+
"const": 1
|
|
17
|
+
},
|
|
18
|
+
"command": {
|
|
19
|
+
"const": "status"
|
|
20
|
+
},
|
|
21
|
+
"authority": {
|
|
22
|
+
"type": "object",
|
|
23
|
+
"required": ["state"],
|
|
24
|
+
"properties": {
|
|
25
|
+
"state": {
|
|
26
|
+
"enum": ["ACTIVE", "PARTIAL", "BROKEN", "UNKNOWN"]
|
|
27
|
+
},
|
|
28
|
+
"detail": {
|
|
29
|
+
"type": "string"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"additionalProperties": true
|
|
33
|
+
},
|
|
34
|
+
"intervention": {
|
|
35
|
+
"type": "object",
|
|
36
|
+
"required": ["state"],
|
|
37
|
+
"properties": {
|
|
38
|
+
"state": {
|
|
39
|
+
"enum": ["ACTIVE", "PARTIAL", "INACTIVE", "UNKNOWN"]
|
|
40
|
+
},
|
|
41
|
+
"detail": {
|
|
42
|
+
"type": "string"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"additionalProperties": true
|
|
46
|
+
},
|
|
47
|
+
"verification": {
|
|
48
|
+
"type": "object",
|
|
49
|
+
"required": ["state"],
|
|
50
|
+
"properties": {
|
|
51
|
+
"state": {
|
|
52
|
+
"enum": ["CURRENT", "STALE", "VERIFYING", "BROKEN", "UNVERIFIED"]
|
|
53
|
+
},
|
|
54
|
+
"reason": {
|
|
55
|
+
"type": "string"
|
|
56
|
+
},
|
|
57
|
+
"changed_input": {
|
|
58
|
+
"enum": [
|
|
59
|
+
"tree",
|
|
60
|
+
"head",
|
|
61
|
+
"base",
|
|
62
|
+
"policy",
|
|
63
|
+
"verifier",
|
|
64
|
+
"surface",
|
|
65
|
+
"intervention",
|
|
66
|
+
"dependencies"
|
|
67
|
+
]
|
|
68
|
+
},
|
|
69
|
+
"detail": {
|
|
70
|
+
"type": "string"
|
|
71
|
+
},
|
|
72
|
+
"verified_at": {
|
|
73
|
+
"type": "string"
|
|
74
|
+
},
|
|
75
|
+
"base": {
|
|
76
|
+
"type": "string"
|
|
77
|
+
},
|
|
78
|
+
"head": {
|
|
79
|
+
"type": "string"
|
|
80
|
+
},
|
|
81
|
+
"verifier_command": {
|
|
82
|
+
"type": "string"
|
|
83
|
+
},
|
|
84
|
+
"tree": {
|
|
85
|
+
"type": "string"
|
|
86
|
+
},
|
|
87
|
+
"binding": {
|
|
88
|
+
"type": "object",
|
|
89
|
+
"required": [
|
|
90
|
+
"tree",
|
|
91
|
+
"head",
|
|
92
|
+
"base",
|
|
93
|
+
"policy",
|
|
94
|
+
"verifier",
|
|
95
|
+
"surface",
|
|
96
|
+
"intervention",
|
|
97
|
+
"dependencies"
|
|
98
|
+
],
|
|
99
|
+
"properties": {
|
|
100
|
+
"tree": { "type": "string" },
|
|
101
|
+
"head": { "type": "string" },
|
|
102
|
+
"base": { "type": "string" },
|
|
103
|
+
"policy": { "type": "string" },
|
|
104
|
+
"verifier": { "type": "string" },
|
|
105
|
+
"surface": { "type": "string" },
|
|
106
|
+
"intervention": { "type": "string" },
|
|
107
|
+
"dependencies": { "type": "string" }
|
|
108
|
+
},
|
|
109
|
+
"additionalProperties": true
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"additionalProperties": true,
|
|
113
|
+
"allOf": [
|
|
114
|
+
{
|
|
115
|
+
"if": {
|
|
116
|
+
"properties": {
|
|
117
|
+
"state": { "const": "STALE" }
|
|
118
|
+
},
|
|
119
|
+
"required": ["state"]
|
|
120
|
+
},
|
|
121
|
+
"then": {
|
|
122
|
+
"required": ["changed_input"],
|
|
123
|
+
"properties": {
|
|
124
|
+
"changed_input": {
|
|
125
|
+
"enum": [
|
|
126
|
+
"tree",
|
|
127
|
+
"head",
|
|
128
|
+
"base",
|
|
129
|
+
"policy",
|
|
130
|
+
"verifier",
|
|
131
|
+
"surface",
|
|
132
|
+
"intervention",
|
|
133
|
+
"dependencies"
|
|
134
|
+
]
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
]
|
|
140
|
+
},
|
|
141
|
+
"runtime": {
|
|
142
|
+
"type": "object",
|
|
143
|
+
"required": ["agent"],
|
|
144
|
+
"properties": {
|
|
145
|
+
"agent": {
|
|
146
|
+
"type": "string"
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
"additionalProperties": true
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
"additionalProperties": true,
|
|
153
|
+
"description": "Emitted by `tamperward status --json` (#600). Three distinct lanes: `authority` (repository/final-adjudication posture), `intervention` (runtime steering capability) and `verification` (whether the last successful verify still applies to the exact current state). A STALE verification names the load-bearing input that changed in `changed_input`. Local CURRENT is posture/evidence, never repository or CI merge authority. Additive within schema major 1.",
|
|
154
|
+
"examples": [
|
|
155
|
+
{
|
|
156
|
+
"schema_version": 1,
|
|
157
|
+
"command": "status",
|
|
158
|
+
"authority": { "state": "ACTIVE" },
|
|
159
|
+
"intervention": { "state": "PARTIAL", "detail": "PreToolUse hook wired" },
|
|
160
|
+
"verification": {
|
|
161
|
+
"state": "CURRENT",
|
|
162
|
+
"verified_at": "2026-09-23T12:00:00.000Z",
|
|
163
|
+
"base": "8ef12c1aaa0000000000000000000000000000aa",
|
|
164
|
+
"head": "8ef12c1aaa0000000000000000000000000000aa",
|
|
165
|
+
"verifier_command": "npm test",
|
|
166
|
+
"tree": "0123456789abcdef",
|
|
167
|
+
"binding": {
|
|
168
|
+
"tree": "0123456789abcdef",
|
|
169
|
+
"head": "8ef12c1aaa0000000000000000000000000000aa",
|
|
170
|
+
"base": "8ef12c1aaa0000000000000000000000000000aa",
|
|
171
|
+
"policy": "aaaa",
|
|
172
|
+
"verifier": "bbbb",
|
|
173
|
+
"surface": "cccc",
|
|
174
|
+
"intervention": "dddd",
|
|
175
|
+
"dependencies": "eeee"
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
"runtime": { "agent": "claude-code" }
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"schema_version": 1,
|
|
182
|
+
"command": "status",
|
|
183
|
+
"authority": { "state": "BROKEN", "detail": "verifier: BROKEN" },
|
|
184
|
+
"intervention": { "state": "INACTIVE" },
|
|
185
|
+
"verification": {
|
|
186
|
+
"state": "STALE",
|
|
187
|
+
"changed_input": "tree",
|
|
188
|
+
"reason": "candidate tree changed since verification",
|
|
189
|
+
"verified_at": "2026-09-23T12:00:00.000Z"
|
|
190
|
+
},
|
|
191
|
+
"runtime": { "agent": "claude-code" }
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"schema_version": 1,
|
|
195
|
+
"command": "status",
|
|
196
|
+
"authority": { "state": "UNKNOWN" },
|
|
197
|
+
"intervention": { "state": "UNKNOWN" },
|
|
198
|
+
"verification": {
|
|
199
|
+
"state": "UNVERIFIED",
|
|
200
|
+
"reason": "no successful verification has been recorded for this repository"
|
|
201
|
+
},
|
|
202
|
+
"runtime": { "agent": "none" }
|
|
203
|
+
}
|
|
204
|
+
]
|
|
205
|
+
}
|