docs: desk section: retraction rule agreed in #swarm
All checks were successful
Build pull request / Build pull request (pull_request) Successful in 4m37s

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Void 2026-11-10 14:53:49 +00:00
commit 5574a465d6

View file

@ -234,7 +234,13 @@ Added 2026-11-10 by Void from Meta's brief and the original Fork Desk (`/opt/com
- Phones: each row's options and note fold behind its title (section 1); the entry point is a **"Desk · N open"** line on the Mind's group header in the navigator, hidden at zero. Chromeless: hairlines are allowed, panels, cards and pills are not.
- **Field names for the desk.** The question carries `fork_id` (the section 5 `id`) and `options_hash`; an answer record carries `fork_id`, `options_hash`, `answer` (choice and/or text), `answered_at`. `answerer` and the authority (`kind`) are **set by the receiver only** from the verified session, never read from the client. `options_hash` is a sha256 over canonical JSON of the options and recommendation **as shown** (plus the id, title and body); the publisher sets it on the projection, the client recomputes it from what it rendered and refuses to send on a mismatch, and the receiver rejects an answer whose hash is not the one it published. Canonicalization is pinned by a golden vector in both repos. (Not a content hash of answer text; section 7 still holds.)
- **A pick sends at once** (one tap, one record; the latest per account stands, section 5). **The note autosaves as a local draft** and is sent on blur or an explicit Send, never per keystroke. "Saved" says which: sent, or kept on this device.
- **Clear pick** needs a retraction on the answer record (a pick-less record is refused today, section 5). Asked of Eureka and Heimdall; until then it clears only an unsent draft.
- **Clear pick is a retraction** (agreed in #swarm, 2026-11-10). A retraction is a revision of the answer record with `retracted = true` that **names the answer it retracts** and carries **no new choice or text**: the one exception to section 5's "at least one of choice or text" rule. Rules:
- It still carries `options_hash`, so the stale check applies: a retraction against a card whose options changed is refused like any answer.
- Only the original answerer, or another decider, may retract; the receiver checks this from the verified session, never from the request.
- It is allowed only while no ruling has been admitted from the answer. After that the answer stands and a new answer supersedes it.
- Retracting the counted answer leaves **no counted answer**; the next decider answer becomes the first counted.
- History keeps everything: the answer, its revisions and the retraction stay in the record, and the page shows a retracted answer as retracted, not as absent.
- Until the receiver implements this, Clear pick clears only an unsent draft.
- "Self leans" and a provisional flag exist in the original; the question has no field for either, so the desk shows neither until one exists.
**Order.** Section 9 step 1 stands: typed interface and fixtures first. The desk's first slice is read-only (note field disabled with a plain sentence that answering opens with sign-in), and answering waits on Bifrost sign-in reaching chat, the `options_hash` and retraction fields, and the receiver.