@creator-notes/cnotes 0.121.9 → 0.122.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.
@@ -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.
@@ -27,7 +27,7 @@ This is the **pixel-accurate sibling** of `fat-marker-flows`. Use fat-marker-flo
27
27
  | Spotlight | Soft **radial** fade, max opacity **~40%** (up to **~55%** on dark forms), long fade (`fade_mult ≈ 5.5`) |
28
28
  | Done frame | Green `#2F9E6A` outline + `DONE` pill; lighter spotlight (~30%) |
29
29
  | Steps | One walkthrough note per job: `## N · <action>` headings, screenshot embedded under each |
30
- | Captions | Canvas **richtext** under each image, projected from the note (short, no mentions) |
30
+ | Captions | Canvas **richtext** under each image, projected from the note (one short line; a mention chip only where the caption names a note) |
31
31
  | Titles | Middle dot `·` as separator; **no em dashes** |
32
32
  | Layout | One path = one horizontal row; multiple paths = stacked sections |
33
33
  | Language | Match the product UI; prefer UK English in captions unless the product is US-only |
@@ -53,7 +53,7 @@ This is the **pixel-accurate sibling** of `fat-marker-flows`. Use fat-marker-flo
53
53
 
54
54
  ---
55
55
 
56
- ## Step 0 — Scope the paths
56
+ ## Step 0: Scope the paths
57
57
 
58
58
  1. Name the job (e.g. “Create a new contact”).
59
59
  2. List each **entry path** separately (Path A, Path B…). One path = one row.
@@ -63,18 +63,18 @@ This is the **pixel-accurate sibling** of `fat-marker-flows`. Use fat-marker-flo
63
63
 
64
64
  ---
65
65
 
66
- ## Step 1 — Inject highlight helpers (before any click)
66
+ ## Step 1: Inject highlight helpers (before any click)
67
67
 
68
68
  Read `scripts/inject-highlight.js` and evaluate its **entire file contents** in the page via CDP `Runtime.evaluate` (or equivalent). That installs:
69
69
 
70
70
  - `window.__cnHowto.highlight(el, { label: 'CLICK'|'TYPE'|'DONE' })`
71
71
  - `window.__cnHowto.clear()`
72
- - `window.__cnHowto.findExact(text, opts)` — visible, sized matches; prefer menu-row / control size
73
- - `window.__cnHowto.redact(selectors)` / `unredact()` — blur sensitive regions for every later frame
72
+ - `window.__cnHowto.findExact(text, opts)`, visible, sized matches; prefer menu-row / control size
73
+ - `window.__cnHowto.redact(selectors)` / `unredact()`, blur sensitive regions for every later frame
74
74
 
75
75
  The injector uses a **fixed full-viewport radial overlay** (not element `box-shadow`), so the spotlight survives screenshot and parent clipping.
76
76
 
77
- **Calibrate visually:** after first inject, highlight one control and screenshot. Check that the crimson outline hugs the element box (not an inner span), the CLICK pill sits just above it and is legible, and the spotlight is a soft radial fade centred on the control — never a hard-edged rectangle. Adjust opacity only if the product chrome is unusually light or dark.
77
+ **Calibrate visually:** after first inject, highlight one control and screenshot. Check that the crimson outline hugs the element box (not an inner span), the CLICK pill sits just above it and is legible, and the spotlight is a soft radial fade centred on the control, never a hard-edged rectangle. Adjust opacity only if the product chrome is unusually light or dark.
78
78
 
79
79
  ### Redact before the first shot
80
80
 
@@ -88,7 +88,7 @@ Redactions survive `clear()` and hold for every later frame; re-run `redact` aft
88
88
 
89
89
  ---
90
90
 
91
- ## Step 2 — Capture loop (per frame)
91
+ ## Step 2: Capture loop (per frame)
92
92
 
93
93
  For each click/type frame:
94
94
 
@@ -107,7 +107,7 @@ For the **Done** frame: land on the success state, highlight the result (e.g. co
107
107
  ### Accuracy rules
108
108
 
109
109
  - Capture highlights **live** from element `getBoundingClientRect`. Do not guess pixel rings on old PNGs.
110
- - If a frame teaches picking an option that is already selected, switch to another option first, then highlight the target and shoot — so the frame shows the switch, not a no-op.
110
+ - If a frame teaches picking an option that is already selected, switch to another option first, then highlight the target and shoot, so the frame shows the switch, not a no-op.
111
111
  - Retina / DPR: screenshots are often 2× CSS pixels. The injector uses CSS pixels for the overlay; if you fall back to `soft-spotlight.py`, pass `--dpr` (usually `2`).
112
112
 
113
113
  ### Fallback if the in-page spotlight is weak
@@ -125,7 +125,7 @@ python3 "<skillDir>/scripts/soft-spotlight.py" \
125
125
 
126
126
  ---
127
127
 
128
- ## Step 3 — Upload, write the note, place the filmstrip
128
+ ## Step 3: Upload, write the note, place the filmstrip
129
129
 
130
130
  ```bash
131
131
  WS=<workspaceId>
@@ -167,7 +167,7 @@ Click **Create new +**. A menu opens with Contact, Matter and Task.
167
167
  - Create it inside the open run with `cnotes notes create --notes '[{"key":"W","type":"Workflow","markdownFile":"./walkthrough.md"}]'`.
168
168
  - **Refresh** after the product changes: re-shoot, then `cnotes versions create <displayId> --markdown-file …` with a new capture stamp. Never a second note for the same job.
169
169
 
170
- Then build a place spec: header + the walkthrough note + one **section per path**, each with a **grid** of richtext cells (image markdown + short caption copied from the note). Prefer `columns: N` matching frame count (e.g. 6). Use `size: "medium"` for frames. Tiles are projections: no mention syntax inside them (it blanks the card).
170
+ Then build a place spec: header + the walkthrough note + one **section per path**, each with a **grid** of richtext cells (image markdown + short caption copied from the note). Prefer `columns: N` matching frame count (e.g. 6). Use `size: "medium"` for frames. Tiles are projections of the walkthrough note: the image and one caption line, nothing a reader would need to cite (that lives in the note). A mention such as `[WORKFLOW-3: Title](relationship:references)` renders as a chip in a tile, like any text card, so use one where a caption names a note; a bare display id is a defect.
171
171
 
172
172
  Image URL form inside richtext:
173
173
 
@@ -67,8 +67,11 @@ a person does and does not know yet, so this is their call, never yours.
67
67
  thing the course produces.
68
68
  - **The learner's Private workspace.** Only they see it. Mentions do not
69
69
  resolve across workspaces, so cite each source by its title and display ID in
70
- plain text, and stale-lesson tracking is unavailable. The default for an
71
- outside topic.
70
+ plain text (`DECISION-12 · Title`, with the source workspace named once in
71
+ the Sources note). The cnotes skill's bare-id rule is about notes in the
72
+ same workspace; here there is no note to link, and `notes create` warns
73
+ only about ids that name a note it can see. Stale-lesson tracking is
74
+ unavailable. The default for an outside topic.
72
75
 
73
76
  ## Rules every session follows
74
77
 
@@ -60,8 +60,8 @@ commands.
60
60
  theme only.
61
61
  6. **Open a draft, then the run.** Build inside a private draft by default so a
62
62
  person reviews the board before it lands live:
63
- `cnotes draft open "<Interviewee> interview timeline" --intent "<what is missing now, in the reviewer's words>"`.
64
- The intent must name the problem, not the task, or the server rejects it.
63
+ `cnotes draft open "<Interviewee> interview timeline" --why "<what is missing now, in the reviewer's words>"`.
64
+ The why must name the problem, not the task, or the server rejects it.
65
65
  Then `cnotes operations begin --prompt "Mapped <interview> onto a timeline"`.
66
66
  Only work live when the user asks for it.
67
67
  7. **Write the notes.** One `cnotes notes create --notes '<json array>'` with
@@ -136,11 +136,11 @@ Only when asked ("resolve these", "who owns what"). Run it before step 9's
136
136
  2. Every card is a note with a verbatim quote, a verbatim driving phrase, a
137
137
  confidence score with reason, and a `derived-from` link to the source,
138
138
  carrying its timestamp.
139
- 7. A close call (top two within 0.15) is never resolved by the skill. Both
139
+ 3. A close call (top two within 0.15) is never resolved by the skill. Both
140
140
  labels stay on the card, tagged `needs-label-choice`, until a person picks.
141
- 3. x is a pure function of the timestamp, the same scale for every row.
142
- 4. One theme per extract; one row per theme.
143
- 5. Each canvas edit is its own command.
144
- 6. Nothing is triaged, scheduled, or turned into an Attention card. That is
141
+ 4. x is a pure function of the timestamp, the same scale for every row.
142
+ 5. One theme per extract; one row per theme.
143
+ 6. Each canvas edit is its own command.
144
+ 7. Nothing is triaged, scheduled, or turned into an Attention card. That is
145
145
  attention-planner's job. The optional resolve step names owners and next
146
146
  actions only; it schedules nothing.
@@ -12,7 +12,7 @@ Position carries meaning, so cards use raw `--x/--y` from the math below.
12
12
  | LEFT | 80 | inset inside a row frame |
13
13
  | ROW_GAP | 80 | between frames |
14
14
  | HERO_H | 680 | the banner's y: a large hero under 50 characters renders about 600px tall, plus an 80px gap |
15
- | BANNER_H | 1060 | space reserved above row one: HERO_H plus the three-line medium banner (about 265px tall) and slack |
15
+ | BANNER_H | 1140 | space reserved above row one: HERO_H plus the four-line medium banner (about 375px tall) and slack |
16
16
 
17
17
  ## Timestamp to x
18
18
 
@@ -48,17 +48,17 @@ The hero: a large text element at `x = 0, y = 0`, no colour, one heading under
48
48
  # <Interviewee role> at <Company> on <topic>
49
49
  ```
50
50
 
51
- The banner: a medium text element at `x = 0, y = HERO_H`. Three short lines, no
52
- colour, no heading (the hero is its heading):
51
+ The banner: a medium text element at `x = 0, y = HERO_H`. Four short lines, no
52
+ colour, no heading (the hero is its heading), in the cnotes skill's banner order:
53
53
 
54
54
  ```
55
- <Interviewer> interviewed them on <date> for <N> minutes.
55
+ <Interviewer> interviewed them on <date> for <N> minutes about <topic>.
56
56
  Rows are themes; each card quotes them at the moment they said it.
57
+ <Who acts on it, and where the outcome lands>.
57
58
  Read left to right.
58
59
  ```
59
60
 
60
- Line 2 may instead name who acts on the board. The last line is always the
61
- bare `Read left to right.`
61
+ The last line is always the bare `Read left to right.`
62
62
 
63
63
  ## Optional time ruler
64
64