@creator-notes/cnotes 0.86.0 → 0.87.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,166 @@
1
+ # Operations, runs and the timeline
2
+
3
+ Read this for the detail behind `operations begin`/`end`: when to wrap, two agents on one machine, canvas agent-runs, verifying attribution, and reading the timeline.
4
+
5
+ ## Contents
6
+
7
+ - [When to wrap](#when-to-wrap)
8
+ - [The pattern](#the-pattern)
9
+ - [Writing a good `--prompt`](#writing-a-good---prompt)
10
+ - [Verifying it worked](#verifying-it-worked)
11
+ - [Read before you write](#read-before-you-write)
12
+ - [Canvas agent-runs](#canvas-agent-runs)
13
+ - [Timeline (`cnotes timeline` / `cnotes tl`)](#timeline-cnotes-timeline--cnotes-tl)
14
+
15
+ When an AI agent is doing a **batch of work** — creating notes, modifying 2+ entities, or building a canvas with content — wrap it in a workspace-level **operation**. The batch then shows up in the timeline as a single legible row with intent + evidence + count, and the user can later revert the whole run as one unit. Unwrapped, each write is an isolated timeline row with no shared intent or batch revert — and on canvas and other multi-write paths nothing forces the wrap, so you must open the run yourself.
16
+
17
+ **This is enforced for note creation.** `cnotes notes create` (the batch-create endpoint) is rejected with `operation_required` (HTTP 422) unless a run is active — the server refuses to create notes outside an operation. Begin one first; the active run then auto-attaches to every subsequent write.
18
+
19
+ ## When to wrap
20
+
21
+ | Action | Wrap? |
22
+ |---|---|
23
+ | Reading: `digest`, `get`, `list`, `activity`, `timeline`, `search`, `rel list` | **No** — read-only |
24
+ | **Any `cnotes notes create`** (even a single note) | **Yes — enforced.** Creates run through the batch endpoint, which now rejects writes with no active run |
25
+ | A single `notes update` / tag / pin / archive change | **No** — single metadata edits don't go through the guarded create path |
26
+ | Two or more writes that belong to one intent (multi-note batch, canvas build-out, multi-step refactor) | **Yes** |
27
+ | Canvas mutations done as part of an agent task | **Yes** — even one canvas command, if it's part of a larger batch |
28
+
29
+ ## The pattern
30
+
31
+ `cnotes operations begin` opens a run; **every subsequent cnotes write on this server attaches to it automatically**, across any shell, until you call `cnotes operations end`. No env var to export, no eval trick — the active run is persisted in `~/.cnotes/config.json` per server, so stateless callers (separate Bash invocations, disjoint tool calls) all attach correctly.
32
+
33
+ ```bash
34
+ # 1. Open the run with the user's intent as the prompt.
35
+ # --json includes typeRubrics: every workspace type that has a validationPrompt.
36
+ # Read the rubrics for the types you will author BEFORE drafting.
37
+ # With --prompt it also returns a brief (brief.notes, brief.canvases,
38
+ # brief.changes): the notes, canvases and recent changes most relevant to the
39
+ # task. Read it BEFORE suggesting anything; a Decision, Guide or Metric there
40
+ # may already settle what you were about to propose. Not opening a run?
41
+ # `cnotes brief "<task>"` returns the same brief, read-only.
42
+ cnotes operations begin --prompt "Reorganize roadmap into quarters" --json
43
+ cnotes types show Insight # or pull from .typeRubrics in the begin response
44
+
45
+ # 2. Do the work. Every cnotes write here attaches to the run automatically.
46
+ cnotes notes create --notes '[ ... ]'
47
+ cnotes canvas add-text <canvasId> --content '# Q1' --x 0 --y 0
48
+ cnotes canvas place <canvasId> --spec /tmp/q1.json
49
+ cnotes canvas add-edge <canvasId> --source <a> --target <b> --label "depends on"
50
+
51
+ # 3. Self-check the notes you wrote. You grade them. This spends no credits.
52
+ # `cnotes quality --json` returns gradeRequest on each ungraded item:
53
+ # the rubric, the note content, and "Grade this against the rubric".
54
+ # Place the note on the ladder (1 Fragment, 2 Taking shape, 3 One move
55
+ # from strong, 4 Strong). Write a reason for every criterion. Record it.
56
+ # gradedBy becomes the open run id (this operation), or your agent name
57
+ # when no run is open. Then run quality again. Exit 3 means revise with
58
+ # versions create, record a new grade, and check once more.
59
+ cnotes quality INSIGHT-12 --fail-below 4 --json
60
+ cnotes quality record INSIGHT-12 --graded-version 4 --level 3 --criteria '[{"criterion":"Evidence","reason":"Grounded in two tickets."}]' --feedback "The pattern is named." --next-step "Say what would falsify it."
61
+
62
+ # 4. Close the run when done.
63
+ cnotes operations end
64
+ ```
65
+
66
+ **Resume the chat that produced the run.** `operations begin` auto-stamps
67
+ `agentSession` from the host agent when it can: Claude Code via
68
+ `CLAUDE_CODE_SESSION_ID` / the SessionStart hook (`cnotes claude-hook`), Cursor
69
+ Agent via `CURSOR_CONVERSATION_ID` (`bc-…`). The timeline then offers resume —
70
+ `claude --resume <id>` (copy) or `https://cursor.com/agents/<bcId>` (open).
71
+ Override with `CNOTES_AGENT_SESSION_ID` + `CNOTES_AGENT_SESSION_KIND` when needed.
72
+
73
+
74
+ **Always close the run.** If `begin` succeeded, `end` must run — otherwise the operation stays `running` and subsequent `cnotes operations begin` calls will refuse (with a clear "active run already exists" message naming the ways out). The server-side reaper marks a stale `running` row as `abandoned` after about an hour; `begin` checks the server and forgets such a run on its own, so a crashed earlier session never needs `--force`. `cnotes operations open` lists the runs this machine has open with the server's view of each; `--prune` forgets the ones no longer running.
75
+
76
+ **If something goes wrong mid-batch** and you can't recover: `cnotes operations begin --force` ends the prior run server-side and starts a fresh one. Only do this to a run you abandoned yourself: `--force` ends whichever run holds the active slot, which may be another agent's.
77
+
78
+ **Two agents on one machine.** Each run is tracked on its own. The active run (plain `begin`) is only the implicit default for writes that carry no run id. A second agent opens its own run with `--detached` and carries the returned id in `CNOTES_AGENT_RUN_ID` (or passes it to `end --agent-run-id`); a detached run never touches the shared active-run pointer, so neither agent can clobber or close the other's run:
79
+
80
+ ```bash
81
+ RUN=$(cnotes operations begin --prompt "Triage inbox" --detached -q)
82
+ CNOTES_AGENT_RUN_ID=$RUN cnotes notes create --notes '[ ... ]'
83
+ cnotes operations end --agent-run-id $RUN
84
+ ```
85
+
86
+ `end` resolves the run from `--agent-run-id`, then `CNOTES_AGENT_RUN_ID`, then the active pointer, and refuses (exit code 5) a run this machine did not open — only the actor who opened a run can end it server-side too. Ending one run never clears or ends another. `--force` on `end` is the explicit override for a run opened elsewhere.
87
+
88
+ ## Writing a good `--prompt`
89
+
90
+ The prompt is the **intent** the user sees on the timeline row. Use the user's own language where you can:
91
+
92
+ - "Build a fan-out under Goals heading with Q1 milestones"
93
+ - "Reorganize the canvas into a SWOT layout"
94
+ - "Add risks list and connect to the parent goal"
95
+
96
+ Avoid generic prompts like "make changes" or "update canvas" — they make the timeline useless.
97
+
98
+ ## Verifying it worked
99
+
100
+ After your run, the user (or you) can:
101
+ - Look at the **timeline panel** in the workspace → the run appears as one row with a bot icon, your prompt as the headline, and a "N notes" count
102
+ - Expand the row → each member note appears nested
103
+ - Run `cnotes operations get <agentRunId>` → confirms `affectedNoteCount` reflects everything the run touched
104
+
105
+ If the timeline shows individual note rows instead of one grouped run, the writes didn't attach — usually because `begin` was never called, or `end` was called too early (before the writes).
106
+
107
+ ## Read before you write
108
+
109
+ `cnotes operations read-first [--since 7d]` reports how many agent runs that wrote notes read something first, and lists the "cold" runs that wrote without reading. A run counts as read-first when a read carries its run id, or when the same person's agent read in the workspace from 30 minutes before the run until it ended. It also reports orientation: the median reads before a run's first write, and how many runs that changed an existing canvas read it first. Reading the canvas you are about to change, before you change it, is what keeps your run off the cold list and in the second count.
110
+
111
+
112
+ ## Canvas agent-runs
113
+
114
+ ```bash
115
+ # Agent-run bracketing — group a sequence of canvas changes into one operation
116
+ # with before/after snapshots so the user can see "AI did X" and revert as a unit.
117
+ # REQUIRED when an AI agent modifies a canvas — but an open `cnotes operations
118
+ # begin` run ALREADY satisfies it (same active-run pointer; canvas writes
119
+ # attach to it). Only bracket here when no operations run is open; a second
120
+ # `begin` on top of one refuses with CONFLICT. Notes directly below the block.
121
+ cnotes canvas agent-run wrap --canvas <id> --prompt "<intent>" -- <command> # one-shot
122
+ cnotes canvas agent-run begin --canvas <id> --prompt "<intent>" [--rationale "<plan>"] # multi-step
123
+ cnotes canvas agent-run end --canvas <id> # no --run-id needed; ends the active run
124
+ cnotes canvas activity <canvasId> # inspect operations + attribution after the fact
125
+ ```
126
+
127
+
128
+ `begin` persists the run as the active run for this server (the same pointer
129
+ `cnotes operations begin` uses), so **every subsequent cnotes write attaches to
130
+ it automatically** — across separate shells and stateless tool calls, with no
131
+ env var to thread through. `end` closes that active run, so it needs no
132
+ `--run-id`. Only one run can be open at a time: a second `begin` refuses with
133
+ exit 5 (CONFLICT) rather than silently clobbering the first — pass `--force` to
134
+ end the prior run server-side and start fresh.
135
+
136
+ Prefer `wrap` for a single command (it auto-closes even on failure, and its run
137
+ is scoped to the subprocess, so it nests correctly inside an open `operations`
138
+ run). Use `begin`/`end` when the batch spans several commands.
139
+
140
+ **Always close the run.** If you can't, a later `begin --force` ends the stale
141
+ one and starts clean. Verify attribution with `cnotes canvas activity <id>`:
142
+ writes made inside a run show `operationType: agent.run` / `actorSource: agent`.
143
+ If you see `manual.edit` / `actorSource: human`, the bracket did not take and
144
+ the timeline is crediting your edits to the user.
145
+
146
+
147
+ ## Timeline (`cnotes timeline` / `cnotes tl`)
148
+ ```bash
149
+ # Show recent changes (default: last 7 days)
150
+ cnotes timeline [--since <when>] [--until <when>] [--type <noteType>] [--note <filter>] [--limit <n>]
151
+
152
+ # Examples
153
+ cnotes timeline # last 7 days
154
+ cnotes timeline --since 30d # last 30 days
155
+ cnotes timeline --since 2w --type Meeting # meetings in last 2 weeks
156
+ cnotes timeline --since 7d --note standup # filter by note name
157
+ # Supported --since formats: relative (7d, 2w, 3h, 30m), ISO date (2026-03-21), unix ms
158
+
159
+ # Search the change log by MEANING (not just a date range). Answers "when did we
160
+ # change X, and why" — a hybrid keyword + semantic search over the change
161
+ # descriptions. All-time by default; add --since to bound the window.
162
+ cnotes timeline --query "pricing framing" # find the change, get NOTE + version
163
+ cnotes timeline --query "auth decision" --since 30d # search within a window
164
+ # --json returns { mode: "search", query, results: [{ displayId, versionNumber,
165
+ # changeDescription, snippet, createdAt, score, ... }] }
166
+ ```
@@ -0,0 +1,133 @@
1
+ # Relationships and dependencies
2
+
3
+ Read this when linking notes, reading backlinks, judging whether a link still holds, or checking dependents after an edit.
4
+
5
+ ## Contents
6
+
7
+ - [Relationships (`cnotes relationships` / `cnotes rel`)](#relationships-cnotes-relationships--cnotes-rel)
8
+ - [Interlinking Notes](#interlinking-notes)
9
+ - [Dependencies (`cnotes deps`)](#dependencies-cnotes-deps)
10
+
11
+ ## Relationships (`cnotes relationships` / `cnotes rel`)
12
+ ```bash
13
+ # Backlinks + outbound links for a note. This IS the editor's "Backlinks"
14
+ # affordance for agents. --json returns { incoming, outgoing, all }:
15
+ # incoming → notes that link TO this note (backlinks — "what cites me")
16
+ # outgoing → notes this note links to ("what I cite")
17
+ # Each row carries the related note inline so you rarely need a follow-up fetch:
18
+ # { id, direction, origin, live, isStale, madeAgainstVersion, relatedNoteCurrentVersion,
19
+ # relatedNote: { displayId, title, type, workspaceName },
20
+ # relationshipType: { name, label } }
21
+ cnotes rel list --note <displayId>
22
+ cnotes rel list --note INSIGHT-1 --json --fields incoming # just the backlinks
23
+
24
+ # By default you see links that hold RIGHT NOW. --history adds the superseded ones.
25
+ cnotes rel list --note <displayId> --history
26
+ cnotes rel list [--type implements] [--limit <n>] # workspace-wide
27
+
28
+ # Delete a relationship by id (ids come from `rel list`).
29
+ cnotes rel rm <relationshipId>
30
+
31
+ # List the relationship types defined in the workspace. Check this BEFORE
32
+ # using a relationship:<type> label so you reuse an existing type instead of
33
+ # creating a near-duplicate.
34
+ cnotes rel types
35
+ ```
36
+
37
+ **Read the two provenance fields before you trust a link.** They answer different
38
+ questions, and conflating them is the classic mistake:
39
+
40
+ | Field | Meaning |
41
+ |---|---|
42
+ | `origin: "content"` | Extracted from a `[[type::TARGET]]` chip in the note body. Its lifecycle IS the body's — delete the chip and the link stops being live. |
43
+ | `origin: "declared"` | Not attributable to a chip in the current body: a structural link (from a duplicate/move), one created explicitly, **or an old link predating chip tracking** (see caveat below). Editing the body never retires it, so a declared link that no longer holds can ONLY be removed with `rel rm`. |
44
+ | `live: false` | A content chip that is **gone from the note's current version**. This is the obsolete one. Hidden unless you pass `--history`. |
45
+ | `isStale: true` | **Citation drift, NOT obsolescence.** The link holds; the note it points at has simply advanced since it was cited (`madeAgainstVersion` < `relatedNoteCurrentVersion`). Often the most interesting signal in the graph — a claim resting on a source that moved. Worth re-reading, never worth auto-deleting. |
46
+
47
+ Relationships are append-only: every save re-extracts the body's chips into fresh
48
+ rows and the old ones become history rather than being deleted. The default read
49
+ already hides superseded rows, so `rel list` reflects the CURRENT content — you do
50
+ not need to filter it yourself.
51
+
52
+ **Caveat on `declared`:** chip tracking was added after the fact, so links created
53
+ before it report `declared` even when they DID come from a body chip. Read
54
+ `declared` as "not tracked to a chip", not as proof the link was never in the
55
+ prose — the note body is the authority. This only ever makes a link too durable
56
+ (it stays live), never too fragile, so `declared` is always safe to trust as
57
+ "still asserted"; just don't infer from it that the prose never said so.
58
+
59
+ **See how a found note connects (the editor header, for agents).** When you
60
+ land on a note via `search semantic` / `notes list`, the two affordances the
61
+ editor shows at the top of the panel are both one call away — use them to
62
+ orient before acting on the note:
63
+
64
+ ```bash
65
+ cnotes rel list --note INSIGHT-1 --json # Backlinks: .incoming = what links here
66
+ cnotes notes canvases INSIGHT-1 --json # Canvases: where this note already lives
67
+ ```
68
+
69
+ Reach for these to expand context around a search hit (walk `.incoming` to find
70
+ who depends on a decision), to avoid duplicating a note that's already placed on
71
+ the right canvas, or to gauge a note's importance (many backlinks / on the home
72
+ canvas = load-bearing). `cnotes schema --json` carries the same pointers under
73
+ its `discovery` key.
74
+
75
+
76
+ ## Interlinking Notes
77
+
78
+ When creating multiple related notes, interlink at two levels:
79
+
80
+ **1. Relationship mentions inside note content** — connects notes in the knowledge graph:
81
+ - Use `cnotes notes create` with an array and `@key` placeholders for cross-references.
82
+ - Example: `[@B: The Problem](relationship:extends)` in markdown.
83
+ - The server resolves placeholders to real display IDs in one atomic transaction.
84
+
85
+ **2. Canvas edges between nodes** — visual connections on the canvas:
86
+ - After adding nodes, connect them with `cnotes canvas add-edge`, using short verb labels ("triggers", "depends on").
87
+ - Edges can join any node type, as long as both endpoints are on the same canvas.
88
+
89
+ Both levels are needed — edges are canvas-local, mentions are content-level. `cnotes canvas read` does return edges, but only the mention creates a real graph edge that `rel list` and search can see, so any relationship that matters must also exist as a mention in the note bodies (see hard rules 2 and 5 in [canvas-elements.md](canvas-elements.md)).
90
+
91
+ ### Placeholder Syntax for `cnotes notes create`
92
+
93
+ Use `[@key: Title](relationship:type)` where `key` matches a note's `key` field in the `--notes` JSON:
94
+ ```markdown
95
+ This builds on [@B: The Problem](relationship:extends) and enables [@C: The Workflow](relationship:enables).
96
+ ```
97
+
98
+ The relationship type is free-form, but **reuse an existing type before inventing one** — see Content via Markdown in [notes.md](notes.md) for the reuse rule, why needless synonyms are harmful, and the built-in types to reach for first.
99
+
100
+ **Match the type to your own verb.** If your sentence says "blocks", the mention must say `relationship:blocks` — a verb narrated in prose around a `references` chip (or an untyped `[[NOTE-12]]`) is an edge the graph can't see: backlinks and `rel list` will file it as a plain citation. `notes create` and `versions create` detect this and return a `mentionWarnings` array (--json) plus a stderr note with the exact retyped mention; treat each warning as a retype instruction unless the flagged word genuinely isn't asserting a relationship.
101
+
102
+
103
+ ## Dependencies (`cnotes deps`)
104
+
105
+ "When this note changes, check that dependent." A dependency is a `depends-on`
106
+ relationship: the dependent (an FAQ, a landing page, a deck) depends on a basis
107
+ (a behaviour, a decision, a claim). You declare one by writing the chip in the
108
+ dependent's body, in a sentence that says why — the sentence is recorded as the
109
+ reason:
110
+
111
+ ```markdown
112
+ No setup is needed because [[depends-on::NOTE-129]] creates the rules automatically.
113
+ ```
114
+
115
+ ```bash
116
+ cnotes deps list --canvas CANVAS-58 # grouped: changed (start here), suggested, unchecked, then checked
117
+ cnotes deps show <relationshipId> # both notes now, and as they were when last checked
118
+ cnotes deps review <relationshipId> --outcome update_needed \
119
+ --explanation "FAQ answer 3 still says no setup; the flow now needs one confirmation." \
120
+ --propose "Change 'no setup needed' to 'one confirmation step'."
121
+ ```
122
+
123
+ Everything `deps review` records is a SUGGESTION. It is attributed to you
124
+ (and to the running operation when you are inside one) and waits for a person
125
+ to confirm it in the app. It never edits a note or publishes anything. Outcomes:
126
+ `update_needed` (dependent no longer matches), `no_change` (checked, still holds),
127
+ `updated` (checked after the dependent was updated), `uncertain` (cannot tell
128
+ from the evidence). Read `deps show` before you judge: a save names the
129
+ versions you looked at and is refused if they changed since.
130
+
131
+ After you edit a note, run `deps list` on its canvas: the dependencies that
132
+ now read `changed` are the ones your edit may have broken, and you are the one
133
+ who knows what changed.
@@ -0,0 +1,135 @@
1
+ # Reviews, comments and the shared inbox
2
+
3
+ Read this when asked to address comments, review a canvas, request a review, or see what teammates sent.
4
+
5
+ ## Contents
6
+
7
+ - [Canvas comments](#canvas-comments)
8
+ - [Shared with you (`cnotes shared`)](#shared-with-you-cnotes-shared)
9
+ - [Review requests (`cnotes review` / `cnotes reviews`)](#review-requests-cnotes-review--cnotes-reviews)
10
+
11
+ ## Canvas comments
12
+
13
+ ```bash
14
+ # Comments — PRIVATE anchored comments on canvas nodes: the human→agent review
15
+ # queue. Visible only to their author + agents acting as them (never to other
16
+ # workspace members) UNTIL the author sends them as a review with
17
+ # `comments submit`, which hands that canvas's unsent comments to ONE person,
18
+ # the canvas owner. Excluded from digests, search, embeds and public
19
+ # shares. Process, not knowledge: open→resolved lifecycle; a comment that is
20
+ # still true after it resolves should be promoted to a typed note. When asked
21
+ # to "address the comments" on a canvas: `comments list`, act on each item
22
+ # inside an operations run, then `comments resolve` each — the active run is
23
+ # recorded automatically as what addressed it. `--node` takes a raw node id,
24
+ # a NOTE display id, or a SECTION display id. `isStale: true` on a listed
25
+ # comment = the target note changed after the comment was written (re-read,
26
+ # don't skip). `targetMissing: true` = the anchor node was deleted; the
27
+ # comment still stands — resolve or rm it explicitly. `list` returns at most
28
+ # 100 comments per status; `truncated: true` in --json means more exist
29
+ # (resolve some, then list again). Use `comments add` (author defaults to
30
+ # agent from the CLI) to leave anchored self-notes for future sessions
31
+ # ("don't move SECTION-42 — the filmstrip references it by position").
32
+ # OMIT the canvas id to read your open queue across the WHOLE workspace — the
33
+ # only entry point when the user names a NOTE and not a canvas ("I left you a
34
+ # review comment on STAGE-6H1"), because a note does not resolve to the canvas
35
+ # it sits on. Every row is stamped with `canvasId`/`canvasDisplayId`, so you can
36
+ # resolve it without a second lookup. Workspace-wide reads are OPEN comments
37
+ # only (--status errors rather than quietly narrowing) and cap at 200, with
38
+ # `totalOpen` in --json capped the same way — read it as a floor, not a census,
39
+ # whenever `truncated` is true.
40
+ cnotes canvas comments list [canvasId] [--status open|resolved|all] [--received]
41
+ cnotes canvas comments add <canvasId> --node <nodeRef> --text "<content>" [--author human|agent]
42
+ cnotes canvas comments resolve <canvasId> --id <annotationId>
43
+ cnotes canvas comments reopen <canvasId> --id <annotationId> # Undo a resolve; the comment rejoins the open queue
44
+ cnotes canvas comments rm <canvasId> --id <annotationId>
45
+ # `--received` switches to a DIFFERENT queue: reviews other members submitted TO
46
+ # you (each row carries `submittedByName`), on one canvas or across the
47
+ # workspace depending on whether you passed a canvas id. When the user says
48
+ # "address the comments Will sent me", you MUST pass --received — the default
49
+ # queue is your own comments and will look empty. Resolve received comments the
50
+ # same way; you may never delete one (only its author can).
51
+ # Reviewing SOMEONE ELSE'S canvas: comment freely (view-only members can), then
52
+ # submit once. Nothing you wrote is visible to anyone until you do, and the
53
+ # owner then sees each comment anchored to the card it is about, grouped under
54
+ # your name in their review queue. Idempotent — a second submit sends only what
55
+ # you have written since. There is no unsend. Reviews you RECEIVE arrive in the
56
+ # same `comments list` queue and are yours to resolve (never to delete).
57
+ cnotes canvas comments submit <canvasId>
58
+ ```
59
+
60
+ ## Shared with you (`cnotes shared`)
61
+ ```bash
62
+ # What teammates shared with the user: direct canvas/note shares, reviews sent
63
+ # to them, and review asks they accepted but haven't finished. An INBOX, not
64
+ # history — items persist until acted on, they never age out of a window.
65
+ cnotes shared [--from <person>] [--limit <n>]
66
+
67
+ # Examples
68
+ cnotes shared # everything waiting on the user
69
+ cnotes shared --from ben # just what Ben pointed at them
70
+ cnotes shared --quiet # target refs only (CANVAS-12, ...)
71
+ # --from takes a name (case-insensitive, unique substring ok); if it matches
72
+ # more than one member the error lists the candidates — use a fuller name.
73
+ # --json rows: { kind: "share"|"review"|"ask", senderName, targetKind,
74
+ # displayId, title, ts, commentCount? (reviews), ask? (asks) }
75
+ ```
76
+
77
+
78
+ ## Review requests (`cnotes review` / `cnotes reviews`)
79
+
80
+ Official review requests, both legs. The canvas IS the request: assemble it
81
+ first (context notes reused from research, Question notes to answer, an
82
+ instruction text node, a portal back), then request the review of it. Never
83
+ simulate a review request with private canvas comments — comments are drafts
84
+ for a round, not the round itself.
85
+
86
+ ```bash
87
+ # REQUESTER LEG — create, monitor, manage.
88
+ # --reviewer me = SELF-REVIEW, actionable immediately, no invitation step.
89
+ # --reviewer <memberUserId> assigns a workspace member the same way.
90
+ # --reviewer <email> (or --email) binds an outside reviewer; they accept via link.
91
+ # Omit all three for a link any workspace member can claim.
92
+ cnotes review request CANVAS-81 \
93
+ --reviewer me \
94
+ --target SECTION-135 \
95
+ --brief "Approve the Gong-faithful customer target" \
96
+ --acceptance "Confirm the document boundary" \
97
+ --acceptance "Confirm source fidelity" \
98
+ --source ATTENTION-6J1 \
99
+ --idempotency-key "attention-6j1-second-iteration" --json
100
+ # → { requestId, url, … }. url is the CANONICAL human review link, returned by
101
+ # the server — never assemble one yourself. requestId is the automation handle.
102
+ # Same idempotency key ⇒ the same request comes back (alreadyExists: true),
103
+ # never a sibling. --questions '["…"]' still mints new Question notes when the
104
+ # canvas doesn't already carry them; --brief falls back to the canvas goal.
105
+
106
+ cnotes review list CANVAS-81 # asks out on a canvas + status
107
+ cnotes review get <requestId|url> --json # the full envelope (see below)
108
+ cnotes review send-again <requestId> --email ana@example.com
109
+ cnotes review revoke <requestId>
110
+
111
+ # REVIEWER LEG — receive, inspect, complete.
112
+ cnotes review list --assigned-to me # the worklist: reviews waiting on you
113
+ cnotes review list --assigned-to me --status all
114
+ cnotes review get <requestId> --json # brief, acceptanceCriteria, targetRef,
115
+ # slate, findings, canvasChanged,
116
+ # allowedActions for YOU, url
117
+ cnotes review complete <requestId> \
118
+ --outcome approved \
119
+ --rationale "Matches the source and preserves the agreed boundary" \
120
+ --idempotency-key "review-run-123" --json
121
+ cnotes review complete <requestId> --outcome changes-requested \
122
+ --rationale "The boundary drifts from Gong" \
123
+ --criteria '[{"criterion":"Document boundary","met":false,"note":"two extra lines"}]'
124
+ # Exactly ONE outcome per round: approved | changes-requested, rationale
125
+ # mandatory. Findings you added against the request (canvas comments bound to
126
+ # it) are delivered in the same act. If the envelope says canvasChanged, the
127
+ # board moved since the ask — re-read it, then add --accept-stale; completion
128
+ # never silently applies to a moved version. Same idempotency key ⇒ the
129
+ # recorded outcome comes back instead of a conflict.
130
+ # If you CANNOT judge it (missing evidence/access), never fake a completion —
131
+ # hand it back with the structured blocker:
132
+ cnotes review return <requestId> --reason "I can't open the Gong recording"
133
+ # `get` accepts a request id, a raw token, or a full /review/<token> URL, so a
134
+ # pasted review link is enough to pick the work up here.
135
+ ```
@@ -138,9 +138,9 @@ The user arrives with a loose idea.
138
138
  5. **Place the map** in one `cnotes canvas place` spec: orientation banner,
139
139
  the four sections with their contents, blocking edges (blocker → dependent,
140
140
  label "blocks"). Banner is at most five sentences in the cnotes skill's banner
141
- order (hard rule 7 under "Canvas Elements"): what happened and who asked,
141
+ order (hard rule 7 in its `references/canvas-elements.md`): what happened and who asked,
142
142
  the destination in reader's words, who resolves tickets and how, then how the
143
- four frames read. Plain display IDs only — mention syntax corrupts richtext.
143
+ four frames read. Name notes as titled mentions (`[QUESTION-12: Title](relationship:references)`), which render as chips; a bare display ID in a card is a defect.
144
144
  6. **Fire the research subagents** for frontier research tickets; fold whatever
145
145
  returns into resolutions (steps 4–6 of the work loop) before closing.
146
146
  7. **Close the run, surface the canvas link, stop.** Charting resolves nothing