@scribe-platform/cli 0.8.0 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,311 @@
1
+ # Recipe: proofs
2
+
3
+ A **Proof** is work the Agency sends a Client to look at — a board of logo
4
+ ideas, two colour schemes, a homepage mockup (RFC 0029). The Client opens a
5
+ link, reacts to the ideas with a thumbs up or down, comments, and approves or
6
+ asks for changes.
7
+ It replaces emailing a PDF and digging through the replies.
8
+
9
+ It is the mirror image of a Request, and conflating them is the mistake to
10
+ avoid:
11
+
12
+ | | Who starts it | Who owes the next move | Command |
13
+ |---|---|---|---|
14
+ | **Request** | the Client, asking for work | the Agency | `scribe request …` |
15
+ | **Proof** | the Agency, showing work | **the Client** | `scribe proof …` |
16
+
17
+ §6 and §10 are the parts to actually read. The rest is mechanics.
18
+
19
+ ## 1. Three rules that aren't negotiable
20
+
21
+ 1. **Never run `scribe proof send` without Ashley saying yes to that send.**
22
+ It emails a real person and freezes a version. Say who it is going to and
23
+ what the note says, then wait. Every other command here is reversible;
24
+ this one is not.
25
+ 2. **Never use Claude's Artifact tool for client review work.** If asked to
26
+ "send them an artifact", that means a Proof. An artifact lives on
27
+ claude.ai, is branded Claude, needs an account to open, and nothing it
28
+ collects reaches the client's record — which is the whole problem Proofs
29
+ exist to solve.
30
+ 3. **No Proof without a client.** A Proof belongs to a prospect or client. If
31
+ they don't exist yet, offer `scribe prospect create` first (see
32
+ [`prospects.md`](./prospects.md)).
33
+
34
+ ## 2. The folder
35
+
36
+ One folder per Proof, inside the client's folder:
37
+
38
+ ```
39
+ Acme Bakery/
40
+ research/
41
+ proofs/
42
+ logos/ ← one Proof
43
+ .scribe-proof.json ← written by `proof create`; links folder → Proof
44
+ index.html
45
+ images/
46
+ ```
47
+
48
+ `scribe proof create --client acme-bakery --title "Logo concepts" --dir proofs/logos`
49
+ makes the Proof and writes `.scribe-proof.json`. Every later command run
50
+ **inside that folder** needs no arguments — `scribe proof push`, not
51
+ `scribe proof push acme-bakery/logo-concepts`.
52
+
53
+ **The folder holds the latest version only.** Scribe keeps the history, so
54
+ never make `logos-v1/`, `logos-v2/` copies. To get an old one back:
55
+ `scribe proof pull --version 1 --dir <somewhere-new>`.
56
+
57
+ ## 3. The markup contract
58
+
59
+ Anything the Client should be able to react to or comment on gets
60
+ `data-proof-option`:
61
+
62
+ ```html
63
+ <figure data-proof-option="logo-5" data-proof-label="Bold serif, navy">
64
+ <img src="images/logo-5.svg" alt="">
65
+ </figure>
66
+ ```
67
+
68
+ - **`data-proof-option`** is the id. Letters, numbers, `-` and `_`, up to 64.
69
+ It is what feedback is recorded against, so `logo-5` means logo-5 in every
70
+ version it appears in. **Keep ids stable across versions** — renaming one
71
+ orphans its feedback.
72
+ - **`data-proof-label`** is what Ashley and the Client see next to it. Write
73
+ it for a human: "Bold serif, navy", not "Option 5".
74
+ - **`data-proof-from="logo-5"`** on a revision records what it came from, so
75
+ the console can group "logo-5 → 5a, 5b, 5c".
76
+
77
+ No script, import or stylesheet is needed for any of this. Scribe injects the
78
+ runtime that draws the **👍 / 👎** and **Comment** affordances.
79
+
80
+ **Give the main sections an `id`.** Pinned comments anchor to the nearest
81
+ element with an `id`, so `<section id="hero">` makes "the button under the
82
+ hero feels small" land on the hero rather than on a CSS path that moves.
83
+
84
+ ### Paths must be relative
85
+
86
+ `src="images/logo.svg"`, never `src="/images/logo.svg"`. A Proof is served
87
+ under a token prefix, so a root-absolute path 404s for the Client. `check`
88
+ refuses these, and that refusal is correct — fix the path rather than
89
+ passing `--force`.
90
+
91
+ ### No HTML at all
92
+
93
+ If the folder holds only images (or PDFs), skip the page entirely. Scribe
94
+ builds a gallery and names an Option after each file: `logo-5.png` →
95
+ `logo-5`. "Send Acme these four PNGs as menu-board options" needs no markup.
96
+
97
+ A hand-built page is still better when presentation matters — logos on a
98
+ mocked storefront, light and dark grounds. The gallery is the floor.
99
+
100
+ ## 4. The loop
101
+
102
+ ```
103
+ scribe proof check # what a push would refuse or warn about
104
+ scribe proof preview # open it locally, exactly as the client sees it
105
+ scribe proof push --note "…" # upload as the unsent draft. Sends nothing
106
+ scribe proof send # ← asks Ashley first. Emails the client
107
+ scribe proof show # status, versions, staff preview link
108
+ scribe proof link # the client's link; --rotate replaces it
109
+ ```
110
+
111
+ `preview` is a rehearsal: reactions, comments and pins all work, nothing is
112
+ saved and nobody is emailed. Run it before every push and offer Ashley the
113
+ URL.
114
+
115
+ One thing it will show you: **while a Proof is open for feedback, a click
116
+ anywhere on the work leaves a comment there** — the page's own links and
117
+ buttons don't fire, the same bargain Figma makes. So a Proof is one page of
118
+ work to talk about, not a clickable prototype; don't build one that needs
119
+ navigating, and don't tell Ashley a Client can click through it. Read-only
120
+ views (a closed Proof, an older version, the staff preview) behave like an
121
+ ordinary page again.
122
+
123
+ A **drag** rather than a click comments about a whole area: the box is drawn
124
+ out as it's pulled, and the comment remembers it as a fraction of whatever
125
+ element contains it, so it still covers the right thing after the page
126
+ reflows on a narrower screen. Hovering such a comment's pin outlines the area
127
+ again. That means a Proof wants real structure to hang those fractions off —
128
+ a page built out of one absolutely positioned layer gives every area the same
129
+ anchor, and the outlines drift together when the layout moves.
130
+
131
+ `push` replaces the single unsent draft each time, so tinkering doesn't burn
132
+ version numbers. **Only `send` creates a version the Client sees.** Push as
133
+ often as you like.
134
+
135
+ `check` before `push` — `push` runs it anyway, but reading the warnings
136
+ first is cheaper than a rejected upload.
137
+
138
+ ## 5. Sending
139
+
140
+ Confirm, then send:
141
+
142
+ > "This sends *Logo concepts v1* to Dana (dana@acme.test) with the note
143
+ > 'Six directions'. Send it?"
144
+
145
+ - No `--to` sends to the client's primary contact. `--to a@b.com c@d.com`
146
+ replaces that list and is remembered for next time.
147
+ - `--message "…"` overrides the push note for the email.
148
+ - A Client replying to the email reaches whoever sent it, not an unattended
149
+ mailbox.
150
+
151
+ If the client has no contact email, `send` fails **before** freezing
152
+ anything — fix the contact, or pass `--to`, then send again.
153
+
154
+ ## 6. The next round — the reason Proofs exist
155
+
156
+ **Read the feedback before changing anything:**
157
+
158
+ ```
159
+ scribe proof feedback # grouped by option: who reacted how, what they said
160
+ scribe proof feedback --json # same shape, for reading programmatically
161
+ scribe proof feedback --version 1 # an older version
162
+ ```
163
+
164
+ Then work the revision from what it actually says. Treat the new version as
165
+ **the current working set** — what's still genuinely in play — not an archive
166
+ of every option any version has ever shown. History isn't lost by leaving
167
+ something out: it's still sitting on its own version, and the Client (or
168
+ Ashley) can flip back to it with one tap, feedback and all (§2). So the
169
+ question for each option is "does the Client still need to be looking at
170
+ this?", not "did we ever show this?":
171
+
172
+ - An option **nobody reacted to and nobody mentioned** is a candidate to drop.
173
+ Dropping is normal — `check` reports dropped ids as one neutral line, not a
174
+ warning.
175
+ - An option with a **👍 and a comment** is the one to iterate on. Usually that
176
+ means the revision replaces it in the new version — mark it
177
+ `data-proof-from="<original>"` so the console shows the lineage — since the
178
+ Client already decided they liked the direction and is now just reacting to
179
+ the refinement. Keep both around instead if they genuinely still read as
180
+ two live contenders (two different directions both still being weighed,
181
+ say) rather than one superseded by the other.
182
+ - A **👎** is one worth asking about rather than guessing — a thumbs-down with
183
+ no words is still an answer, and worth Ashley's phone call. What she learns
184
+ decides whether it's dropped, revised, or (if the room's split) left in
185
+ for now.
186
+ - Push with a `--note` that says what changed in the Client's words ("Three
187
+ simpler takes on the one you liked"), because that note is what they read
188
+ in the email.
189
+
190
+ Then ask before sending, as always. The new version keeps the **same link**;
191
+ the Client lands on it with the older ones one tap away.
192
+
193
+ `scribe proof reply <event-id> "…"` answers one comment. The id is printed
194
+ beside every comment in `feedback`. The Client sees a reply the next time
195
+ they open the Proof — **Scribe never emails a reviewer**, because it only
196
+ ever asks their name. If a reply is urgent, tell Ashley to call.
197
+
198
+ A Client replies back by clicking the pin on the work itself, which opens the
199
+ thread with the box ready to type in — so a thread can run several turns
200
+ without a new version. Those replies come through `feedback` like any other
201
+ comment. The comment column beside the work is an index: clicking a row there
202
+ opens that thread on the work rather than answering in place.
203
+
204
+ Ashley can also reply by hand in the staff console, on the Proof's **Design**
205
+ tab, the same way — a pin, or a row in the column, opens the thread on the
206
+ work with a box to answer. Worth pointing her there when she wants to see the
207
+ thing being talked about while she answers, or when she's on a phone. The
208
+ **Feedback** tab answers in a list instead, grouped by idea. It is the same
209
+ event as `scribe proof reply` whichever she uses.
210
+
211
+ A **Reaction** is a comment that carries a thumb, which is why it reads in the
212
+ same list as everything else and takes replies the same way. One per Reviewer
213
+ per Option: a second thumb changes the first rather than adding to it, keeping
214
+ the words and the answers already under it. The badge on an Option is both
215
+ tools and marker — two thumbs and Comment until that Reviewer has used one,
216
+ then their own thumb with everyone's faces beside it, opening the whole list on
217
+ a click. A Reaction with an empty `body` is somebody who reacted without saying
218
+ why; report it as the answer it is rather than skipping it.
219
+
220
+ Whoever wrote a comment can **delete** it — the Client their own, Ashley her
221
+ own replies — from the thread on the work or from the column. Neither can
222
+ delete the other's. Clearing a Reaction (the same control, better named) takes
223
+ the thumb, the words and the replies together. Deleting the comment a thread
224
+ started with takes the whole thread with it, replies included, since a thread is one conversation and an
225
+ answer to a withdrawn question reads as noise.
226
+
227
+ A deleted comment leaves `feedback` entirely and leaves no event behind, so
228
+ never quote one back at Ashley as still outstanding, and don't be surprised
229
+ when a comment id from an earlier `feedback` run stops resolving — re-read the
230
+ feedback rather than assuming the proof changed underneath you.
231
+
232
+ ## 7. More than one person deciding
233
+
234
+ Owners forward the link to a business partner or spouse. That is supported and
235
+ usually good news: the second person types their own name and shows up as a
236
+ second reviewer, with their own reactions and comments.
237
+
238
+ What it means when reading `feedback`:
239
+
240
+ - **`👍` and `👎` list every reviewer who reacted that way**, so two people on
241
+ opposite sides of one option is a disagreement to surface *before* Ashley
242
+ calls, not during.
243
+ - **The status follows the most recent decision.** If one approves and the
244
+ other asks for changes, the Proof reads `changes-requested` — but both
245
+ decisions are listed, and the status is not the whole story. Say both.
246
+ - A new name appearing is worth mentioning once ("Marco's looked at it too"),
247
+ because it tells Ashley who is actually deciding.
248
+
249
+ Don't try to reconcile them. Report who said what and let Ashley decide.
250
+
251
+ ## 8. Working the queue
252
+
253
+ ```
254
+ scribe proof list # every Proof, most recently active first
255
+ scribe proof list --status changes-requested
256
+ scribe proof list --client acme-bakery
257
+ scribe proof list --unopened # sent 2+ days ago, never opened — call them
258
+ ```
259
+
260
+ In the browser, **Proofs** in the staff console has the same three views:
261
+ *Needs you*, *Waiting on client*, *Sent, not opened*. A due prospect in the
262
+ follow-up list also carries one line about a Proof waiting on them, so it is
263
+ in front of Ashley when she dials.
264
+
265
+ ## 9. Finishing, and housekeeping
266
+
267
+ ```
268
+ scribe proof close --reason "delivered" # stays readable on the same link forever
269
+ scribe proof reopen # carry on the same history with a new version
270
+ scribe proof link --rotate # the old URL stops working. Then send again
271
+ scribe proof link --expires 2026-12-31 # or "never" to clear it
272
+ ```
273
+
274
+ Close when the work is delivered. A closed Proof still opens, read-only, so a
275
+ Client hunting for "the logo we picked" next year finds it.
276
+
277
+ **A Proof can't be deleted from the CLI**, only closed — same as a prospect.
278
+ If one genuinely has to go, that's Dave.
279
+
280
+ ## 10. What to tell Ashley, and what not to
281
+
282
+ **Say:** who a send is going to, before sending. What the Client actually
283
+ said, in their words, before you change anything. That a link rotation
284
+ breaks the old URL.
285
+
286
+ **Don't say:** version numbers she didn't ask about, option ids as the
287
+ primary way of naming things (use the labels — "the wheat star one", not
288
+ "logo-5"), or anything about tokens, manifests or hashes. She asked for logo
289
+ ideas, not a build report.
290
+
291
+ **The one thing worth interrupting for:** a Client asked for changes, or
292
+ approved. That is the moment the work moves.
293
+
294
+ ## 11. Clients who already have a site
295
+
296
+ A Proof can be attached to one of the client's sites, and then asks them to
297
+ **sign in** with their normal Scribe login instead of typing a name:
298
+
299
+ ```
300
+ scribe proof create --client rods-auto --title "Homepage hero" --site rods-auto-body
301
+ ```
302
+
303
+ `--site` defaults the access mode to `sign-in`, and the Proof appears under
304
+ **Proofs** in that site's dashboard. If the person deciding has no login —
305
+ the owner's spouse, say — switch it:
306
+
307
+ ```
308
+ scribe proof link --access link
309
+ ```
310
+
311
+ Everything else is identical.