arbiterdesign 0.1.2 → 0.1.4
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/LICENSE +21 -21
- package/README.md +183 -143
- package/dist/autopublish.js +81 -0
- package/dist/commands/candidate.js +1 -1
- package/dist/commands/export.js +58 -58
- package/dist/commands/init.js +67 -27
- package/dist/commands/publish.js +104 -2
- package/dist/commands/record.js +6 -1
- package/dist/commands/remove.js +232 -0
- package/dist/commands/review.js +18 -1
- package/dist/commands/rules.js +4 -2
- package/dist/commands/snapshot.js +10 -2
- package/dist/commands/update.js +114 -0
- package/dist/format.js +4 -3
- package/dist/hosted.js +5 -0
- package/dist/index.js +67 -4
- package/dist/store.js +10 -0
- package/dist/sweep.js +9 -2
- package/package.json +45 -44
- package/templates/SKILL.md +468 -393
- package/templates/review.html +479 -479
- package/dist/test/hosted.test.js +0 -189
- package/dist/test/init.test.js +0 -54
- package/dist/test/pending.test.js +0 -214
- package/dist/test/polish.test.js +0 -130
- package/dist/test/record.test.js +0 -102
- package/dist/test/stages.test.js +0 -188
package/templates/SKILL.md
CHANGED
|
@@ -1,393 +1,468 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: arbiter
|
|
3
|
-
description: Record design decisions made during UI work so they never have to be re-made. Use after building or changing any UI, and whenever the user says "record that", "make that a rule", "reject that", "going with X instead", or similar.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Arbiter
|
|
7
|
-
|
|
8
|
-
`DECISIONS.md` holds the design calls this project has already made — what was chosen, what was rejected, and why. Your job is to apply them, and to capture new ones as they happen, without asking the user to write anything.
|
|
9
|
-
|
|
10
|
-
## Before UI work
|
|
11
|
-
|
|
12
|
-
If `DECISIONS.md` exists, read it before building or changing any component, screen, or style. Treat every entry as settled. Do not re-decide, do not ask about, and do not deviate from an active rule unless the user explicitly asks you to. Do not try the alternatives it lists as rejected.
|
|
13
|
-
|
|
14
|
-
## After UI work — queue, don't interrupt
|
|
15
|
-
|
|
16
|
-
Design work is iterative. A screen redesigned six times is one piece of work, not six. Never surface decisions mid-iteration.
|
|
17
|
-
|
|
18
|
-
**While the user is iterating on the same thing: say nothing about decisions.** Keep a private running list. Each version they moved past becomes a rejected alternative on the version that replaced it — note why it lost, in their words if they gave a reason.
|
|
19
|
-
|
|
20
|
-
**When the work settles** — they move to a different screen or component, say "good" / "ship it" / "done" / "next", or the session is clearly wrapping up — write each queued decision to the pending file, silently:
|
|
21
|
-
|
|
22
|
-
```
|
|
23
|
-
npx arbiter record --pending '<json>'
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
(JSON shape below). The output carries `checkin`, the user's answer from their first `/arbiter`:
|
|
27
|
-
|
|
28
|
-
- `feature` (default) — **only if the piece of work included a `feature`-level decision**, add one line to your reply carrying its Change line, not a count. At most once per session.
|
|
29
|
-
- `quiet` — say nothing. Ever. They run `/arbiter` when they want it.
|
|
30
|
-
- `every` — one line each time a piece of work settles and you queue, whatever its level.
|
|
31
|
-
|
|
32
|
-
The line, when there is one:
|
|
33
|
-
|
|
34
|
-
```
|
|
35
|
-
Queued: Settings is now a tab-row shell with four routes under it (+2 pattern, +4 polish) — /arbiter when you're ready.
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
A count on every reply gets ignored; a sentence about what changed, only after something big, gets read. After the line, queue silently — the user knows the queue exists. If the work was only patterns and polish, say nothing. Never phrase it as a question ("should we run arbiter?") — it's a statement of what was queued, and the user decides when. Do not show the widget. Do not list the decisions. The queue lives in `.arbiter/pending.md`, so it survives the session; the user can judge it here, in the review page, or never.
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
>
|
|
53
|
-
>
|
|
54
|
-
>
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
npx arbiter
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
npx arbiter record
|
|
88
|
-
npx arbiter record
|
|
89
|
-
npx arbiter record
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
Never
|
|
194
|
-
|
|
195
|
-
##
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
```
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
"
|
|
221
|
-
"
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
- `
|
|
245
|
-
- `
|
|
246
|
-
- `
|
|
247
|
-
- `
|
|
248
|
-
- `
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
##
|
|
291
|
-
|
|
292
|
-
When
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
```
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
If
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
-
|
|
392
|
-
|
|
393
|
-
|
|
1
|
+
---
|
|
2
|
+
name: arbiter
|
|
3
|
+
description: Record design decisions made during UI work so they never have to be re-made. Use after building or changing any UI, and whenever the user says "record that", "make that a rule", "reject that", "going with X instead", or similar.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Arbiter
|
|
7
|
+
|
|
8
|
+
`DECISIONS.md` holds the design calls this project has already made — what was chosen, what was rejected, and why. Your job is to apply them, and to capture new ones as they happen, without asking the user to write anything.
|
|
9
|
+
|
|
10
|
+
## Before UI work
|
|
11
|
+
|
|
12
|
+
If `DECISIONS.md` exists, read it before building or changing any component, screen, or style. Treat every entry as settled. Do not re-decide, do not ask about, and do not deviate from an active rule unless the user explicitly asks you to. Do not try the alternatives it lists as rejected.
|
|
13
|
+
|
|
14
|
+
## After UI work — queue, don't interrupt
|
|
15
|
+
|
|
16
|
+
Design work is iterative. A screen redesigned six times is one piece of work, not six. Never surface decisions mid-iteration.
|
|
17
|
+
|
|
18
|
+
**While the user is iterating on the same thing: say nothing about decisions.** Keep a private running list. Each version they moved past becomes a rejected alternative on the version that replaced it — note why it lost, in their words if they gave a reason.
|
|
19
|
+
|
|
20
|
+
**When the work settles** — they move to a different screen or component, say "good" / "ship it" / "done" / "next", or the session is clearly wrapping up — write each queued decision to the pending file, silently:
|
|
21
|
+
|
|
22
|
+
```
|
|
23
|
+
npx arbiter record --pending '<json>'
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
(JSON shape below). The output carries `checkin`, the user's answer from their first `/arbiter`:
|
|
27
|
+
|
|
28
|
+
- `feature` (default) — **only if the piece of work included a `feature`-level decision**, add one line to your reply carrying its Change line, not a count. At most once per session.
|
|
29
|
+
- `quiet` — say nothing. Ever. They run `/arbiter` when they want it.
|
|
30
|
+
- `every` — one line each time a piece of work settles and you queue, whatever its level.
|
|
31
|
+
|
|
32
|
+
The line, when there is one:
|
|
33
|
+
|
|
34
|
+
```
|
|
35
|
+
Queued: Settings is now a tab-row shell with four routes under it (+2 pattern, +4 polish) — /arbiter when you're ready.
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
A count on every reply gets ignored; a sentence about what changed, only after something big, gets read. After the line, queue silently — the user knows the queue exists. If the work was only patterns and polish, say nothing. Never phrase it as a question ("should we run arbiter?") — it's a statement of what was queued, and the user decides when. Do not show the widget. Do not list the decisions. The queue lives in `.arbiter/pending.md`, so it survives the session; the user can judge it here, in the review page, or never.
|
|
39
|
+
|
|
40
|
+
The output may also carry `update` — this skill file was written by an older Arbiter than the one installed (`update.skill` vs `update.cli`), so the protocol you're following is behind. Once per session, add one line, whatever `checkin` says:
|
|
41
|
+
|
|
42
|
+
```
|
|
43
|
+
Arbiter's skill file is from 0.1.3 (the CLI is 0.1.4) — say "update arbiter" and I'll refresh it.
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Never run it unasked. When they say yes — or say *"update arbiter"* unprompted — run the command `update.command` names and relay what it prints. It leaves `DECISIONS.md`, the archive and the settings alone.
|
|
47
|
+
|
|
48
|
+
## The first `/arbiter` — intro, then the queue
|
|
49
|
+
|
|
50
|
+
The queue JSON carries `firstRun: true` until the project has been through this once. When it does, before anything else, say this — verbatim, it's been written for the reader:
|
|
51
|
+
|
|
52
|
+
> **Arbiter's on.** While I build UI, I record the design decisions I make — what changed, the rule behind it, what was rejected — so nothing gets re-decided and your team can see why things are the way they are.
|
|
53
|
+
>
|
|
54
|
+
> **How it works**
|
|
55
|
+
> 1. You build as usual. I say nothing about decisions until a piece of work settles — then one line.
|
|
56
|
+
> 2. `/arbiter` shows what's queued. For each: **Confirm**, **Make it a rule**, or **Skip**. Rules go into `DECISIONS.md`, and I read them before touching UI.
|
|
57
|
+
> 3. When you want the team to see it, say **publish** — I'll give you a link to a board they can read and comment on.
|
|
58
|
+
>
|
|
59
|
+
> **Commands**
|
|
60
|
+
> - `/arbiter` — review what's queued
|
|
61
|
+
> - **publish** — say it, get the board link
|
|
62
|
+
> - **"record that"** / **"make that a rule"** — mid-chat, recorded, no questions
|
|
63
|
+
|
|
64
|
+
Then one question, with the selection widget (text fallback: the same three lines, numbered):
|
|
65
|
+
|
|
66
|
+
- **header** — `While you work`
|
|
67
|
+
- **question** — `When should Arbiter check in about decisions?`
|
|
68
|
+
- **options** —
|
|
69
|
+
- `A line after big work` (Recommended) — *When a feature-sized piece settles, one sentence saying what was queued. Never mid-iteration, at most once a session.*
|
|
70
|
+
- `Nothing until I ask` — *Queued silently. /arbiter whenever you want to see it.*
|
|
71
|
+
- `A line after everything` — *One sentence every time a piece of work settles, big or small.*
|
|
72
|
+
|
|
73
|
+
Record the answer — Skip means the recommended one:
|
|
74
|
+
|
|
75
|
+
```
|
|
76
|
+
npx arbiter setup --checkin feature # A line after big work
|
|
77
|
+
npx arbiter setup --checkin quiet # Nothing until I ask
|
|
78
|
+
npx arbiter setup --checkin every # A line after everything
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
That also marks the project as onboarded. Then continue with the queue as below; if it's empty, one line: `Nothing queued yet — build something.`
|
|
82
|
+
|
|
83
|
+
**When they ask** — `/arbiter`, "let's review", "what did you decide" — read the queue with `npx arbiter rules --pending --json`. It comes back grouped by piece of work (`groups[].trigger`), feature and pattern items in `items`, polish in `polish`. Present the feature and pattern items (below); polish is never presented individually. Judge each answer with:
|
|
84
|
+
|
|
85
|
+
```
|
|
86
|
+
npx arbiter record P-0003 --as accept # Confirm
|
|
87
|
+
npx arbiter record P-0003 --as rule # Make it a rule
|
|
88
|
+
npx arbiter record P-0003 --as skip # typed "skip" in Other
|
|
89
|
+
npx arbiter record P-0003 --as fix --to "<what they typed>"
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
If the decision belongs to a screen you tracked as a candidate, add `--candidate C-0001` to any of those — it links at the moment it's judged, and the screen's page picks it up. That's the only moment linking is free; afterwards it takes `npx arbiter unlink` and a re-record.
|
|
93
|
+
|
|
94
|
+
Bulk answers are one command, not a loop:
|
|
95
|
+
|
|
96
|
+
```
|
|
97
|
+
npx arbiter record --all --as accept --level polish # "confirm all polish"
|
|
98
|
+
npx arbiter record --all --as accept # "confirm all"
|
|
99
|
+
npx arbiter record --all --as rule --level pattern # "rule the patterns…"
|
|
100
|
+
npx arbiter record --all --as accept --level feature # "…confirm the rest"
|
|
101
|
+
npx arbiter record --all --as accept --trigger "Settings build" # one piece of work
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
`--as rule` can exit `2` (overlap) — follow the overlap flow below and re-run with `--supersedes` or `--keep-both`. In a bulk run an overlap shows up under `failed`; handle those one at a time afterwards.
|
|
105
|
+
|
|
106
|
+
### What counts as a decision
|
|
107
|
+
|
|
108
|
+
A point where the UI could have gone more than one way and went one way — whether you weighed the options or the user named the one they wanted — and that isn't **already covered by `DECISIONS.md`**. Look along these dimensions:
|
|
109
|
+
|
|
110
|
+
| Dimension | What to look for |
|
|
111
|
+
|---|---|
|
|
112
|
+
| `structure` | Layout, hierarchy, grouping, what's above the fold, tabs vs. scroll |
|
|
113
|
+
| `interaction` | Pattern choice — modal / sheet / inline, hover / click, confirm flows |
|
|
114
|
+
| `states` | Empty, loading, error, success — what was shown and what was skipped |
|
|
115
|
+
| `content` | Labels, tone, button verbs, error copy, headings |
|
|
116
|
+
| `visual` | Tokens, spacing, type scale, colour, radii |
|
|
117
|
+
| `motion` | Transitions, durations, what animates and what doesn't |
|
|
118
|
+
| `access` | Focus order, contrast, hit targets, announcements |
|
|
119
|
+
|
|
120
|
+
For each decision, note what it was chosen **over**. Rejected alternatives come from three places:
|
|
121
|
+
|
|
122
|
+
1. **Iterations in this session.** The user asked for a sheet, looked at it, then asked for a modal. The sheet is rejected, and you saw why.
|
|
123
|
+
2. **Options you weighed and didn't build.** You considered tabs, went with a single page. Tabs are rejected, with your reason.
|
|
124
|
+
3. **Corrections.** Whatever you did that the user then changed is rejected; what they asked for is the decision.
|
|
125
|
+
|
|
126
|
+
**Any visual change that stays in the UI counts too**: colour, spacing, type, radii, icons, what's shown or hidden. That holds even when no alternative was weighed, and even when the user asked for it. The version it replaced is the rejected alternative. A visual change that would repeat on other screens is a `pattern`. A one-off is `polish`.
|
|
127
|
+
|
|
128
|
+
Skip mechanical necessities (imports, prop plumbing, file placement), and non-visual things the user told you to do.
|
|
129
|
+
|
|
130
|
+
**Size every decision.** A 7px height fix and a new settings architecture are not the same kind of call, and the review must not treat them the same. Set `level`:
|
|
131
|
+
|
|
132
|
+
| Level | What it is | Examples | Review behaviour |
|
|
133
|
+
|---|---|---|---|
|
|
134
|
+
| `feature` | A new surface, flow, or structure | Settings shell with four routes; a second card on Audit; a stage-aware back link | Always presented |
|
|
135
|
+
| `pattern` | A reusable call that could apply elsewhere | Icon-only buttons on half-width cards; "Status" not "Health"; save buttons bottom-right | Presented; "make it a rule" is the likely answer |
|
|
136
|
+
| `polish` | A one-off fix to one screen | Match heights at `h-9`; drop a chevron; remove a pill | **Never presented.** Queued, then logged automatically when the group is reviewed |
|
|
137
|
+
|
|
138
|
+
Polish still gets queued — it's part of the record — but the user never gets a question about it; they see "+6 polish logged" in the summary. Rules only ever come from `feature` or `pattern`. When unsure between `pattern` and `polish`, ask: would this apply on a screen that doesn't exist yet? If yes, `pattern`. There's no cap on polish; keep feature + pattern to seven per piece of work.
|
|
139
|
+
|
|
140
|
+
### Present with the selection widget
|
|
141
|
+
|
|
142
|
+
Only when asked (see above). If you have a question tool that presents options (in Claude Code, `AskUserQuestion`), use it. Up to four questions per call, in queue order; the heading inside each question names its piece of work, so a call may span more than one. Before the call, one line: `Queued across 2 pieces of work — Rescan button (1), Settings (2) · +5 polish logged`.
|
|
143
|
+
|
|
144
|
+
Each question:
|
|
145
|
+
|
|
146
|
+
- **header** — the dimension, Title case: `Structure`, `Interaction`, `States`, `Content`, `Visual`
|
|
147
|
+
- **question** — a heading line, a blank line, then four labelled lines:
|
|
148
|
+
|
|
149
|
+
```
|
|
150
|
+
Rescan button · 1 of 1
|
|
151
|
+
|
|
152
|
+
Change — The Rescan button on the small Health check card is now just an icon
|
|
153
|
+
Pattern — Half-width cards use icon-only action buttons with aria-label and title
|
|
154
|
+
Rejected — Full-label button: wrapped to a second row on mobile
|
|
155
|
+
Applies to — Compact card actions, anywhere
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
- The heading is **the thing the user was working on, at the grain they worked at** — `Rescan button`, `Delete flow`, `Settings`, `Billing page`. Say it the way they'd say it. It's the `trigger`. Then `n of N` within that piece of work.
|
|
159
|
+
- `Change` is what happened, as a PM would say it. `Pattern` is the rule-shaped sentence (`decision`). `Rejected` is each alternative with why it lost, `·`-separated if more than one; omit the line if nothing was rejected. `Applies to` is the scope in words: a file name, `<Pattern name>, anywhere`, or `Everywhere`.
|
|
160
|
+
- **options**, always these two, in this order:
|
|
161
|
+
- `Confirm` — *Saved to the decision log.*
|
|
162
|
+
- `Make it a rule` — *Kept in DECISIONS.md, referenced in future sessions.*
|
|
163
|
+
- The built-in **Other** box is the correction path. If the user types there, treat it as a fix: what they typed is the decision, what you did is rejected. If they type `skip`, drop the item.
|
|
164
|
+
- The widget's own **Skip** button means "not now" — everything stays in the queue. Don't add a Skip option.
|
|
165
|
+
|
|
166
|
+
### Fallback: present as text
|
|
167
|
+
|
|
168
|
+
If no selection widget is available, use exactly this shape — grouped by piece of work, three labelled lines per item, Change first:
|
|
169
|
+
|
|
170
|
+
```
|
|
171
|
+
Audit page — 3 decisions, +2 polish
|
|
172
|
+
|
|
173
|
+
1. Change: The Audit page now has a second card, Health check, beside the score [feature]
|
|
174
|
+
Pattern: Audit shows score and health as two half-width cards
|
|
175
|
+
Rejected: single wide card — health got buried under the score chart
|
|
176
|
+
2. Change: The Rescan button on the small Health check card is now just an icon [pattern]
|
|
177
|
+
Pattern: Half-width cards use icon-only action buttons
|
|
178
|
+
Rejected: full-label button — wrapped to a second row at phone width
|
|
179
|
+
3. Change: The health card says Status, not Health [pattern]
|
|
180
|
+
Pattern: Card headings name the thing shown, not the concept
|
|
181
|
+
|
|
182
|
+
Settings build — 2 decisions, +4 polish
|
|
183
|
+
|
|
184
|
+
4. Change: Settings is now a tab-row shell with four routes under it [feature]
|
|
185
|
+
…
|
|
186
|
+
|
|
187
|
+
Applied from DECISIONS.md: D-0003, D-0008
|
|
188
|
+
|
|
189
|
+
Reply per number — confirm · rule · skip · or type what it should be
|
|
190
|
+
or in bulk — "confirm all" · "confirm all polish" · "rule the patterns, confirm the rest"
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
Omit the `Rejected` line when there's nothing rejected. Omit the `Applied from` line if no active rules were used. Never ask an open question — present what was decided and ask for a selection. Map bulk replies to `record --all` (above). Items they don't address are skipped. Polish isn't listed; it's logged with the group unless they say "skip polish".
|
|
194
|
+
|
|
195
|
+
## Reading the answer
|
|
196
|
+
|
|
197
|
+
| User picked | `--as` | What you do |
|
|
198
|
+
|---|---|---|
|
|
199
|
+
| Confirm | `accept` | Judge it. Logged in the archive. |
|
|
200
|
+
| Make it a rule | `rule` | Judge it. It enters `DECISIONS.md`. |
|
|
201
|
+
| Other: `skip` (or "not a decision") | `skip` | Dropped from the queue, recorded nowhere. |
|
|
202
|
+
| Other: a correction | `fix --to "…"` | Change the code to match, then judge it. What you did becomes a rejected alternative automatically. |
|
|
203
|
+
| Widget Skip button | — | Nothing. The queue waits. |
|
|
204
|
+
|
|
205
|
+
Never judge anything before the user answers.
|
|
206
|
+
|
|
207
|
+
## The JSON shape
|
|
208
|
+
|
|
209
|
+
Used by `record --pending` (queue) and `record` (record now):
|
|
210
|
+
|
|
211
|
+
```json
|
|
212
|
+
{
|
|
213
|
+
"change": "The Rescan button on the small Health check card is now just an icon",
|
|
214
|
+
"decision": "Half-width cards use icon-only action buttons",
|
|
215
|
+
"rationale": "A labelled button wrapped under the text on mobile",
|
|
216
|
+
"rejected": ["Full-label button — wrapped to a second row at phone width"],
|
|
217
|
+
"level": "pattern",
|
|
218
|
+
"trigger": "Audit page",
|
|
219
|
+
"scope": "pattern:compact-card-actions",
|
|
220
|
+
"dimension": "interaction",
|
|
221
|
+
"class": "judgment"
|
|
222
|
+
}
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
Two sentences, two jobs. **Write `change` as what a PM would say happened** — concrete, past tense, names the thing on the screen. **Write `decision` as the rule someone could follow** — general, present tense. The user judges from `change`; future sessions obey `decision`. Never cram both into one line.
|
|
226
|
+
|
|
227
|
+
`verdict` is omitted when queueing (`--pending`); include it (`accept | rule | fix`) only when recording directly.
|
|
228
|
+
|
|
229
|
+
For **mechanical** decisions, add evidence so Arbiter can check the claim against the files you wrote:
|
|
230
|
+
|
|
231
|
+
```json
|
|
232
|
+
"files": ["src/components/Button.tsx"],
|
|
233
|
+
"expect": { "present": ["brand-500"], "absent": ["#3B7BE0"] }
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
`present` strings must appear in at least one of the files; `absent` strings in none. Write `regex:<pattern>` for a pattern (`regex:#[0-9a-fA-F]{6}\b` = any hex colour). Arbiter reads only those files. If they contradict the claim, `record` exits `4` and writes nothing — fix the code, or correct the claim. Never pass `--unverified` without telling the user the claim didn't check out.
|
|
237
|
+
|
|
238
|
+
If the work belongs to a candidate (below), add `"candidate": "C-0001"` or pass `--candidate C-0001`.
|
|
239
|
+
|
|
240
|
+
If the session mentioned a ticket — a Linear or Jira key like `ENG-123`, a GitHub issue, a pasted tracker link — add `"ref": "<url or key>"` or pass `--ref`. It's how the board links each decision to the work it came from. Never ask for one; leave it out when nothing was mentioned. `--ref` on a bulk `--all` stamps every item.
|
|
241
|
+
|
|
242
|
+
- `change` — what happened, in plain words. One line. Required. This is what the person judging reads.
|
|
243
|
+
- `decision` — the same call as a rule someone could follow. Present tense. One line. This is what future sessions read. For `polish` it can repeat `change`.
|
|
244
|
+
- `level` — `feature | pattern | polish` (table above). Default is `pattern`; set it every time.
|
|
245
|
+
- `trigger` — the thing the user was working on, named the way they'd say it, at the grain they worked at: `Rescan button`, `Delete flow`, `Settings`, `Billing page`. Every decision from the same piece of work gets the **same** trigger — it's the grouping key and the heading they see.
|
|
246
|
+
- `rationale` — why it won. One line. Required.
|
|
247
|
+
- `rejected` — each alternative as `<option> — <why it lost>`. One line each. Empty array if there were none.
|
|
248
|
+
- `scope` — `pattern:<kebab-name>` for a recurring UI pattern (`destructive-confirm`, `empty-state`, `sheet-actions`) — this is the usual case. `file:<path>` only when it's genuinely about one screen. `global` when it applies everywhere.
|
|
249
|
+
- `dimension` — one of the seven above.
|
|
250
|
+
- `class` — `mechanical` if it could be checked against a token or lint rule (colours, spacing, type scale, radii); `judgment` otherwise. Most rules are judgment.
|
|
251
|
+
- `files` / `expect` — mechanical only. Name the files you touched and the literal strings that prove the claim.
|
|
252
|
+
- `paths` — mechanical rules only: where the rule applies, as directories or files (`["app/components", "app/(marketing)"]`). Sweep scans only these. A `pattern:` rule with no `paths` sweeps the whole project, including token definitions and reference HTML — name the directories.
|
|
253
|
+
|
|
254
|
+
The command prints JSON and exits:
|
|
255
|
+
|
|
256
|
+
- `0` — recorded. Note the `id`. If the output has a `sweep` block with violations, see **Sweep** below.
|
|
257
|
+
- `1` — invalid. Fix the payload and retry.
|
|
258
|
+
- `2` — **overlap**. Nothing was written. See below.
|
|
259
|
+
- `3` — `DECISIONS.md` is at its cap. Tell the user, and ask which existing rule this replaces.
|
|
260
|
+
- `4` — **contradicted**. The files don't match the claim. Nothing was written. Fix the code or the claim.
|
|
261
|
+
|
|
262
|
+
## Overlap
|
|
263
|
+
|
|
264
|
+
When `record` exits `2`, it found an active rule with the same scope or similar wording, and tells you which with a confidence marker (`exact` or `possible`). Present it as a selection, never an open question. With the widget:
|
|
265
|
+
|
|
266
|
+
- **header** — `Overlap`
|
|
267
|
+
- **question** — `"<new decision>" overlaps D-0007 · <existing decision> (exact — same scope)`
|
|
268
|
+
- **options** — `Replace D-0007` · `Keep both`
|
|
269
|
+
|
|
270
|
+
As text: the same two options on one line. Then re-run with `--supersedes D-0007` or `--keep-both`.
|
|
271
|
+
|
|
272
|
+
## Sweep — a new mechanical rule reaches backwards
|
|
273
|
+
|
|
274
|
+
When a mechanical rule with `expect.absent` is recorded, the output includes how much existing code already breaks it:
|
|
275
|
+
|
|
276
|
+
```json
|
|
277
|
+
"sweep": { "violations": 6, "files": 4, "command": "npx arbiter sweep D-0004" }
|
|
278
|
+
```
|
|
279
|
+
|
|
280
|
+
If violations are more than zero, add one line and offer a selection — never start editing on your own:
|
|
281
|
+
|
|
282
|
+
> Rule recorded. 6 existing violations in 4 files — **Fix now** · **Queue for review** · **Ignore**
|
|
283
|
+
|
|
284
|
+
- **Fix now** — run `npx arbiter sweep D-0004 --json`, edit each listed file to comply, then say what changed in one line.
|
|
285
|
+
- **Queue for review** — run `npx arbiter sweep D-0004 --queue`. Each file becomes a pending item; the user confirms it as an exception or asks for a fix later.
|
|
286
|
+
- **Ignore** — do nothing.
|
|
287
|
+
|
|
288
|
+
Judgment rules never sweep. Don't offer it for them.
|
|
289
|
+
|
|
290
|
+
## Screenshots — when the work changed a screen
|
|
291
|
+
|
|
292
|
+
**When a piece of work settles and it changed how a specific screen looks, take one picture of that screen.** Not after every iteration — once, when the work settles. Without asking.
|
|
293
|
+
|
|
294
|
+
Size is not the test. A polish fix usually lives on one screen and deserves a picture; a feature-level change is often systemic and may not have one. The test is: **can you point at a screen where this shows?**
|
|
295
|
+
|
|
296
|
+
- **No single screen to point at** — a font, a token, a global rule — no picture. The rule statement is the record, and `scope` already says how far it reaches. The exception is a change that alters how everything looks, like a spacing scale, a palette, or a nav that appears on every page: take one screen, set `scope` to `global` or `pattern:<name>` so the record says where it applies, and open the `change` line with "Across every screen," so nobody reads the picture as the whole story.
|
|
297
|
+
- **A still can't carry it** — motion, transitions, focus order, anything behavioural — no picture.
|
|
298
|
+
- **A state** — empty, loading, error, modal — only if you were already looking at it. Don't force a state to photograph it.
|
|
299
|
+
|
|
300
|
+
A picture isn't evidence of the change; there's one image and nothing to compare it against. It's a record of what the screen looks like now. That's why small cosmetic work earns one and a font swap doesn't.
|
|
301
|
+
|
|
302
|
+
**Name the piece of work after the screen it changed**, where the work honestly splits that way: `Settings — billing`, `Settings — profile`, rather than one `Settings build` covering four routes. One picture per piece of work is then one per screen, and the review reads screen by screen instead of one lump. Work that shouldn't be split — a flow across three steps, a nav change touching every page — stays one piece of work and gets one representative picture.
|
|
303
|
+
|
|
304
|
+
### Taking it
|
|
305
|
+
|
|
306
|
+
Your own screenshot tool hands the image back to you in the conversation; `arbiter snapshot` needs a **file on disk**. So write one:
|
|
307
|
+
|
|
308
|
+
```
|
|
309
|
+
chrome --headless --disable-gpu --screenshot=/abs/path/shot.png --window-size=1280,900 "http://localhost:3000/settings"
|
|
310
|
+
```
|
|
311
|
+
|
|
312
|
+
`chrome` may be `google-chrome`, `chromium`, or Edge (`msedge`) — one of them is on nearly every machine. If the project already uses Playwright or Puppeteer, use that instead; it's configured for this app already. Then attach it, naming the work exactly as its decisions named it (the `trigger`):
|
|
313
|
+
|
|
314
|
+
```
|
|
315
|
+
npx arbiter snapshot "Settings — billing" --file /abs/path/shot.png
|
|
316
|
+
```
|
|
317
|
+
|
|
318
|
+
Delete the temporary file afterwards. Never attach a picture of a blank page, a spinner, or an error screen — no picture is better than a wrong one.
|
|
319
|
+
|
|
320
|
+
### When you can't
|
|
321
|
+
|
|
322
|
+
Say so **once per session**, on its own line, whatever the check-in setting and whatever the size of the work — this is the one message that doesn't wait for a summary line. Name the reason, because each one has a different fix:
|
|
323
|
+
|
|
324
|
+
| Reason | Say |
|
|
325
|
+
|---|---|
|
|
326
|
+
| App isn't running | `No picture for Settings — billing: the app isn't running. Start it and say "snapshot settings" and I'll take one.` |
|
|
327
|
+
| No browser on this machine | `No picture for Settings — billing: no browser here to render it.` |
|
|
328
|
+
| Screen is behind a login | `No picture for Settings — billing: it's behind a login I can't get through.` |
|
|
329
|
+
| Screen needs data that isn't there | `No picture for Settings — billing: the screen needs data this environment doesn't have.` |
|
|
330
|
+
| You don't know where the app runs | `No picture for Settings — billing: I don't know the URL for this app.` |
|
|
331
|
+
|
|
332
|
+
Then offer the manual route, which is platform-specific — on macOS:
|
|
333
|
+
|
|
334
|
+
```
|
|
335
|
+
npx arbiter snapshot "Settings — billing" --capture
|
|
336
|
+
```
|
|
337
|
+
|
|
338
|
+
The user drags a rectangle over their screen and it's saved. **`--capture` is macOS only.** Anywhere else, say: save a screenshot yourself and run `npx arbiter snapshot "Settings — billing" --file shot.png`. Don't offer `--capture` off macOS — it will fail.
|
|
339
|
+
|
|
340
|
+
Once per session, not once per piece of work. The decisions stand without a picture; this is a statement, never a question.
|
|
341
|
+
|
|
342
|
+
Directions (below) are different: each candidate gets its own snapshot.
|
|
343
|
+
|
|
344
|
+
## Candidates — several directions for one thing
|
|
345
|
+
|
|
346
|
+
When you produce a screen or component that is one of several possible directions — the user asked to "try" something, or to see two or three options — register each as a candidate, silently:
|
|
347
|
+
|
|
348
|
+
```
|
|
349
|
+
npx arbiter candidate add "Settings — single page" --feature settings
|
|
350
|
+
npx arbiter candidate add "Settings — tabs" --feature settings
|
|
351
|
+
```
|
|
352
|
+
|
|
353
|
+
Queue that direction's decisions with `--candidate C-0001` so they stay attached.
|
|
354
|
+
|
|
355
|
+
**Snapshot it.** A candidate without a picture is half a record. If you have a browser tool and the app is running, open the screen you built, take a screenshot, save it to a file, and attach it:
|
|
356
|
+
|
|
357
|
+
```
|
|
358
|
+
npx arbiter candidate C-0001 --snapshot /path/to/shot.png
|
|
359
|
+
```
|
|
360
|
+
|
|
361
|
+
Do this without asking. If you can't (no browser tool, app not running), say so in the one-line summary and offer: `npx arbiter candidate C-0001 --capture` — the user drags a rectangle over whatever is on their screen and it's saved.
|
|
362
|
+
|
|
363
|
+
When the user picks one — "go with the single page", "the first one" — approve it with their reason in their words. The other directions for that feature are superseded automatically, reason retained:
|
|
364
|
+
|
|
365
|
+
```
|
|
366
|
+
npx arbiter candidate C-0001 --state approved --why "tabs hid the danger zone"
|
|
367
|
+
```
|
|
368
|
+
|
|
369
|
+
When they reject one outright: `--state rejected --why "…"`. Then one line: `C-0001 approved · C-0002 superseded`. `npx arbiter board` shows all of it.
|
|
370
|
+
|
|
371
|
+
Don't register a candidate for ordinary single-direction work. Candidates are for exploration, where the rejected branches are worth keeping. Ordinary work still gets a screenshot — see above — and still reaches the board, as a card named for the piece of work.
|
|
372
|
+
|
|
373
|
+
## Scanner findings
|
|
374
|
+
|
|
375
|
+
If the user points you at a design-lint or drift scanner's JSON output, don't act on the findings directly:
|
|
376
|
+
|
|
377
|
+
```
|
|
378
|
+
npx arbiter record --findings <file.json> --tool <scanner name>
|
|
379
|
+
```
|
|
380
|
+
|
|
381
|
+
Each finding becomes a pending item with a verdict to attach. Then one line: `12 findings queued — /arbiter to review, or npx arbiter review.`
|
|
382
|
+
|
|
383
|
+
## Publishing a board
|
|
384
|
+
|
|
385
|
+
When the user wants a board — *"publish this"*, *"share it"*, *"get me a link"* — run one command and paste back the link it prints:
|
|
386
|
+
|
|
387
|
+
```
|
|
388
|
+
npx arbiter publish
|
|
389
|
+
```
|
|
390
|
+
|
|
391
|
+
It goes to arbiter.design. Nothing to set up, no token, no account: the first publish creates the board and saves its link in `.arbiter/hosted.json` (commit it) and a publish token in `.arbiter/hosted.token` (git-ignored — a teammate sets `ARBITER_PUBLISH_TOKEN` to republish). Later publishes replace the board. **Don't ask where to publish, and don't ask for a token.** Only a self-hosted Arbiter takes `--to <url>`; `--to pages` is GitHub Pages instead.
|
|
392
|
+
|
|
393
|
+
*"Keep the board up to date"*, *"publish automatically"* — `npx arbiter publish --auto`. The board then republishes whenever the record changes: after judging, after a screen changes state, after a picture is attached. It needs no GitHub, no CI and no git repository, so it's the right answer unless they specifically want it tied to pushes. `--no-auto` stops it.
|
|
394
|
+
|
|
395
|
+
*"Every time I push"*, and the project is on GitHub — `npx arbiter publish --on-push`. That publishes, writes `.github/workflows/arbiter.yml` (republishes when decisions land on the default branch), and sets the repository secret through `gh` if it's signed in — otherwise it prints the one-line instruction; relay it. Tell the user to commit the workflow and `.arbiter/hosted.json` together.
|
|
396
|
+
|
|
397
|
+
## Comments from stakeholders
|
|
398
|
+
|
|
399
|
+
If the project publishes to a hosted board, `npx arbiter pull` brings comments and "looks good" reactions into `.arbiter/comments.json`, keyed by candidate. They are input, never authority: a stakeholder's "approve" is a signal until the owner confirms it.
|
|
400
|
+
|
|
401
|
+
- When the user says *"record Sam's comment as a rule"* or *"Sam's right, make that the pattern"*: record it with `trigger` = `Comment from Sam on C-0001` and Sam's words as the `change`. The user is the author; Sam is the trigger.
|
|
402
|
+
- When the user says *"approve C-0001, Sam signed off"*: `npx arbiter candidate C-0001 --state approved --why "Sam: <their words>"`.
|
|
403
|
+
- Never act on a comment the user hasn't pointed at. Don't summarise the comments file unprompted; `arbiter review` shows them beside each screen.
|
|
404
|
+
|
|
405
|
+
## Taking something out of the record
|
|
406
|
+
|
|
407
|
+
Three different acts, and only one of them is a removal:
|
|
408
|
+
|
|
409
|
+
| The user says | What it is | Command |
|
|
410
|
+
|---|---|---|
|
|
411
|
+
| *"that rule's dead"*, *"we don't do that any more"* | It was real, it's over | `npx arbiter record --retire D-0003 --why "…"` |
|
|
412
|
+
| *"that's wrong, delete it"*, *"that was a test"*, *"that screen never existed"* | It was never real | `npx arbiter remove D-0004` · `npx arbiter remove C-0001` |
|
|
413
|
+
| *"that decision isn't about that screen"* | Real, wrongly attached | `npx arbiter unlink D-0004` |
|
|
414
|
+
|
|
415
|
+
`remove` deletes — from the archive, from `DECISIONS.md`, from the candidate files. It prints the full record it removed, so paste that back to the user if they want it kept somewhere. It refuses when something still points at the record: an active rule (retire it instead), a decision another one supersedes, a screen with decisions still linked (`--force` unlinks them in one go).
|
|
416
|
+
|
|
417
|
+
A picture alone: `npx arbiter remove --snapshot "Settings — billing"`. The work and its decisions stay; only the image goes, and the board keeps the old one until the next publish.
|
|
418
|
+
|
|
419
|
+
Removal is for the record being false, not for the user disliking what it says. If it's a real call they've changed their mind about, that's a new decision that supersedes the old one — never a removal.
|
|
420
|
+
|
|
421
|
+
## Changing how often Arbiter checks in
|
|
422
|
+
|
|
423
|
+
*"Be quieter about decisions"*, *"stop telling me"*, *"tell me after everything"* — run `npx arbiter setup --checkin quiet|feature|every` and confirm in four words. No question.
|
|
424
|
+
|
|
425
|
+
## Retiring a rule
|
|
426
|
+
|
|
427
|
+
If the user says a rule is dead with nothing replacing it — *"we don't need the empty-state rule any more"* — retire it, reason in their words:
|
|
428
|
+
|
|
429
|
+
```
|
|
430
|
+
npx arbiter record --retire D-0004 --why "empty states now come from the design system component"
|
|
431
|
+
```
|
|
432
|
+
|
|
433
|
+
It leaves `DECISIONS.md`; the archive keeps it and the reason. Don't retire on your own judgment.
|
|
434
|
+
|
|
435
|
+
## When invoked as `/arbiter`
|
|
436
|
+
|
|
437
|
+
- `/arbiter` alone — read `npx arbiter rules --pending --json` and present everything queued, widget or text format above, judging each with `record P-xxxx --as …`. If nothing is queued, say so in one line.
|
|
438
|
+
- `/arbiter <text>` — treat the text as a direct request: record it, per the next section.
|
|
439
|
+
|
|
440
|
+
## When the user asks directly
|
|
441
|
+
|
|
442
|
+
If the user says something like *"record that"*, *"make that a rule"*, *"reject the tabs, going with a single page"*, *"always do X from now on"* — mid-conversation, with or without a build:
|
|
443
|
+
|
|
444
|
+
1. Turn what they said into a `decision` and a `rationale`. Anything they rejected goes in `rejected`. Use their wording where you can.
|
|
445
|
+
2. Default `verdict` to `rule`. Use `accept` only if they signal a one-off (*"just this once"*, *"an exception"*, *"for this screen only"*).
|
|
446
|
+
3. Run `record`. Do not ask for confirmation — they already told you.
|
|
447
|
+
4. Confirm in two lines: the id, then the decision as recorded so they can catch a bad phrasing.
|
|
448
|
+
|
|
449
|
+
If it overlaps, follow the overlap flow above.
|
|
450
|
+
|
|
451
|
+
## After recording
|
|
452
|
+
|
|
453
|
+
One line:
|
|
454
|
+
|
|
455
|
+
```
|
|
456
|
+
Recorded D-0010 (accept), D-0011 (rule), +3 polish · DECISIONS.md: 6 of 40
|
|
457
|
+
```
|
|
458
|
+
|
|
459
|
+
## Never
|
|
460
|
+
|
|
461
|
+
- Edit `DECISIONS.md` or `.arbiter/archive.md` by hand. Always go through `record`, `remove` or `unlink`.
|
|
462
|
+
- Remove a record because the user disagrees with it. Removal is for records that are false; a call they've changed their mind about is a new decision that supersedes the old one.
|
|
463
|
+
- Record something the user didn't select.
|
|
464
|
+
- Ask the user to write a rationale. Draft it; they correct it.
|
|
465
|
+
- Re-try an alternative that `DECISIONS.md` lists as rejected.
|
|
466
|
+
- Ask about polish. It's logged with the group.
|
|
467
|
+
- Cram Change, Pattern and Rejected into one sentence. Three labelled lines, always.
|
|
468
|
+
- Mention Arbiter at the end of a reply more than once per session, or as a question. Once, after feature-level work, as a statement of what was queued. Then silence until asked.
|