@creator-notes/cnotes 0.121.10 → 0.124.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.
Files changed (35) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/dist/commands/canvas.js +1 -1
  3. package/dist/commands/draft.js +8 -2
  4. package/dist/commands/notes-import.js +129 -0
  5. package/dist/commands/notes.js +2 -0
  6. package/dist/commands/quality.js +55 -4
  7. package/dist/commands/skills.js +27 -5
  8. package/dist/lib/install-skill.js +62 -11
  9. package/dist/lib/intent-run.js +1 -0
  10. package/dist/lib/note-import.js +128 -0
  11. package/dist/lib/quality.js +43 -0
  12. package/dist/mcp-server.js +5 -5
  13. package/package.json +1 -1
  14. package/skills/attention-planner/SKILL.md +3 -1
  15. package/skills/attention-planner/references/attention-type.md +5 -3
  16. package/skills/cnotes/SKILL.md +45 -62
  17. package/skills/cnotes/references/agents-together.md +1 -1
  18. package/skills/cnotes/references/billing.md +8 -8
  19. package/skills/cnotes/references/canvas-elements.md +20 -20
  20. package/skills/cnotes/references/canvas-layout.md +37 -29
  21. package/skills/cnotes/references/canvas.md +4 -2
  22. package/skills/cnotes/references/drafts.md +7 -5
  23. package/skills/cnotes/references/humanizer.md +31 -31
  24. package/skills/cnotes/references/more-commands.md +9 -9
  25. package/skills/cnotes/references/notes.md +17 -14
  26. package/skills/cnotes/references/operations.md +13 -12
  27. package/skills/cnotes/references/output.md +23 -0
  28. package/skills/cnotes/references/relationships.md +11 -11
  29. package/skills/fat-marker-flows/SKILL.md +10 -13
  30. package/skills/goal-tree/SKILL.md +2 -2
  31. package/skills/howto-filmstrips/SKILL.md +10 -10
  32. package/skills/teach-workspace/SKILL.md +5 -2
  33. package/skills/transcript-timeline/SKILL.md +7 -7
  34. package/skills/transcript-timeline/references/layout.md +6 -6
  35. package/skills/wayfind/SKILL.md +36 -33
@@ -276,3 +276,46 @@ export function parseGradeSubmission(input) {
276
276
  },
277
277
  };
278
278
  }
279
+ /**
280
+ * Parse the `--grades` / `--grades-file` array of `cnotes quality record`:
281
+ * `[{displayId, level, criteria, feedback?, nextStep?, gradedVersion?, gradedBy?}]`,
282
+ * `criteria` as the array itself. Each entry goes through the same checks as
283
+ * the single-note flags, and a bad entry comes back with its message so the
284
+ * command can record the rest and report that one.
285
+ */
286
+ export function parseGradeBatch(raw) {
287
+ let parsed;
288
+ try {
289
+ parsed = JSON.parse(raw);
290
+ }
291
+ catch {
292
+ return { ok: false, message: "--grades must be a JSON array of grade objects." };
293
+ }
294
+ if (!Array.isArray(parsed) || parsed.length === 0) {
295
+ return { ok: false, message: "--grades needs at least one {displayId, level, criteria} object." };
296
+ }
297
+ if (parsed.length > 200) {
298
+ return { ok: false, message: "--grades accepts at most 200 grades per call." };
299
+ }
300
+ const entries = [];
301
+ parsed.forEach((item, i) => {
302
+ const rec = item && typeof item === "object" ? item : {};
303
+ const displayId = String(rec.displayId ?? "").trim();
304
+ if (!displayId) {
305
+ entries.push({ ok: false, displayId: `grades[${i}]`, message: "displayId is missing." });
306
+ return;
307
+ }
308
+ const criteria = rec.criteria;
309
+ const one = parseGradeSubmission({
310
+ level: String(rec.level ?? ""),
311
+ criteria: typeof criteria === "string" ? criteria : JSON.stringify(criteria ?? null),
312
+ feedback: typeof rec.feedback === "string" ? rec.feedback : undefined,
313
+ nextStep: typeof rec.nextStep === "string" ? rec.nextStep : undefined,
314
+ suggestions: Array.isArray(rec.suggestions) ? rec.suggestions.map(String) : undefined,
315
+ gradedBy: typeof rec.gradedBy === "string" ? rec.gradedBy : undefined,
316
+ version: rec.gradedVersion !== undefined ? String(rec.gradedVersion) : undefined,
317
+ });
318
+ entries.push(one.ok ? { ok: true, displayId, value: one.value } : { ok: false, displayId, message: one.message });
319
+ });
320
+ return { ok: true, entries };
321
+ }
@@ -501,7 +501,7 @@ const layoutDocArg = z
501
501
  .object({
502
502
  root: z
503
503
  .unknown()
504
- .describe("Root LayoutNode. kind is one of: 'stack' (items flow along one axis, like CSS flexbox: {kind:'stack', axis:'vertical'|'horizontal', gap?, align?:'start'|'center'|'end', items:[LayoutNode...]}), 'grid' (N columns, items wrap to new rows: {kind:'grid', columns:<n>, gap?, items:[...]}), 'anchor' (place a sub-tree relative to an EXISTING canvas node: {kind:'anchor', to:'<displayId or node id>', direction:'right'|'left'|'above'|'below' — exactly these four, NOT top/bottom/up/down, gap?, child:LayoutNode}), 'section' (a named frame that sizes itself around its content: {kind:'section', name:'<title>', key?, child:LayoutNode}), or 'item' (a leaf — one per visible thing, NO x/y: {kind:'item', type:'note'|'richtext'|'list'|'canvas'|'section', key?, ...type-specific fields}). gap accepts a preset 'tight'|'medium'|'spacious' or a raw pixel number (default 'medium')."),
504
+ .describe("Root LayoutNode. kind is one of: 'stack' (items flow along one axis, like CSS flexbox: {kind:'stack', axis:'vertical'|'horizontal', gap?, align?:'start'|'center'|'end', items:[LayoutNode...]}), 'grid' (N columns, items wrap to new rows: {kind:'grid', columns:<n>, gap?, items:[...]}), 'anchor' (place a sub-tree relative to an EXISTING canvas node: {kind:'anchor', to:'<displayId or node id>', direction:'right'|'left'|'above'|'below' — exactly these four, NOT top/bottom/up/down, gap?, child:LayoutNode}), 'section' (a named frame that sizes itself around its content: {kind:'section', name:'<title>', key?, child:LayoutNode}), or 'item' (a leaf — one per visible thing, NO x/y: {kind:'item', type:'note'|'richtext'|'list'|'canvas'|'quote'|'section', key?, ...type-specific fields}). gap accepts a preset 'tight'|'medium'|'spacious' or a raw pixel number (default 'medium')."),
505
505
  edges: z
506
506
  .array(z.unknown())
507
507
  .optional()
@@ -615,7 +615,7 @@ server.tool("cnotes_canvas_add_node", "[Deprecated: use cnotes_canvas_place] Add
615
615
  // node on the wire. The old `text` node kind (the "Heading") is LEGACY: existing ones
616
616
  // still render / move / delete, but nothing creates them any more — a Text element with
617
617
  // no background tint and `# Foo` inside IS a heading.
618
- const TEXT_ELEMENT_CONTENT_DESC = "Text content as markdown (headings, emphasis, images all work — a heading is just `# Title`). Plain markdown ONLY — do NOT use [NOTE-X](relationship:...) or [[...]] mention syntax here (it corrupts the card, which renders blank); reference notes as plain display IDs (\"see RISK-64\"). Keep it card-sized (≤ ~3 sentences): text elements are unversioned, unsearchable presentation furniture — knowledge worth keeping belongs in a typed note.";
618
+ const TEXT_ELEMENT_CONTENT_DESC = "Text content as markdown (headings, emphasis, images all work — a heading is just `# Title`). Name a note with a mention ([NOTE-X: Title](relationship:verb), [[verb::NOTE-X]] or [[verb::NOTE-X|your words]]), which renders as a chip; a bare display id (\"see RISK-64\") is a defect. The chip is presentational, so a relationship that must survive off the canvas also lives in a note body. Keep it card-sized (≤ ~3 sentences): text elements are unversioned, unsearchable presentation furniture — knowledge worth keeping belongs in a typed note.";
619
619
  const textElementSchema = {
620
620
  canvasId: z.string().describe("Canvas ID"),
621
621
  content: z.string().describe(TEXT_ELEMENT_CONTENT_DESC),
@@ -678,7 +678,7 @@ server.tool("cnotes_canvas_bulk_add", "LOW-LEVEL: add items at raw x/y that YOU
678
678
  // `richtext` IS the Text element. There is no `text` item type any more:
679
679
  // the legacy `text` node (the old "Heading") can no longer be created.
680
680
  type: z.literal("richtext"),
681
- content: z.string().describe("Markdown content — this is the Text element (headings, emphasis, images; a heading is just '# Title'). Plain markdown ONLY — no [NOTE-X](relationship:...) / [[...]] mention syntax (corrupts the card); reference notes as plain display IDs. Card-sized (≤ ~3 sentences); knowledge worth keeping goes in a note."),
681
+ content: z.string().describe("Markdown content — this is the Text element (headings, emphasis, images; a heading is just '# Title'). Name notes with mentions ([NOTE-X: Title](relationship:verb) renders as a chip); a bare display id is a defect. Card-sized (≤ ~3 sentences); knowledge worth keeping goes in a note."),
682
682
  x: z.number().describe("X position"),
683
683
  y: z.number().describe("Y position"),
684
684
  size: z.enum(["small", "medium", "large"]).optional().describe("Node size"),
@@ -686,7 +686,7 @@ server.tool("cnotes_canvas_bulk_add", "LOW-LEVEL: add items at raw x/y that YOU
686
686
  }),
687
687
  z.object({
688
688
  type: z.literal("list"),
689
- description: z.string().min(1).describe("One-line FRAME (markdown). Required. First paragraph derives the searchable title — this is the only label for list nodes. The CONTENT of a list is its member notes (noteIds), never the description: N distinct things = N typed notes grouped here. No mention syntax."),
689
+ description: z.string().min(1).describe("One-line FRAME (markdown). Required. First paragraph derives the searchable title — this is the only label for list nodes. The CONTENT of a list is its member notes (noteIds), never the description: N distinct things = N typed notes grouped here. A mention in it renders as a labelled span."),
690
690
  x: z.number().describe("X position"),
691
691
  y: z.number().describe("Y position"),
692
692
  viewMode: z.enum(["list", "grid"]).optional(),
@@ -746,7 +746,7 @@ server.tool("cnotes_canvas_bulk_add", "LOW-LEVEL: add items at raw x/y that YOU
746
746
  items: allItems,
747
747
  }));
748
748
  }));
749
- server.tool("cnotes_canvas_place", "Place items on a canvas using a DECLARATIVE LAYOUT (no x/y math). The server measures every item, packs them with no overlaps, and inserts them in a single batch. PREFER THIS over cnotes_canvas_bulk_add whenever you can express the layout as stacks/grids/anchors — which is almost always. The agent should describe STRUCTURE (rows, columns, what's near what), not pixel coordinates.\n\nELEMENT CHOICE: default content to typed NOTES (the only versioned, searchable tier agents can read back); richtext = the Text element, card-sized framing only (a heading is just content '# Title', untinted), section = a named region frame, list = member notes behind a one-line frame, edges connect notes only.\n\nThe call is best-effort, NOT atomic: per-item failures are reported in the response (HTTP 207) but the items that succeeded stay on the canvas. Always inspect `items[].error` and `edges[].error` in the response.\n\nThe `doc` argument is a layout document:\n { root: <LayoutNode>, edges?: [{from, to, label?}], origin?: {x, y} }\n\n<LayoutNode> is one of:\n • { kind: 'stack', axis: 'vertical'|'horizontal', gap?: 'tight'|'medium'|'spacious'|<px>, align?: 'start'|'center'|'end', items: [<LayoutNode>...] }\n • { kind: 'grid', columns: <n>, gap?: ..., items: [<LayoutNode>...] }\n • { kind: 'anchor', to: '<displayId or canvas node id>', direction: 'right'|'left'|'above'|'below', gap?: ..., child: <LayoutNode> }\n • { kind: 'item', type: 'note'|'richtext'|'list'|'canvas'|'section', key?: '<name>', ...item-specific fields }\n\nLeaf item shapes (no x/y!):\n note: { kind:'item', type:'note', noteId:'NOTE-3', key?:'a' }\n richtext: { kind:'item', type:'richtext', content:'# Markdown OK', size?:'small'|'medium'|'large', colorHex?:'<role hex>' } // the Text element: card-sized framing only; a heading is just content '# Title' with no colorHex; colorHex is a ROLE tint (#3B82F6 evidence · #22C55E commitment · #EC4899 insight · #F59E0B warning · #EF4444 danger · #8B5CF6 people — anything else snaps to the nearest), default untinted; plain markdown, NO [NOTE-X](relationship:...) mention syntax (corrupts the card); knowledge worth keeping = a note\n list: { kind:'item', type:'list', description:'One-line frame — first paragraph becomes the title', noteIds?:['NOTE-1','NOTE-2'], viewMode?:'list'|'grid' } // description is REQUIRED and is a frame, never the content: N distinct things = N notes in noteIds\n canvas: { kind:'item', type:'canvas', linkedCanvasId:'<id>' }\n\nEdges reference endpoints by, in priority order: `@<key>` (any item with a `key` placed in the same call), the original noteId/displayId of a note placed in this call (e.g. 'NOTE-7'), or the displayId / convex id of a node already on the canvas.\n\nNEW NOTES IN THE SAME CALL: pass `notes` (the cnotes_notes_create item shape) and place each with a note leaf whose noteId is '@<key>'. Bodies cross-link with [@<key>: Title](relationship:<verb>); edges and anchors say '@<key>'. One call replaces notes_create then place, inside the same run. The notes are created only if the layout solves, and come back under `notes`.\n\nExample (a SWOT-like quadrant):\n {\n root: {\n kind:'stack', axis:'vertical', gap:'spacious',\n items:[\n { kind:'stack', axis:'horizontal', gap:'spacious', items:[\n { kind:'grid', columns:2, items:[\n { kind:'item', type:'note', noteId:'STR-1' },\n { kind:'item', type:'note', noteId:'STR-2' },\n ]},\n { kind:'grid', columns:2, items:[\n { kind:'item', type:'note', noteId:'WEAK-1' },\n ]},\n ]},\n { kind:'stack', axis:'horizontal', gap:'spacious', items:[ /* opportunities + threats */ ]},\n ],\n },\n }", {
749
+ server.tool("cnotes_canvas_place", "Place items on a canvas using a DECLARATIVE LAYOUT (no x/y math). The server measures every item, packs them with no overlaps, and inserts them in a single batch. PREFER THIS over cnotes_canvas_bulk_add whenever you can express the layout as stacks/grids/anchors — which is almost always. The agent should describe STRUCTURE (rows, columns, what's near what), not pixel coordinates.\n\nELEMENT CHOICE: default content to typed NOTES (the only versioned, searchable tier agents can read back); richtext = the Text element, card-sized framing only (a heading is just content '# Title', untinted), section = a named region frame, list = member notes behind a one-line frame, quote = a note's face, edges connect any two nodes on the canvas (dashed for what a card rests on).\n\nThe call is best-effort, NOT atomic: per-item failures are reported in the response (HTTP 207) but the items that succeeded stay on the canvas. Always inspect `items[].error` and `edges[].error` in the response.\n\nThe `doc` argument is a layout document:\n { root: <LayoutNode>, edges?: [{from, to, label?, lineStyle?: 'solid'|'dashed'}], origin?: {x, y} }\n\n<LayoutNode> is one of:\n • { kind: 'stack', axis: 'vertical'|'horizontal', gap?: 'tight'|'medium'|'spacious'|<px>, align?: 'start'|'center'|'end', items: [<LayoutNode>...] }\n • { kind: 'grid', columns: <n>, gap?: ..., items: [<LayoutNode>...] }\n • { kind: 'anchor', to: '<displayId or canvas node id>', direction: 'right'|'left'|'above'|'below', gap?: ..., child: <LayoutNode> }\n • { kind: 'item', type: 'note'|'richtext'|'list'|'canvas'|'quote'|'section', key?: '<name>', ...item-specific fields }\n\nLeaf item shapes (no x/y!):\n note: { kind:'item', type:'note', noteId:'NOTE-3', key?:'a' }\n richtext: { kind:'item', type:'richtext', content:'# Markdown OK', size?:'small'|'medium'|'large', colorHex?:'<role hex>' } // the Text element: card-sized framing only; a heading is just content '# Title' with no colorHex; colorHex is a ROLE tint (#3B82F6 evidence · #22C55E commitment · #EC4899 insight · #F59E0B warning · #EF4444 danger · #8B5CF6 people — anything else snaps to the nearest), default untinted; markdown, where [NOTE-X: Title](relationship:verb) renders as a mention chip (presentational: no graph edge, so the relationship also lives in a note body); knowledge worth keeping = a note\n list: { kind:'item', type:'list', description:'One-line frame — first paragraph becomes the title', noteIds?:['NOTE-1','NOTE-2'], viewMode?:'list'|'grid' } // description is REQUIRED and is a frame, never the content: N distinct things = N notes in noteIds\n canvas: { kind:'item', type:'canvas', linkedCanvasId:'<id>' }\n quote: { kind:'item', type:'quote', noteId:'DECISION-3' | '@a', text:'<exact words from its saved version>', style?:'pull'|'highlight'|'evidence', size?:'small'|'medium'|'large', colorHex?:'<role hex>', title?:'<why it matters>', key?:'f' } // a note's FACE: the Quote note (QUOTE-<n>) is made or reused and its card lands where this leaf sits, inside its frame; put it under the note it quotes\n\nEdges reference endpoints by, in priority order: `@<key>` (any item with a `key` placed in the same call), the original noteId/displayId of a note placed in this call (e.g. 'NOTE-7'), or the displayId / convex id of a node already on the canvas.\n\nNEW NOTES IN THE SAME CALL: pass `notes` (the cnotes_notes_create item shape) and place each with a note leaf whose noteId is '@<key>'. Bodies cross-link with [@<key>: Title](relationship:<verb>); edges and anchors say '@<key>'. One call replaces notes_create then place, inside the same run. The notes are created only if the layout solves, and come back under `notes`.\n\nExample (a SWOT-like quadrant):\n {\n root: {\n kind:'stack', axis:'vertical', gap:'spacious',\n items:[\n { kind:'stack', axis:'horizontal', gap:'spacious', items:[\n { kind:'grid', columns:2, items:[\n { kind:'item', type:'note', noteId:'STR-1' },\n { kind:'item', type:'note', noteId:'STR-2' },\n ]},\n { kind:'grid', columns:2, items:[\n { kind:'item', type:'note', noteId:'WEAK-1' },\n ]},\n ]},\n { kind:'stack', axis:'horizontal', gap:'spacious', items:[ /* opportunities + threats */ ]},\n ],\n },\n }", {
750
750
  canvasId: z.string().describe("Canvas ID"),
751
751
  doc: layoutDocArg,
752
752
  intoSection: z
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@creator-notes/cnotes",
3
- "version": "0.121.10",
3
+ "version": "0.124.0",
4
4
  "description": "CLI for CreatorNotes — create notes, build canvases, search knowledge from the terminal",
5
5
  "type": "module",
6
6
  "bin": {
@@ -91,7 +91,9 @@ planned, never as a sweep.
91
91
  intake pipeline wrote. A digest or canvas digest is orientation; open the
92
92
  underlying notes before any consequential claim.
93
93
  4. **Open the run.** `cnotes operations begin --prompt "Attention planner · <date> · intake"`.
94
- One active run per user: if `begin` refuses, another session is writing.
94
+ If `begin` refuses with a conflict, another session holds the machine's
95
+ active-run slot: open yours with `--detached -q` and carry the id in
96
+ `CNOTES_AGENT_RUN_ID` (the cnotes skill's operations reference), or wait.
95
97
  Hold the run only while writing.
96
98
  5. **Do the agent-automatic work first.** Settle any `answered` card's
97
99
  unfinished follow-through before anything new (loop 3). Then for each
@@ -27,9 +27,11 @@ unless the block moved.
27
27
 
28
28
  ## Apply the rubric
29
29
 
30
- `types create` has no rubric flag, so apply it with `types update`. Keep
31
- save-time validation off: the rubric is the authoring spec agents read, and
32
- it must never block a quick human capture.
30
+ `types create` has no rubric flag, so apply it with `types update`. Leave
31
+ `--enable-validation` off: it grades every save against the rubric (it never
32
+ blocks one), and a person's quick capture on a card should not be graded.
33
+ The rubric is the authoring spec agents read; grade the cards you write with
34
+ `cnotes quality`, as the cnotes skill says.
33
35
 
34
36
  ```bash
35
37
  RUBRIC=$(cat <<'TXT'
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: cnotes
3
- description: Reads and writes a CreatorNotes workspace through the `cnotes` CLI - typed, versioned notes, canvases, search, relationships, drafts, reviews and comments, focus plans and the timeline. Use when the user mentions CreatorNotes or cnotes, or wants to create, find, update, summarize, organize or lay out notes, canvases or transcripts in a CreatorNotes workspace. The wayfind, goal-tree, shaping, attention-planner, transcript-timeline and fat-marker-flows skills run their own workflows on top of this one; load them for decision maps, goal trees, shaping, attention triage, interview timelines, flow mockups and visual stories with recurring people.
3
+ description: Reads and writes a CreatorNotes workspace through the `cnotes` CLI - typed, versioned notes, canvases, search, relationships, drafts, reviews and comments, focus plans and the timeline. Use when the user mentions CreatorNotes or cnotes, or wants to create, find, update, summarize, organize or lay out notes, canvases or transcripts in a CreatorNotes workspace. The wayfind, goal-tree, shaping, attention-planner, transcript-timeline, fat-marker-flows, howto-filmstrips and teach-workspace skills run their own workflows on top of this one; load them for decision maps, goal trees, shaping, attention triage, interview timelines, flow mockups, product how-tos and courses.
4
4
  metadata:
5
5
  short-description: Work with CreatorNotes via the cnotes CLI
6
6
  ---
@@ -13,61 +13,55 @@ metadata:
13
13
 
14
14
  Every note and canvas you write is context: what the next reader, a teammate or the next agent session, opens instead of asking the user to explain again. A write is done when that reader can act on it without the user present. It states what is true, what was decided, what is still open, and what each rests on, and leaves out what that reader would not need. Past sessions left context for you in the same way, which is why every task starts by reading. The definition and its reasoning are DECISION-6KM9 (`cnotes notes get DECISION-6KM9`).
15
15
 
16
- ## Every write task, in order
16
+ ## Most tasks: read, then one write
17
17
 
18
- 1. **Confirm the workspace.** `cnotes workspace current` names it and lists its relationship types. `-w <id>` targets another one for a single command.
19
- 2. **Read before you write.** Past sessions and teammates left context for this task. `cnotes brief "<task>"` returns the notes, canvases and recent changes most relevant to the task. Search notes and canvases separately (they are different corpora): `cnotes search semantic "<topic>"` and `cnotes canvas search "<topic>"`. `cnotes notes get <id> --expand` loads a note with the notes it rests on. Before changing a canvas, `cnotes canvas read <canvasId>`. A Decision or Guide you find may already settle what you were about to propose.
20
- 3. **Open a run.** `cnotes operations begin --prompt "<the change as a past-tense headline, e.g. Added a risks list to the Q1 roadmap>" --json`, as its own command; check its exit code before writing (a pipe hides it). Every write refuses to run without one. The response carries `typeRubrics`, the same brief, and the proposals waiting on you with any that reword the same note as another (read those first, [references/drafts.md](references/drafts.md) step 8); `-q` prints only the run id, with the proposals on stderr. One canvas per run: end it and begin another before writing to a second canvas.
21
- 4. **Write to the type's rubric.** Pick the type, run `cnotes types show <Type>`, and author to its rubric. Audience-facing prose (note bodies, banners, pre-reads) goes through [references/humanizer.md](references/humanizer.md) first; transcripts, quotes and other raw capture are stored verbatim.
22
- 5. **Create notes in one batch.** `cnotes notes create --notes '[{"key":"A","type":"Insight","markdownFile":"./a.md"}, ...]'`. Each body starts with a `# h1` (the title): a headline of at most 80 characters that names the claim or the object, with no ", so…" / ", because…" clause, no display id and no em dash; the body's first sentence carries the why. The server refuses a note or version whose title breaks this and says what to change. Cross-link inside the batch with `[@A: Title](relationship:<verb>)`. Detail: [references/notes.md](references/notes.md).
23
- 6. **Grade what you wrote.** `cnotes quality <displayIds...> --fail-below 4`, then revise weak notes with `cnotes versions create <id> --description "<what changed>" --markdown-file <path>`. A level 3 with `unsure: true` and nothing under `missing`, or a `needs_agent` answer, means the grader abstained: grade that note yourself with `cnotes quality record <id> --graded-version <n> --level <1-4> --criteria '<json>'`, one reason per rubric criterion, and rewrite only a criterion that is really unmet.
24
- 7. **Lay out the canvas.** `cnotes canvas place <canvasId> --spec layout.json` packs items without overlap. A spec can carry the notes too (see the fast path below), which folds steps 5 and 7 into one call. For a new canvas, `canvas create --spec` takes the same spec, so creating the canvas, its notes and its layout is one call; its name follows the title rule in step 5 (a short headline, `·` between its parts), and the server refuses one that does not. Every canvas opens with a hero: one `large` untinted text card at the top-left, above everything, holding `# <the goal's result>` in under 50 characters, with the four-line banner under it at `medium`. It is the only text legible at zoom-to-fit. Pick the shape first (canvas-elements.md, Board shapes): an Argument's spine is quote faces joined by connectives and arrows, tiles on the shelf. Read [references/canvas-elements.md](references/canvas-elements.md) (rules 4, 5, 7 and 9) before choosing elements and [references/canvas-layout.md](references/canvas-layout.md) before writing the spec.
25
- 8. **Read it back.** `cnotes canvas read <canvasId>`: every claim must appear in a note with a display ID, the spine must read at fit zoom as faces and connectives, the hero must name the goal's result, and the banner must make sense to someone who was not in the session and never say who asked for the board (the timeline holds that; rule 7). A write that touches no canvas gets the same test: `cnotes notes get <id> --expand` on what you wrote, read as the next session will, without this conversation.
26
- 9. **Close the run.** `cnotes operations end`.
27
- 10. **Link the result.** End your reply with the canvas link (see [Surfacing the canvas link](#surfacing-the-canvas-link)).
18
+ Each call costs the user a model round trip, so batch, and send independent calls together. Reads need no run.
28
19
 
29
- Reads need no run. A task that is ONE write (a `notes update` too) needs no `begin`/`end`: pass `--intent "<headline>"` on that command (see the fast path).
30
-
31
- ## Fast path: a routine canvas change
32
-
33
- Adding cards, filling or tidying a section, linking two cards or removing one takes two rounds. Each extra call costs the user a model round trip, so batch, and send independent calls together.
34
-
35
- 1. **Read, in parallel:** `cnotes canvas read <canvasId>` (or `cnotes canvas read-section SECTION-n` when the request names one), plus `cnotes types show <Type>` for each type you will write.
36
- 2. **Make the change in one call, with `--intent`.** `--intent "<headline>"` opens an agent run for that one command and closes it after, so the change lands on the timeline as one revertable run with no `operations begin`/`end`. A removal gets a before snapshot automatically, so it can be undone. When a run is already open, the write joins it. To add cards, create and place them together:
20
+ 1. **Read, in parallel.** `cnotes workspace current` names the workspace and its relationship types (`-w <id>` targets another for one command). `cnotes brief "<task>"` returns the notes, canvases and recent changes most relevant to the task; `cnotes search "<topic>"` finds notes, canvases and images in one call. `cnotes notes get <id> --expand` loads a note with the notes it rests on. Before changing a canvas, `cnotes canvas read <canvasId>` (or `read-section SECTION-n` when the request names a frame). `cnotes types show <Type>` for each type you will write: author to its rubric. A Decision or Guide you find may already settle what you were about to propose.
21
+ 2. **Write once, with `--intent`.** `--intent "<headline>"` opens an agent run for that one command and closes it after, so the change lands on the timeline as one revertable run; a removal gets a before snapshot. When a run is already open, the write joins it. To add cards, create and place them together:
37
22
  ```json
38
- {"notes":[{"key":"A","type":"Insight","markdown":"# Reviews wait on one person\n..."},
23
+ {"notes":[{"key":"A","type":"Insight","markdown":"# Reviews wait on one person\nFour features shipped a week late in October."},
39
24
  {"key":"B","type":"Decision","markdown":"# Add a second reviewer\nRests on [@A: Reviews wait on one person](relationship:depends-on)."}],
40
25
  "root":{"kind":"stack","axis":"horizontal","items":[
41
- {"kind":"item","type":"note","noteId":"@A"},{"kind":"item","type":"note","noteId":"@B"}]},
42
- "edges":[{"from":"@B","to":"@A","label":"depends on"}]}
26
+ {"kind":"stack","axis":"vertical","gap":20,"items":[
27
+ {"kind":"item","type":"note","noteId":"@A"},
28
+ {"kind":"item","type":"quote","noteId":"@A","text":"Reviews wait on one person","size":"medium"}]},
29
+ {"kind":"item","type":"note","noteId":"@B"}]},
30
+ "edges":[{"from":"@B","to":"@A","label":"depends on","lineStyle":"dashed"}]}
43
31
  ```
44
- Put the new notes in the spec's `notes` array (the `notes create` shape) and place each with `{"kind":"item","type":"note","noteId":"@<key>"}`; edges and anchors say `@<key>` too. Add `--into SECTION-n` to append to an existing frame. Each result comes back under `notes`, graded when the workspace grades: revise only notes below 4.
32
+ The `notes` array is the `notes create` shape; a note leaf places one with `"noteId":"@<key>"`, a `quote` leaf gives it a face (its claim sentence, drawn as a quote inside the same frame), and edges say `@<key>` too. `--into SECTION-n` appends to an existing frame. Each note comes back under `notes`, graded where the workspace grades: revise only notes below 4.
45
33
  `cnotes canvas place <canvasId> --spec spec.json --intent "Added the reviewer bottleneck to the Q1 roadmap"`
46
- Other single changes take the same flag: `cnotes canvas arrange <canvasId> --section SECTION-7 --intent "Tidied the Risks section"`.
47
- 3. **Link the canvas** from the `Link:` line, in the same reply.
48
-
49
- ## Fast path: a new canvas
34
+ Every write takes the flag: `cnotes canvas arrange <canvasId> --section SECTION-7 --intent "Tidied the Risks section"`, `cnotes versions create DECISION-12 --markdown-file new.md --description "<what changed>" --intent "<headline>"`.
35
+ 3. **Link the result.** End the reply with the canvas link from the `Link:` line ([Surfacing the canvas link](#surfacing-the-canvas-link)).
50
36
 
51
- A new canvas with its notes and layout is one write. Read first, in parallel (`cnotes brief`, `cnotes canvas search`, `cnotes types show <Type>` for each type), then create the canvas and place the spec in the same command:
37
+ ### A new canvas is one write too
52
38
 
53
39
  `cnotes canvas create "Q1 · Roadmap" --goal "<goal>" --audience "<who>" --spec spec.json --intent "Built the Q1 roadmap canvas"`
54
40
 
55
- The spec is the same document `canvas place` takes, `notes` array included, and the result carries the placement under `layout`. Its root is a vertical stack that opens with the hero (`{"kind":"item","type":"richtext","size":"large","content":"# <the goal's result>"}`), then the `medium` banner, then the board (an Argument: the spine, canvas-layout.md). The spec is checked before the canvas exists, and a layout the server refuses removes the canvas again, so a bad file, a missing run or a refused layout creates nothing: fix the spec and run the same command again.
41
+ The spec is the same document, `notes` included; the placement comes back under `layout`. Its root is a vertical stack that opens with the hero (`{"kind":"item","type":"richtext","size":"large","content":"# <the goal's result>"}`, under 50 characters, the only text legible at zoom-to-fit), then the `medium` four-line banner, then the board. Pick the shape first (canvas-elements.md, Board shapes): an Argument's spine is notes with quote faces joined by connectives and arrows, tiles on the shelf. The name follows the title rule (rule 2 below, `·` between its parts), the goal ends with a "Done when" sentence, and the server refuses either otherwise. The spec is checked before the canvas exists, and a refused layout removes the canvas again, so a bad file creates nothing: fix the spec and run the same command again. Read [references/canvas-elements.md](references/canvas-elements.md) (rules 4, 5, 7 and 9) before choosing elements and [references/canvas-layout.md](references/canvas-layout.md) before writing a spec with anchors, origins or several sections.
56
42
 
57
- Other writes that belong together (notes on two canvases, a change that needs several kinds of command) still go in one `operations begin`/`end` run, so the timeline shows one change. Open [references/canvas-layout.md](references/canvas-layout.md) only when the layout needs anchors, origins or several sections; the rules above and step 7 below cover the rest.
43
+ ## Longer work: one run
44
+
45
+ When the writes belong together but cannot be one command (several notes and new versions of others, a change that needs several kinds of command), bracket them so the timeline shows one change:
46
+
47
+ 1. `cnotes operations begin --prompt "<past-tense headline, e.g. Added a risks list to the Q1 roadmap>" --json`, as its own command; check its exit code before writing (a pipe hides it). The response carries `typeRubrics`, the brief, and the proposals waiting on you (read those first, [references/drafts.md](references/drafts.md) step 8); `-q` prints only the run id. Canvas writes in one run stay on one canvas: end it and begin another before touching a second board.
48
+ 2. Write. Audience-facing prose (note bodies, banners, pre-reads) goes through [references/humanizer.md](references/humanizer.md) first; transcripts, quotes and other raw capture are stored verbatim.
49
+ 3. **Grade what you wrote.** `cnotes quality <displayIds...> --fail-below 4` hands back each note's rubric and body. Grade them all at once with `cnotes quality record --grades-file grades.json` (one `{displayId, level, criteria, nextStep?, gradedVersion?}` per note, one reason per rubric criterion), then revise only a note below 4 with `cnotes versions create`. A level 3 with `unsure: true` and nothing under `missing`, or a `needs_agent` answer, means the server grader abstained: read the note yourself.
50
+ 4. **Read it back.** `cnotes canvas read <canvasId>`: every claim appears in a note with a display ID, the spine reads at fit zoom as faces and connectives, the hero names the goal's result, and the banner makes sense to someone who was not in the session and never says who asked for the board. A write that touches no canvas gets the same test with `cnotes notes get <id> --expand`, read as the next session will.
51
+ 5. `cnotes operations end`, then link the result.
58
52
 
59
53
  ## Rules that hold on every task
60
54
 
61
- 1. **The exit code is the verdict.** `0` is success. Never decide success from the body, and never re-run a write because a key looked empty: a second `notes create` duplicates the batch.
62
- 2. **Knowledge lives in typed notes.** Text cards, lists, section frames, edges and portals arrange and label; they are unversioned, unsearchable and uncitable. If a future reader needs to find, cite or trust it, it is a note. A text card holds at most three sentences (the orientation banner: four short lines): furniture (hero, banner, heading, legend), a connective (the board's own sentence on what one card means for the next, true only here, arrows in and out) or a sticky to be promoted. A note on the spine wears a quote face; tiles are for the shelf (canvas-elements.md rules 4 and 8).
63
- 3. **Link notes with typed mentions, and show only what the sentence needs.** Three forms, one link: `[NOTE-12: Title](relationship:<verb>)` shows the note's title, `[[<verb>::NOTE-12]]` shows the id alone, `[[<verb>::NOTE-12|your words]]` shows your words (the title is a hover away). The verb is the one your sentence uses (`blocks`, `depends-on`, `answered-by`); `references` is for pure citation only. Show a title once, where the reader first meets the note; after that the id alone keeps the sentence moving ("the cut in [[depends-on::DECISION-6K535]]"), and your own words carry it when it needs a noun. Two titled mentions in one sentence, or a run of them in a list, is a readability defect. A bare `NOTE-12` in prose creates no link and is a defect too, in note bodies and on canvas cards. Reuse the workspace's types (`cnotes schema` ranks them by use; `cnotes rel types` lists all) before coining one.
64
- 4. **Edges are local to one canvas.** When an edge connects two notes, write the same relationship as a mention in a note body, or it exists nowhere off that canvas.
65
- 5. **Place declaratively, edit in place.** Use `canvas place` / `canvas arrange`, never hand-computed x/y. Add to a section with `place --into SECTION-n` (or `--section` on a single add); tidy one with `arrange --section SECTION-n`. Change a text card with `canvas update-text` and a frame with `canvas update-section`. Deleting and re-adding mints new ids and drops edges and `[[SECTION-n]]` mentions.
66
- 6. **Content changes are versions.** `cnotes versions create` changes a note's body (the `# h1` is its title); fetch the current body first and edit that, since people edit between sessions. `notes update` changes metadata only (type, tags, pin, archive).
67
- 7. **Inside a draft, propose and stop.** Shared notes change through `cnotes draft propose`; the hand-over is `cnotes draft ask`, then stop. Never merge or approve work you built. Detail: [references/drafts.md](references/drafts.md).
68
- 8. **Ask before spending something the user cannot get back:** `cnotes upgrade` uses the workspace's one-time trial, `cnotes feedback submit` files a report in their name, and `cnotes types dimension backfill --yes` spends one model call per existing note.
69
- 9. **Timeline headlines start with a past-tense verb and name the object** ("Shipped the public comic canvas", never "V1"). The server rejects milestone headlines that do not. A milestone body, the lines after the headline, is at most 280 characters: longer is saved as written with a warning, and nothing edits it afterwards.
70
- 10. **Canvas names use the interpunct** `·` as a separator, never a dash: "Path to Revenue · Funding strategy".
55
+ 1. **The exit code is the verdict.** `0` is success. Never decide success from the body. Never re-run a create because a key looked empty: inside the same run the same batch returns the notes it already made (`alreadyExists: true`), but after a reset or 5xx (`mayHaveCommitted: true`) re-run only with the printed `--idempotency-key`, and from another run a plain re-run duplicates it.
56
+ 2. **Titles are headlines.** Each note body starts with a `# h1`: at most 80 characters, naming the claim or the object, with no ", so…" / ", because…" clause, no display id and no em dash; the body's first sentence carries the why. A canvas name is the same, with `·` between its parts ("Path to Revenue · Funding strategy"), never a dash. The server refuses a note, version or canvas that breaks this and says what to change.
57
+ 3. **Knowledge lives in typed notes.** Text cards, lists, section frames, edges and portals arrange and label; they are unversioned, unsearchable and uncitable. If a future reader needs to find, cite or trust it, it is a note. A text card holds at most three sentences (the banner: four short lines): furniture (hero, banner, heading, legend), a connective (the board's own sentence on what one card means for the next, true only here, arrows in and out) or a sticky to be promoted. A note on the spine wears a quote face; tiles are for the shelf.
58
+ 4. **Link notes with typed mentions, and show only what the sentence needs.** Three forms, one link: `[NOTE-12: Title](relationship:<verb>)` shows the title, `[[<verb>::NOTE-12]]` the id alone, `[[<verb>::NOTE-12|your words]]` your words. The verb is the one the sentence uses (`blocks`, `depends-on`, `answered-by`); `references` is for pure citation only. Show a title once, where the reader first meets the note; after that the id alone keeps the sentence moving. Two titled mentions in one sentence, or a run of them in a list, is a readability defect; a bare `NOTE-12` in prose creates no link and is a defect too, in bodies and on cards. Reuse the workspace's relationship types (`cnotes schema` ranks them by use; `cnotes rel types` lists all) before coining one.
59
+ 5. **Edges are local to one canvas.** When an edge connects two notes, write the same relationship as a mention in a note body, or it exists nowhere off that canvas.
60
+ 6. **Place declaratively, edit in place.** `canvas place` / `canvas arrange`, never hand-computed x/y. Add to a section with `place --into SECTION-n`; tidy one with `arrange --section SECTION-n`. Change a text card with `canvas update-text` and a frame with `canvas update-section`: deleting and re-adding mints new ids and drops edges and `[[SECTION-n]]` mentions.
61
+ 7. **Content changes are versions.** `cnotes versions create` changes a note's body; fetch the current body first and edit that, since people edit between sessions. `notes update` changes metadata only (type, tags, pin, archive).
62
+ 8. **Inside a draft, propose and stop.** Shared notes change through `cnotes draft propose`; the hand-over is `cnotes draft ask`, then stop. Never merge or approve work you built ([references/drafts.md](references/drafts.md)).
63
+ 9. **Ask before spending something the user cannot get back:** `cnotes upgrade` uses the workspace's one-time trial, `cnotes feedback submit` files a report in their name, `cnotes types dimension backfill --yes` spends one model call per existing note.
64
+ 10. **Timeline headlines start with a past-tense verb and name the object** ("Shipped the public comic canvas", never "V1"): the `--intent`, an `operations begin --prompt`, a version `--description`, a milestone. The server rejects a milestone headline that does not. A milestone body, the lines after the headline, is at most 280 characters.
71
65
 
72
66
  ### Decisions
73
67
 
@@ -79,47 +73,36 @@ Write the citation in the Decision's body, not only as a canvas edge: `[NOTE-12:
79
73
 
80
74
  ## Reading output
81
75
 
82
- Every command follows one contract.
76
+ Every command follows one contract. Detail, including which key holds a note body per command and what `notes list` says on stderr: [references/output.md](references/output.md).
83
77
 
84
78
  | Flag | Effect |
85
79
  |---|---|
86
80
  | `--json` | Raw JSON. The default whenever stdout is not a terminal. |
87
81
  | `-q`, `--quiet` | One handle per line: displayId, else name, else id. |
88
- | `--fields a,b` | Keep only these fields; on an envelope it applies to the rows. With `-q`, tab-separated lines. |
82
+ | `--fields a,b` | Keep only these fields; on an envelope it applies to the rows. With `-q`, tab-separated lines. No `jq` needed. |
89
83
  | `-w`, `--workspace <id>` | Target another workspace for this command. |
90
84
  | `--server <url>` | Another server (default `https://creatornotes.app`). |
91
85
 
92
86
  | Exit | Meaning | Next move |
93
87
  |---|---|---|
94
88
  | `0` | success | |
95
- | `2` | auth required | `cnotes auth status` (it exits 2 when signed out), then `cnotes auth login` |
89
+ | `2` | auth required | `cnotes auth status` (exit 2 means signed out, not broken), then `cnotes auth login` |
96
90
  | `3` | validation | fix the input the error names (`details.items` lists each bad batch item) |
97
91
  | `4` | not found | the `hint` names the list command to run |
98
92
  | `5` | conflict | re-read and retry; an open run blocks `operations begin` |
99
93
  | `6` | rate limited | back off and retry |
100
94
  | `7` | permission denied | `cnotes workspace current` |
101
- | `8` | subscription required (writes on a free workspace) | read [references/billing.md](references/billing.md); offer `cnotes upgrade`, never run it unasked |
95
+ | `8` | subscription required (writes on a free workspace) | [references/billing.md](references/billing.md); offer `cnotes upgrade`, never run it unasked |
102
96
 
103
- - **Reads return data; writes return an envelope.** `notes list/get/search` emit a bare array (one note is `.[0]`). `notes create` returns `{ results, relationshipsCreated, rubrics?, hints? }`; read new notes from `results`. `canvas create` returns `{ canvas: { id, displayId, url } }` with `id`, `displayId` and `url` mirrored at the top level (after `create --spec` the `displayId` can still be null; `canvas get` has it). A note body comes back under `markdown` from `canvas read` and under `content` from `notes get --json`; read the key for the command you ran.
104
- - **Errors go to stderr** as `{ error, code, exitCode, hint }`. The `hint` names the command that fixes it; read it before retrying.
105
- - **`notes list` says on stderr which source answered and whether the list may be short.** With the local copy on, type, tag, text, pin and no-canvas lists count every note, your own writes included; `Showing N of M` is the real count. A line saying older matches may be missing means that: narrow the list or relay the hint, never report it as the whole. Counting or grouping is `cnotes query` ([references/more-commands.md](references/more-commands.md)).
106
- - **`cnotes auth status` and `cnotes whoami` exit 2 when no token is stored.** That means signed out. Exit 0 means a token is present. Do not treat exit 2 from status as a broken install.
107
- - **No `jq` needed.** `cnotes notes list --type Decision -q`, `cnotes notes create --notes '[...]' -q --fields key,displayId`, `CANVAS=$(cnotes canvas create "<name>" -q)`. Use a JSON parser only for nested values these flags cannot reach.
108
-
109
- Display IDs (`DECISION-12`, `CANVAS-406`, `SECTION-7`) work everywhere a command takes an id; Convex ids work too.
97
+ Reads return data (`notes list/get/search` emit a bare array; one note is `.[0]`); writes return an envelope (`notes create` returns `{ results, relationshipsCreated, rubrics?, hints? }`). Errors go to stderr as `{ error, code, exitCode, hint }`; read the hint before retrying. Display IDs (`DECISION-12`, `CANVAS-406`, `SECTION-7`) work everywhere a command takes an id.
110
98
 
111
99
  ## Getting started
112
100
 
113
101
  ```bash
114
102
  # The npm package is @creator-notes/cnotes. Do not install the unscoped name cnotes.
115
103
  npm install -g @creator-notes/cnotes
116
- cnotes init
117
- # No browser: init exits 2, prints a sign-in URL, and prints
118
- # cnotes auth login --token-stdin <<'EOF'
119
- # cn_...
120
- # EOF
104
+ cnotes init # no browser: exits 2 and prints the sign-in URL and a `cnotes auth login --token-stdin` heredoc
121
105
  cnotes auth status # exit 0 signed in, exit 2 signed out
122
- cnotes whoami # same as auth status
123
106
  cnotes workspace current # the active workspace and its relationship types
124
107
  cnotes brief "what this project is about"
125
108
  ```
@@ -137,15 +120,15 @@ After you create a canvas or finish changing one, end your reply with its link,
137
120
  | When you are | Open |
138
121
  |---|---|
139
122
  | Writing any prose a person will read | [references/humanizer.md](references/humanizer.md) |
140
- | Creating, reading or revising notes; types, rubrics and dimensions; markdown rules | [references/notes.md](references/notes.md) |
123
+ | Creating, reading or revising notes; types, rubrics and dimensions; markdown rules; grading | [references/notes.md](references/notes.md) |
141
124
  | Linking notes, reading backlinks, checking what an edit affects (`deps`) | [references/relationships.md](references/relationships.md) |
142
- | Deciding what goes on a canvas as a note, text card, list, frame, edge or portal; the banner; completion tests | [references/canvas-elements.md](references/canvas-elements.md) |
125
+ | Deciding what goes on a canvas as a note, face, text card, list, frame, edge or portal; the banner; completion tests | [references/canvas-elements.md](references/canvas-elements.md) |
143
126
  | Placing or rearranging several items (`canvas place`, `arrange`) | [references/canvas-layout.md](references/canvas-layout.md) |
144
127
  | Using any other canvas command: read, add, edit, move, remove, edges, templates, milestones, digest | [references/canvas.md](references/canvas.md) |
145
128
  | Running two agents at once, bracketing canvas edits, verifying attribution, reading the timeline | [references/operations.md](references/operations.md) |
146
129
  | Reworking notes or a board other people read, or asked to draft | [references/drafts.md](references/drafts.md) |
147
- | Another agent works in the same workspace: handing work over, reviewing another agent's proposal, overlaps, settling it, when to stop | [references/agents-together.md](references/agents-together.md) |
130
+ | Another agent works in the same workspace: handing over, reviewing its proposal, overlaps, when to stop | [references/agents-together.md](references/agents-together.md) |
148
131
  | Reviewing (propose the fix, or comment), addressing comments, requesting or answering a review, checking what teammates shared | [references/reviews-and-comments.md](references/reviews-and-comments.md) |
132
+ | Reading a command's output: keys, stderr notices, counts | [references/output.md](references/output.md) |
149
133
  | Hitting exit `8`, or asked for another workspace | [references/billing.md](references/billing.md) |
150
134
  | Planning focus blocks, handling images, setup, theme, config, or reporting a CLI problem | [references/more-commands.md](references/more-commands.md) |
151
-
@@ -30,7 +30,7 @@ With `-q` these lines go to stderr. Read them first: the work you were about to
30
30
 
31
31
  ## Hand work over as a proposal
32
32
 
33
- Hand another agent work as a proposal, never as a post in Slack or another channel outside CreatorNotes. Open it (`cnotes draft open "<name>" --intent "<the problem>"`), write into it, then ask a person: `cnotes draft ask --reviewer <email|me> --headline "..."`. The person asked is always a person; their agents review it for them. Then stop. Details: [drafts.md](drafts.md).
33
+ Hand another agent work as a proposal, never as a post in Slack or another channel outside CreatorNotes. Open it (`cnotes draft open "<name>" --why "<the problem>"`), write into it, then ask a person: `cnotes draft ask --reviewer <email|me> --headline "..."`. The person asked is always a person; their agents review it for them. Then stop. Details: [drafts.md](drafts.md).
34
34
 
35
35
  To point another agent at anything else (a finding, a note to check), write it in a note and give the display id: "my results are in OBSERVATION-123". In a Slack thread, post that id, never the finding itself.
36
36
 
@@ -4,11 +4,11 @@ Read this when a write fails with exit `8` (`subscription_required`) or the user
4
4
 
5
5
  ## Paid actions (writes need Pro)
6
6
 
7
- Reads work on any plan. **CLI/API writes require the target workspace to be on Pro** — this is the most common wall you will hit (exit `8`, `serverCode: "subscription_required"`). There are three distinct walls, and only two of them need a human. Do not collapse them into "tell the user to go pay."
7
+ Reads work on any plan. **CLI/API writes require the target workspace to be on Pro**, this is the most common wall you will hit (exit `8`, `serverCode: "subscription_required"`). There are three distinct walls, and only two of them need a human. Do not collapse them into "tell the user to go pay."
8
8
 
9
- **Wall 1 — free workspace, write blocked. You can fix this yourself.**
9
+ **Wall 1: free workspace, write blocked. You can fix this yourself.**
10
10
 
11
- If the caller owns the workspace and hasn't used its one-time trial, `cnotes upgrade` starts a free 7-day Pro trial and writes unlock immediately. **No credit card, no browser, no human hand-off** — it's a single command you can run.
11
+ If the caller owns the workspace and hasn't used its one-time trial, `cnotes upgrade` starts a free 7-day Pro trial and writes unlock immediately. **No credit card, no browser, no human hand-off**, it's a single command you can run.
12
12
 
13
13
  ```bash
14
14
  cnotes upgrade # start the free trial on the ACTIVE workspace, then retry the write
@@ -21,19 +21,19 @@ cnotes upgrade -w <id> # target a specific workspace
21
21
 
22
22
  On yes: run `cnotes upgrade`, then retry the write. That's the whole flow.
23
23
 
24
- **Wall 2 — trial already used. A human must pay.**
24
+ **Wall 2: trial already used. A human must pay.**
25
25
 
26
26
  `cnotes upgrade` fails with `trial_used`. Card entry is browser-only, so you cannot subscribe on the user's behalf. Surface the `upgradeUrl` from the error (the workspace's billing page, $49/mo), keep doing read-only work in the meantime, and retry the write once they confirm they've paid.
27
27
 
28
- **Wall 3 — they want an ADDITIONAL workspace. Human pays at checkout.**
28
+ **Wall 3: they want an ADDITIONAL workspace. Human pays at checkout.**
29
29
 
30
- `cnotes workspace create` **buys a new workspace** — it is not the fix for a blocked write on the current one (that's Wall 1). Only reach for it when the user actually asks for another workspace.
30
+ `cnotes workspace create` **buys a new workspace**, it is not the fix for a blocked write on the current one (that's Wall 1). Only reach for it when the user actually asks for another workspace.
31
31
 
32
32
  ```bash
33
33
  cnotes workspace create "Acme Research" --json # returns { checkoutUrl, sessionId }
34
34
  cnotes workspace create --verify <sessionId> --json # poll after the human pays
35
35
  ```
36
36
 
37
- The CLI never charges a card: `create` returns a Stripe Checkout URL a HUMAN must open and pay. Relay `checkoutUrl` to the user, then poll `--verify` every few seconds until `status` is `"ready"` — the new workspace is set active automatically. `--trial` starts that subscription with a 7-day trial (a card is still collected at checkout).
37
+ The CLI never charges a card: `create` returns a Stripe Checkout URL a HUMAN must open and pay. Relay `checkoutUrl` to the user, then poll `--verify` every few seconds until `status` is `"ready"`, the new workspace is set active automatically. `--trial` starts that subscription with a 7-day trial (a card is still collected at checkout).
38
38
 
39
- **If the caller is not the workspace owner**, never tell them to run `cnotes upgrade` — it dead-ends on an owner-only 403. The error `hint` already branches for this case: ask the *owner* to upgrade.
39
+ **If the caller is not the workspace owner**, never tell them to run `cnotes upgrade`, it dead-ends on an owner-only 403. The error `hint` already branches for this case: ask the *owner* to upgrade.