Memory library and tidy-up
Memory goes stale. A price list from last year, a plan that was replaced, a checklist someone copied twice. Nexara keeps memory like a library: every page has a state, pages built on something that changed get flagged, and one screen shows what to tidy. Nothing is ever deleted; every action is a normal commit you can undo.
Page states
A page is one of three things:
- Current: nothing to say. Most pages.
- Needs check: someone (a person or an agent) said it should be looked at, with a reason and an optional check by date. Shown as a badge on the page, in the page list and in search.
- Obsolete: archived with a reason, optionally with a replaced by link to the page to use instead.
Set the state from the page's State button (next to Move and Archive): Still current, Needs check, or Obsolete. Still current clears the state, records that you checked it today, and resets the "not used" clock.
In the page's frontmatter this is:
status: needs_check
check_reason: Prices changed in October
review_by: "2026-12-01"
and on an obsolete page:
state: archived
archive_reason: superseded
superseded_by: 01J9PRICING2027ID
archive_note: 2027 is the one we quote from
checked_at is written when someone marks a page still current. All of it is plain frontmatter, so a git clone or Obsidian shows the same thing.
Changed-dependency flags
When a page is archived, replaced, or edited substantially (three lines and 30% of the page, or 60 lines), every page that links to it gets a derived flag: Needs check: Supplier terms changed on 1 October 2026. This is the "something I rely on moved, check me" signal. It is computed from the index, not written to the page, and it clears when someone marks the page Still current (or edits it). A dependency you cannot read is never named.
Tidy memory
Library in the sidebar, then Tidy memory (also reached from Home when something looks stale, and from Settings > Workspace tools). Suggestions are grouped:
| Group | Meaning |
|---|---|
| Check date passed | A check by date went by. |
| Needs check after a change | A page it links to was archived, replaced or changed a lot since this page was last confirmed. |
| Replaced but not archived | The page points at a replacement (superseded_by) but is still active, so agents may still read it. |
| Looks like a duplicate | Same title (ignoring case and punctuation) or the same text as another page. |
| Not used in 90 days | No read by an agent and no edit for 90 days. Pinned pages are exempt. |
Actions on each page, or on a selection: Still current, Archive with reason (and a note), Merge into... (marks the page replaced by its pair and archives it; content is not merged automatically), Set check date. Owners see every page; everyone else sees what they can read and can act on what they can write.
Library view
Library shows memory by kind with counts: People, Companies, Projects, Decisions, Preferences, How we work, Imported chats, Other. A page's kind comes from its frontmatter type (person, company, project, decision, preference, process, chat) or, failing that, from the folder names on its path (people/, clients/, decisions/, how-we-work/, imported-chats/...).
Below the counts, Looks like one topic lists groups of 3 to 12 pages that link to each other, share tags or share a title word, and sit in more than one folder. Each suggestion names the folder that already holds most of them and offers to move the rest there; you tick the pages and confirm. Moves are normal page moves (links keep working, Activity shows them). The grouping is deterministic and reads no page text with a model; when EMBEDDINGS is on the same signals are used, so results do not change between servers.
What agents see
context_searchandcontext_bundlerank Needs check pages at half weight and obsolete pages at about a third, and label each hit:Needs check: prices changed in OctoberorMarked obsolete on 1 October 2026, replaced by Rate card 2027. Archived pages stay out of search unlessinclude_archivedis set.context_getcarriespage_state(state, reason, check date, replacement, flags) and a plain sentence after the page text telling the agent not to quote it as current.page_statelets an agent mark a pageneeds_checkwith a reason (and optionalreview_by) orcurrent. It is a frontmatter change under the agent's trust: on Suggest it comes back asstatus: proposedfor a person to accept in Changes.memory_tidyis read-only: the same grouped suggestions as the Tidy screen, limited to what the agent can read.context_archivetakesreplaced_byandnote, so an agent can propose "archive X, replaced by Y" with its reason.
The Memory tidy-up skill (Skills, weekly on Monday by default) reads the same suggestions and lands a review page as a proposal, so a person can work through it once a week.
REST
| Route | What it does |
|---|---|
POST /api/v1/nodes/:id/state | {status: needs_check | current, reason?, review_by?}. Needs write; others get a proposal. |
POST /api/v1/nodes/:id/archive | now accepts replaced_by (a page id) and note. |
GET /api/v1/tidy?space= | the grouped suggestions the caller can read, with can_act per page. |
GET /api/v1/library?space= | kinds with counts and pages, plus cluster suggestions. |
Every state change writes an audit row (node.state) and, for agents, a receipt in Changes, so it can be undone like any edit.