ai:skills › d3-f-review · version 18 ·
Properties
name
d3-f-review
description
Reviews — your person goes through a doc, tickets, notices or a draft with you, as cards beside what they read; every review page shares one set of cards. Get skills only from /api/v2/skills/d3.
feature
rev
concepts
[card, docreview, ticketreview]
tags
#skill #feature #d3skill

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-done when you made the change asked for; ai-answered when you only answered (a fact, an explanation: nothing changed or decided), and the person settles it; ai-question when you ask (the answer holds a ?). Your answer is appended to the card's thread. A reply's card is its re-<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 once PATCH /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> with If-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 subject TicketReview:<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's items are 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 posts ai: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>}} (set for once the id is back, a PATCH with If-Match: v<n>), and the same {short, rec, title, questions?, for} on each ticket's ReviewCard (PUT /api/v2/d2dom/ReviewCard/<P-n> with If-Match: none, or PATCH with If-Match: v<ver>): with cards on, the page reads the abstract from the card, the newest for.at. Then link them /page/TicketReview?ids= with the same ids in the same order, which opens that review. Never a role: any review with kind: "" and any other title: it becomes the page's default open review.
  • Needs: the review, GET /api/v2/d2/TicketReview is not it: it is a d2 object, GET /api/v2/d2dom/TicketReview/<id> (its items, each {id}), and each ticket, GET /api/v2/d2/Item/<id> (its doc). 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, resume or answer; the page marks that button) and questions ([{q, options, pick: 0}] from its ## Questions or a question item's text, your pick first, Details requested last); leave questions empty 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>"} with If-Match: v<n> (items the 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 stale If-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, send per 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 it POST /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} · hold nothing · Details requested is never a close: it reaches you at once as an ai:review: about P-n line, 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 pick POST /api/v2/cmd/history/record {type: "decision", person, text, item}, each item done: true (or error: <the refusal>) and state: "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 has of: notices, its items keyed c:<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> with If-Match: v<n>, {items, state: "ready", agent: "<you>"}, items the whole list, each of yours with title, 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 (the P-n that fixes it, for goes) and options (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 the a of the qa entry it answers, named by its id (the line's qa:; else its at), never another one's: d2 keeps every question on the card whatever you save (Spec ^pipe-107), then ask: "answered" (→ review_write). Change its short, rec or ticket if 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 / keep as picked, ticket files it (held for their send), goes notes the item it goes with. Then each item done: true (or error: <the refusal>), the review state: "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 with POST /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 with error): no card yet → PUT /api/v2/d2dom/ReviewCard/<P-n> with If-Match: none; one there → PATCH with If-Match: v<ver>, the fields at the top level ({picks: …}). A comment-only line has no decision: mark its review item done: true all 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>, then PATCH /api/v2/d2dom/TicketReview/<id> {items, state?, agent: "<you>"} with If-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

  1. Read the reviewed topic's draft first: GET /api/v2/drafts/<T> (404: none, edit on the published text) (→ draft_read).
  2. Before they read, your own proposals, a card per section (→ card_propose).
  3. 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).
  4. state: ai-done when you made the change asked for; ai-answered when you only answered (a fact, an explanation: nothing changed or decided), and the person settles it; ai-question when you ask.
  5. A choice is pick lines, your pick first and ticked: - (x) <pick> / - ( ) <other>.
  6. Each change into the draft, never the published text: PUT /api/v2/drafts/<T> with If-Match (→ draft_save).
  7. 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).
  8. At Done: one summary, publish on their word (→ publish_draft).
  9. Verify: read the draft back (GET /api/v2/drafts/<T>, after a publish the topic) and each card's state. Tickets are reviewed on the Ticket review page: a:ticket_review. The review rules whole: &feature=review.

Updated by razie · version 18