@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
@@ -15,7 +15,7 @@ author wrote it, **without corrupting meaning or erasing a legitimate voice**.
15
15
  - [The three verifiable flags](#the-three-verifiable-flags)
16
16
  - [The preservation gate](#the-preservation-gate)
17
17
  - [Two layers: quality floor and personal voice](#two-layers-quality-floor-and-personal-voice)
18
- - [CreatorNotes mechanics (deterministic — always apply)](#creatornotes-mechanics-deterministic--always-apply)
18
+ - [CreatorNotes mechanics (deterministic: always apply)](#creatornotes-mechanics-deterministic-always-apply)
19
19
  - [Restraint is the most important behavior](#restraint-is-the-most-important-behavior)
20
20
 
21
21
  Two things this is NOT:
@@ -32,16 +32,16 @@ Classify the task before editing a single word. Getting this gate right matters
32
32
  more than any word-level fix, because the failure that hurts is rewriting
33
33
  something that should have been left alone.
34
34
 
35
- **Apply the humanizer automatically** — agent-generated prose meant for a reader:
35
+ **Apply the humanizer automatically**: agent-generated prose meant for a reader:
36
36
  pre-reads, Slack messages, strategy prose, workshop notes, public drafts, and
37
37
  canvas banners an agent wrote.
38
38
 
39
- **Audit first, change only on evidence** — existing authored material: decision
39
+ **Audit first, change only on evidence**: existing authored material: decision
40
40
  records, reference guides, and any note carrying many relationships or
41
41
  measurements. Read it, list the specific problems, and revise only the notes with
42
42
  real defects. Most audits should change *some* notes and leave others untouched.
43
43
 
44
- **Never rewrite silently** — raw capture where the words are the evidence: raw
44
+ **Never rewrite silently**: raw capture where the words are the evidence: raw
45
45
  transcripts, voice memos, customer quotes, source evidence, legal text, and
46
46
  human-authored material where the voice itself is the record. Store these
47
47
  unchanged. If a reader needs a clean version, humanize the *derived artifact*,
@@ -62,7 +62,7 @@ follow the instruction and stop:
62
62
 
63
63
  | Mode | What you do |
64
64
  |---|---|
65
- | **Draft cleanly** | Author new prose already free of slop — the audit is baked into the first draft, not bolted on. |
65
+ | **Draft cleanly** | Author new prose already free of slop, the audit is baked into the first draft, not bolted on. |
66
66
  | **Audit only** | Report defects with locations and no edits. Hand the nuanced findings to the user. |
67
67
  | **Rewrite with preservation** | Fix the flagged prose while the preservation gate holds every fact, number, ID, and link fixed. |
68
68
  | **Match a voice card** | Apply an optional personal or company voice on top of the clean floor. |
@@ -77,12 +77,12 @@ material. Only rewrite existing notes once an audit has named the specific defec
77
77
  ### New agent-generated prose (draft → audit → preserve → save)
78
78
 
79
79
  1. **Draft for meaning** and the note-type rubric (`cnotes types show <Type>`).
80
- Own the outline yourself before filling it in — see [Structural slop](#structural-slop-own-your-outline).
80
+ Own the outline yourself before filling it in, see [Structural slop](#structural-slop-own-your-outline).
81
81
  2. **Run the anti-slop audit** against the kill-list and moves below.
82
82
  3. **Remove high-confidence pattern clusters, not isolated words.** A single
83
83
  flagged word in otherwise clean prose is usually a false positive. A *cluster*
84
84
  (hype adjective + filler verb + rule-of-three in the same paragraph) is real slop.
85
- 4. **Run the preservation check** — verify nothing in the [preservation gate](#the-preservation-gate)
85
+ 4. **Run the preservation check**: verify nothing in the [preservation gate](#the-preservation-gate)
86
86
  changed.
87
87
  5. **Save** with a `# h1` title, each mention in the form its sentence needs
88
88
  (the title where the reader first meets the note, the id alone after that;
@@ -108,7 +108,7 @@ symmetrical skeleton still reads machine-built. Fix both.
108
108
 
109
109
  ### The one rule under all of these
110
110
 
111
- When you catch a hit, **do not swap it for a quieter synonym** — a calmer slop
111
+ When you catch a hit, **do not swap it for a quieter synonym**, a calmer slop
112
112
  word is still slop. Replace it with one of three things:
113
113
  - a **concrete noun** (the graph, the version, the transcript),
114
114
  - a **number with its baseline** ("nine minutes to ninety seconds on the
@@ -118,7 +118,7 @@ word is still slop. Replace it with one of three things:
118
118
 
119
119
  If you cannot make the line concrete, the line has no claim. Cut it.
120
120
 
121
- ### Words — cut on sight
121
+ ### Words: cut on sight
122
122
 
123
123
  **A. Hype / greatness adjectives** (grade us instead of describing behavior):
124
124
  powerful, seamless, robust, scalable, cutting-edge, revolutionary, game-changer,
@@ -130,7 +130,7 @@ harness, unlock, unleash, supercharge, streamline, elevate, empower, foster,
130
130
  tapestry, journey, landscape, ecosystem, realm, synergy, paradigm shift.
131
131
  *Fix:* name the action or the thing.
132
132
 
133
- **C. Slop connective tissue** (announces a transition, carries no information —
133
+ **C. Slop connective tissue** (announces a transition, carries no information,
134
134
  delete the phrase, keep the sentence): furthermore, moreover, additionally, in
135
135
  conclusion, it is important to note, it is worth noting, needless to say, aims to
136
136
  (→ present-tense verb), when it comes to (→ the subject itself), at the end of the
@@ -143,7 +143,7 @@ smart notes, AI notes, AI-powered notes, "X alternative".
143
143
  **E. Personal-ban tics** (our own recurring habits): actually, simply, just (as
144
144
  filler), really (as intensifier), might, perhaps, kind of, thrilled, excited.
145
145
 
146
- ### Moves — a sentence can pass every word check and still be slop
146
+ ### Moves: a sentence can pass every word check and still be slop
147
147
 
148
148
  | Banned move | Do instead |
149
149
  |---|---|
@@ -161,7 +161,7 @@ filler), really (as intensifier), might, perhaps, kind of, thrilled, excited.
161
161
  | Both-sides hedge-seesaw presented as a view | commit to a stance and name its cost |
162
162
  | Exclamation points in feature copy | a period; the usefulness is the news |
163
163
 
164
- ### Structural slop — own your outline
164
+ ### Structural slop: own your outline
165
165
 
166
166
  Structure is the deeper tell than vocabulary. A tidy intro, three even sections,
167
167
  and a balanced conclusion pattern-match to generated text even after every banned
@@ -184,16 +184,16 @@ true**. A precise-sounding but unsourced number passes every linter, so do not
184
184
  pretend to grade truth or calibration. Flag these three, and pair every
185
185
  concreteness check with a source check:
186
186
 
187
- 1. **Unredeemed abstraction** — a comparative or magnitude word (better, faster,
187
+ 1. **Unredeemed abstraction**: a comparative or magnitude word (better, faster,
188
188
  bigger, significant, most, many, soon, a lot) with no number, unit, baseline,
189
189
  and date. Demand the operand: better on which metric, from what baseline to
190
190
  what target, by when.
191
- 2. **Missing falsifier** — on an empirical or decision claim, no statable "this is
191
+ 2. **Missing falsifier**: on an empirical or decision claim, no statable "this is
192
192
  wrong if X by date D."
193
- 3. **Naked claim** — a load-bearing claim with no linked Fact, Test, or Metric
193
+ 3. **Naked claim**: a load-bearing claim with no linked Fact, Test, or Metric
194
194
  (no supporting relationship mention).
195
195
 
196
- Surface these as questions for the author, not as silent rewrites — forcing a
196
+ Surface these as questions for the author, not as silent rewrites, forcing a
197
197
  number where none exists only mints fake precision.
198
198
 
199
199
  ---
@@ -203,14 +203,14 @@ number where none exists only mints fake precision.
203
203
  Before saving any rewrite, confirm none of these changed. Each row is a real way
204
204
  humanization corrupts a note:
205
205
 
206
- - **Numbers, dates, names** — identical to the source.
207
- - **Negations, uncertainty, scope** — "not", "only", "up to", "we think",
206
+ - **Numbers, dates, names**: identical to the source.
207
+ - **Negations, uncertainty, scope**: "not", "only", "up to", "we think",
208
208
  "in some cases" carry meaning; do not drop or invert them.
209
- - **Legal / technical qualifiers** — a hedge that is a legal or technical
209
+ - **Legal / technical qualifiers**: a hedge that is a legal or technical
210
210
  constraint is not slop. Keep it.
211
- - **Checklists and structured writing** — deliberate structure is not slop.
211
+ - **Checklists and structured writing**: deliberate structure is not slop.
212
212
  Do not flatten a checklist into a paragraph.
213
- - **Relationship mentions** — links intact, and what each shows unchanged: a
213
+ - **Relationship mentions**: links intact, and what each shows unchanged: a
214
214
  titled `[NOTE-12: Title](relationship:type)` stays titled, an id-only
215
215
  `[[type::NOTE-12]]` stays id-only, an alias `[[type::NOTE-12|words]]` keeps
216
216
  its words. Never strip a mention to bare text, drop its link, or add titles
@@ -218,8 +218,8 @@ humanization corrupts a note:
218
218
  narrates "blocks" / "depends on" around a `references` chip or untyped
219
219
  `[[NOTE-12]]`, retype the chip (`relationship:blocks`, `[[blocks::NOTE-12]]`)
220
220
  instead of leaving the verb in prose the graph can't see.
221
- - **Tables and layout** — tables, columns, and canvas placement survive.
222
- - **Voice as evidence** — a customer quote or raw memo keeps its original wording.
221
+ - **Tables and layout**: tables, columns, and canvas placement survive.
222
+ - **Voice as evidence**: a customer quote or raw memo keeps its original wording.
223
223
 
224
224
  When in doubt, keep it and flag it in **Audit only** mode rather than rewriting.
225
225
 
@@ -251,33 +251,33 @@ Company-facing documents use a **neutral CreatorNotes voice or a company voice**
251
251
  not an individual's profile. When the author is the team, write in a steady first
252
252
  person: attach each opinion to the specific decision or failure that produced it,
253
253
  so credibility comes from the work, not from adjectives. A bolt-on "I personally
254
- believe" in front of a generic claim still reads synthetic — the first person has
254
+ believe" in front of a generic claim still reads synthetic, the first person has
255
255
  to carry a real detail (a number, a named workflow, a decision and what it cost),
256
256
  or cut both the "I" and the claim.
257
257
 
258
258
  ---
259
259
 
260
- ## CreatorNotes mechanics (deterministic — always apply)
260
+ ## CreatorNotes mechanics (deterministic: always apply)
261
261
 
262
262
  These are objective and never need judgment. Enforce them on every write:
263
263
 
264
264
  - **Canvas titles** use the middle dot `·` (U+00B7) as a separator, never an
265
265
  em dash or en dash.
266
- - **Every note starts with a `# h1`** heading — it becomes the title.
266
+ - **Every note starts with a `# h1`** heading, it becomes the title.
267
267
  - **Relationship mentions are typed links, never bare `NOTE-123`**:
268
268
  `[NOTE-123: Title](relationship:type)` where the reader first meets the note,
269
269
  `[[type::NOTE-123]]` after that, `[[type::NOTE-123|your words]]` when the
270
270
  sentence needs a phrase. A run of titled mentions is a readability defect:
271
271
  show each title once.
272
- - **Relationship type matches the narrated verb** — prose "Blocks X" around a
272
+ - **Relationship type matches the narrated verb**: prose "Blocks X" around a
273
273
  `references`/untyped chip is a graph bug, not a style choice: retype to
274
274
  `relationship:blocks` (or `[[blocks::NOTE-123]]`) and drop the redundant verb.
275
- - **Canvas richtext and list descriptions name notes with relationship mentions** —
275
+ - **Canvas richtext and list descriptions name notes with relationship mentions**,
276
276
  the same three forms render as chips; a bare display id in card prose
277
277
  ("see RISK-64") is a defect.
278
- - **Richtext stays card-sized** — at most ~3 sentences, one heading; distinct
278
+ - **Richtext stays card-sized**: at most ~3 sentences, one heading; distinct
279
279
  items are N typed notes, not a wall of text.
280
- - **No placeholder or artifact tokens** — "lorem ipsum", "TODO", "[insert X]",
280
+ - **No placeholder or artifact tokens**: "lorem ipsum", "TODO", "[insert X]",
281
281
  "as an AI language model", or leftover template markers never ship in saved prose.
282
282
  - **Timeline headlines are the platform's. Bodies are the agent's.** A
283
283
  `changeDescription`, milestone `--message`, or operations `--prompt` is a
@@ -287,7 +287,7 @@ These are objective and never need judgment. Enforce them on every write:
287
287
  leftover `{displayId}`. No em dashes. The platform rewrites a failing agent
288
288
  headline and leaves the body. Human-typed editor text only gets `{displayId}`
289
289
  filled. One change per headline.
290
- - **Valid mention syntax and live links** — no broken links, no malformed mentions.
290
+ - **Valid mention syntax and live links**: no broken links, no malformed mentions.
291
291
 
292
292
  ---
293
293
 
@@ -79,12 +79,12 @@ cnotes focus cancel <planId>
79
79
  # since planning — re-target or re-plan rather than trusting the block.
80
80
  ```
81
81
 
82
- **Keep the plan row thin.** Time, goal, destination — nothing else. The
82
+ **Keep the plan row thin.** Time, goal, destination, nothing else. The
83
83
  durable clues (decisions, criteria, "complete when") live IN the target note,
84
84
  never in the goal string: a display id pasted into the goal is inert prose the
85
85
  graph cannot see, while `--target` is the clickable, validated form of the
86
86
  same intent. A plan with no `--canvas` renders as a non-clickable block; that
87
- is by design, not a bug — there is nothing to open.
87
+ is by design, not a bug: there is nothing to open.
88
88
 
89
89
 
90
90
  ## Files (`cnotes files` / `cnotes f`)
@@ -126,7 +126,7 @@ cnotes mcp setup-codex # OpenAI Codex
126
126
 
127
127
  ## Theme (`cnotes theme`)
128
128
 
129
- Personal UI theme preference (synced to your account, applies on next browser reload — does NOT live-update an open tab).
129
+ Personal UI theme preference (synced to your account, applies on next browser reload, does NOT live-update an open tab).
130
130
 
131
131
  ```bash
132
132
  # List built-in presets — current one is marked with *
@@ -152,7 +152,7 @@ cnotes theme reset
152
152
  `code-background`, `code-foreground`, `blockquote-border`,
153
153
  `destructive`, `success`, `warning`, `info`.
154
154
 
155
- `set-color` merges into existing overrides — call it repeatedly to build up a custom palette. `reset` returns to the preset that was the base of your custom theme (or `dark` if you started from scratch).
155
+ `set-color` merges into existing overrides, call it repeatedly to build up a custom palette. `reset` returns to the preset that was the base of your custom theme (or `dark` if you started from scratch).
156
156
 
157
157
  ## Config
158
158
  ```bash
@@ -185,15 +185,15 @@ CreatorNotes is built for humans *and* agents, so feedback from an agent is real
185
185
 
186
186
  **When to offer it** (be selective, not noisy):
187
187
  - A reproducible bug: a command 500s, returns wrong/empty data, or a documented path doesn't behave as described.
188
- - A real capability gap that blocked the task (not a transient blip, not your own mistake — rule those out first).
188
+ - A real capability gap that blocked the task (not a transient blip, not your own mistake, rule those out first).
189
189
  - Standout praise is welcome too, but lead with friction; it's the actionable signal.
190
190
 
191
191
  **Always ask the user first.** The report is attributed to them and goes to the CreatorNotes team. Say in one line what you'd report and ask if they want it sent. Never file silently, and never file the same issue twice.
192
192
 
193
193
  **Make it directly fixable.** In the `--body` (markdown), include:
194
- - **What happened** — the exact command you ran and the exact error/behavior.
195
- - **Root cause (suspected)** — your best read from the outside; say what's uncertain.
196
- - **Suggested fix** — what would resolve it.
197
- - **Severity** — who/what is blocked.
194
+ - **What happened**: the exact command you ran and the exact error/behavior.
195
+ - **Root cause (suspected)**: your best read from the outside; say what's uncertain.
196
+ - **Suggested fix**: what would resolve it.
197
+ - **Severity**: who/what is blocked.
198
198
 
199
199
  Set `--severity` honestly (`blocking` only if it stops the task), `--area` to where it bites (e.g. `cli/canvas`, `editor`, `api/notes`), and `--model` to your own model id so the team knows which agent reported it. One note per issue.
@@ -139,6 +139,9 @@ cnotes notes create --notes '[
139
139
  cnotes quality INSIGHT-12 PAINPOINT-4 --fail-below 4 --json
140
140
  # Exit 3 until you record a grade. Then:
141
141
  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."
142
+ # Several notes in one call (a board's worth): a JSON array of
143
+ # {displayId, level, criteria, feedback?, nextStep?, gradedVersion?}, inline or from a file.
144
+ cnotes quality record --grades-file ./grades.json
142
145
  cnotes quality --canvas CANVAS-60 --json
143
146
  cnotes quality --all --limit 200 --no-grade
144
147
  # Structural codes (free, no credits): missing_title, empty_body, bare_id,
@@ -241,13 +244,13 @@ each note is judged again; a new label alone keeps them.
241
244
 
242
245
 
243
246
  ## Note IDs
244
- - Notes have **display IDs** like `MEETING-12`, `PRD-5`, `IDEA-3` — use these in commands.
247
+ - Notes have **display IDs** like `MEETING-12`, `PRD-5`, `IDEA-3`, use these in commands.
245
248
  - Convex IDs (e.g., `n17a43p7aenrxyr...`) also work but are less readable.
246
249
  - When creating notes, capture the display ID from the output for subsequent commands.
247
250
 
248
251
  ## Note Types
249
252
  - The `--type` parameter must reference an **existing supertag** in the workspace. Free-text type strings are rejected.
250
- - **Pick the type, then read its rubric, then write to it — in that order.** Each type carries a `validationPrompt` (its quality rubric: what a good instance contains). Once you know the type, run `cnotes types show <Type>` (or read `typeRubrics` from `cnotes operations begin --json` / `validationPrompt` from `cnotes types list --json`) and author to that rubric so the note lands well-formed. Example: a Decision needs the alternatives weighed, the rationale, and a revisit trigger, and it cites the cards it depends on (see [Decisions](#decisions)). `cnotes notes create --json` also puts the rubric on **each** `.results[]` item (`type` + `rubric`) and as a top-level `rubrics` array. Do not cut the output down to only `displayId` until you have checked `.results[].rubric`. After the write, you grade: `cnotes quality` hands back `gradeRequest` (rubric + content + "Grade this against the rubric") and spends no credits. Record the grade with `cnotes quality record`. A Decision rubric that declares `Required sections:` fails the free structural check until those `##` headings are present.
253
+ - **Pick the type, then read its rubric, then write to it, in that order.** Each type carries a `validationPrompt` (its quality rubric: what a good instance contains). Once you know the type, run `cnotes types show <Type>` (or read `typeRubrics` from `cnotes operations begin --json` / `validationPrompt` from `cnotes types list --json`) and author to that rubric so the note lands well-formed. Example: a Decision needs the alternatives weighed, the rationale, and a revisit trigger, and it cites the cards it depends on (see [Decisions](#decisions)). `cnotes notes create --json` also puts the rubric on **each** `.results[]` item (`type` + `rubric`) and as a top-level `rubrics` array. Do not cut the output down to only `displayId` until you have checked `.results[].rubric`. After the write, you grade: `cnotes quality` hands back `gradeRequest` (rubric + content + "Grade this against the rubric") and spends no credits. Record the grade with `cnotes quality record`. A Decision rubric that declares `Required sections:` fails the free structural check until those `##` headings are present.
251
254
  - If the type you need doesn't exist, create it first: `cnotes types create "MyType" --display-name "My Type"`
252
255
  - Type names are **case-sensitive** and use PascalCase (e.g., `Update`, `PainPoint`, `Meeting`).
253
256
  - The display ID prefix is **auto-derived** from the display name: spaces become hyphens, all uppercase (e.g., display name "Pain Point" → prefix `PAIN-POINT`, display name "Idea" → prefix `IDEA`).
@@ -263,7 +266,7 @@ each note is judged again; a new label alone keeps them.
263
266
  - **Always start markdown content with a `# h1` heading.** This becomes the note title. **The title is a headline, not a sentence**: at most 80 characters, naming the claim or the object, with no consequence clause (", so…", ", because…", ", which…"), no display id and no em dash. The body's first sentence carries the why. The server refuses an agent's note or version whose title breaks this (`field: "title"` in a batch) and the message says what to change; a person typing in the editor is never refused. Follow proper markdown structure: `## h2` for major sections, `### h3` for subsections. Well-structured heading hierarchy is expected for all notes.
264
267
  - **Relationship mentions in markdown**: three forms, one link. `[NOTE-123: Title](relationship:<type>)` shows the note's title (the server writes the current title over yours on every save, so it never goes stale); `[[<type>::NOTE-123]]` and `[NOTE-123](relationship:<type>)` show the id alone; `[[<type>::NOTE-123|your words]]` shows your words, with the title on hover. What you write is what the chip shows. Plain text "NOTE-123" does NOT create a mention. Match `<type>` to the verb your prose uses (`blocks`, `depends-on`, …); `references` is for pure citations, and an untyped `[[NOTE-123]]` is one. Bodies come back to you in the same forms, so a round trip keeps what each chip shows.
265
268
  - **Show each title once.** Title a note where the reader first meets it in a body, so they learn what it is; after that write the id alone ("the cut in [[depends-on::DECISION-6K535]]"), and when the sentence needs a noun, your own words ("[[depends-on::DECISION-6K535|the packaging call]]"). A title is a headline, not a phrase: two titled mentions in one sentence, or a run of them in a list, stop the reader every time.
266
- - **The classic miss: capturing an answer/outcome that lives in another note.** "The answer is the packaging decision in DECISION-24" saved as plain prose creates no chip, no relationship, no backlink — the graph never learns the question was answered. Write the mention with the verb as its type: `Answered by [DECISION-24: Title](relationship:answered-by)`. `notes create` and `versions create` detect bare IDs that name real notes and return them in `plainTextIdWarnings` (stderr + `--json`), each with a paste-ready rewrite carrying the note's actual title — treat every entry as a fix instruction (save a corrected version) unless the bare ID is deliberate prose.
269
+ - **The classic miss: capturing an answer/outcome that lives in another note.** "The answer is the packaging decision in DECISION-24" saved as plain prose creates no chip, no relationship, no backlink, the graph never learns the question was answered. Write the mention with the verb as its type: `Answered by [DECISION-24: Title](relationship:answered-by)`. `notes create` and `versions create` detect bare IDs that name real notes and return them in `plainTextIdWarnings` (stderr + `--json`), each with a paste-ready rewrite carrying the note's actual title, treat every entry as a fix instruction (save a corrected version) unless the bare ID is deliberate prose.
267
270
  - **Quoting another note's exact words**: write a quote block, the words in a blockquote and a last line citing the version they came from with a `quotes` mention pinned to it. Read the version number and its time from `cnotes versions list <id>`; the words must be that version's, verbatim:
268
271
  ```markdown
269
272
  > We lose them at the invite step
@@ -271,21 +274,21 @@ each note is judged again; a new label alone keeps them.
271
274
  > — from [[quotes::TRANSCRIPT-4@v5]] v5, 12 Oct 2026, 4:55 pm
272
275
  ```
273
276
  It is a hard copy: the version never changes, so the block never goes stale, and saving it records a `quotes` relationship pinned to v5. Say what the quote means in your own sentences around it.
274
- - **Reuse an existing relationship type before inventing one.** `cnotes schema` lists the workspace's slugs most-linked first (`cnotes rel types` lists every one); pick the closest existing label. The type slot is free-form, so an unknown label is auto-created as a custom workspace type rather than dropped — but that means a typo or a needless synonym (`support` vs `supports`, `relates-to` vs `related-to`) silently pollutes the workspace's type vocabulary forever. Only coin a new type when nothing existing fits.
275
- - Names are normalized to lowercase + hyphens, so `Depends On`, `depends on`, and `depends-on` all resolve to the same type. When `cnotes notes create` does create new types, it reports them (`+ created N new relationship types: …`) — treat that line as a prompt to double-check you didn't mean an existing one.
277
+ - **Reuse an existing relationship type before inventing one.** `cnotes schema` lists the workspace's slugs most-linked first (`cnotes rel types` lists every one); pick the closest existing label. The type slot is free-form, so an unknown label is auto-created as a custom workspace type rather than dropped, but that means a typo or a needless synonym (`support` vs `supports`, `relates-to` vs `related-to`) silently pollutes the workspace's type vocabulary forever. Only coin a new type when nothing existing fits.
278
+ - Names are normalized to lowercase + hyphens, so `Depends On`, `depends on`, and `depends-on` all resolve to the same type. When `cnotes notes create` does create new types, it reports them (`+ created N new relationship types: …`), treat that line as a prompt to double-check you didn't mean an existing one.
276
279
  - Common built-in types to reach for first:
277
- - `depends-on` / `blocks` — dependency ordering between notes
278
- - `references` — pure citation with no claimed relationship (the type `[NOTE-123]` gets when you name none)
279
- - `implements` — a note that delivers on what another identifies (e.g., feature → requirement, solution → gap)
280
- - `derived-from` — a note created based on another's content
281
- - `extends` — adds depth or detail to another note's topic
282
- - `invalidates` / `supersedes` — supersedes or contradicts another note
283
- - `related-to` — loose thematic connection
284
- - `duplicates` — notes covering the same thing
280
+ - `depends-on` / `blocks`, dependency ordering between notes
281
+ - `references`, pure citation with no claimed relationship (the type `[NOTE-123]` gets when you name none)
282
+ - `implements`, a note that delivers on what another identifies (e.g., feature → requirement, solution → gap)
283
+ - `derived-from`, a note created based on another's content
284
+ - `extends`, adds depth or detail to another note's topic
285
+ - `invalidates` / `supersedes`, supersedes or contradicts another note
286
+ - `related-to`, loose thematic connection
287
+ - `duplicates`, notes covering the same thing
285
288
  - Simple mention shorthand: `[NOTE-123]` (the id alone), `[NOTE-123: Title]` (the title) or `[NOTE-123|your words]`; all three are "references"
286
289
 
287
290
  ## Updating Content vs Metadata
288
291
  - To change note **content** (including title), create a new **version**: `cnotes versions create <id> --description "..." --markdown-file ./updated.md`
289
- - Title is derived from the `# h1` heading in the latest version — to rename a note, create a new version with a different heading.
292
+ - Title is derived from the `# h1` heading in the latest version, to rename a note, create a new version with a different heading.
290
293
  - To change note **type/tags/pin/archive**, use: `cnotes notes update <id> --type "..." --tags "..."`
291
294
  - These are separate operations by design.
@@ -12,7 +12,7 @@ Read this for the detail behind `operations begin`/`end`: when to wrap, two agen
12
12
  - [Canvas agent-runs](#canvas-agent-runs)
13
13
  - [Timeline (`cnotes timeline` / `cnotes tl`)](#timeline-cnotes-timeline--cnotes-tl)
14
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.
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
16
 
17
17
  **This is enforced for every write.** A note create, version, metadata change, archive, retype, move, link removal, dependency review or canvas change from a key is rejected with `operation_required` (HTTP 422, exit 3) unless a run is active or the command carries `--intent`. Comments, review requests, uploads, types and focus plans are not. Begin one first; the active run then auto-attaches to every subsequent write.
18
18
 
@@ -20,17 +20,17 @@ When an AI agent is doing a **batch of work** — creating notes, modifying 2+ e
20
20
 
21
21
  | Action | Wrap? |
22
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 | **Yes — enforced.** Pass `--intent "<headline>"` on it, or wrap it with your other writes |
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 | **Yes, enforced.** Pass `--intent "<headline>"` on it, or wrap it with your other writes |
26
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 |
27
+ | Canvas mutations done as part of an agent task | **Yes**, even one canvas command, if it's part of a larger batch |
28
28
 
29
29
  **One write is its own run with `--intent`.** When the whole task is a single write command (`notes create`, `update`, `delete`, `retype` or `move`, `versions create`, `rel rm`, `deps review`, `canvas create`, `update`, `delete`, `archive`, `place`, `arrange`, an `add-*`, `update-*`, `move-*` or `remove-*` canvas command), pass `--intent "<headline>"` on it instead of bracketing it: the CLI opens a run with that headline, runs the command under it, and closes the run even when the command fails. Removals (`bulk-remove`, `remove-node`, `remove-edge`) get a canvas run with a before snapshot, the same as `canvas agent-run wrap`, so they can be undone. When a run is already open, the write joins it and `--intent` is not used as a headline. `cnotes <command> --help` lists the flag on every command that takes it.
30
30
 
31
31
  ## The pattern
32
32
 
33
- `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.
33
+ `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.
34
34
 
35
35
  ```bash
36
36
  # 1. Open the run with the user's intent as the prompt.
@@ -60,6 +60,7 @@ cnotes canvas add-edge <canvasId> --source <a> --target <b> --label "depends on"
60
60
  # versions create, record a new grade, and check once more.
61
61
  cnotes quality INSIGHT-12 --fail-below 4 --json
62
62
  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."
63
+ cnotes quality record --grades-file ./grades.json # every note of the run in one call (notes.md)
63
64
 
64
65
  # 4. Close the run when done.
65
66
  cnotes operations end
@@ -77,7 +78,7 @@ then offers resume: `claude --resume <id>` (copy) or
77
78
  Override with `CNOTES_AGENT_SESSION_ID` + `CNOTES_AGENT_SESSION_KIND` when needed.
78
79
 
79
80
 
80
- **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.
81
+ **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.
81
82
 
82
83
  **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.
83
84
 
@@ -89,7 +90,7 @@ CNOTES_AGENT_RUN_ID=$RUN cnotes notes create --notes '[ ... ]'
89
90
  cnotes operations end --agent-run-id $RUN
90
91
  ```
91
92
 
92
- `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.
93
+ `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.
93
94
 
94
95
  The draft you work in is shared the same way: `draft open` and `draft checkout` save it for every terminal on the login. A second agent that should work live sets `CNOTES_PROPOSAL=none`; one that works in its own draft sets `CNOTES_PROPOSAL=<draft id>` ([drafts.md](drafts.md)).
95
96
 
@@ -112,7 +113,7 @@ The prompt is the timeline row's headline, and the server lints it like every he
112
113
  - "Reorganized the roadmap canvas into a SWOT layout"
113
114
  - "Added a risks list linked to the parent goal"
114
115
 
115
- Avoid generic prompts like "make changes" or "update canvas" — they make the timeline useless.
116
+ Avoid generic prompts like "make changes" or "update canvas", they make the timeline useless.
116
117
 
117
118
  ## Verifying it worked
118
119
 
@@ -121,7 +122,7 @@ After your run, the user (or you) can:
121
122
  - Expand the row → each member note appears nested
122
123
  - Run `cnotes operations get <agentRunId>` → confirms `affectedNoteCount` reflects everything the run touched
123
124
 
124
- 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).
125
+ 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).
125
126
 
126
127
  ## Read before you write
127
128
 
@@ -146,10 +147,10 @@ cnotes canvas activity <canvasId> # inspect operations + attribution after the
146
147
 
147
148
  `begin` persists the run as the active run for this server (the same pointer
148
149
  `cnotes operations begin` uses), so **every subsequent cnotes write attaches to
149
- it automatically** — across separate shells and stateless tool calls, with no
150
+ it automatically**: across separate shells and stateless tool calls, with no
150
151
  env var to thread through. `end` closes that active run, so it needs no
151
152
  `--run-id`. Only one run can be open at a time: a second `begin` refuses with
152
- exit 5 (CONFLICT) rather than silently clobbering the first — pass `--force` to
153
+ exit 5 (CONFLICT) rather than silently clobbering the first, pass `--force` to
153
154
  end the prior run server-side and start fresh.
154
155
 
155
156
  Prefer `wrap` for a single command (it auto-closes even on failure, and its run
@@ -0,0 +1,23 @@
1
+ # Reading a command's output
2
+
3
+ The one contract every command follows is in the core skill (the flag table and the exit codes). This is the detail: which key holds what, what the stderr notices mean, and the few places the shape is not what you would guess.
4
+
5
+ ## Reads return data, writes return an envelope
6
+
7
+ - `notes list`, `notes get` and `notes search` emit a bare array, so one note is `.[0]`. `notes get --expand` is the exception: an object `{ notes, linked, truncated, cap, omitted, notice }` (notes.md).
8
+ - `notes create` returns `{ results, relationshipsCreated, rubrics?, hints? }`; read new notes from `results`. Each row carries `type`, `rubric`, and `quality` where the workspace grades on save.
9
+ - `canvas create` returns `{ canvas: { id, displayId, url } }` with `id`, `displayId` and `url` mirrored at the top level; after `create --spec` the placement is under `layout`, and `displayId` can still be null until `canvas get` reads it.
10
+ - `canvas place` returns `{ items, edges, bbox, successCount, notes?, arrangedSections? }`. It is best-effort, not transactional (HTTP 207): read `items[].error` and `edges[].error` before assuming success. A `quote` item adds `quoteNoteDisplayId`, `noteDisplayId`, `versionNumber` and `placed`.
11
+ - 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. `notes get --content-only` prints the raw markdown with no envelope, the right read for a transcript.
12
+
13
+ ## Errors and notices go to stderr
14
+
15
+ - A non-zero exit prints `{ error, code, exitCode, hint }` on stderr. The `hint` names the command that fixes it; read it before retrying.
16
+ - `notes create` and `versions create` print `plainTextIdWarnings` (bare ids that name real notes, each with a paste-ready mention), `mentionWarnings` (a verb narrated around a `references` chip) and `headlineWarnings` on stderr as well as in `--json`. Treat each as a fix instruction unless the prose is deliberate.
17
+ - `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` (more-commands.md).
18
+ - `cnotes auth status` and `cnotes whoami` exit 2 when no token is stored. That means signed out, not a broken install; exit 0 means a token is present.
19
+ - `operations begin -q` prints only the run id on stdout; the proposals waiting on you go to stderr.
20
+
21
+ ## No `jq` needed
22
+
23
+ `-q` and `--fields` reach most values: `cnotes notes list --type Decision -q`, `cnotes notes create --notes '[...]' -q --fields key,displayId`, `CANVAS=$(cnotes canvas create "<name>" -q)`, `cnotes files gen-image --aspect 16:9 -q --fields fullUrl`. Use a JSON parser only for nested values these flags cannot reach.
@@ -39,26 +39,26 @@ questions, and conflating them is the classic mistake:
39
39
 
40
40
  | Field | Meaning |
41
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. |
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
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
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. |
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
46
 
47
47
  Relationships are append-only: every save re-extracts the body's chips into fresh
48
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
49
+ already hides superseded rows, so `rel list` reflects the CURRENT content, you do
50
50
  not need to filter it yourself.
51
51
 
52
52
  **Caveat on `declared`:** chip tracking was added after the fact, so links created
53
53
  before it report `declared` even when they DID come from a body chip. Read
54
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
55
+ prose: the note body is the authority. This only ever makes a link too durable
56
56
  (it stays live), never too fragile, so `declared` is always safe to trust as
57
57
  "still asserted"; just don't infer from it that the prose never said so.
58
58
 
59
59
  **See how a found note connects (the editor header, for agents).** When you
60
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
61
+ editor shows at the top of the panel are both one call away, use them to
62
62
  orient before acting on the note:
63
63
 
64
64
  ```bash
@@ -77,16 +77,16 @@ its `discovery` key.
77
77
 
78
78
  When creating multiple related notes, interlink at two levels:
79
79
 
80
- **1. Relationship mentions inside note content** — connects notes in the knowledge graph:
80
+ **1. Relationship mentions inside note content**: connects notes in the knowledge graph:
81
81
  - Use `cnotes notes create` with an array and `@key` placeholders for cross-references.
82
82
  - Example: `[@B: The Problem](relationship:extends)` in markdown.
83
83
  - The server resolves placeholders to real display IDs in one atomic transaction.
84
84
 
85
- **2. Canvas edges between nodes** — visual connections on the canvas:
85
+ **2. Canvas edges between nodes**: visual connections on the canvas:
86
86
  - After adding nodes, connect them with `cnotes canvas add-edge`, using short verb labels ("triggers", "depends on").
87
87
  - Edges can join any node type, as long as both endpoints are on the same canvas.
88
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)).
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
90
 
91
91
  ### Placeholder Syntax for `cnotes notes create`
92
92
 
@@ -95,9 +95,9 @@ Use `[@key: Title](relationship:type)` where `key` matches a note's `key` field
95
95
  This builds on [@B: The Problem](relationship:extends) and enables [@C: The Workflow](relationship:enables).
96
96
  ```
97
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.
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
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. Writing the verb right before its chip is fine: "This reopens [[reopens::DECISION-6KW]]" renders as "This reopens → DECISION-6KW", because a chip drops its own label when the words just before it say the same thing (whitespace only between them, so not "reopens: …"). The wiki form shows the id alone; `[DECISION-6KW: Title](relationship:reopens)` shows the title and `[[reopens::DECISION-6KW|the earlier call]]` your words (the three forms in [notes.md](notes.md)).
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. Writing the verb right before its chip is fine: "This reopens [[reopens::DECISION-6KW]]" renders as "This reopens → DECISION-6KW", because a chip drops its own label when the words just before it say the same thing (whitespace only between them, so not "reopens: …"). The wiki form shows the id alone; `[DECISION-6KW: Title](relationship:reopens)` shows the title and `[[reopens::DECISION-6KW|the earlier call]]` your words (the three forms in [notes.md](notes.md)).
101
101
 
102
102
 
103
103
  ## Dependencies (`cnotes deps`)
@@ -105,7 +105,7 @@ The relationship type is free-form, but **reuse an existing type before inventin
105
105
  "When this note changes, check that dependent." A dependency is a `depends-on`
106
106
  relationship: the dependent (an FAQ, a landing page, a deck) depends on a basis
107
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
108
+ dependent's body, in a sentence that says why, the sentence is recorded as the
109
109
  reason:
110
110
 
111
111
  ```markdown
@@ -132,7 +132,7 @@ Who can use the server path:
132
132
 
133
133
  - An email on the server allowlist skips the paid gate and the credit charge.
134
134
  - A Pro workspace spends 10 credits per image on the server key.
135
- - A free workspace returns `subscription_required`. A short balance returns `insufficient_credits`. The error names `cnotes upgrade` or `--byo-key`.
135
+ - A free workspace returns `subscription_required`. A short balance returns `insufficient_credits`. The error names `cnotes files gen-image --byo-key` or `cnotes upgrade`.
136
136
  - `--byo-key` reads `GOOGLE_GENERATIVE_AI_API_KEY`, `GEMINI_API_KEY` or `CN_GEMINI_KEY` on this machine, generates here, and uploads only the PNG. The key is never sent to CreatorNotes. That path is text-only too.
137
137
 
138
138
  If your agent has an image tool that takes reference images (a Gemini image edit, GPT Image edits, FLUX.2, Midjourney `--oref`), use the reference path in Step 2. Otherwise use the text-only path. `cnotes files gen-image` cannot take a reference.
@@ -298,33 +298,30 @@ cnotes operations end -w $WS
298
298
 
299
299
  ---
300
300
 
301
- ## Step 4: Position the band (the bulk-move offset trick)
301
+ ## Step 4: Position the band
302
302
 
303
- `cnotes canvas place` **ignores an absolute origin** and appends the new block *below* existing content. To put the filmstrip somewhere specific (e.g. a hero band above the title), read the returned positions, compute one uniform offset, and `bulk-move` the whole group so the relative layout is preserved:
303
+ By default `cnotes canvas place` lands the new block in a clear band below existing content. To put the filmstrip somewhere specific (a band above the title, say), give the spec an `origin` and `"placement": "exact"`; the solver then honours the corner verbatim, even where it overlaps (canvas-layout.md in the cnotes skill):
304
304
 
305
305
  ```js
306
- // move-to-top.js
307
- const fs=require('fs'); const p=require('./placed.json'); const items=p.items||[];
308
- const minY=Math.min(...items.map(i=>i.positionY));
309
- const dy=-1500-minY; // move the group's top edge to y = -1500 (above content at y=100)
310
- const moves=items.map(i=>({nodeId:i.id,nodeType:'richtext',x:i.positionX,y:Math.round(i.positionY+dy)}));
311
- fs.writeFileSync('moves.json',JSON.stringify(moves));
306
+ // in build-journey.js, before writing journey.json
307
+ spec.origin = { x: 100, y: -1500 }; // the band's top-left, above content that starts at y = 100
308
+ spec.placement = 'exact';
312
309
  ```
313
310
 
311
+ Run `--dry-run` first when the board is busy: it prints the positions the block would take, so you can see what it lands on before it does. Then:
312
+
314
313
  ```bash
315
- node move-to-top.js
316
- cnotes canvas bulk-move $CANVAS -w $WS --moves "$(cat moves.json)"
317
314
  cnotes operations end -w $WS
318
315
  ```
319
316
 
320
- The place and this bulk-move share the operation opened in Step 3. A later frame swap opens its own operation, as shown above.
317
+ A later frame swap opens its own operation, as shown above.
321
318
 
322
319
  ---
323
320
 
324
321
  ## Gotchas (learned the hard way)
325
322
 
326
323
  - **Carry the sequence with circled numbers and left-to-right layout.** The numbered filmstrip reads as a journey at a glance. Arrows between frames add clutter. (Edges between richtext and image stickies connect if you need one, for example a labeled "then" between two moments. Reach for them sparingly. The layout is the primary device.)
327
- - **`place` ignores absolute origin** and appends below existing content. Use the bulk-move offset trick above to reposition.
324
+ - **`place` lands below existing content unless you say otherwise.** An `origin` with `"placement": "exact"` puts the block where you point (Step 4); an `origin` alone is a starting point the solver slides down from to avoid overlaps.
328
325
  - **richtext size presets:** `large` ≈ 1680px wide, `medium` ≈ 1120px, `small` ≈ 560px. For a 6-frame filmstrip, `medium` is the sweet spot; `large` makes a ~11,000px strip nobody can pan.
329
326
  - **Don't verify by grepping `![` in node content.** CreatorNotes converts the image markdown into a TipTap image node on save, so the raw content no longer contains `![`. Verify instead by counting richtext nodes / their positions (e.g. nodes with negative Y for a top band).
330
327
  - **Server key or your own key.** Pro workspaces and allowlisted admins call `cnotes files gen-image` on the server (10 credits per image; admins skip the charge). Otherwise set `GOOGLE_GENERATIVE_AI_API_KEY` and pass `--byo-key`. On that path the key stays on this machine and is never sent to CreatorNotes.
@@ -29,7 +29,7 @@ deliverable.
29
29
  | Board | The canvas where a leaf's work happens. The Goal note sits on it as the hero card, and the canvas goal is the **same two sentences**. That match is how the tree finds the board |
30
30
  | Leaf's done | The board's done score (`cnotes canvas done`): the judge's reading of whether the Done when is true, 0 not met, 1 partly, 2 met, listing each part of the Done when as met or not yet where the board is judged by parts. Or a `met-by` link to the evidence: `[PROOF-7: Title](relationship:met-by)` |
31
31
  | Frontier | Goals not met whose children are all met: what can start now. Computed by `cnotes goals tree`, never stored |
32
- | Claim | An open canvas comment on the goal's card in the tree canvas: `CLAIM <ISO time> — <what this session is doing>` |
32
+ | Claim | An open canvas comment on the goal's card in the tree canvas: `CLAIM <ISO time>: <what this session is doing>` |
33
33
  | Tree canvas | One canvas named `<Outcome> · Goal Tree` holding every Goal note: root on the right, leaves on the left |
34
34
 
35
35
  ## Write a Done when the judge can check
@@ -123,7 +123,7 @@ A good leaf goal: `Decide which phone-section bugs ship in the next PR. Done whe
123
123
  user names one. Check its card on the tree canvas for an open claim younger
124
124
  than two hours (`cnotes canvas comments list <treeCanvasId> --status open`),
125
125
  then claim:
126
- `cnotes canvas comments add <treeCanvasId> --node GOAL-N --text "CLAIM <ISO time> — <what this session will do>"`.
126
+ `cnotes canvas comments add <treeCanvasId> --node GOAL-N --text "CLAIM <ISO time>: <what this session will do>"`.
127
127
  4. **Do the work on the goal's board**, with whatever skill the work needs:
128
128
  shaping, wayfind for a foggy decision, fat-marker-flows for a flow, plain
129
129
  notes for the rest. Aim at the Done when, nothing beyond it.