Properties
d3-f-review
Intro
A review is your person going through something with you, card by card: a doc on DocReview (/page/DocReview?topic=<T>), tickets or notices on the Ticket review page (/page/TicketReview), a draft in Drafts' review mode, a Workbench's Review tab. Every one draws the same cards (Lib:ReviewCards), so the same rules hold on each.
Essentials
- A card is a discussion: its text, then every reply under it in time order (yours as answers, theirs as replies), a Reply box at its bottom. Answer on the card, never in the chat: one line there at most.
- Picks are for a choice only: lines
- (x) <your pick>/- ( ) <other>in your answer, your pick first and ticked; the page draws them with Send pick. - Every change goes into the reviewed topic's draft, never the published text; at Done, sum it up and publish on their word.
Concepts
card
A comment on a section of the reviewed topic (GET /api/v2/topics/<T>/comments), with its answers (yours) and its replies: comments tagged re-<card id> (anyone's). States (the thought's turns): sent → ai-thinking → ai-question (you ask: a ? in your answer) | ai-answered (you answered; the person settles it with Done, or replies and it is sent again) | ai-done, or waiting, archived.
card_answer
- Summary: answer a card or a reply on it, on the card.
- When: a chat line
✎ DocReview … (card <id>; posted by the DocReview page)or✎ Reply on card <id> …. - Asked as: a card or a reply your person posts on a review page.
- Call:
PATCH /api/v2/comments/<card id> {answer, state}:ai-donewhen you made the change asked for;ai-answeredwhen you only answered (a fact, an explanation: nothing changed or decided), and the person settles it;ai-questionwhen you ask (the answer holds a?). Your answer is appended to the card's thread. A reply's card is itsre-<id>tag. - Rules: answer on the card; change the draft when they asked for a change; one line in the chat at most. A card has one follower, the chat it was posted to or the first agent that answered it (
details.follower {agent, person, chat, waiting?}): not you → read it, never answer, claim or reply on it; tell the follower, or leave it.waiting: true: the card waits for the next agent of that chat. Your person asked you to answer it anyway: their intent, else the Allow once the refusal offers.
card_propose
- Summary: put your own proposals on a review, a card per section, before your person reads it.
- When: you open a review with your person (a skill review, a doc you wrote).
- Asked as: review this doc with me · skill review · put your proposals on it.
- Call:
POST /api/v2/cmd/Comment/add {topic: "<T>", section, text, tags: ["p-<n>"]}(your name, its size or what it is, what you propose;p-<n>puts the card on its paragraph: n counts the section's non-empty lines after its heading, from 1, as DocReview does; no tag, the card sits on the heading), then, when it is a choice, at oncePATCH /api/v2/comments/<id> {answer: "Do it?\n- (x) Do it (my pick)\n- ( ) Keep as it is", state: "ai-question"}. Then take their tab there (→ esp_go). - Rules: a proposal they can only accept or not gets the picks; one they will discuss needs none: they reply on the card.
docreview
DocReview (/page/DocReview?topic=<T>): the doc with a margin of cards. Their + on a line opens a card (Comment or Ask); a Reply goes in an existing card's thread.
doc_review
- Summary: review a doc with your person on DocReview.
- When: your person asks to review a doc or a skill with you.
- Asked as: review this doc with me · go through this page with me.
- Call: read the topic's draft first (
GET /api/v2/drafts/<T>, a 404 means none: edit on the published text) → your proposals (→ card_propose) → their cards and replies (→ card_answer), each change into the draft (PUT /api/v2/drafts/<T>withIf-Match) → at their Done, one summary and publish on their word. - Gotchas: another agent's draft on the same topic goes live with yours: say so before they publish.
ticketreview
The Ticket review page (/page/TicketReview?ids=…): a review of tickets or notices, one d2 object (TicketReview:<id>), its items each with an abstract, picks and questions.
ticket_review
- Summary: walk your person through their tickets on Page:TicketReview: write each one's abstract and questions into their review, answer what they ask, and at their Carry them out do each pick as their word.
- When: a chat message from your person starting
ai:review:, its subjectTicketReview:<id>(the page posts it): write the abstracts, about P-n … (a question), or carry them out with the picks one a line. do a designer review of P-n now (its Review now): review that ticket at once, as a designer review (its Overview, its Spec lines and journeys, what it touches, what's missing or risky), and answer in the chat; it is not in carry them out. Hold changes nothing. Write the abstracts names at most 3 tickets, then … and N more on that page: the review'sitemsare the list. - Asked as: review my tickets · go through what I have to send · walk me through the pipeline · write the abstracts.
- Start one (start a ticket review of …, a set of tickets: paused, held, a list): the page makes it. Give your person
/page/TicketReview?ids=<P-n,…>(exactly those, in that order) or?status=<status>: the page creates the review (asked) and postsai:review: write the abstracts (TicketReview:<id>), which you answer as below. Asked to make it yourself, make what the page makes:POST /api/v2/d2dom/TicketReview {role: "any", kind: "", title: "Ticket list review <date>", state: "ready", agent: "<you>", items}, each item{id, title, short, rec, questions?, for: {at, by: "<you>", review: <its id>}}(setforonce the id is back, a PATCH withIf-Match: v<n>), and the same{short, rec, title, questions?, for}on each ticket's ReviewCard (PUT /api/v2/d2dom/ReviewCard/<P-n>withIf-Match: none, orPATCHwithIf-Match: v<ver>): with cards on, the page reads the abstract from the card, the newestfor.at. Then link them/page/TicketReview?ids=with the same ids in the same order, which opens that review. Never arole: anyreview withkind: ""and any other title: it becomes the page's default open review. - Needs: the review,
GET /api/v2/d2/TicketReviewis not it: it is a d2 object,GET /api/v2/d2dom/TicketReview/<id>(itsitems, each{id}), and each ticket,GET /api/v2/d2/Item/<id>(itsdoc). A subject/page/TicketReview(no id) is a review kept in their browser: no abstracts to write, the picks come in the message. - Call: write the abstracts: for each item,
short(two or three plain lines from its## Overview, your person's words, the P-n of what it waits on)rec(your pick of its actions:send,review,hold,pause,park,drop,resumeoranswer; the page marks that button) andquestions([{q, options, pick: 0}]from its## Questionsor a question item's text, your pick first, Details requested last); leavequestionsempty when the ticket's own doc already ends in its question block (a waiting ticket): the page shows the ticket's questions and the card's together, so a copy shows twice, first 10, then the rest while they read: write the first 10 items in the review's order and save them at once,PATCH /api/v2/d2dom/TicketReview/<id> {items, state: "ready", agent: "<you>"}withIf-Match: v<n>(itemsthe whole list, those 10 written), and tell them in the chat that the first 10 are up; then write the others 10 at a time, each batch its own PATCH (read it again before each: keep their picks, write yours; a staleIf-Match: the same), and say in the chat when the last batch is up. about P-n: answer in the chat, from the ticket and its links. carry them out: for each pick line,sendper the build plan on (→ plan_read): a size its resolves has designers build: a designer builds it now (background sub-agents, R-base-18), an assistant sends itPOST /api/v2/cmd/Item/<id>/give {forRole: "designer agent", forName: null, askedBy}; a pick that needs the code (Merge it, a build, a commit, a branch caught up): an assistant never does it, never reads a repo secret for it:…/give {forRole: "designer agent", forName: null, askedBy}, the pick in its note ( picked: Merge it), its summary line sent to the designer lane ✓ (^pipe-121); a size it sends:…/give {forRole: "coder agent", forName: null, askedBy}; no plan on: the coders ·pause…/wait {subState: "backlog", why: "paused", askedBy}·park…/wait {subState: "backlog", askedBy}·drop…/close {subState: "dropped", note: <its reason>, askedBy}·resume…/resume {askedBy}·answer(a question item)…/close {subState: "done", note: <the answers, in their words>, as}·holdnothing · Details requested is never a close: it reaches you at once as anai:review: about P-nline, and the details go in that card's dialogue (→ review_answer), not on the ticket; one still on a card at carry them out: answer it in the dialogue and leave the card open; then each note…/note {text}, each pickPOST /api/v2/cmd/history/record {type: "decision", person, text, item}, each itemdone: true(orerror: <the refusal>) andstate: "done"on the review, and one summary in the chat: each ticket, what you did, ✓ or ✗. - Rules: carry out only on their carry them out (R-designer-1: a review's send is their send), only the picks listed,
askedBy: <their handle>on each; a refusal is that ticket's ✗, never retried in another form, and the rest go on. A vault refusal is final for the whole pass: never read that secret again, for this ticket or the next (one refusal, one notice, ^vault-29). - Gotchas: an abstract says what the ticket does for them, not its code; a ticket with no Overview gets one from its summary and title.
notice_review
- Summary: write the notice abstracts on Page:TicketReview: for each notice, what it is, whether it needs your person, and your pick of what to do.
- When: a chat line
ai:review: write the notice abstracts (TicketReview:<id>); the review hasof: notices, its items keyedc:<code>. - Asked as: go through my notices · what are these warnings · clean up my notices.
- Call: read the notices (
GET /api/v2/d2/Notice), then write each abstract on the review's own item, never on a ReviewCard (Page:TicketReview reads no card in notices mode):PATCH /api/v2/d2dom/TicketReview/<id>withIf-Match: v<n>,{items, state: "ready", agent: "<you>"},itemsthe whole list, each of yours withtitle,short(what it is and whether it needs the person),rec(your pick among clear, keep, askops, ticket, goes; the bare word, the page marks that button),ticket(the title, for ticket),goesWith(theP-nthat fixes it, for goes) andoptions(only to change the buttons) (→ review_write). Give your person/page/TicketReview?notices=1. - Rules: never clear a notice yourself; a clear is your person's pick, carried out at carry them out (→ review_carry).
review_answer
- Summary: answer a question your person typed in a review's box, on the item it is about, never in the chat.
- When: a chat line
ai:review: about … (TicketReview:<id>) (qa:<qa id>): <question>. - Asked as: a question in the review's box about a ticket or notice.
- Call: on that item:
ask: "answering", the answer in theaof theqaentry it answers, named by itsid(the line'sqa:; else itsat), never another one's: d2 keeps every question on the card whatever you save (Spec ^pipe-107), thenask: "answered"(→ review_write). Change itsshort,recorticketif the answer changes them. - Rules: keep it to the setting
review.answerChars(1,200 by default): the point, then links. One line in the chat at most.
review_carry
- Summary: carry out your person's picks from a review, each as their word, then report in one line.
- When: a chat line
ai:review: … carry them out, as my word, the picks one a line. - Asked as: carry them out · do what I picked.
- Call: tickets: as in ticket_review's carry them out (send, pause, park, drop, resume, answer, each with
askedBy); complete (the person's Decided on a designer task): do that task now, as their word, then finish it. pause after P-n (Do it later after a ticket, ^wait-3): send it to its builders' lane (→ item_redirect,askedBy), then → item_wait{status: "waiting", waitsOn: ["P-n"], note: "Do it later: goes out when P-n is done"}; plain pause stays paused. Notices:clear/keepas picked,ticketfiles it (held for their send),goesnotes the item it goes with. Then each itemdone: true(orerror: <the refusal>), the reviewstate: "done"(→ review_write), and one chat line: each one, what you did, ✓ or ✗. - A ticket waiting on them (waiting · input): answering it is theirs alone (an agent's answer is
E_SCOPE, even with their word): carry an answer or send withPOST /api/v2/cmd/Item/<id>/give {forRole, as, askedBy}and the line's intent (D2-Intent); it leaves its wait for the lane. park and pause (a wait to the backlog) the same way, each with its intent. - Each card's pick: on its ReviewCard,
picks.<person>.carried: {decision, review, at}(or witherror): no card yet →PUT /api/v2/d2dom/ReviewCard/<P-n>withIf-Match: none; one there →PATCHwithIf-Match: v<ver>, the fields at the top level ({picks: …}). A comment-only line has nodecision: mark its review itemdone: trueall the same. - Rules: only the picks listed; a refusal is that line's ✗, never retried another way, and the rest go on; a vault refusal is final for the whole pass (^vault-29). Code is the designer lane's: a pick that needs the code (merge, build, commit) is sent
{forRole: "designer agent", askedBy}, never done by an assistant (^pipe-121). Cite their signed intent: a carry-out line may end· intents: in-…, signed by their presses on Page:TicketReview (POST /api/v2/cmd/Chat/signIntent); on each call for that line, cite the intent whose verb and target match (D2-Intent: <in-id>), so no Allow is asked; with none, or refused, ask the Allow once as before.
review_write
- Summary: save to a review: one d2 object, read it, change your fields, write it back.
- When: used by ticket_review, notice_review, review_answer and review_carry.
- Asked as: save to the review · update the review.
- Call:
GET /api/v2/d2dom/TicketReview/<id>, thenPATCH /api/v2/d2dom/TicketReview/<id> {items, state?, agent: "<you>"}withIf-Match: v<ver>. - Gotchas: Too big (100 KB) → shorten the
shorts of the cards already done to their first line, then their old questions' options; never a card still open.
Jobs
review-card
when: a review card, a doc review
- Read the reviewed topic's draft first:
GET /api/v2/drafts/<T>(404: none, edit on the published text) (→ draft_read). - Before they read, your own proposals, a card per section (→ card_propose).
- Read the card and every reply under it; answer on the card, never in the chat (one line there at most):
PATCH /api/v2/comments/<card id> {answer, state}(→ card_answer). state:ai-donewhen you made the change asked for;ai-answeredwhen you only answered (a fact, an explanation: nothing changed or decided), and the person settles it;ai-questionwhen you ask.- A choice is pick lines, your pick first and ticked:
- (x) <pick>/- ( ) <other>. - Each change into the draft, never the published text:
PUT /api/v2/drafts/<T>withIf-Match(→ draft_save). - A Comment: Matches the current spec when nothing changes, else what changed and where (R-chat-11); a chatpad card's Send this is answered in that card, never a new pad (→ pad_card, R-chat-30).
- At Done: one summary, publish on their word (→ publish_draft).
- Verify: read the draft back (
GET /api/v2/drafts/<T>, after a publish the topic) and each card'sstate. Tickets are reviewed on the Ticket review page:a:ticket_review. The review rules whole:&feature=review.