arbiterdesign 0.1.8 → 0.1.10

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 (42) hide show
  1. package/README.md +288 -242
  2. package/dist/area-names.js +120 -0
  3. package/dist/areas.js +131 -0
  4. package/dist/board-types.js +9 -0
  5. package/dist/candidates.js +7 -1
  6. package/dist/commands/areas.js +153 -0
  7. package/dist/commands/candidate.js +4 -2
  8. package/dist/commands/decision.js +100 -0
  9. package/dist/commands/export.js +88 -125
  10. package/dist/commands/init.js +198 -73
  11. package/dist/commands/invite.js +67 -0
  12. package/dist/commands/publish.js +4 -4
  13. package/dist/commands/record.js +133 -8
  14. package/dist/commands/remove.js +1 -1
  15. package/dist/commands/rename.js +25 -11
  16. package/dist/commands/review.js +458 -78
  17. package/dist/commands/rules.js +22 -3
  18. package/dist/commands/setup.js +1 -0
  19. package/dist/commands/snapshot.js +24 -2
  20. package/dist/commands/sweep.js +1 -1
  21. package/dist/commands/update.js +5 -0
  22. package/dist/comments.js +24 -0
  23. package/dist/format.js +112 -7
  24. package/dist/handoff.js +286 -0
  25. package/dist/hook.js +82 -0
  26. package/dist/hosted.js +50 -17
  27. package/dist/index.js +99 -37
  28. package/dist/localboard.js +219 -0
  29. package/dist/lock.js +134 -0
  30. package/dist/overlap.js +16 -0
  31. package/dist/pictures.js +4 -0
  32. package/dist/settings.js +107 -0
  33. package/dist/store.js +164 -8
  34. package/dist/verify.js +4 -2
  35. package/dist/work.js +110 -1
  36. package/package.json +3 -2
  37. package/templates/SKILL.md +146 -51
  38. package/templates/board/board.css +2 -0
  39. package/templates/board/board.js +25 -0
  40. package/templates/board/index.html +15 -0
  41. package/templates/hooks/arbiter-board.cjs +50 -0
  42. package/templates/review.html +0 -757
package/README.md CHANGED
@@ -1,11 +1,11 @@
1
1
  <div align="center">
2
2
 
3
3
  <picture>
4
- <source media="(prefers-color-scheme: dark)" srcset=".github/assets/banner-dark.svg">
5
- <img src=".github/assets/banner-light.svg" alt="arbiter. Design decisions that stick. Reasons that survive." width="100%">
4
+ <source media="(prefers-color-scheme: dark)" srcset=".github/assets/banner-dark.png">
5
+ <img src=".github/assets/banner-light.png" alt="arbiter. Shared design decision memory for your team and agents." width="100%">
6
6
  </picture>
7
7
 
8
- ### The decision layer for agent-built UI
8
+ ### Arbiter: open-source design decision memory
9
9
 
10
10
  [![npm](https://img.shields.io/npm/v/arbiterdesign?style=flat-square&color=171717&label=npm)](https://www.npmjs.com/package/arbiterdesign)
11
11
  [![Status: beta](https://img.shields.io/badge/status-beta-171717?style=flat-square)](https://arbiter.design/changelog)
@@ -16,28 +16,26 @@
16
16
 
17
17
  **[Website](https://arbiter.design)** · **[Live demo](https://arbiter.design/p/acme)** · **[Start guide](https://arbiter.design/get-started)** · **[Changelog](https://arbiter.design/changelog)**
18
18
 
19
- [Quick start](#quick-start) · [How it works](#how-it-works) · [Share with your team](#share-it-with-your-team) · [Commands](#commands) · [FAQ](#faq)
19
+ [How it works](#how-it-works) · [Share with your team](#share-it-with-your-team) · [FAQ](#faq) · [Reference](#reference)
20
20
 
21
21
  </div>
22
22
 
23
23
  <br>
24
24
 
25
- ## What is Arbiter?
25
+ Arbiter turns the design decisions made while you build into rules your agent follows and reasons your team can find. It works with Claude Code and Cursor.
26
26
 
27
- Arbiter is a decision record for teams building UI with AI agents like Claude Code and Cursor.
28
-
29
- As your agent builds, it writes down the design calls it makes: what it chose, what it beat, and why. You approve them in seconds. The agent follows them next time, and everyone on your team can read them.
30
-
31
- It's documentation that writes itself.
27
+ As your agent builds, Arbiter writes down each design call: what changed, what it beat, and why. You approve them in seconds, in chat or on your board. The agent follows them next time, and everyone on your team can read them.
32
28
 
33
29
  <p align="center">
34
30
  <picture>
35
- <source media="(prefers-color-scheme: dark)" srcset=".github/assets/board-dark.png">
36
- <img src=".github/assets/board-light.png" alt="A screen on the Arbiter board: the Settings page, the reason it won, who decided it, and the tabs version it replaced." width="80%">
31
+ <source media="(prefers-color-scheme: dark)" srcset=".github/assets/hero-dark.gif">
32
+ <img src=".github/assets/hero-light.gif" alt="A tour of the Arbiter board. The Settings screen, approved and decided by Sam, scrolls down to the decisions made on it and the tabs it beat. Then Design rules, then the Overview of every screen." width="100%">
37
33
  </picture>
38
34
  </p>
39
35
 
40
- <p align="center"><sub>A screen on the board: what was decided, who decided it, and what it beat. <a href="https://arbiter.design/p/acme">Try the live demo</a>.</sub></p>
36
+ <p align="center"><sub>Your board: every screen, what was decided on it, who decided, and what it beat. <a href="https://arbiter.design/p/acme">Click around the live demo</a>.</sub></p>
37
+
38
+ <br>
41
39
 
42
40
  ## What you get
43
41
 
@@ -54,7 +52,9 @@ Every design decision and change is recorded as it's made: what was chosen, what
54
52
  ### Visibility
55
53
 
56
54
  **See every decision in one place.**<br>
57
- Publish a board so you and your team can see each screen, the decisions made on it, and what lost.
55
+ Your board shows each screen, the decisions made on it, and what lost. It runs on your machine, and you share it when your team should see it too.
56
+
57
+ <br>
58
58
 
59
59
  ## Why Arbiter
60
60
 
@@ -67,53 +67,61 @@ Building with an agent means making product decisions all day, and nobody keeps
67
67
  Arbiter fixes that without adding work:
68
68
 
69
69
  - 📄 **It's just files in your repo.** Rules live in `DECISIONS.md`. Plain markdown, reviewed in pull requests like everything else.
70
- - 🤫 **It stays out of the way.** No popups while you iterate. The agent queues what it decided and you judge it when you're ready.
71
- - 🧭 **It informs, it doesn't enforce.** Rules shape what the agent builds. Nothing blocks a build.
70
+ - 🤫 **It stays out of the way.** No popups while you iterate. The agent queues what it decided and you judge it when you're ready, in chat or on your board.
71
+ - 🧭 **It informs, it doesn't enforce.** Rules shape what the agent builds. When your request goes against one, it asks once, then builds what you choose. Nothing blocks a build.
72
72
 
73
- ## Quick start
73
+ <br>
74
74
 
75
- ```bash
76
- npx arbiterdesign init
77
- ```
75
+ ## How it works
78
76
 
79
- > [!NOTE]
80
- > On Windows, in PowerShell, type `npx.cmd` instead of `npx`, here and in every command after. PowerShell blocks plain `npx` out of the box, with "running scripts is disabled on this system". Command Prompt and Git Bash don't.
77
+ <table>
78
+ <tr>
79
+ <td width="33%" valign="top">
81
80
 
82
- That's the whole install. Run it in the folder your agent works in, or ask the agent to run it. It detects Claude Code or Cursor, teaches your agent the protocol, and adds `arbiterdesign` to your devDependencies, which is what makes the shorter `npx arbiter` work from then on. Running it twice changes nothing.
81
+ <picture>
82
+ <source media="(prefers-color-scheme: dark)" srcset=".github/assets/how-chat-dark.gif">
83
+ <img src=".github/assets/how-chat-light.gif" alt="A Claude Code chat. You ask for the settings page, the agent reads 12 rules and builds it, you try tabs and go back to one page. Arbiter offers a review, and the one-page decision becomes rule D-0006." width="100%">
84
+ </picture>
83
85
 
84
- It asks one question, once: how often the agent should check in about decisions while you work. If the agent ran the install, it asks you in chat instead.
86
+ **1. Build, then review in chat**
85
87
 
86
- No `package.json` in the project? Add `arbiterdesign` as a dev dependency yourself. New to the terminal? Follow the [step-by-step guide](https://arbiter.design/get-started).
88
+ Ask for a screen as you always do. Your agent reads your rules first. When decisions pile up, it asks: confirm each one, make it a rule, or type what it should be.
87
89
 
88
- If you want the agent to take screenshots of the screens it changes, tell it where your app runs:
90
+ </td>
91
+ <td width="33%" valign="top">
89
92
 
90
- ```bash
91
- npx arbiter setup --app http://localhost:3000
92
- ```
93
+ <picture>
94
+ <source media="(prefers-color-scheme: dark)" srcset=".github/assets/how-beat-dark.gif">
95
+ <img src=".github/assets/how-beat-light.gif" alt="The board: the approved single-page Settings, then the rejected tabs and accordion versions, each with the reason it lost." width="100%">
96
+ </picture>
93
97
 
94
- Then build UI the way you normally do. Arbiter picks it up from there.
98
+ **2. Review on your board**
95
99
 
96
- <details>
97
- <summary><b>The files Arbiter keeps in your repo</b></summary>
98
- <br>
100
+ Or open your board with `npx arbiter review`: every change with its picture and what it beat. It runs on your machine, and nothing is uploaded until you publish.
99
101
 
100
- | File | What it's for |
101
- |---|---|
102
- | `DECISIONS.md` | Your active rules, grouped by type. Capped at 40. The agent reads this before UI work. |
103
- | `.arbiter/archive.md` | Every decision ever made, append-only. Never loaded into the agent. |
104
- | `.arbiter/pending.md` | Decisions the agent queued that you haven't judged yet. |
105
- | `.arbiter/candidates/` | One page per generated screen or direction: its state, snapshot, decisions, and why it lost. |
106
- | `.arbiter/work/` | One picture per piece of work, when the agent could take one. `publish` carries it to the board. |
107
- | `.arbiter/hosted.json`, `comments.json`, `requests.json` | Which hosted board is yours, and the comments and change requests `pull` brings back. |
108
- | `CANDIDATES.md` | Index of candidates. Only written when `destination` is `git`. |
109
- | `.claude/skills/arbiter/SKILL.md` or `.cursor/rules/arbiter.mdc` | Tells the agent to check your rules before UI work, ask when something clashes with one, then surface its decisions and record what you confirm. |
110
- | `arbiter.json` | Config. `app.url` is where the agent opens screens for pictures. |
111
- | `AGENTS.md` | One line appended, pointing at `DECISIONS.md`. It tells the agent to ask before building when your request or the design system goes against a rule, and that a rule written as an exception beats the design system. Merged, never overwritten. A newer `init` refreshes only that line. |
112
- | `CLAUDE.md` / `.cursor/commands/arbiter.md` | The same pointer for Claude Code, and an `/arbiter` command for Cursor. |
102
+ </td>
103
+ <td width="33%" valign="top">
113
104
 
114
- </details>
105
+ <picture>
106
+ <source media="(prefers-color-scheme: dark)" srcset=".github/assets/how-exceptions-dark.gif">
107
+ <img src=".github/assets/how-exceptions-light.gif" alt="The Design rules page: a rule with one exception. Clicking it shows where the rule doesn't apply and why." width="100%">
108
+ </picture>
115
109
 
116
- ## How it works
110
+ **3. Rules and exceptions**
111
+
112
+ Rules go into `DECISIONS.md`, and your agent follows them from then on. When one screen needs to differ, keep it as an exception.
113
+
114
+ </td>
115
+ </tr>
116
+ </table>
117
+
118
+ You can also just say it in chat: *"make that a rule"*, or *"reject the tabs, going with a single page."*
119
+
120
+ <details>
121
+ <summary><b>The whole loop, as a diagram</b></summary>
122
+ <br>
123
+
124
+ In your repo, the agent builds, queues its design calls, and you judge them. Rules go into `DECISIONS.md` for the next session. With Arbiter Team, publish the board and your team can comment or ask for a change, which `pull` brings back.
117
125
 
118
126
  ```mermaid
119
127
  flowchart TB
@@ -140,185 +148,201 @@ flowchart TB
140
148
  linkStyle 7,8 stroke:#2da44e
141
149
  ```
142
150
 
143
- 1. **You ask for a screen.** The agent reads `DECISIONS.md` first. After a sizeable piece of work it names up to three rules that shaped it, like *Following D-0001 (removing asks first, no undo bar)*, so you can see the record working.
144
- 2. **You iterate.** The agent says nothing about decisions while you're going back and forth. Each version you move past becomes a rejected alternative on the one that replaced it.
145
- 3. **You move on.** The agent queues the design calls it made, sized as `feature`, `pattern` or `polish`. When 5 are waiting (then 10, 15…) it asks if you want to review them. Polish doesn't count toward that. Only real choices get queued: things you asked for, things you corrected, and options the agent actually weighed. Its habits don't.
146
- 4. **You judge them when you want.** In chat with `/arbiter`, or in the browser with `npx arbiter review`.
147
- 5. **Rules go into `DECISIONS.md`.** Everything you judged goes into the archive. Skipped items disappear. The next session reads the new rules.
148
- 6. **You share it.** `npx arbiter publish` puts the board online, so your team can see each screen, what was decided and why. They can comment or request a change, and `npx arbiter pull` brings that back for you to answer. More in [Share it with your team](#share-it-with-your-team).
149
-
150
- You can also just say it: *"make that a rule"*, or *"reject the tabs, going with a single page."* The agent records it without asking.
151
+ </details>
151
152
 
152
- ### What a rule looks like
153
+ <details>
154
+ <summary><b>What a rule looks like in <code>DECISIONS.md</code></b></summary>
155
+ <br>
153
156
 
154
157
  ```markdown
155
- ### D-0001 · Destructive actions confirm in a modal, never inline
158
+ ### D-0006 · Settings live on one scrolling page with a section nav, not tabs
156
159
 
157
- - **Change:** The delete-project link now opens a confirm modal
158
- - **Rationale:** Inline confirms get clicked through; a modal forces the pause.
160
+ - **Change:** Settings moved from four tabs to one page with a section nav
161
+ - **Rationale:** People look for a setting with ⌘F, and tabs hid it
159
162
  - **Rejected:**
160
- - Inline confirm — clicked through without reading
161
- - **Trigger:** Delete-project flow used an inline "Are you sure?" link
162
- - **Scope:** pattern:destructive-confirm · **Dimension:** interaction · **Level:** pattern
163
+ - Tabs, one per section — they hid settings from ⌘F
164
+ - **Trigger:** Settings build
165
+ - **Scope:** pattern:settings-layout · **Dimension:** structure · **Level:** pattern · **Class:** judgment · **Verdict:** rule
166
+ - **Author:** sam · **Date:** 2026-10-27T09:00:00Z · **Commit:** — · **Supersedes:** —
163
167
  ```
164
168
 
165
- ### Judging the queue
169
+ </details>
166
170
 
167
- Each item reads as **Change** (what happened), **Pattern** (the rule) and **Rejected** (what lost). For each one you pick:
171
+ <br>
168
172
 
169
- | Action | What happens |
170
- |---|---|
171
- | **Confirm** | Goes into the archive as a one-off. |
172
- | **Make it a rule** | Goes into `DECISIONS.md`. The agent follows it from now on. |
173
- | **Skip** | Thrown away. |
174
- | **Fix** | Type a correction and it's recorded your way. |
173
+ ## When something clashes with a rule
175
174
 
176
- Polish items come as one line per group with a single **Confirm all**. If an item goes against an existing rule, Arbiter says so (*Clashes with D-0009*) and asks which one wins: **Follow D-0009**, **Replace D-0009**, or **Keep as exception**.
175
+ The agent asks before building, once, and always the same way: what it found, one question, and two or three options plus Other. It only speaks up when one of your rules is involved.
177
176
 
178
- > [!TIP]
179
- > Too chatty? `npx arbiter setup --checkin quiet` turns off the check-ins. `--checkin every` does the opposite and mentions a rule every time one changed something.
177
+ - **You ask for something a rule goes against.** *"Do you still want the undo bar?"* Follow the rule, make a one-off exception, or replace the rule.
178
+ - **A rule goes against your design system.** *"Which should the empty list follow?"* Retire the rule, or reword it as an exception to the design system.
179
+ - **Two rules disagree.** *"Which should they follow?"* Retire one, or reword both to say what each is for.
180
+ - **Other screens don't follow a rule you just made.** *"Update Events too?"* Update them, review it later, or keep them as exceptions.
181
+ - **A rule needs something your design system doesn't have.** *"Build one?"* A short plan first, this screen only, or review it later.
180
182
 
181
- ### When something clashes with a rule
183
+ Your design system (`DESIGN.md`, your pattern and component docs, and your shared components) outranks a plain rule. A rule written as an exception outranks the design system. Arbiter never edits your design system and never checks your work against it.
182
184
 
183
- The agent asks before building, once, and always in the same shape: *Before building, Arbiter found a clash*, the facts, one question, and two or three options plus Other. It only speaks up when a rule is involved.
185
+ <br>
184
186
 
185
- | Clash | It asks | Your answer goes into the record as |
186
- |---|---|---|
187
- | You ask for something a rule goes against | *Do you still want the undo bar?* | Nothing (it follows the rule), a one-off exception, or a new rule replacing the old one |
188
- | A rule goes against the design system | *Which should the empty list follow?* | The rule retired, or reworded as *Exception to the design system: …* |
189
- | Two rules disagree (only when both can't be true) | *Which should they follow?* | The other one retired, or both reworded to say what each is for |
190
- | Other screens don't follow a rule you just built to (asked after building) | *Update Events too?* | Nothing (it updates them), a clash on your review list, or an exception |
191
- | A rule needs something the design system doesn't have | *Build one?* | A short plan first, then this screen only, or a clash on your review list |
187
+ ## Where Arbiter fits
192
188
 
193
- The design system means `DESIGN.md`, pattern and component docs, and the shared components. It ranks above a plain rule, so it's the first option when the two disagree. A rule written as an exception beats it, and the agent follows that rule without asking.
189
+ Your agent has good taste and your design system, and still drifts from what your team decided. Arbiter adds the layer that stops the drift: your own design calls, with the reason.
190
+
191
+ | Layer | Where it lives | What it holds |
192
+ |---|---|---|
193
+ | Taste packs | Design skills, taste packs | Generic taste, anyone's |
194
+ | References | Design references, Mobbin | Design references and judgment |
195
+ | Written law | `DESIGN.md`, `CLAUDE.md`, `tokens.json` | Defined tokens, components and usage |
196
+ | **Case law** | **`DECISIONS.md`, kept by Arbiter** | **Your team's calls, with a reason, an owner and a date** |
197
+ | Examples | Storybook, Figma | Your approved screens and code |
194
198
 
195
- The agent never edits the design system, never adds to the shared components to fit a rule without asking, and never checks your work against it. That stays with your own tooling.
199
+ <br>
196
200
 
197
201
  ## Share it with your team
198
202
 
199
- ### The hosted board
203
+ Your board is private to you. To share it, use **Share board** at the top of your board, or the same two options here.
200
204
 
201
- ```bash
202
- npx arbiter publish
203
- ```
205
+ ### A read-only copy
204
206
 
205
- Puts your board online at [arbiter.design](https://arbiter.design) and prints a share link. Nothing to set up. People sign in with a magic link and can comment, say "looks good", or request a change on any screen. See what one looks like in the [live demo](https://arbiter.design/p/acme).
207
+ Free, and nothing goes to Arbiter. Export your board as a folder anyone can open from disk or put on any static host:
206
208
 
207
- ```bash
208
- npx arbiter pull
209
+ ```
210
+ npx arbiter export
209
211
  ```
210
212
 
211
- Brings their comments back into your repo, where `arbiter review` shows them next to each screen.
213
+ Or put it on your own GitHub Pages site with `npx arbiter publish --to pages`.
212
214
 
213
- Git stays the source of truth. The service only holds the latest board and its comments, and only `publish` and `pull` ever touch the network. A board holds up to 100 pictures (25 MB); a picture that doesn't fit is left off and `publish` says so.
215
+ ### Arbiter Team (early access)
214
216
 
215
- **Keep it current automatically:**
217
+ A private board on arbiter.design where your team comments, says "looks good", and requests changes. Teammates sign in with an email link, and there's nothing to install. Arbiter Team is in early access, by invitation: [request early access](https://arbiter.design/plans).
216
218
 
217
- - `npx arbiter publish --auto` republishes whenever the record changes. Works anywhere: no GitHub, no CI, no repo needed. If a republish fails (offline, service down) the command still succeeds and tells you the board is behind. `--no-auto` turns it off.
218
- - `npx arbiter publish --on-push` writes a GitHub Actions workflow that republishes when decisions land on your default branch, and sets the `ARBITER_PUBLISH_TOKEN` secret through `gh` if you're signed in. Commit the workflow along with `.arbiter/hosted.json`.
219
+ <details>
220
+ <summary><b>Once you're in</b></summary>
221
+ <br>
219
222
 
220
- **Keep it private, or take it down:**
223
+ The first time, publish with the invite code you were sent: `npx arbiter publish --invite <code>`. It puts your board online and gives you a link. It's unlisted and never indexed. After that, `npx arbiter publish` updates the same board, with no code.
221
224
 
222
- - `npx arbiter publish --password` puts the board behind a password. It makes up a strong one and prints it once, so send it with the link. `--password "<yours>"` sets your own (8 characters or more), `--no-password` takes it off, and a plain `publish` leaves it as it is.
223
- - `npx arbiter unpublish --yes` deletes the board, its pictures and its comments from the service, saving the comments into `.arbiter/comments.json` first. Without `--yes` it only says what it would delete.
224
- - Lost the project folder, so you can't run it? Use **Report or remove this board** at the bottom of the board, and it's taken down by hand.
225
+ `npx arbiter pull` brings comments and change requests back into your project. A comment is just input. A change request gets a proper answer: you reply in chat with `/arbiter` (apply it, apply it with a tweak, or decline with a reason), the agent makes the change, and your next `publish` shows them what happened. Nothing is applied without your yes, and the board never writes to your project on its own.
225
226
 
226
- ### Change requests
227
+ - **Keep it current.** `npx arbiter publish --auto` republishes whenever the record changes. `--on-push` sets up a GitHub Action that republishes when decisions land on your default branch.
228
+ - **Keep it private.** `npx arbiter publish --password` puts it behind a password and prints one for you to send with the link.
229
+ - **Take it down.** `npx arbiter unpublish --yes` deletes the online copy and its comments, after saving the comments into your project.
227
230
 
228
- A comment is just input. **Request change** is different: someone wants something changed, so it gets a proper answer.
231
+ Your project stays the source of truth. Only `publish`, `pull` and `unpublish` talk to the online service.
229
232
 
230
- 1. `npx arbiter pull` turns each request into `R-0001` in `.arbiter/requests.json`. Commit it so everyone sees the same answers.
231
- 2. You answer in chat with `/arbiter`, or on the **Requests** tab of `arbiter review`:
232
- - **Apply**: `record R-0001 --as apply`
233
- - **Apply, but…**: `record R-0001 --as apply --to "keep the tab, make the button red"`
234
- - **Decline**: `record R-0001 --as decline --why "…"` (a reason is required, since the requester reads it)
235
- 3. The agent makes the change. Approving from chat makes it right away; approving from the review page makes it at the next `/arbiter`.
236
- 4. `publish` sends the answer back. The requester sees *Open*, *Approved*, *Applied* (with what changed) or *Declined* (with the reason).
233
+ </details>
237
234
 
238
- > [!NOTE]
239
- > Nothing gets applied without the owner saying yes, and the board never writes to git. Requests come in through `pull` and answers go out through `publish`.
235
+ <br>
236
+
237
+ ## Under the hood
238
+
239
+ It's just files in your project. You own them, and they're reviewed in pull requests like everything else.
240
240
 
241
241
  <details>
242
- <summary><b>More on requests</b></summary>
242
+ <summary><b>The files Arbiter keeps</b></summary>
243
243
  <br>
244
244
 
245
- - Pulling twice never creates the same request twice. If the requester deletes it on the board before it's made, the next pull takes it off the queue and says so.
246
- - Only an approved request can be applied. A change the owner hasn't said yes to is refused.
247
- - Removing the last decision that applied a request reopens it for a fresh answer. The agent never remakes it unasked.
248
- - A screen or decision with a request waiting on it can't be removed until the request is declined or applied.
249
- - Display names and comment text come from outside the project, so neither is trusted. Names arrive as a single line, and nothing they contain can add a line, entry or field to the record.
245
+ | File | What it's for |
246
+ |---|---|
247
+ | `DECISIONS.md` | Your active rules, grouped by type. 40 at most by default, or set your own. The agent reads this before UI work. Notes you add by hand are kept. Already have a `DECISIONS.md` of your own? Arbiter leaves it alone and keeps your design rules in `DESIGN-DECISIONS.md` instead. |
248
+ | `.arbiter/archive.md` | Every decision ever made, append-only. Never loaded into the agent. |
249
+ | `.arbiter/pending.md` | Decisions the agent queued that you haven't judged yet, in chat or on the board. |
250
+ | `.arbiter/candidates/` | One page per competing direction: its state, picture, decisions, and why it lost. |
251
+ | `.arbiter/work/` | A picture per piece of work, and the ones before it, so the board shows how it got there. |
252
+ | `.arbiter/areas.json` | The folders you make for areas in the board's side nav. |
253
+ | `.arbiter/hosted.json`, `comments.json`, `requests.json` | Which online board is yours, and the comments and change requests `pull` brings back. |
254
+ | `CANDIDATES.md` | Index of candidates. Only written when `destination` is `git`. |
255
+ | `.claude/skills/arbiter/SKILL.md` or `.cursor/rules/arbiter.mdc` | Tells the agent to check your rules before UI work, ask when something clashes with one, surface its decisions after, record what you confirm, and pick up what you judged on the board. |
256
+ | `arbiter.json` | Settings: when the agent checks in, the rule cap, where your app runs for pictures. |
257
+ | `AGENTS.md` | One line appended, pointing at `DECISIONS.md`. It tells the agent to ask before building when your request or the design system goes against a rule, and that a rule written as an exception beats the design system. Merged, never overwritten. |
258
+ | `CLAUDE.md` / `.cursor/commands/arbiter.md` | The same pointer for Claude Code, and an `/arbiter` command for Cursor. |
250
259
 
251
260
  </details>
252
261
 
253
- ### Other ways to share
262
+ <br>
254
263
 
255
- - **Static export.** `npx arbiter export` writes `arbiter-export/`: one `index.html` plus snapshots, no server, no JavaScript. Drop it on any static host. It's a read-only view: each screen, its state, who approved it, why the others lost, and what was decided in plain words.
256
- - **GitHub Pages.** With `"destination": "git"` in `arbiter.json`, every candidate change also writes the export to `docs/arbiter/`. Turn on Pages for the `docs` folder once and the board lives at `https://<owner>.github.io/<repo>/arbiter/`. `npx arbiter publish --to pages` does the whole setup in one go.
264
+ ## FAQ
257
265
 
258
- ## Screenshots
266
+ <details>
267
+ <summary><b>What counts as a decision?</b></summary>
259
268
 
260
- The agent takes one picture per piece of work, when the work settles and it changed how a specific screen looks.
269
+ A call the agent made where a reasonable alternative existed: layout, flow, wording, states, what happens on error, and what it chose over. Not code details like imports, file names or plumbing. Each one reads Change, Rule, Rejected.
261
270
 
262
- - **Gets a picture:** layout, wording or visual changes to one screen. Even a small pattern change counts.
263
- - **Doesn't:** font or token changes (no single screen to show), motion and behaviour (a still can't show it), and polish (it never reaches the board).
271
+ </details>
264
272
 
265
- The agent renders pictures with a headless browser. If it can't (no browser, app not running, screen behind a login) it tells you once and says why. On macOS, `--capture` lets you drag-select a picture yourself; elsewhere, save one and pass `--file`.
273
+ <details>
274
+ <summary><b>How do I set it up?</b></summary>
266
275
 
267
- > [!TIP]
268
- > Name each piece of work after the screen it changed, like `Settings, billing` instead of one `Settings build` across four routes. Then one picture per piece of work means one per screen.
276
+ One command, in the folder your agent works in. In the terminal you already use with Claude Code or Cursor, type `npx arbiterdesign init`, or ask the agent to run it. It adds a few plain files to the project and a one-line note telling the agent to read the rules before UI work. Nothing to sign up for, nothing to configure. From the next session, the agent records as it goes. When you want to share your board, `npx arbiter export` makes a read-only copy, and Arbiter Team (early access) gives your team a private link. Step by step, with what you'll see: [Get started](https://arbiter.design/get-started).
269
277
 
270
- Named it something else first? `arbiter rename "Settings build" "Settings, billing"` moves its decisions, its picture and its comments on the board to the new name.
278
+ </details>
271
279
 
272
- Cards without a picture show an icon of the kind of change, so the board never looks broken. To make sure missing pictures still get noticed, `record` tells the agent the command to add one, the review page marks the group "No picture", and `publish` lists the cards that are missing one.
280
+ <details>
281
+ <summary><b>Will it interrupt me, or bury me in reviews?</b></summary>
273
282
 
274
- ## Keeping the record honest
283
+ No. Decisions queue quietly while you work and come up in one line when you move on. One-off fixes aren't recorded at all, so you only judge calls that matter.
275
284
 
276
- ### Verify and sweep
285
+ </details>
277
286
 
278
- A mechanical rule (a hex colour ban, say) can name the `files` it applies to and what should be `present` in or `absent` from them. Use `regex:<pattern>` for patterns, like `regex:#[0-9a-fA-F]{6}\b` for any hex colour.
287
+ <details>
288
+ <summary><b>Can I change my mind about a rule?</b></summary>
279
289
 
280
- - **Verify.** Arbiter reads only those files and refuses a claim that doesn't hold.
281
- - **Sweep.** `npx arbiter sweep D-0004` lists every existing line that breaks the rule. `--queue` turns each file into a pending item to fix or keep as an exception. Sweep never edits code; fixing is the agent's job.
290
+ Yes. Make the new call and the old rule steps aside. It stays in the archive with the reason it was replaced, so the history reads as history. Nothing is deleted.
282
291
 
283
- Keep token files and reference HTML out of sweeps in `arbiter.json`:
292
+ </details>
284
293
 
285
- ```json
286
- {
287
- "sweep": { "exclude": ["app/globals.css", "design-reference/**", "docs/**"] },
288
- "overlap": { "ignore": ["audit", "journey"] }
289
- }
290
- ```
294
+ <details>
295
+ <summary><b>Where does the record live, and who can see it?</b></summary>
291
296
 
292
- `overlap.ignore` lists words too common in your project to signal that two rules overlap.
297
+ In your project, as plain-text files you own: `DECISIONS.md` and a folder beside it. Your board runs on your machine and reads those files: no account, and nothing is uploaded. Only you see it. When you want others to see it, `npx arbiter export` makes a read-only copy, or Arbiter Team (early access) puts one at a private link: unlisted, never indexed, comments by email sign-in. Delete that copy and you lose the comments, nothing else.
293
298
 
294
- ### Taking something out
299
+ </details>
295
300
 
296
- Three different things, and only one of them deletes.
301
+ <details>
302
+ <summary><b>We already have a design system.</b></summary>
297
303
 
298
- | | When to use it | Command |
299
- |---|---|---|
300
- | **Retire** | It was real, and it's over | `arbiter record --retire D-0003 --why "…"` |
301
- | **Remove** | It was never real (a test, a misfire) | `arbiter remove D-0004` |
302
- | **Unlink** | It's real, but attached to the wrong screen | `arbiter unlink D-0004` |
304
+ Good. Arbiter records decisions, not tokens. Rules can name your components and files (*"interactive elements use brand tokens, never raw hex"*) and sit beside whatever system you have. It captures the calls a design system doesn't: layout, flow, copy, and what was rejected.
303
305
 
304
- Changing your mind is history worth keeping, so judgments are never deleted, only superseded. Mistakes are different: a record that says something false makes the archive less trustworthy. `remove` deletes it everywhere and prints the full record it removed. It refuses while anything still points at the record, unless you pass `--force` to unlink screens in one go. `remove --snapshot "<work>"` takes away just the picture.
306
+ </details>
307
+
308
+ <details>
309
+ <summary><b>Is this like ADRs?</b></summary>
305
310
 
306
- ## Candidates
311
+ Yes, same idea: a call, what it beat, and why. ADRs (architecture decision records) are for engineering: the stack, the data model, the API. Arbiter is for design: layout, flow, copy and states. And no one writes it up. The agent records each call as it works and you approve in seconds. If your ADRs already live in a `DECISIONS.md`, Arbiter doesn't touch it: your design rules go in `DESIGN-DECISIONS.md`.
307
312
 
308
- When the agent generates several directions for one feature, each one is a candidate with a state: `generated`, `in_review`, `approved`, `rejected` or `superseded`. Approving one supersedes the rest and keeps the reason. Decisions link to the candidate they were made for, and `arbiter board` lists them all.
313
+ </details>
309
314
 
310
- ## Commands
315
+ <details>
316
+ <summary><b>Doesn't Claude have memory now?</b></summary>
311
317
 
312
- The ones you'll use most:
318
+ Yes, but memory is what the agent learned. Arbiter is what your team decided. Claude Code's auto memory is notes Claude keeps for itself: nobody approves them, and they stay on one machine. Arbiter's rules are ones you approved, kept in the repo for every teammate, and each one records what it beat and what it replaced.
313
319
 
314
- ```bash
320
+ </details>
321
+
322
+ <br>
323
+
324
+ ## Reference
325
+
326
+ You won't need most of this day to day: the agent runs these for you. It's here for design engineers who want the details.
327
+
328
+ The commands you'll use most:
329
+
330
+ ```
315
331
  npx arbiterdesign init # install into this project
316
- npx arbiter review # judge the queue in your browser
317
- npx arbiter rules # list active rules
318
- npx arbiter publish # put the board online and get a share link
319
- npx arbiter pull # bring comments and requests back
332
+ npx arbiter review # open your board
333
+ npx arbiter rules # list your rules
334
+ npx arbiter export # a read-only copy of your board to share
335
+ npx arbiter update # get the newest Arbiter
336
+ npx arbiter publish # Arbiter Team: put your board online
337
+ npx arbiter pull # Arbiter Team: bring comments and requests back
320
338
  ```
321
339
 
340
+ > [!NOTE]
341
+ > On Windows, in PowerShell, type `npx.cmd` instead of `npx`. PowerShell blocks plain `npx` out of the box, with "running scripts is disabled on this system". Command Prompt and Git Bash don't.
342
+
343
+ > [!TIP]
344
+ > Too chatty? `npx arbiter setup --checkin quiet` turns off the check-ins. `--checkin every` does the opposite and mentions a rule every time one changed something.
345
+
322
346
  <details>
323
347
  <summary><b>Full command reference</b></summary>
324
348
 
@@ -339,7 +363,7 @@ npx arbiter pull # bring comments and requests back
339
363
  | `arbiter record '<json>'` | Record now (what the agent calls). |
340
364
  | `arbiter record --pending '<json>'` | Queue for later. |
341
365
  | `arbiter record P-0003 --as rule` | Judge a queued item: `accept`, `rule`, `skip` or `fix --to "…"`. Add `--candidate C-0001` to link it, or `--against D-0009` to name the rule it goes against (with `accept`, it's logged as an exception to that rule). |
342
- | `arbiter record --all --as accept` | Judge every queued item. Narrow with `--level polish` or `--trigger "Settings build"`. |
366
+ | `arbiter record --all --as accept` | Judge every queued item. Narrow with `--level pattern` or `--trigger "Settings build"`. |
343
367
  | `arbiter record --findings f.json` | Queue a scanner's findings for verdicts. |
344
368
  | `arbiter record --retire D-0003 --why "…"` | Drop a rule with no replacement. |
345
369
  | `arbiter record --reword D-0003 --to "…"` | Change a rule's wording. It keeps its id, and the old wording stays on the entry. |
@@ -351,7 +375,9 @@ npx arbiter pull # bring comments and requests back
351
375
 
352
376
  | Command | What it does |
353
377
  |---|---|
354
- | `arbiter review` | Judge the queue, screens and requests in a browser page. |
378
+ | `arbiter review` | Your local board, in the browser: what's waiting for you to judge, every change with its picture, and your design rules. It keeps itself current while it's open, and stops when you close its tab. Nothing is uploaded. What still needs a code change reaches your agent with your next message in Claude Code (a hook `init` installs), or at the next `/arbiter`. |
379
+ | `arbiter review --json` | For an agent that waits on the board: when its last tab closes, hands over what you decided as JSON. |
380
+ | `arbiter review --done` | For the agent, once it has made what the board handed it: clears that, and keeps anything you judged meanwhile. |
355
381
  | `arbiter rules [--dimension <name>] [--json]` | Active rules. |
356
382
  | `arbiter rules --pending` | The queue, plus requests waiting on an answer. |
357
383
  | `arbiter rules --archive` | Everything ever recorded. |
@@ -373,15 +399,19 @@ npx arbiter pull # bring comments and requests back
373
399
 
374
400
  #### Sharing
375
401
 
402
+ `export` and `publish --to pages` work for everyone. The rest is Arbiter Team (early access).
403
+
376
404
  | Command | What it does |
377
405
  |---|---|
378
406
  | `arbiter publish` | Board online at arbiter.design, with comments. Prints the share link. |
407
+ | `arbiter publish --invite <code>` | A new board's first publish, with the invite code you were sent. Later publishes don't need it, and it isn't saved. |
379
408
  | `arbiter publish --to <url\|pages>` | Your own hosted Arbiter, or GitHub Pages. |
380
409
  | `arbiter publish --auto` | Republish whenever the record changes. |
381
410
  | `arbiter publish --on-push` | Write a GitHub Actions workflow that republishes on every push. |
382
411
  | `arbiter publish --password [pw]` | Ask for a password before showing the board. No value makes one up. `--no-password` takes it off. |
383
412
  | `arbiter unpublish --yes` | Delete the board, its pictures and its comments, saving the comments to the repo first. |
384
413
  | `arbiter unpublish <board link> --admin --yes` | For whoever runs the server: take down any board on it, with the admin token in `ARBITER_ADMIN_TOKEN`. |
414
+ | `arbiter invite "<who it's for>"` | For whoever runs the server: make an invite code, good for 1 board (`--boards 3` for more), with the admin token in `ARBITER_ADMIN_TOKEN`. `--list` shows every invite; `--off <id>` switches one off. |
385
415
  | `arbiter pull` | Bring comments and reactions into `.arbiter/comments.json`, and requests into `.arbiter/requests.json`. |
386
416
  | `arbiter export [--feature f] [--include-rules] [--open]` | Static folder of the board for people without the repo. |
387
417
 
@@ -392,140 +422,154 @@ npx arbiter pull # bring comments and requests back
392
422
  | `0` | Recorded. |
393
423
  | `1` | Invalid input. |
394
424
  | `2` | Overlaps an existing rule. Re-run with `--supersedes <id>` or `--keep-both`. |
395
- | `3` | The 40-rule cap is reached. |
425
+ | `3` | The rule cap is reached. |
396
426
  | `4` | Contradicted: the named files don't match the claim. |
397
427
 
398
428
  </details>
399
429
 
400
430
  <details>
401
- <summary><b>The record format</b></summary>
431
+ <summary><b>Pictures of your screens</b></summary>
402
432
  <br>
403
433
 
404
- | Field | Meaning |
405
- |---|---|
406
- | `id` | `D-0001`, sequential. |
407
- | `date` | ISO 8601. |
408
- | `author` | Who decided. |
409
- | `class` | `mechanical` (checkable in code) or `judgment`. |
410
- | `level` | `feature`, `pattern` or `polish`. How big a call it is. Polish is never reviewed one by one. |
411
- | `dimension` | `structure`, `interaction`, `states`, `content`, `visual`, `motion` or `access`. |
412
- | `change` | What happened, in plain words. What the reviewer reads. |
413
- | `decision` | The same call written as a rule. What future sessions read. |
414
- | `rejected` | Alternatives that lost, one per line as `<option> — <why>`. |
415
- | `trigger` | The piece of work, like `Settings build`. Used to group the review. |
416
- | `verdict` | `fix`, `accept`, `rule` or `retire`. |
417
- | `call` | Who made the call: `asked`, `corrected` or `agent`. `null` on records from before 0.1.7. |
418
- | `against` | The rule this goes against, like `D-0011`, or `null`. Queued, it's a clash for review. Accepted, it's an exception to that rule. |
419
- | `reworded` | The rule's earlier wordings, as `<old> (until 2026-10-13)`. Only `record --reword` adds one. |
420
- | `scope` | `global`, `file:<path>` or `pattern:<name>`. |
421
- | `rationale` | One line, required. |
422
- | `supersedes` | The id it replaces, or `null`. |
423
- | `commit` | Short SHA, or `null`. |
424
- | `files` | Files the agent touched. Evidence for verification. |
425
- | `paths` | Where a rule applies. What sweep scans. |
426
- | `expect` | `{ present?: [..], absent?: [..] }`, strings to check in `files`. |
427
- | `verified` | `true`, `false` or `null` (never checked, or not checkable). |
428
- | `candidate` | `C-0001`, or `null`. |
429
-
430
- Only `rule` verdicts go into `DECISIONS.md`. A rule that overlaps an active one is refused until you say whether it replaces it. Superseded rules leave the active file and stay in the archive. `accept` verdicts are never verified, since an exception is a deviation by definition.
431
-
432
- Rewording is the one change made in place. The id stays, so everything that names the rule still points at it, and the entry keeps its earlier wording. A rule that now says something different isn't reworded. It's superseded.
433
-
434
- </details>
435
-
436
- ## Updating
437
-
438
- ```bash
439
- npx arbiter update
440
- ```
434
+ The agent takes one picture per piece of work, when the work settles and it changed how a specific screen looks.
441
435
 
442
- Two things can go out of date separately: the package in your devDependencies, and the skill file `init` copied into your project. Arbiter can tell when they don't match, without going online, and the agent will mention it in one line. `update` installs the newest package, refreshes the skill file, and re-pins the publish workflow if you have one. Your settings, `DECISIONS.md` and archive are left alone. `--check` reports without changing anything.
436
+ - **Gets a picture:** layout, wording or visual changes to one screen. Even a small pattern change counts.
437
+ - **Doesn't:** font or token changes (no single screen to show), motion and behaviour (a still can't show it), and small one-off fixes (they aren't recorded).
443
438
 
444
- ## FAQ
439
+ The agent renders pictures with a headless browser. If it can't (no browser, app not running, screen behind a login) it tells you once and says why. On macOS, `--capture` lets you drag-select a picture yourself; elsewhere, save one and pass `--file`.
445
440
 
446
- <details>
447
- <summary><b>What counts as a decision?</b></summary>
441
+ Name each piece of work after the screen it changed, like `Settings, billing` instead of one `Settings build` across four routes. Then one picture per piece of work means one per screen. Named it something else first? `arbiter rename "Settings build" "Settings, billing"` moves its decisions, its picture and its comments to the new name.
448
442
 
449
- A call the agent made where a reasonable alternative existed: layout, flow, wording, states, what happens on error, and what it chose over. Not code details like imports, file names or plumbing. Each one reads Change, Rule, Rejected.
443
+ Cards without a picture show an icon of the kind of change, so the board never looks broken. To make sure missing pictures still get noticed, `record` tells the agent the command to add one, the board marks the group "No picture", and `publish` lists the cards that are missing one.
450
444
 
451
445
  </details>
452
446
 
453
447
  <details>
454
- <summary><b>How do I set it up?</b></summary>
455
-
456
- Run `npx arbiterdesign init` in the folder your agent works in, or ask the agent to run it. It adds a few plain files and a one-line note telling the agent to read the rules before UI work, and asks one question: how often to check in. Nothing to sign up for. From the next session, the agent records as it goes. Step by step, with what you'll see: [Get started](https://arbiter.design/get-started).
457
-
458
- </details>
448
+ <summary><b>Change requests in detail</b></summary>
449
+ <br>
459
450
 
460
- <details>
461
- <summary><b>Do I have to write anything?</b></summary>
451
+ 1. `npx arbiter pull` turns each request into `R-0001` in `.arbiter/requests.json`. Commit it so everyone sees the same answers.
452
+ 2. You answer in chat with `/arbiter`:
453
+ - **Apply**: `record R-0001 --as apply`
454
+ - **Apply, but…**: `record R-0001 --as apply --to "keep the tab, make the button red"`
455
+ - **Decline**: `record R-0001 --as decline --why "…"` (a reason is required, since the requester reads it)
456
+ 3. The agent makes the change right away.
457
+ 4. `publish` sends the answer back. The requester sees *Open*, *Approved*, *Applied* (with what changed) or *Declined* (with the reason).
462
458
 
463
- No. The agent records what it decided and what it chose over. You confirm, make it a rule, or skip, in chat or on the review page. Mid-session you can also just say *"make that a rule"* and it's recorded without a question.
459
+ - Pulling twice never creates the same request twice. If the requester deletes it on the board before it's made, the next pull takes it off the queue and says so.
460
+ - Only an approved request can be applied. A change the owner hasn't said yes to is refused.
461
+ - Removing the last decision that applied a request reopens it for a fresh answer. The agent never remakes it unasked.
462
+ - A screen or decision with a request waiting on it can't be removed until the request is declined or applied.
463
+ - Display names and comment text come from outside the project, so neither is trusted. Names arrive as a single line, and nothing they contain can add a line, entry or field to the record.
464
464
 
465
465
  </details>
466
466
 
467
467
  <details>
468
- <summary><b>Does it interrupt me while I'm iterating?</b></summary>
468
+ <summary><b>More on sharing</b></summary>
469
+ <br>
469
470
 
470
- No. A screen you redesign six times is one piece of work, not six prompts. Decisions queue silently and surface in one line when you move on. You judge them when you want, or never.
471
+ - The service only holds the latest board and its comments. A board holds up to 100 pictures (25 MB); a picture that doesn't fit is left off and `publish` says so.
472
+ - `publish --auto` works anywhere: no GitHub, no CI, no repo needed. If a republish fails (offline, service down) the command still succeeds and tells you the board is behind. `--no-auto` turns it off.
473
+ - `publish --on-push` writes the workflow and sets the `ARBITER_PUBLISH_TOKEN` secret through `gh` if you're signed in. Commit the workflow along with `.arbiter/hosted.json`.
474
+ - `publish --password` makes up a strong password and prints it once. `--password "<yours>"` sets your own (8 characters or more), `--no-password` takes it off, and a plain `publish` leaves it as it is.
475
+ - `unpublish` without `--yes` only says what it would delete.
476
+ - Lost the project folder, so you can't run `unpublish`? Use **Report or remove this board** at the bottom of the board, and it's taken down by hand.
477
+ - `export` writes `arbiter-export/`: the same board as `arbiter review`, read-only (`index.html`, the board's script and styles, and the pictures). With `--include-rules`, your design rules too.
478
+ - With `"destination": "git"` in `arbiter.json`, every candidate change also writes the export to `docs/arbiter/`. Turn on Pages for the `docs` folder once and the board lives at `https://<owner>.github.io/<repo>/arbiter/`.
471
479
 
472
480
  </details>
473
481
 
474
482
  <details>
475
- <summary><b>Will I be reviewing hundreds of tiny decisions?</b></summary>
483
+ <summary><b>Keeping the record honest: verify and sweep</b></summary>
484
+ <br>
476
485
 
477
- No. Every decision is sized as feature, pattern or polish. Feature and pattern items get a card each. Polish is one line per piece of work with a single **Confirm all**. A 7px height fix and a new settings architecture don't get the same treatment.
486
+ A mechanical rule (a hex colour ban, say) can name the `files` it applies to and what should be `present` in or `absent` from them. Use `regex:<pattern>` for patterns, like `regex:#[0-9a-fA-F]{6}\b` for any hex colour.
478
487
 
479
- </details>
488
+ - **Verify.** Arbiter reads only those files and refuses a claim that doesn't hold.
489
+ - **Sweep.** `npx arbiter sweep D-0004` lists every existing line that breaks the rule. `--queue` turns each file into a pending item to fix or keep as an exception. Sweep never edits code; fixing is the agent's job.
480
490
 
481
- <details>
482
- <summary><b>Will it stop the agent doing what I ask?</b></summary>
491
+ Keep token files and reference HTML out of sweeps in `arbiter.json`:
483
492
 
484
- No, but it checks first. Ask for something a rule says otherwise and the agent asks once before building: follow the rule, or do it your way just this once. Either answer and it builds. Nothing fails, and the rule only changes if you say so.
493
+ ```json
494
+ {
495
+ "sweep": { "exclude": ["app/globals.css", "design-reference/**", "docs/**"] },
496
+ "overlap": { "ignore": ["audit", "journey"] }
497
+ }
498
+ ```
499
+
500
+ `overlap.ignore` lists words too common in your project to signal that two rules overlap.
485
501
 
486
502
  </details>
487
503
 
488
504
  <details>
489
- <summary><b>Can I change my mind about a rule?</b></summary>
490
-
491
- Yes. Make the new call and the old rule steps aside. It stays in the archive with the reason it was replaced, so the history reads as history. Nothing is deleted.
505
+ <summary><b>Taking something out</b></summary>
506
+ <br>
492
507
 
493
- </details>
508
+ Three different things, and only one of them deletes.
494
509
 
495
- <details>
496
- <summary><b>Where does the record live, and who can see it?</b></summary>
510
+ | | When to use it | Command |
511
+ |---|---|---|
512
+ | **Retire** | It was real, and it's over | `arbiter record --retire D-0003 --why "…"` |
513
+ | **Remove** | It was never real (a test, a misfire) | `arbiter remove D-0004` |
514
+ | **Unlink** | It's real, but attached to the wrong screen | `arbiter unlink D-0004` |
497
515
 
498
- In your project, as plain-text files you own: `DECISIONS.md` and the `.arbiter/` folder beside it. The board is a copy at a private link. It's unlisted and never indexed, people sign in by email to comment, and `publish --password` puts it behind a password. `arbiter unpublish` deletes it from the service, after saving its comments into your repo.
516
+ Changing your mind is history worth keeping, so judgments are never deleted, only superseded. Mistakes are different: a record that says something false makes the archive less trustworthy. `remove` deletes it everywhere and prints the full record it removed. It refuses while anything still points at the record, unless you pass `--force` to unlink screens in one go. `remove --snapshot "<work>"` takes away just the picture.
499
517
 
500
518
  </details>
501
519
 
502
520
  <details>
503
- <summary><b>We already have a design system.</b></summary>
521
+ <summary><b>Competing directions (candidates)</b></summary>
522
+ <br>
504
523
 
505
- Good. Arbiter records decisions, not tokens. Rules can name your components and files (*"interactive elements use brand tokens, never raw hex"*) and sit beside whatever system you have. It captures the calls a design system doesn't: layout, flow, copy, and what was rejected.
524
+ When the agent generates several directions for one feature, each one is a candidate with a state: `generated`, `in_review`, `approved`, `rejected` or `superseded`. Approving one supersedes the rest and keeps the reason. Decisions link to the candidate they were made for, and `arbiter board` lists them all.
506
525
 
507
526
  </details>
508
527
 
509
528
  <details>
510
- <summary><b>Which agents does it work with?</b></summary>
511
-
512
- Claude Code and Cursor get the whole loop: the agent reads your rules before UI work and records what it decides. Other agents that read a project's instructions file, like Codex, Copilot and Gemini CLI, follow the rules but don't record.
529
+ <summary><b>The record format</b></summary>
530
+ <br>
513
531
 
514
- </details>
532
+ | Field | Meaning |
533
+ |---|---|
534
+ | `id` | `D-0001`, sequential. |
535
+ | `date` | ISO 8601. |
536
+ | `author` | Who decided. |
537
+ | `class` | `mechanical` (checkable in code) or `judgment`. |
538
+ | `level` | `feature` or `pattern`. How big a call it is. A `polish` one-off fix isn't recorded: `record` answers `not-recorded` and writes nothing. |
539
+ | `dimension` | `structure`, `interaction`, `states`, `content`, `visual`, `motion` or `access`. |
540
+ | `change` | What happened, in plain words. What the reviewer reads. |
541
+ | `decision` | The same call written as a rule. What future sessions read. |
542
+ | `rejected` | Alternatives that lost, one per line as `<option> — <why>`. |
543
+ | `trigger` | The piece of work, like `Settings build`. Used to group the review. |
544
+ | `verdict` | `fix`, `accept`, `rule` or `retire`. |
545
+ | `call` | Who made the call: `asked`, `corrected` or `agent`. `null` on records from before 0.1.7. |
546
+ | `against` | The rule this goes against, like `D-0011`, or `null`. Queued, it's a clash for review. Accepted, it's an exception to that rule. |
547
+ | `reworded` | The rule's earlier wordings, as `<old> (until 2026-10-13)`. Only `record --reword` adds one. |
548
+ | `scope` | `global`, `file:<path>` or `pattern:<name>`. |
549
+ | `rationale` | One line, required. |
550
+ | `supersedes` | The id it replaces, or `null`. |
551
+ | `commit` | Short SHA, or `null`. |
552
+ | `files` | Files the agent touched. Evidence for verification. |
553
+ | `paths` | Where a rule applies. What sweep scans. |
554
+ | `expect` | `{ present?: [..], absent?: [..] }`, strings to check in `files`. |
555
+ | `verified` | `true`, `false` or `null` (never checked, or not checkable). |
556
+ | `candidate` | `C-0001`, or `null`. |
515
557
 
516
- <details>
517
- <summary><b>Who installs it, and what does the rest of the team need?</b></summary>
558
+ Only `rule` verdicts go into `DECISIONS.md`. A rule that overlaps an active one is refused until you say whether it replaces it. Superseded rules leave the active file and stay in the archive. `accept` verdicts are never verified, since an exception is a deviation by definition.
518
559
 
519
- Whoever has the repo runs one command. Everyone else gets a link to the board. To comment or say "looks good", they sign in with an email link. No account to create, nothing to install.
560
+ Rewording is the one change made in place. The id stays, so everything that names the rule still points at it, and the entry keeps its earlier wording. A rule that now says something different isn't reworded. It's superseded.
520
561
 
521
562
  </details>
522
563
 
523
- <details>
524
- <summary><b>Will it slow the agent down?</b></summary>
564
+ ### Updating
525
565
 
526
- No. Active rules are capped at 40 and read once, before UI work, not on every turn. The archive of everything ever decided is never loaded.
566
+ ```bash
567
+ npx arbiter update
568
+ ```
527
569
 
528
- </details>
570
+ Two things can go out of date separately: the package in your devDependencies, and the skill file `init` copied into your project. Arbiter can tell when they don't match, without going online, and the agent will mention it in one line. `update` installs the newest package, refreshes the skill file, and re-pins the publish workflow if you have one. Your settings, `DECISIONS.md` and archive are left alone. `--check` reports without changing anything.
571
+
572
+ <br>
529
573
 
530
574
  ## Development
531
575
 
@@ -537,6 +581,8 @@ npm test
537
581
 
538
582
  Requires Node 20 or newer. Issues and ideas are welcome on the [issue tracker](https://github.com/eddie199/arbiter/issues).
539
583
 
584
+ <br>
585
+
540
586
  ## License
541
587
 
542
588
  [MIT](LICENSE) © Edmond Hua