Pages and buckets
Listing
listPages paginates automatically — iterate and the SDK fetches as it goes.
Filter by bucket (inbox, notes, ideas, projects) or status (active,
deprecated, stale, contested, archived). Deprecated pages are hidden unless you pass
includeDeprecated.
For bucket navigation with counts, buckets is one call instead of four:
Reading a page
getPage bumps the page’s lastReferencedAt, which feeds the health score.
Call it when a human or agent actually consumes the content — not to hydrate a list view.
Editing
Manual edits create a new version; the previous content stays in the history.
Organizing
Moving a page sets bucketSource: "user", which tells the brain not to re-route it. Pinned
pages are prioritized in the prompt index and never deprecate.
Renaming changes the slug. Connections follow the page, but anything outside Living Brain holding the old slug will break.
Contested pages
When new material contradicts a page, its status becomes contested. Resolve it explicitly:
Retiring
permanent: "true" is required — the parameter exists as an explicit confirmation, not
as a soft-delete toggle. The call removes the page, its versions, and its connections, and
there is no undo. recover restores a deprecated page; it cannot bring back a deleted one.
reviewed is a legacy alias for recover, kept for backwards compatibility. Prefer recover.