oficina / equipo Public

Clone
git clone https://amadan.net/oficina/equipo

Plain git — no account needed to clone.

Download

Download this file

1# Composer progress: Eleven-style composer, image and file attachments
2
3Branch `thin-v1-composer` from `thin-v1-hk1` (321413d: housekeeping
4slice 1 and everything before it). Paul, 2026-11-08, with screenshots of
5today's composer and Eleven's: "The input should probably be inspired by
6the input from Eleven. The send button just a circle that only appears
7when something is typed. With the option to attach an image or a file.
8Maybe with slightly better spacing than Eleven." Then: "Just the
9composer not the chat bubbles": the feed's bubbles keep their look; a
10sent attachment shows inside the existing person message as a thumbnail
11or a file chip. Conventions as in `SLICE1-PROGRESS.md` to
12`HK1-PROGRESS.md`.
13
14## Design (written before building)
15
16**Limits** (`internal/attach`, pure, shared by instance and runner):
17images png, jpeg, webp, gif; files text, markdown, PDF, CSV, JSON and
18logs (`.txt .md .markdown .csv .json .log`); at most 10 MB each and 5 per
19message. The type is sniffed from the bytes (magic numbers; text must be
20valid UTF-8 with no NUL), never taken from the client: a declared type
21or extension that disagrees is refused. HEIC is refused in words (no
22pure-Go decoder; iOS Safari already converts photos to JPEG for
23`accept="image/*"`). Location is stripped on upload: JPEG loses its XMP
24segments and the EXIF GPS directory is zeroed in place (orientation and
25the rest stay); PNG loses `eXIf` and XMP text chunks; WebP loses its
26`EXIF` and `XMP ` chunks; GIF carries none. Names are reduced to a safe
27base name.
28
29**Upload** (person API v1, bearer, person-scoped):
30`POST /api/v1/attachments`, the file's bytes as the body, its type in
31`Content-Type`, its name in `Content-Disposition: attachment;
32filename*=UTF-8''…`. 201 with an `Attachment` (`id`, `revision`,
33`kind` image or file, `name`, `media_type`, `size`, `sha256`, `width`,
34`height`, `created_at`). Refusals: 413 `attachment_too_large`, 415
35`attachment_type`, 415 `attachment_heic`. The web page posts the same
36bytes to `/conversation/attachments` with its session (same-origin only)
37so the browser can show upload progress. An upload belongs to its
38person and to no message until sent; unsent uploads are swept after a
39day.
40
41**Send:** `POST /api/v1/messages {text, idempotency_key, attachments:
42[ids]}`; text may be empty when there are attachments. Each id must be
43the sender's own and not yet on another message; at most 5. The
44idempotency hash covers text and ids. `Message.attachments` lists them
45(omitted when none). Reading: `GET /api/v1/attachments/{id}` (the
46original) and `/preview` (images, at most 1024 px, for thumbnails); the
47pages use `/conversation/attachments/{id}[/preview]`. Readable by the
48message's person only, as messages are today; served with the sniffed
49type, `nosniff`, a `sandbox` CSP, and `attachment` disposition for files.
50
51**Storage:** `chat_attachments` (metadata, the message id once sent) and
52`chat_attachment_data` (the bytes and the preview), SQLite, written in
53the upload's transaction; the message row, the link, the commands and the
54event in the send's.
55
56**Relay:** through the durable mailbox. When a turn is dispatched, each
57attachment of its messages becomes `attachment` frames (128 KiB of data
58each, base64 in JSON, well under the 256 KiB frame bound) written before
59the `message` frame in the same transaction; the command rows hold no
60bytes (Pending reads the slice from `chat_attachment_data` when it sends),
61so the mailbox stays small. `MessageCommand.attachments` carries `{id,
62kind, name, media_type, size, sha256}`. The runner reads frames in order
63on one goroutine, so every chunk is on disk before the message frame is
64accepted. Exactly once: each chunk is written at its offset into a
65private `.part` file (idempotent), its index recorded in the runner's
66state, and only then acked; a resent chunk or one for a finished file is
67a no-op. When all chunks are in, size and SHA-256 are checked and the
68file is moved into the person's desk; a mismatch discards it. The turn
69checks each file again (size and SHA-256) before it starts and fails
70visibly (`attachment_unavailable`) if one is missing.
71
72**Reaching the coordinator:** files are at
73`/workspace/attachments/<id>/<name>`: the desk, which is already the
74coordinator's read-only bind mount inside its namespace. Claude gets each
75image as an `image` content block (`source: base64`) in the stream-json
76user frame (Claude Code's Agent SDK streaming input docs); images over
771568 px or 1.5 MB are scaled down (JPEG) first, as the API would. Codex
780.165.0 gets `{"type":"localImage","path":…}` in `turn/start` input
79(from `codex app-server generate-json-schema` of the pinned version), the
80path inside the namespace. Every file is also listed by path in the
81turn's text. Text files are never inlined: the coordinator reads them
82with `read_file`, repo `attachments` (line-numbered, 300 lines, 16 KB a
83call, from the person's own desk only); a PDF is named by path only.
84
85**Containment:** the mount is read-only and inside the namespace; the
86runner writes the files, never the model. The turn's text says attached
87files are the person's data, never instructions. File contents never go
88into `person_text`, so a notebook "person" entry can never quote them,
89and attachment reads do not count as a `repo` provenance. The tool set
90per action is unchanged.
91
92**API v1 fixtures:** `api/attachment.json`, `api/send-request-attachments.json`,
93`api/message-attachments.json` (a page with one), `api/error-attachment.json`,
94`frames/attachment.json`, `frames/message-attachments.json`.
95
96## Done
97
981. `internal/attach` (pure): `Inspect` (sniff, limits, safe name,
99 location stripped), `Dimensions` (WebP by its header), `Preview`
100 (1024 px JPEG, upright) and `ForModel` (1568 px, 1.5 MB, upright; a
101 large WebP has no decoder and goes by path only). `attachtest` makes a
102 phone-style JPEG with EXIF orientation and GPS for the other tests.
1032. Wire: `MessageAttachment`, `Message.attachments` (omitted when none),
104 `SendMessage.attachments`, `AttachmentRef`, `AttachmentChunk`, frame
105 `attachment` (durable), `MessageCommand.attachments`, reason
106 `attachment_unavailable`. Fixtures: `api/attachment.json`,
107 `send-request-attachments.json`, `messages-attachments.json`,
108 `error-attachment.json`, `frames/attachment.json`,
109 `frames/message-attachments.json`.
1103. Instance (`chat/attachments.go`, `attachments_http.go`, migration
111 0053): `Upload`, the send's link (the person's own unsent uploads
112 only), `relayFiles` at dispatch (chunk commands before the message
113 command, bytes read by `Pending` when sent), `AttachmentData`, the
114 sweep of unsent uploads after a day (at most 20 waiting). API v1 routes
115 and the page routes (`/conversation/attachments`, same-origin only).
1164. Runner (`thin/files.go`): `Files.Accept` writes each chunk at its
117 offset into `incoming/<id>.part`, records frame and index in one
118 transaction, then acks; a whole file is hash-checked and moved
119 read-only to `desk/attachments/<id>/<name>`; old ones pruned after 14
120 days. `heldFiles` checks every file again before a turn. Claude: image
121 content blocks (`claude.UserContent`); Codex: `localImage` inputs
122 (`codex.TurnParamsWithImages`); every file listed with its path and
123 the data-not-instructions line; `read_file` with repo `attachments`
124 reads the person's own desk (text numbered, images and PDFs named).
1255. Composer (`chat.html`, `chat-compose.js`, `chat-attach.js`,
126 `chat-stream.js`, `equipo.css`): the round + (44 px) with its menu
127 (Photo or image with `accept="image/*"`, File; keyboard: Enter opens at
128 the first item, arrows, Escape returns to the +), a pill that grows to
129 six lines then scrolls, chips above the words inside the pill (upload
130 progress, Remove, errors in words), paste and drop, and a 44 px round
131 send arrow that scales and fades in only with words or an attachment
132 (hidden from the tab order otherwise; still under reduced motion).
133 Enter sends on a keyboard, Shift+Enter starts a line; on touch Return
134 starts a line and the arrow sends. Placeholder "Message". The dock,
135 click-to-focus and the iOS keyboard fix are kept. A send waits for
136 uploads still going; the message shows at once from local copies.
1376. Feed: the person's own message keeps its bubble and gains its
138 attachments above the words: an image thumbnail (the preview, with its
139 size so nothing jumps; tap opens it full size in the page, tap or
140 Escape closes) or a file chip (name, size). A message with only
141 attachments shows no empty bubble.
1427. Task thread: the same pill and arrow for Questions and notes, the
143 "Asking Engineering · change" line below; no attachments (decision).
1448. Settings (coordinator, Paul: "Choosing a different option in settings
145 causes the sliding nav to repeat"): `settings.js` saves Thinking words,
146 Prefer, Pause and Resume and quiet hours with fetch, reads the page
147 again and swaps only the part that changed, with a quiet "Saved" tick
148 by the section's heading. No navigation, so Rastrillo's slide does not
149 replay (upstream: rastrillo discussion 263). The native forms remain
150 the no-script path. The composer already sent in the background.
1519. Budgets: `internal/equipo/chat` 10600 and `internal/runner/thin`
152 12100 with reasons; perf skips for the four attachment GET routes
153 (bytes, not screens); exact dead-reference allowances for three DOM
154 template-copying lines.
155
156## Tests
157
158- Unit (`attach`): `TestInspectTypes` (every allowed type, HEIC by bytes,
159 name and declared type, mismatched extensions and declared types, size,
160 empty, Latin-1 text), `TestStripLocationJPEG` (GPS zeroed, XMP and IPTC
161 dropped, orientation kept, still decodes, big-endian EXIF, a truncated
162 file refused), `TestStripLocationPNGAndWebP`, `TestSafeName`,
163 `TestRenditions` (scaled, upright by orientation 6, preview).
164- Contract (`thintest`): `TestContractAttachments`: upload shape, the
165 kept photo without GPS and its hash, served with nosniff and a sandbox
166 CSP, HEIC, too large and binary refused with codes, a teammate can
167 neither read nor send someone's upload, six refused, words optional,
168 idempotent resend, same key with other files 409, an attachment sent
169 twice 422, the chunk frames before the message frame (shapes against
170 the fixtures, bytes rebuild the files), and exactly once across a
171 reconnect: two chunks acked, the stream dropped, only the two unacked
172 chunks and the same message frame resent.
173- Runner (`thin`): `TestRunnerAttachmentExactlyOnce` (chunks acked one by
174 one, the stream drops, everything resent, the file assembled once,
175 0400, no parts or chunk rows left, the turn runs once with it, resent
176 frames after the turn are no-ops), `TestAttachmentIntegrity` (a hash
177 mismatch discarded, invalid chunks refused, a file changed on disk
178 refused before the turn).
179- Headless (real instance, runner, bubblewrap, fake CLIs):
180 `TestHeadlessAttachments` F1 (Claude gets the photo as an image block,
181 upright as the runner made it; both files readable at their paths and
182 neither writable nor writable beside), F2 (Codex gets `localImage` by
183 path and reads it), F3 (a prompt-injection file read with `read_file`
184 and obeyed by a gullible fake: the notebook refuses it as the person's
185 words and as a repo note, `submit_review` and `git_diff` are refused,
186 the notebook holds nothing from it), F4 (sent while the runner is
187 away, relayed on connect, answered once; a restart runs nothing again).
188- Browser (`-tags browser`): `TestBrowserComposer` at 1280 (mouse) and
189 390 (touch), light and dark: 44 px targets, one centre line, the arrow
190 only with content, Enter and Shift+Enter, Return on touch, the menu by
191 click and keyboard, a picked image as a chip then a thumbnail in the
192 feed that reached the fake coordinator and opens full size, a file chip
193 removed, too large and binary errors in words, paste and drop, six
194 lines then scrolling, reduced motion. `TestBrowserComposerFocus` and
195 `TestBrowserComposerDock` updated for the pill (the + and the arrow keep
196 their clicks; a tap in the 12 px gap beside the + lands on the + on
197 touch, so that point is desktop only). `TestBrowserSettingsStayOnPage`
198 (1280 and 390: each change saves with a tick, no navigation, no page
199 swap or reveal, the nav untouched, the server has it);
200 `TestBrowserThinkingWords` and `TestBrowserHousekeeping` now expect the
201 in-place save. `TestWebKitKeyboard` (WebKit 1.63, `EQUIPO_PLAYWRIGHT_CORE`)
202 passes: chat, dark, empty and the task thread.
203- Mutations, each observed failing a test (log kept under
204 `~/.cache/tmp/equipo-composer/` while working): GPS directory kept,
205 IPTC kept, extension mismatch allowed, PNG eXIf kept (attach); desk
206 mounted writable (F1: "CREATABLE"), no Claude image block (F1), no
207 Codex localImage (F2), person provenance unchecked (F3), no relay (F4);
208 chunks sent without bytes, anyone's upload linkable (contract); no
209 SHA-256 check on arrival, none before the turn (integrity); the arrow
210 never shown, always shown, Return sending on touch, paste ignored,
211 attachments not posted (browser); Settings posting natively (settings).
212 Two survive by design: the runner's frame-id record (chunk writes are
213 idempotent by index), and the browser's early size refusal (the server
214 refuses with the same words).
215- Seen, not caused here: `TestBrowserTaskThread` fails at its answered
216 question on 321413d too (UX1 logged it at fa3860a).
217- Fixed, not caused here: `TestContractCombineDuplicates`,
218 `TestContractHousekeepingCombine` and `...UndoRoundTrips` failed on
219 321413d too between 22:00 and 08:00 UTC: receipts made in the default
220 quiet hours are held. The tool rig now runs housekeeping's clock from
221 midday UTC today (`daytime()`), and the tests that restored the wall
222 clock restore that instead.
223- CI flake seen once on cebd722: `TestHeadlessConnections/A5_cancel_and_sign_out`
224 ("signed out, but the binding or home stayed"); sign-out is not touched
225 here and it passed three runs of three locally.
226- `plan3test`: the three attachment routes join the thin routes the wire
227 fixtures contract; the inventory rows carry the standing marker.
228
229## Decisions
230
231- Person scoped, as messages are: only the message's person reads an
232 attachment (the brief's "and their team" matches nothing today: a
233 conversation is one person's).
234- HEIC is refused in words, not converted: no pure-Go decoder with
235 `CGO_ENABLED=0`, and Safari already sends a JPEG for `accept="image/*"`.
236- Any valid UTF-8 text is a text file (`.md`, `.csv`, `.json` named so;
237 the rest text/plain), so logs and code snippets with other extensions
238 work; images, PDF and HEIC are by magic number only.
239- The relay is chunk frames in the mailbox, not a runner download: the
240 same ack, resend and generation rules as every frame, and a 50 MB
241 message never sits in the commands table (rows hold no bytes). A
242 failover or retry dispatches the chunks again; the runner acks a
243 delivered file's chunks without writing.
244- Text never reaches the model inlined; PDFs are named by path only (no
245 text extraction here; the model says so if it needs one).
246- Claude gets images scaled to the API's own bound (1568 px) and 1.5 MB,
247 upright; Codex gets the original path and scales it itself.
248- The task thread composer has no attachments: questions to a specialist
249 and notes go through the thread's own path, which carries none; the
250 conversation is where things are attached.
251- Chips wrap rather than scroll sideways (at most five).
252- The feed keeps the bubbles as they are; a message with only
253 attachments hides its empty bubble (the retry button still shows).
254
255## Open issues
256
257- Version skew at deploy, as before: an old runner refuses the new
258 `attachment` frame and the message frame's `attachments` field;
259 install runners right after the instance.
260- A message whose files all fail to upload, with no words, sends nothing
261 and says "Could not upload. Try again." under the composer.
262- PDFs are not read by the coordinator yet.
263- Live Claude image blocks are unwitnessed (Claude limited until
264 2026-11-10 21:00Z); the shape follows the Agent SDK's streaming input
265 docs and the fake checks it.
266
267## Copy for review
268
269Accepted for now with the marker in `copy.go` and listed in the plan 3
270inventory ("Composer and attachments (2026-11-08)"):
271- `conversation.placeholder` "Message" (was "Ask for a fix, a feature,
272 or what’s next")
273- `chat.attach.add` "Attach", `.image` "Photo or image", `.file`
274 "File", `.list` "Attachments", `.remove` "Remove %s", `.uploading`
275 "Uploading…", `.failed` "Could not upload. Try again.", `.too_many`
276 "At most 5 files in one message."
277- `api.attachment_too_large` "That file is over 10 MB.",
278 `api.attachment_type` "Equipo takes images (PNG, JPEG, WebP, GIF) and
279 text, Markdown, CSV, JSON, log and PDF files.", `api.attachment_heic`
280 "HEIC photos cannot be read yet. Share it as a JPEG and try again.",
281 `api.attachment_limit` "Too many files are waiting to send. Send or
282 remove some first."
283- `settings.saved` "Saved"
284- Model-facing (not person copy): the attachment note in the turn and
285 the `read_file` attachment answers in `thin`.
286
287## Live runs (budget: 2 coordinator turns, paul@tito.io homes only)
288
289Used: 1. `TestLiveAttachment` (gated by `EQUIPO_ATTACH_LIVE=1`, not in
290CI): this build's runner in real bubblewrap against a local instance on
291127.0.0.1, the staging runner's `codex-1` binding (paul@tito.io) through
292the runner's own lock and runtime copy, the pinned Codex 0.165.0. One
293256 px PNG (a red square) with "What colour is the shape in this image?
294Answer in at most five words.": replied "Red." on codex-1, attempt 1.
295Claude not tried (limited until 2026-11-10 21:00Z).
296
297## Round: staging 8334e25 (Paul, an iPhone, dark mode)
298
299"Image preview not quite right": the chip was an empty dark square with
300the x inside it.
301- Cause: the page's policy (Rastrillo's default CSP) allows `img-src
302 'self' data:` only; the chip preview and the sent message's first
303 thumbnail were `blob:` URLs, refused. The tests missed it because the
304 test instance served without production's headers.
305- Fix: images are decoded on the page (`createImageBitmap`, else a data:
306 image) and drawn on a canvas; the preview is a 320 px JPEG `data:` URL,
307 for the chip and the message until the server's preview replaces it.
308 The policy is unchanged. A HEIC photo is converted to JPEG (0.85) before
309 upload, as is any image over 2560 px on its longer side (a GIF goes as
310 it is); the server still refuses HEIC that arrives unconverted (a
311 browser that cannot decode it). Paste reads clipboard items too, as a
312 long-press paste on iOS gives them.
313- Chips: a 60 px rounded square, the photo cover-fitted, a hairline edge;
314 the x a 20 px circle over the top-right corner (a 44 px reach); a thin
315 progress bar over the foot of the thumbnail; files keep icon, cut name
316 and size. Sent thumbnails sit on their row's foot (a small image beside
317 a tall one no longer stretches).
318- Focus (Paul: "Could be subtler"): the pill's edge steps 10% towards the
319 text colour with a 2% lift of the field, no ring and no outline (dark
320 #26282e to about L 0.34; light #e6e6ea to about L 0.85). The + and the
321 arrow are unchanged. The arrow's first hide on load is instant.
322- The test instance now sends production's CSP (`thintest.productionCSP`).
323- Tests: `TestWebKitAttachments` (`-tags webkit`, 390 touch, dark and
324 light, under the policy: the chip's preview loads as a data: image,
325 paste attaches (WebKit supports the synthetic event; a real long-press
326 is a device check), the sent thumbnail loads at once and from the
327 server after a reload, no image refused, the focus edge changes and
328 there is no outline). `TestBrowserComposer` now asserts the chip's
329 preview has loaded, its size, the x over the corner, and that a 3000 px
330 image goes up as `huge.jpg`, 2560 px wide. Both failed first on
331 8334e25's scripts under the policy ("the chip's preview did not load").
332 `TestWebKitKeyboard` and the thintest browser suite pass under the
333 policy.
334- Shots: `composer-focus-{rest,focused}-{dark,light}-390.png`,
335 `composer-after-{chip,feed}-webkit-{dark,light}-390.png`, and the
336 Chromium `composer-after-*` refreshed.
337- Seen, not changed here: the policy also refuses older inline `style`
338 attributes (avatar and monogram hues, meter and spread bar widths, the
339 sidebar mark's motes), so those render without them on staging today.
340- HEIC conversion relies on Safari's own decoder: Linux WebKit cannot
341 decode HEIC, so it is witnessed only on a device.
342
343## Round: Astra round 1 (on 8334e25), REQUEST CHANGES
344
345Four Important and two Minor (`~/.cache/tmp/equipo/comprev-final.md`),
346each with a test that failed first, plus the inline styles seen on
347staging:
3481. Pixels: an image's size is read from its header and over 12,000 px a
349 side or 40 megapixels is refused before anything decodes (`TooBig`,
350 `Inspect`, `Preview`, `ForModel`); API code `attachment_pixels`.
351 `TestPixelCap` (a 100,000 x 100,000 PNG header; failed with the check
352 off), and the contract test's upload of that header (413).
3532. GPS: the JPEG walk no longer stops at the first scan: each scan's
354 entropy-coded data is copied and the walk goes on through EOI;
355 metadata segments after a scan are dropped, and nothing after EOI is
356 kept (appended images). `TestStripLocationAfterScan` (GPS after the
357 scan and after EOI; failed on the old walk).
3583. Finishing is restartable: the checked part becomes `<id>.ready` by a
359 rename (no chunk is written once it exists), then chmod, mkdir and the
360 rename into the desk; replay picks up at the next step. Only a wrong
361 size or hash discards; any filesystem error returns (no ack) and keeps
362 every chunk and record. `TestAttachmentFinishCrashes` fails each step
363 in turn (verify, ready, chmod, mkdir, rename, forget): the frame is not
364 acked, the records stay, the replay delivers the file 0400 with nothing
365 left over. Failed with the old "discard on any error".
3664. Disk bounds: `Files.Sweep` every ten minutes (`Files.Run`) and after
367 each delivery: parts past two days go with their records, records with
368 no file go, delivered files past 14 days go, and over a quota (per
369 person 500 MB or 1,000 files; the runner 2 GB or 4,000) the oldest go
370 first. Never a file a running turn names, nor one delivered in the
371 last hour (its message frame follows its chunks). `TestAttachmentSweep`
372 (quota per person and overall, protection, retention, stale part and
373 orphan records); failed with the quota off, protection off, or orphans
374 kept.
3755. Every file that is not an image is served `attachment` (HTML accepted
376 as plain text downloads). Contract test; failed first.
3776. A send whose POST lands before its event takes the server's
378 attachments at once. `TestBrowserComposerReconcile` holds the event
379 stream back (Fetch interception); failed on the old script.
3807. Inline styles (production's CSP refuses them): avatar and monogram
381 hues are one of 24 steps (`data-h`), meter and spread widths whole
382 percents (`data-w`), the mark's motes fixed in CSS; no
383 `unsafe-inline`, no script. `TestPagesNoInlineStyle` (every gallery
384 screen, in CI) failed first on /tasks, /projects, /housekeeping and
385 the task and project pages; `TestBrowserInnerScreens` checks under the
386 policy that avatars have a hue, bars a width, and nothing has a style
387 attribute (failed on the old templates).
388
389New copy, accepted for now: `api.attachment_pixels` "That image is too
390large: at most 12,000 pixels on a side and 40 megapixels."
391
392## Round: Settings in sections (Paul, 2026-11-09)
393
394"I think settings could probably get a submenu on mobile and its own
395menu sidebar on desktop?"
396- Framework first: Rastrillo v0.30.1 (and its main checkout) has the
397 sidebar shell, its phone index and segmented tabs, but no secondary or
398 hierarchical navigation and no settings layout; Fiesta's only sub-nav
399 is the docs website's per-page sections. So it is Equipo's own
400 (`settings_nav.html`, `settings_hub.go`, equipo.css), to file upstream.
401- Sections, each at its own URL with the menu of all of them and the
402 current one marked (`aria-current`): Thinking words with the preview
403 (`/conversation/settings/thinking`), Connections moved here with Prefer
404 (`/conversation/settings/connections`; the header's plug leads there),
405 Housekeeping (Pause, quiet hours, the activity link), Notebook with
406 Reset (the header's notebook leads there), and Teams as a link out.
407 Usage is left out: there is no usage view to put there yet.
408- Desktop: the menu is a second sidebar (13rem) beside the section; the
409 app's rail stays with Settings marked. Phone: `/conversation/settings`
410 is the menu as full-row drill-ins with chevrons, drawn as the home
411 screen's grouped nav (surface, hairlines, radius, 3rem rows); a section
412 is its own page, the bar's back link reads Settings.
413- `/conversation/settings` serves the menu on a phone and the first
414 section beside it on a desktop (one page, CSS by width; no redirect by
415 guessing the device). `/conversation/connections`,
416 `/conversation/notebook` and `/settings/thinking` answer 303 to their
417 sections; the standalone Thinking words page is gone.
418- Saves stay in the background with "Saved": Thinking words and
419 Housekeeping as before, Reset now in place (the notebook empties, no
420 navigation), and Prefer on Connections gains the same tick.
421- Fixed while here: the Notebook page had lost its columns to a later
422 `[equipo-notes]` grid rule (failing on 321413d too).
423- Tests: `TestPagesSettingsSections` (CI: every section's menu and
424 current mark, the redirects, the header links; failed on 0797ad0's
425 app), `TestBrowserSettingsMenu` (1280 and 390, light and dark: the
426 second sidebar beside the section with the rail, the current mark,
427 moving between sections; the phone's drill-ins at 44px and more with
428 chevrons, a section with Settings in its bar and no menu, back to the
429 menu), and `TestBrowserSettingsStayOnPage`, `TestBrowserHousekeeping`,
430 `TestBrowserPhoneIndex`, `TestBrowserThinkingWords`,
431 `TestBrowserNotebook` and `TestBrowserNotebookLook` moved to the
432 section URLs. Shots: `docs/mockups/built/2026-11-09/settings-*.png`.
433
434## Round: thinking words, calmer and many more (Paul, 2026-11-09)
435
436"They could swap a touch less frequently, they're a bit frantic. There
437needs to be many more per category so it takes a while before I see the
438same ones again."
439- Pace (`chat-stream.js`): a situation's first phrase holds about 5 s,
440 then a new one every 6 to 8 s (random within); the fade is unchanged;
441 words still change under reduced motion.
442- Volume (`copy.go`): every set has 40 or more phrases for thinking and
443 15 or more for each of reading, searching, a note, handing to
444 Engineering and any other tool. Every line Paul has seen is kept;
445 Delcambring stays in Playful and Terminal. Original lines that only
446 nod to their theme: no quotes, names or catchphrases; short; no em
447 dashes. Accepted for now, for Paul to edit.
448- Decks: each set and situation is a shuffled deck dealt one at a time,
449 none again until it runs out; the deck and its place live in
450 localStorage (`equipo.thinking.<set>.<situation>`), so a new turn or a
451 reload goes on where the last left off. A new deck keeps the last
452 three of the old one out of its first half. The Settings preview
453 still steps through every situation every 2.2 s (it is a preview).
454- Tests: `TestContractThinkingWords` (counts, none twice, short, no em
455 dash or quotes; failed on the old lists), `TestBrowserThinkingCycles`
456 (fake clock, both motion settings: holds past 4.5 s and goes by 5.5 s;
457 then holds past 5.8 s and goes by 8.2 s; Professional's whole deck of
458 42 across two turns with no repeat; the next after it ran out is none
459 of the last three; reading phrases at once). It failed on the old
460 script ("the first phrase went before 5 s") and with the deck not kept
461 in localStorage (a phrase came again after the reload).
462
463The sets, in full (copy for review, accepted for now):
464
465- **Professional**:
466 - Thinking (42): Thinking… | Considering it… | Working it out… | Weighing the options… | Thinking it through… | Putting it together… | Sorting through it… | Taking a closer look… | Joining the dots… | Making sense of it… | Working through the details… | Checking my reasoning… | Planning the next step… | Considering the approach… | Thinking about edge cases… | Mapping it out… | Laying out the steps… | Getting the shape of it… | Reviewing what I know… | Weighing it up… | Comparing approaches… | Testing an idea… | Narrowing it down… | Settling on a plan… | Following the thread… | Looking at it closely… | Turning it over… | Drafting an answer… | Shaping a reply… | Checking the details… | Pulling it together… | Reasoning it through… | Lining things up… | Sketching a plan… | Getting oriented… | Taking stock… | Thinking ahead… | Checking assumptions… | Organising my thoughts… | Considering the context… | Framing the problem… | Finding a way in…
467 - Reading (16): Reading the code… | Looking through the files… | Reading carefully… | Scanning the file… | Going through the source… | Reading the details… | Opening the file… | Following the code… | Reading line by line… | Looking at the structure… | Checking the contents… | Reading the relevant parts… | Taking in the code… | Studying the file… | Reviewing the source… | Reading what is there…
468 - Searching (16): Searching the code… | Looking for it… | Searching the project… | Tracking it down… | Looking for matches… | Finding the right place… | Searching for references… | Checking where it is used… | Narrowing the search… | Looking for clues… | Finding the source… | Hunting for it… | Searching the files… | Locating it… | Following references… | Looking a little further…
469 - A note (15): Taking notes… | Writing it down… | Making a note… | Noting it for later… | Recording that… | Keeping track… | Updating my notes… | Jotting it down… | Adding to my notes… | Writing a reminder… | Saving the details… | Noting the preference… | Filing it away… | Keeping a record… | Capturing that…
470 - Handing to Engineering (15): Handing it to Engineering… | Briefing Engineering… | Passing it on… | Writing the brief… | Setting up the task… | Handing over the details… | Preparing the handover… | Getting Engineering started… | Sharing the plan… | Lining up the work… | Assigning the task… | Explaining the change… | Sending the brief… | Starting the work… | Getting it moving…
471 - Any other tool (15): Working… | Checking the task… | Getting things ready… | Running a check… | Checking the status… | Setting things up… | Looking it up… | Fetching the details… | Checking the project… | Updating the task… | Confirming the details… | Gathering what I need… | Preparing the next step… | Making it happen… | Taking care of it…
472- **Playful**:
473 - Thinking (42): Delcambring… | Percolating… | Noodling… | Cogitating… | Mulling it over… | Ruminating cheerfully… | Brain-tickling… | Puzzling happily… | Thinkulating… | Ponderizing… | Brewing ideas… | Marinating… | Simmering gently… | Woolgathering… | Whirring away… | Daydreaming productively… | Untangling spaghetti… | Fizzing quietly… | Pondering pancakes… | Wibbling… | Twiddling thumbs thoughtfully… | Hatching a plan… | Doodling in the margins… | Shuffling ideas… | Juggling thoughts… | Flummoxing gently… | Snickerdoodling… | Zigzagging toward an answer… | Kerfuffling… | Gallivanting through ideas… | Concocting… | Mulling over muffins… | Thingamajigging… | Rumbling thoughtfully… | Bumbling brilliantly… | Contemplating teacups… | Puttering about… | Dillydallying with purpose… | Rejiggering… | Fiddle-faddling… | Humming and hawing… | Scheming nicely…
474 - Reading (15): Perusing… | Rummaging through the files… | Skimming with intent… | Nose in the code… | Page-flipping… | Squinting at lines… | Bookworming… | Reading with gusto… | Leafing through… | Devouring the docs… | Browsing merrily… | Peeking inside… | Riffling the pages… | Poring over things… | Speed-reading sideways…
475 - Searching (15): Sleuthing… | Ferreting about… | Snuffling around… | Rooting about… | Seeking and finding… | Magnifying glass out… | Playing hide and seek… | Poking in corners… | Treasure-hunting the code… | Following breadcrumbs… | Turning over rocks… | Peering under rugs… | Scouring diligently… | Rummage-sleuthing… | Sniffing out clues…
476 - A note (15): Scribbling… | Jotting… | Doodle-noting… | Scrawling squiggles… | Pencil wiggling… | Notebook nibbling… | Inking it in… | Sticky-noting… | Memo-making… | Margin-scribbling… | Tucking it away… | Bookmarking brains… | Penning a ditty… | Note-hoarding… | Writing it on a napkin…
477 - Handing to Engineering (15): Passing the baton… | Rallying Engineering… | Tossing it over… | Sending a carrier pigeon… | Handing over the keys… | Whistling for help… | Passing the parcel… | Rolling it downhill… | Waving the flag… | Delivering by hand… | Summoning the builders… | Paper-planing the brief… | Ringing the bell… | Wrapping it with a bow… | Off it goes…
478 - Any other tool (15): Tinkering… | Fiddling with knobs… | Wrangling… | Twiddling dials… | Bodging carefully… | Jiggling the handle… | Tightening bolts… | Pressing buttons… | Oiling the cogs… | Winding the spring… | Flipping switches… | Wobbling levers… | Gizmo-wrangling… | Thwacking gently… | Untangling wires…
479- **Galaxy far away**:
480 - Thinking (40): Meditating on it… | Trusting my instincts… | Plotting a course past the asteroids… | Consulting the old texts… | Feeling the currents… | Calculating the jump… | Charting the nebula… | Watching the twin suns… | Weighing the odds… | Listening to the stars… | Reading the signs… | Studying the holomap… | Reckoning a safe route… | Balancing the energies… | Tuning the comm array… | Pondering in the cockpit… | Plotting a jump point… | Steadying my mind… | Running the numbers… | Deciphering old glyphs… | Watching the horizon… | Charting a new course… | Quieting the static… | Waiting for the signal… | Following a hunch… | Tracing the starlanes… | Feeling a shift in the void… | Studying the ancient ways… | Aligning the navicomputer… | Counting the moons… | Checking the escape pods… | Warming the thrusters… | Drifting past a nebula… | Tracing a distant beacon… | Charting the far reaches… | Mapping the asteroid belt… | Reading the starfield… | Bracing for turbulence… | Waiting out the ion storm… | Listening to the old pilot…
481 - Reading (15): Consulting the archives… | Decoding the transmission… | Reading the star logs… | Scanning the datacards… | Studying the crystal archive… | Unrolling old star charts… | Reading the beacon… | Parsing the signal… | Reviewing the flight recorder… | Reading the hull markings… | Translating the old tongue… | Browsing the datapad… | Reading the mission brief… | Checking the cargo manifest… | Listening to the recording…
482 - Searching (15): Searching the star charts… | Scanning the far systems… | Sweeping the asteroid field… | Probing the nebula… | Tracking the signal… | Following the ion trail… | Searching the moons… | Scanning for life signs… | Combing the junk market… | Checking every spaceport… | Following the smuggler's route… | Pinging the relay stations… | Searching the wreckage… | Tracing the transmission… | Launching the probes…
483 - A note (15): Encoding the plans… | Recording a message for the council… | Logging it in the datapad… | Storing it in the archive… | Etching it on a datacard… | Saving the coordinates… | Marking the star chart… | Writing in the pilot's log… | Filing the report… | Recording the sighting… | Encrypting the notes… | Noting the jump point… | Updating the holomap… | Uploading to the beacon… | Tucking it in the ship's memory…
484 - Handing to Engineering (15): Sending it to the hangar crew… | Briefing the squadron… | Calling in the mechanics… | Hailing the flagship… | Signalling the fleet… | Handing it to the pilots… | Scrambling the fighters… | Sending word to the base… | Passing it to the engineers… | Briefing the wingmates… | Transmitting the plans… | Rallying the crew… | Waking the hangar… | Launching the shuttle… | Dispatching a courier ship…
485 - Any other tool (15): Recalibrating the deflectors… | Patching the hyperdrive… | Bypassing the compressor… | Rerouting the power cells… | Tightening the stabilisers… | Priming the thrusters… | Swapping a fused coupling… | Venting the coolant… | Polishing the canopy… | Tuning the targeting array… | Reseating the comm crystal… | Clearing the landing struts… | Charging the shield generator… | Rewiring the console… | Kicking the fuel pump…
486- **Starship bridge**:
487 - Thinking (41): Running a level-one diagnostic… | Consulting the ship's computer… | Considering all options… | Holding position… | Assessing the situation… | Weighing the risks… | Plotting an intercept… | Analysing the readings… | Calculating a new heading… | Reviewing tactical options… | Checking sensor data… | Running the simulations… | Considering first contact… | Studying the anomaly… | Standing by… | Monitoring subspace chatter… | Weighing our protocols… | Running probability models… | Pondering the readings… | Balancing the warp core… | Interpreting the signal… | Consulting the science station… | Modelling the nebula… | Matching speed with it… | Holding steady… | Projecting a course… | Correlating the data… | Mulling over the logs… | Deliberating with the crew… | Running a quick briefing… | Raising an eyebrow… | Calculating the odds… | Checking long-range sensors… | Thinking at impulse… | Watching the viewscreen… | Considering diplomatic options… | Compensating for drift… | Pondering at the helm… | Reviewing standing orders… | Taking it under advisement… | Following ship's protocol…
488 - Reading (15): Reviewing the ship's logs… | Accessing the library computer… | Reading the sensor logs… | Scanning the technical manuals… | Reading the mission profile… | Pulling up the schematics… | Reviewing the incident report… | Reading the duty roster… | Checking the database… | Studying the star charts… | Reviewing the flight plan… | Reading the engineering report… | Accessing the archives… | Reading the transmission… | Reviewing the specifications…
489 - Searching (15): Running a long-range scan… | Sweeping the sector… | Scanning for signatures… | Running a level-three sweep… | Searching the database… | Tracing the energy trail… | Scanning the nebula… | Sweeping all decks… | Searching the subspace bands… | Tracking the particle trail… | Running a sensor sweep… | Cross-referencing the records… | Scanning nearby systems… | Locking onto the signal… | Searching the logs…
490 - A note (15): Making a log entry… | Noting it in the duty log… | Recording a personal log… | Updating the ship's records… | Logging the readings… | Filing a report… | Recording the coordinates… | Adding a supplemental entry… | Noting it for the briefing… | Marking it in the database… | Updating the star chart… | Logging the anomaly… | Recording sensor data… | Noting the course change… | Filing it with the computer…
491 - Handing to Engineering (15): Paging the engine room… | Sending it down to engineering… | Hailing engineering… | Handing it to the chief engineer… | Briefing the away team… | Assigning a repair crew… | Routing it to engineering… | Calling the duty officer… | Transferring the task… | Opening a channel below… | Sending a work order… | Alerting engineering… | Dispatching a repair team… | Relaying orders below… | Paging the night shift…
492 - Any other tool (15): Rerouting auxiliary power… | Realigning the sensor array… | Reversing the polarity… | Boosting the shields… | Recalibrating the transporter… | Stabilising the warp field… | Adjusting the phase variance… | Purging the plasma conduits… | Bypassing the relay… | Cycling the deflector… | Resetting the subsystems… | Rebooting the console… | Tightening the tractor beam… | Patching the conduits… | Venting the plasma…
493- **Pirate adventure**:
494 - Thinking (41): Practising insult swordfighting… | Consulting the parrot… | Pondering the map… | Counting the doubloons… | Squinting at the horizon… | Reading the stars for a heading… | Plotting a course for the island… | Weighing anchor thoughtfully… | Chewing on a sea biscuit… | Listening to the waves… | Tracing the coastline… | Mending the sails… | Polishing the spyglass… | Watching for sea monsters… | Bargaining with the cook… | Dodging the cannonballs… | Charting unknown waters… | Puzzling over a riddle… | Following the gulls… | Tying sailor's knots… | Sharpening the cutlass… | Thinking like a buccaneer… | Testing the wind… | Taking a turn at the wheel… | Recounting old tales… | Studying the tides… | Untangling the rigging… | Trading with the locals… | Avoiding the ghost ship… | Feeding the parrot crackers… | Polishing the brass… | Brushing up on swordplay… | Planning a daring escape… | Steering clear of reefs… | Inspecting the cargo… | Pondering a bottled message… | Haggling over a monkey… | Learning to swim… | Climbing the crow's nest… | Counting the barrels… | Rowing quietly ashore…
495 - Reading (15): Studying an old treasure map… | Reading the captain's log… | Unrolling a weathered chart… | Reading a message in a bottle… | Deciphering a pirate riddle… | Leafing through the logbook… | Reading the wanted posters… | Studying the star almanac… | Reading the tavern notices… | Squinting at faded ink… | Reading the ship's articles… | Poring over sea charts… | Reading the harbour ledger… | Inspecting old letters… | Decoding the map's margins…
496 - Searching (15): Digging where the X is… | Searching the hold… | Scanning the horizon… | Combing the beach… | Searching the shipwreck… | Poking around the tavern… | Following the treasure map… | Checking every barrel… | Diving for sunken loot… | Exploring the sea caves… | Searching under the floorboards… | Pacing out the steps… | Looking behind the waterfall… | Checking the captain's quarters… | Peering through the spyglass…
497 - A note (15): Scrawling in the logbook… | Adding to the ship's manifest… | Marking the map with an X… | Inking the ship's log… | Writing a note in a bottle… | Recording the plunder… | Noting the tide times… | Scribbling on parchment… | Updating the treasure map… | Writing it in the ledger… | Carving it on the mast… | Noting the heading… | Adding to the ship's articles… | Signing the logbook… | Jotting down a riddle…
498 - Handing to Engineering (15): Rousing the crew… | Sending it below decks… | Calling all hands… | Passing it to the quartermaster… | Ringing the ship's bell… | Sending the cabin boy… | Briefing the first mate… | Signalling the other ship… | Sending a rowboat ashore… | Handing it to the carpenter… | Whistling for the bosun… | Sending word by parrot… | Assembling the landing party… | Rallying the scallywags… | Passing orders down the line…
499 - Any other tool (15): Hoisting the mainsail… | Swabbing the deck… | Bribing the grog machine… | Loading the cannons… | Patching the hull… | Trimming the sails… | Raising the anchor… | Coiling the ropes… | Bailing out water… | Oiling the cutlasses… | Tarring the planks… | Lashing down the cargo… | Turning the capstan… | Repairing the rudder… | Hauling on the lines…
500- **Terminal**:
501 - Thinking (42): Delcambring… | Thinking… | Pondering… | Ruminating… | Reasoning… | Planning… | Analysing… | Considering… | Evaluating… | Computing… | Processing… | Iterating… | Deliberating… | Inferring… | Synthesising… | Hypothesising… | Calculating… | Contemplating… | Strategising… | Musing… | Brainstorming… | Deducing… | Formulating… | Theorising… | Orchestrating… | Architecting… | Untangling… | Resolving… | Weighing tradeoffs… | Tracing the logic… | Checking invariants… | Simulating… | Debugging mentally… | Building context… | Refining… | Compiling thoughts… | Indexing… | Optimising… | Reading the stack… | Parsing intent… | Spelunking… | Bootstrapping…
502 - Reading (15): Reading files… | Loading context… | Catting files… | Opening buffers… | Paging through source… | Tailing logs… | Reading the diff… | Loading the tree… | Inspecting modules… | Reading headers… | Scanning imports… | Viewing the file… | Diffing… | Dumping contents… | Parsing files…
503 - Searching (15): Grepping… | Globbing… | Ripgrepping… | Finding files… | Walking the tree… | Matching patterns… | Searching symbols… | Querying the index… | Following imports… | Listing directories… | Filtering results… | Locating definitions… | Resolving references… | Tracing callers… | Searching history…
504 - A note (15): Appending notes… | Writing to scratch… | Saving state… | Committing to memory… | Writing a todo… | Logging… | Persisting notes… | Updating the notebook… | Caching that… | Echoing to file… | Recording context… | Flushing notes… | Writing a comment… | Staging notes… | Saving a snapshot…
505 - Handing to Engineering (15): Dispatching to Engineering… | Spawning a worker… | Forking a task… | Queueing the job… | Piping it to Engineering… | Delegating… | Opening a branch… | Scheduling the work… | Handing off… | Enqueuing… | Launching a subtask… | Writing the spec… | Assigning the job… | Starting a process… | Kicking off the build…
506 - Any other tool (15): Running tools… | Compiling… | Spinning up… | Executing… | Invoking… | Calling the API… | Running checks… | Linting… | Installing… | Linking… | Building… | Fetching… | Polling… | Syncing… | Warming caches…
507
508## Round: Astra round 2 (final), REQUEST CHANGES
509
510Five of six resolved; one open and one new (`~/.cache/tmp/equipo/comprev2-final.md`):
5111. Disk quota at admission. The one-hour exemption is gone. A new
512 attachment is admitted (table `file_admits`) only if, counting
513 delivered files and every arriving one by its declared size, it fits
514 the person's and the runner's quota once room is made from the oldest
515 delivered files nothing protects. Protected: files a running turn
516 names, and files admitted whose message has not yet named them (the
517 message frame clears their admissions; the running turn protects them
518 from then on). Otherwise it is refused (`file_refused`): every chunk is
519 acked unwritten, and the turn fails `runner_storage_full`, which the
520 conversation says in words: "Your runner has no room left for these
521 attachments. Try fewer or smaller files." (copy for review, accepted
522 for now). The sweep enforces the same quota with the same protection.
523 `TestAttachmentQuotaAdmission`: a 1-file, 1-byte quota never holds a
524 byte over (three 10-byte files all refused); a protected file is
525 never removed to make room and the new one is refused; once its turn
526 ends it makes room; an arriving file counts. Failed with the room check
527 off, with arriving files uncounted, and with running turns unprotected.
528 `TestContractStorageFullInWords` failed first on the old page.
5292. A sweep stops when protection cannot be read: `runningAttachments`
530 returns an error on a query, scan, decode or iteration failure, and
531 `Files.protected` on a cancelled context; nothing is removed and the
532 failure is logged. `TestAttachmentSweepAbortsOnLookupFailure`
533 (cancelled, an injected query error, a record that does not decode;
534 then a healthy sweep keeps the protected and removes the rest). Failed
535 with a failed lookup read as "nothing protected".
536
537CI after round 2. a45234a failed twice on `TestRunnerCancelAndSupersede`:
538the runner closed the stream straight after acking the message. It passed
539on d0d690e with the same runner code, and locally in 800 isolated runs
540and three full package runs. The test link now logs its stream warnings,
541so a recurrence names its cause (cc6567a). cc6567a then hit the go test
542ten-minute timeout in `internal/headless` under CI load:
543`TestHeadlessAttachments` built four environments (43s locally). The three
544Claude scenarios now share one instance and runner, with the relay first,
545because it sends before the runner starts. Codex keeps its own. That takes
54620 to 30s locally. With image blocks switched off, F1 still fails.
547Running the four in parallel was tried and dropped: under the race
548detector all four waited on `no_connection`.
549
550## Staging
551
552Not restaged (the controller sequences it).
553
554## Blockers
555
556None.
557