Project memory for coding agents whose lifecycle sweep and review verbs both run ahead of the person

The Vault

A local-first TypeScript memory for coding agents: typed project records in SQLite and Markdown, served over MCP, a CLI and an Electron console.

LicenceMIT in LICENSE and in the root and all four package manifests
Size28,088 lines of non-test TypeScript in packages/core, 26,504 in the Electron desktop, 2,762 in the MCP server and 255 in the CLI; the memory is retrieve.service.ts (1,258), agent-duties.service.ts (1,697), ranking.service.ts (333), save.service.ts (238), proposal.service.ts (495) and database/connection.ts (958)
Activity130 commits from 30 April to 10 October 2026, all under one name; 32 tags from v0.1.0 to v0.6.7
Tests417 vitest cases in 58 files; the only workflow runs on a tag push or by hand and typechecks and builds without running them; none run here

Carries 3 of 7 rubric mechanisms. Most systems here carry none or one (41%), and a dash means the mechanism was not found at this commit — not that the system needed it. Each mark is one LLM reviewer's reading of the code at this commit rather than a run of it — known limits.

  • Tombstone
  • Trust state
  • Bi-temporal
  • Scope enforced
  • Mutation audit
  • Human review
  • Negative evals

1. Executive Summary

The Vault is a single-user project memory for coding agents: typed records in SQLite with a Markdown mirror, written and recalled over an MCP server that Claude Code, Claude Desktop and Codex share, and curated in an Electron console. Notable: the recall predicate is built so a promoted memory cannot leak out of its project, with the regression case committed, and database triggers keep "brain" projects free of executable work. Weak: the lifecycle around the records. The hourly sweep times every stage from the last read, so a memory read once two months ago reaches pending_delete in three passes. That state returns the memory to the session-start briefing. And the review verbs that should gate deletion sit on the agent's own tool surface.

A memory is what an agent decided to save: a handoff, a decision, a plan, a session summary, each with subject, summary, tags, keywords, next steps and related files. Nothing is extracted from transcripts. Recall is deterministic substring scoring over every recallable row of one project, with an optional model re-rank when an OpenRouter or LLM-Hub key is configured. No embeddings and no full-text index are involved.

Three marks: scope_enforced, audit_log, negative_eval. Four are withheld, each for a stated reason (section 9).

2. Mental Model

A memory is believed from the moment it is saved. The caller may choose its status on the write (packages/mcp-server/src/index.ts:150), it defaults to active, and no state means "on record but not believed". The statuses are a retention ladder and a ranking signal, not an epistemic one:

  • active, resolved, draft, stale: all recalled. stale carries no ranking penalty, and nothing on a read path branches on draft.
  • archived and pending_delete: excluded from the recall candidate set unless the row is promoted (packages/core/src/services/retrieve.service.ts:285-292).
  • promoted: a status and a separate boolean. The boolean adds 42 to 74 points in ranking, keeps an archived row in recall, exempts the row from the sweep, and makes confirm_delete refuse it (:819-828).

Four writers move a memory along that ladder.

  • The agent, through vault_update_memory, vault_archive_memory and vault_promote_memory, can set any status but cannot clear promoted.
  • A model, after every save when enrichment is configured, answers yes or no to "should this be promoted"; yes sets both fields (packages/core/src/services/enrichment.service.ts:269-291).
  • The hourly sweep in the task executor moves an idle row with under three counted reads down one stage per pass, and promotes any row with ten counted reads or three inbound links (packages/core/src/services/agent-duties.service.ts:368-521).
  • The person, in the desktop, can demote, restore and delete.

A memory dies one way: confirm_delete, from pending_delete or archived, which removes the row and the file. The desktop's review pane calls it, and so can the agent over MCP.

Diagram — a saved memory is believed at once; a model's yes or a read count promotes it beyond the sweep and beyond deletion; the sweep's clock is the last read, so the waits between stages collapse for a row read long ago; pending_delete is out of recall and back in the briefing; the deletion verb is on both doors
Diagram source
%% caption: a saved memory is believed at once; a model's yes or a read count promotes it beyond the sweep and beyond deletion; the sweep's clock is the last read, so the waits between stages collapse for a row read long ago; pending_delete is out of recall and back in the briefing; the deletion verb is on both doors
flowchart TD
    subgraph W["Writers"]
      direction TB
      A["Agent:<br/>vault_save_memory"]
      T["Delegated task<br/>result, saved active"]
      A ~~~ T
    end
    W --> ACT["active<br/>recalled at once"]
    ACT -- "model yes, 10 reads<br/>or 3 inbound links" --> PRO["promoted<br/>never swept,<br/>never deleted"]
    ACT -- "sweep: last read<br/>30 days ago" --> ST["stale<br/>a label only"]
    ACT -- "agent: archive" --> AR
    ST -- "next hourly pass,<br/>same last read" --> AR["archived<br/>out of recall and<br/>out of the briefing"]
    AR -- "next hourly pass,<br/>last read 60 days ago" --> PD["pending_delete<br/>out of recall, back<br/>in the briefing and<br/>related expansion"]
    PD --> DEL["confirm_delete:<br/>desktop pane or<br/>the same agent<br/>over MCP"]
    AR --> DEL
    DEL --> GONE["row and file gone;<br/>activity_logs keeps<br/>the uid and title"]

3. Architecture

A pnpm workspace of four packages. packages/core holds every rule: the Vault facade, the services, the Drizzle schema and the raw DDL that creates tables and triggers at startup (packages/core/src/vault.ts:330-1520, packages/core/src/database/connection.ts:67-790). The MCP server, the CLI and the Electron main process each construct a Vault over the same root and call it in process.

Storage is one SQLite file under ~/Vault/registry, opened in WAL mode with a five-second busy timeout (connection.ts:37-40), so the desktop and one MCP process per connected client can share it. Each memory is also written as a Markdown file with YAML frontmatter under ~/Vault/projects/<slug>/, rewritten on every update and moved to an archive folder on archive (packages/core/src/services/file.service.ts:58-160). The row is the source of truth; the file is a mirror.

Model calls go to OpenRouter or an LLM-Hub endpoint, with a primary and a fallback, keyed from the environment or the desktop's settings. They serve save-time tags and promotion, recall re-rank and summary, delegated tasks and the project review. Without a key every one of those paths is skipped and the rest works.

Two optional extensions sit beside the memory. Graphify, an external code-graph tool the Vault installs and drives, adds eight structural query tools. Vault Collab, a multi-agent session and handoff layer, keeps its own SQLite store, which the core reads for the desktop cockpit. Neither changes what a memory is.

Deployment and ergonomics

Windows is the release target: an NSIS installer bundles Node and the MCP sidecar, and the desktop writes the client MCP entries and skill files. From source it is pnpm install and a build that compiles better-sqlite3. Nothing runs besides the processes themselves. It is fully local and offline without a model key. The store is inspectable twice over, as SQLite and as Markdown, though editing a file changes nothing the recall reads.

4. Essential Implementation Paths

  • Save. vault_save_memory → requireTypedProjectForAgentWrite → Vault.saveMemory → saveMemory: validate, resolve the canonical project, refuse next steps in a brain project, write the file, insert the row, register tags, log, then fire enrichment and post-save duties without awaiting them (packages/mcp-server/src/index.ts:137-205, packages/mcp-server/src/project-admission.ts:7-26, packages/core/src/services/save.service.ts:49-238).
  • Post-save duties. schedulePostSaveDuties → executeDuplicateDetection (word overlap of 0.35 links both rows; 0.72 suggests a merge in the queued task's prompt), then organize and enrich tasks, then executeProjectReview (packages/core/src/services/agent-duties.service.ts:71-283).
  • Recall. vault_recall_context → recallContext: candidate SQL, rank, optional re-rank, related expansion, proactive context, cross-project matches, open loops, optional summary, access bump, log (packages/core/src/services/retrieve.service.ts:253-468).
  • Briefing. vault_get_project_briefing → buildProjectBriefing (agent-duties.service.ts:649-686).
  • Lifecycle. TaskExecutor.runMaintenanceIfDue → executeStaleArchival, executeAutoPromotion (packages/core/src/services/task-executor.ts:311-322).
  • Delete. vault_confirm_delete or the desktop's vault:confirmMemoryDelete → confirmMemoryDelete (retrieve.service.ts:819-855).
  • Proposals. executeProjectReview → createProjectProposal; decided by vault_decide_project_proposal or the desktop pane → decideProjectProposal → updateProjectDescription, addProjectRelationship or mergeProject (packages/core/src/services/proposal.service.ts:52-420).
  • Task results. completeTask → persistTaskResultMemory (packages/core/src/services/task.service.ts:509, :745-786).

5. Memory Data Model

  • memory_items: uid, title, project (a name, not a key), source app and session, memory type, subject, summary, content, keywords, tags, routine type, status, priority, promoted, next steps, related item uids, related files, vault path, created_at, updated_at, last_accessed_at, access_count, snoozed_until, outcome (packages/core/src/database/schema.ts:11-61).
  • projects: name and description, plus a uid, a type (work_project, brain_context, unclassified), a lifecycle state, policy ids and an owner.
  • memory_links: typed links, written by duplicate detection (related) and memory merge (supersedes); recall expansion reads the row's own related_item_ids instead.
  • project_proposals: type, JSON payload, rationale, confidence, status, evidence uids, created_by, decided_by.
  • activity_logs: timestamp, source client, project, action, target, status, latency, a model flag, message, metadata.
  • open_loops, loop_events, approval_requests, approval_records, project_events, gate_events: the open-loops v2 layer, a commitment record with a state machine, evidence and an insert-only event table per kind.

Every time is a record time. snoozed_until and an open loop's trigger value are schedules. The memory types are labels for ranking and filing; a decision and a summary are stored and retrieved the same way. Provenance is the source app, detected from the MCP handshake when the caller omits it (packages/mcp-server/src/source-app.ts), and an optional session id.

6. Retrieval Mechanics

Candidates. With a project, the SQL admits rows of that project that are not archived or pending deletion, or are promoted; a memory uid named anywhere in the query is admitted from any project. The comment beside the predicate records why it is composed with drizzle or(): a raw SQL fragment once leaked every promoted row of every project into every recall (retrieve.service.ts:270-300). Without a project, every recallable row is a candidate. There is no LIMIT on this read; the whole set is scored in TypeScript.

Scoring. scoreCandidate sums fixed weights: uid 120, project 50, subject 40 or 20, title 32 or 18, 10 per keyword, 8 per tag, promoted 42 plus 14 for a decision and 18 for canonical, type and priority boosts, recency 15 or 8, archived −20 and 5 for more than five reads. Query-text substring hits on title, subject, summary, tags and keywords add more (packages/core/src/services/ranking.service.ts:19-43, :140-332). Content is not searched. When the query has any relevance input, a row with a relevance hit always ranks above one without (:118-135), so a canonical decision cannot bury an on-topic match.

Model steps. With 3 to 15 matches and a key, a model scores each 0 to 100 and the result is blended 60/40 with the deterministic score, under a three second timeout (enrichment.service.ts:133-207). The context summary is built only from matches whose pre-rerank relevance is at least 20, and is dropped when the model answers NONE or is cut off (retrieve.service.ts:407-425, enrichment.service.ts:209-240).

Expansion. Up to five rows are appended through the top matches' related_item_ids (agent-duties.service.ts:523-575), five proactive rows from the project's promoted decisions, active plans, handoffs and keyword hits (:578-647), up to three cross-project matches gated on phrase-level relevance of at least 15 (retrieve.service.ts:355-378), and the five most pressing open loops.

What the expansions read. The candidate SQL excludes archived and pending_delete. The three expansion paths and the briefing exclude archived only, and related expansion does not check the project. A row the sweep has moved to pending_delete is therefore absent from top_matches and present in proactive, in related, and in every section of vault_get_project_briefing, which the skill files call at session start. The MCP description of vault_list_pending_deletes says these items "are excluded from recall".

Nothing is injected. The skill files tell the agent to recall at session start and before debugging.

7. Write Mechanics

Writes are explicit tool calls into a project that must already exist and be typed; the MCP server refuses an unknown or unclassified project and tells the agent to create one first (project-admission.ts:7-26). The desktop and CLI do not apply that check. A brain project refuses non-empty next steps in the service and again in a trigger (connection.ts:661-677).

Every save leaves three follow-ups. Duplicate detection compares the new summary with every unarchived row of the project by word overlap and writes the link into both rows' related_item_ids, so related expansion in recall is partly a product of word overlap. Organize and enrich tasks are queued for sparse metadata or a summary under 100 characters; they run only when the executor runs. With a key, enrichAfterSave asks for tags and for a promotion verdict and writes both back.

The author's summary is protected on one path and not the other. enrichAfterSave never rewrites it; the file's own comment records the truncated model "polish" that once overwrote summaries (enrichment.service.ts:29-34). The enrich duty replaces a summary with a longer one, 40 to 600 characters long, and logs the previous text in the activity row (packages/core/src/services/duty-apply.service.ts:107-140, :229-238).

Delegated work becomes memory. A task the agent queues with vault_create_task runs against the configured model, and the answer is saved as an active memory tagged task-result in the task's project, unless the task opted out (task.service.ts:745-786). The save runs enrichment like any other, so the model's answer can be promoted by a second model call.

A merge of two memories is a rewrite and an archive. mergeMemoryItems unions the fields into the kept row, concatenates distinct summaries, rewrites references, writes a supersedes link and archives the other (agent-duties.service.ts:285-353). Its only callers are the Vault facade and a test.

Operational cost

A save blocks on a file write and a handful of SQLite statements, none in a transaction, and on no model. The model work after it is not awaited, so a save returns at once and its tags and promotion land seconds later; the memory is recallable immediately. A recall loads every recallable row of the project, scores it in memory and, with a key, waits up to three seconds for the re-rank and more for the summary. The sweep reads the whole memory_items table once an hour while the executor runs and rewrites only the rows it moves. The response is a JSON pack of the limit plus up to five related, five proactive, three cross-project and five loops, with summaries in full; nothing bounds it by tokens.

8. Agent Integration

The MCP server registers 54 tools: 30 in packages/mcp-server/src/index.ts for memory, tasks, proposals and deletion, 16 for projects and open loops (open-loops-v2-tools.ts) and 8 for Graphify. The agent holds every lifecycle verb the desktop holds except demotion: save, update, promote, archive, resolve, merge project, decide proposal, confirm delete, and start and stop the executor that runs the sweep.

The skill files carry the policy. They ask the agent to call vault_confirm_delete "only with explicit user OK", to confirm with the user before approving a merge proposal, and never to close a loop without confirmation (skills/claude-vault-skill.md:53-57, :192, :290-305). The desktop's client setup installs them into ~/.claude/skills/vault-memory/ and ~/.codex/AGENTS.md. Each client also keeps a "brain" project of operating lessons, named per client.

There are no hooks. A session that does not call vault_recall_context or vault_get_project_briefing starts with nothing.

9. Reliability, Safety, and Trust

The sweep runs on the wrong clock

executeStaleArchival advances one stage per row per pass, and its comment says the next stage waits for "a fresh updatedAt window" so the user has wall-clock time to intervene (agent-duties.service.ts:353-366). The predicates read lastAccessedAt || updatedAt || createdAt (:463-475). A transition bumps updated_at and leaves last_accessed_at alone, so for any row that was ever read, the window never restarts. A row whose last counted read was more than 60 days ago, with fewer than three reads, goes from active to stale, archived and pending_delete on three consecutive hourly passes. A row never read waits 30 and 60 days between stages, as documented. The committed case rewinds both fields together and cannot see the difference (packages/core/src/task-system.test.ts:588-686).

Deletion is a two-call sequence the agent holds

confirm_delete accepts archived as well as pending_delete, and vault_archive_memory is an agent tool, so any unpromoted memory can be removed by two MCP calls. The row and the file go; the activity row keeps the uid and title. The only gate is the tool description.

Promotion is a one-way door on the agent's surface

vault_update_memory has no promoted field, so an agent can promote but not demote. A model's yes at save time, ten counted reads or three inbound links promote with no person involved. A promoted row is never swept, is refused by confirm_delete, and stays in recall when archived. Only the desktop's Demote button clears it (packages/desktop/src/components/MemoryView.tsx:441-466).

Two doors, one name

Proposals and deletions are reviewed in the desktop's Reviews pane, which passes decidedBy: 'user' (packages/desktop/src/components/AgentReviewPane.tsx:203-210). The MCP tool vault_decide_project_proposal describes decided_by as defaulting to the current source app; it passes the argument through, and decideProjectProposal defaults an absent value to 'user' (packages/mcp-server/src/index.ts:1232-1240, packages/core/src/services/proposal.service.ts:306). An agent's acceptance and a person's are the same row.

A rejected merge proposal is not remembered. The duplicate check considers pending and accepted proposals only (proposal.service.ts:36, :196-222), so the next project review after the seven-day cooldown files the same merge again.

Open loops: governed, and governed by the same actor

The open-loops v2 layer is the most carefully built part of the tree: optimistic versions, idempotency keys, outcome-specific evidence policies, owner, role, quorum and external approval modes, and insert-only event tables. Every MCP call into it stamps the installation actor (open-loops-v2-tools.ts:19), and the seeded default policy makes that actor the owner of every action (packages/core/src/services/open-loop-policy.service.ts:46-100). Under the default policy the agent requests a snooze and approves it. The security regression suite covers forged external decisions and quorum binding under policies it creates (packages/core/src/open-loops-v2-security-regression.test.ts:32-120). The layer is in shadow mode: recall's open_loops field still comes from memory_items next steps.

What holds

The project boundary on the recall SQL, with its regression case. The brain invariants, enforced in triggers a direct writer cannot skip (connection.ts:624-721). The refusal to delete a promoted, active or stale row. The activity log, which nothing in the tree rewrites. The context summary that refuses to speak without a relevant match.

Concurrency

The post-save model pass works from the saved snapshot and writes the union of its tags with the snapshot's back through updateMemory. An agent's tag edit inside that window is overwritten, and a promotion verdict lands on whatever status the row then has. mergeProject moves files before it updates rows and runs without a transaction (project.service.ts:465-673).

Marks

  • scope_enforced — present. project is stored on every row and is an equality predicate in the recall, find and latest SQL when given. The scope is the caller's choice, and the related expansion and an explicit uid reach past it.
  • audit_log — present. activity_logs receives a row from every writer of memory_items, and no path updates or deletes it. It is append-only by convention, its update rows name fields and not values, and it carries recall telemetry in the same table. The open-loop event tables are append-only by trigger.
  • negative_eval — present, on the recall candidate set, in a suite no workflow runs.
  • trust_state — withheld. The statuses retain and rank. draft is never read, stale changes nothing, and promoted is a boost.
  • human_review — withheld. vault_decide_project_proposal and vault_confirm_delete are on the agent's tool surface, so the producer can clear its own queue; the desktop pane is a second door. Memories themselves are never queued.
  • tombstone — withheld. A deleted memory leaves an activity row; a rejected merge proposal is filed again; nothing is keyed on a value.
  • bitemporal — withheld. Every time on a memory is a record time.

10. Tests, Evals, and Benchmarks

The vitest suite covers the services: recall scoping and project resolution, ranking order, cross-project gating, summary grounding, the open-loop listing and resolution paths, the task queue, duty application, the lifecycle sweep and auto-promotion, the project review's description validation and merge detection, the open-loops v2 state machine and its security regressions, Graphify integration, and the desktop view models. The release workflow runs on a tag push or by hand and runs pnpm lint (a typecheck) and the build; it does not run pnpm test (.github/workflows/release-windows.yml:46-59).

Two of the scoping cases are populated negatives and earn the mark: another project's promoted canonical decision must stay out while two local rows remain, and an archived row must stay out while an archived promoted row is present (packages/core/src/services/retrieve.service.test.ts:83-115). The case that weak and archived foreign matches stay out of the cross-project section seeds no local row and asserts an empty list, so it passes against a retriever that returns nothing (:209-228); its sibling at :195-207 is the positive control.

Cases to want first:

  • a row read 61 days ago, swept three times, asserted still stale;
  • a pending_delete row asserted absent from the briefing, proactive context and related expansion;
  • a related link into another project asserted absent from a scoped recall;
  • a decision made through MCP asserted distinguishable from one made in the desktop;
  • a rejected merge asserted not refiled;
  • one write against each append-only trigger.

No benchmark is committed and no paper was found.

11. For Your Own Build

Steal

  • Compose the scope predicate so no later clause can widen it. The promoted-row exception sits inside the project filter, and the fix for the leak left a populated case behind.
  • Put invariants about a project's kind in triggers. A brain project cannot gain next steps or an executable task from any writer, including one that bypasses the service.
  • Let enrichment add, never replace, what the author wrote. Union tags and keywords under a cap; replace a summary only when it is too thin to carry the author's intent, and log the one replaced.
  • Gate a model summary on pre-rerank relevance, and drop it when the model says the material does not support an answer.

Avoid

  • Do not time a lifecycle stage from a field the transition does not touch. The wait between stages must restart at the transition.
  • Do not filter the deletion path's states in one reader and not its neighbours. Every reader that excludes archived must exclude what comes after it.
  • Do not put the approve and delete verbs on the agent's tool surface and rely on the skill file. Default an absent decider to the caller, never to user.
  • Do not let telemetry promote a memory past deletion. Read counts measure reachability.

Fit

Fits one developer on Windows who switches between Claude and Codex across several projects, wants handoffs and decisions to survive the switch, and will open a desktop console to tidy them. The deterministic recall needs no key and no service, and the project typing pays off once there are a dozen projects. Before relying on the lifecycle, either leave the task executor off or fix the sweep's clock. Walk away if more than one person shares the store, if a deletion must be a person's decision, or if recall must work by meaning rather than by shared words.

12. Open Questions

  • Whether the sweep is meant to measure idleness from the last read or from the last transition; the comment and the code disagree.
  • Whether pending_delete is meant to reach the briefing and proactive context.
  • Whether vault_decide_project_proposal is meant to record the client name, as its description says.
  • How often the executor runs on an installed desktop; it starts only on request.
  • Whether the open-loops v2 layer is meant to replace the next_steps loops in recall, and when.

Appendix: File Index

  • Schema and DDL: packages/core/src/database/schema.ts, packages/core/src/database/connection.ts
  • Facade: packages/core/src/vault.ts
  • Save: packages/core/src/services/save.service.ts, packages/core/src/services/file.service.ts
  • Recall and lifecycle verbs: packages/core/src/services/retrieve.service.ts, packages/core/src/services/ranking.service.ts
  • Duties, sweep, expansion, briefing, project review: packages/core/src/services/agent-duties.service.ts, packages/core/src/services/duty-apply.service.ts
  • Model calls: packages/core/src/services/enrichment.service.ts, packages/core/src/services/openrouter-client.ts
  • Proposals and projects: packages/core/src/services/proposal.service.ts, packages/core/src/services/project.service.ts
  • Tasks and executor: packages/core/src/services/task.service.ts, packages/core/src/services/task-executor.ts
  • Open loops v2: packages/core/src/services/open-loop.service.ts, packages/core/src/services/open-loop-policy.service.ts, packages/core/src/services/loop-snooze.service.ts
  • Activity log: packages/core/src/services/log.service.ts
  • MCP: packages/mcp-server/src/index.ts, packages/mcp-server/src/open-loops-v2-tools.ts, packages/mcp-server/src/project-admission.ts
  • Desktop review and memory views: packages/desktop/src/components/AgentReviewPane.tsx, packages/desktop/src/components/MemoryView.tsx, packages/desktop/electron/main.ts
  • Skill files: skills/claude-vault-skill.md, skills/codex-vault-skill.md
  • Tests: packages/core/src/services/retrieve.service.test.ts, packages/core/src/task-system.test.ts, packages/core/src/open-loops-tools.test.ts, packages/core/src/open-loops-v2-security-regression.test.ts

Recorded searches

Run from the repository root at the pinned commit with /usr/bin/git grep.

  • Nothing rewrites the activity log. git grep -n -E 'update\(activityLogs\)|delete\(activityLogs\)|DELETE FROM activity_logs|UPDATE activity_logs' -- packages returns nothing; the control git grep -n -F 'insert(activityLogs)' -- packages returns log.service.ts:28.
  • Every writer of memory_items. git grep -n -E 'update\(memoryItems\)|insert\(memoryItems\)|delete\(memoryItems\)' -- packages, excluding test files, returns project.service.ts:545, save.service.ts:141 and ten lines in retrieve.service.ts. Each sits in a function that calls logActivity, except the two access bumps: the one in recall (:433) is logged as a recall, and the one in getMemoryDetail (:530) only when the caller asks, which the MCP tool does and the desktop does not (packages/core/src/vault.ts:447-468).
  • The expansions do not test pending_delete. git grep -n -F "'pending_delete'" -- packages/core/src/services returns lines in duty-apply.service.ts, graphify-corpus.service.ts and retrieve.service.ts and none in agent-duties.service.ts, where git grep -n -E "status (!==|===) 'archived'" -- packages/core/src/services/agent-duties.service.ts returns nine lines.
  • stale does not affect ranking. git grep -n -F stale -- packages/core/src/services/ranking.service.ts returns nothing; the control git grep -c -F archived -- packages/core/src/services/ranking.service.ts counts 2.
  • No reader of draft. git grep -n -F "'draft'" -- packages/core/src packages/mcp-server/src returns only controlled-values.ts:48.
  • The agent cannot demote. git grep -n -w promoted -- packages/mcp-server/src/index.ts returns the find filter, the promote handler and output fields, and no line inside vault_update_memory (:415-463).
  • The sweep runs only in the executor. git grep -n -E 'executeStaleArchival\(|executeAutoPromotion\(' -- packages, excluding tests, returns the definitions, the facade and task-executor.ts:319-320.
  • No tombstone. git grep -n -i tombstone -- packages returns nothing; the control git grep -c -i archive -- packages/core/src/services/retrieve.service.ts counts 15.
  • No validity time. git grep -n -w -E 'valid_from|validFrom|valid_to|validTo|valid_at|validAt|valid_until' -- packages returns nothing; the control git grep -c -w -E 'created_at|createdAt' -- packages/core/src/database/schema.ts counts 23.
  • No embeddings. git grep -n -i -E 'embedding|vector' -- packages/core/src packages/mcp-server/src returns nothing; the control git grep -n -F cosineSimilarity -- packages/core/src/services/project-similarity.ts returns the term-vector similarity used for project merges.
  • No workflow runs the tests. git grep -n -E 'pnpm (run )?test|vitest' -- .github returns nothing; the control git grep -n -F 'pnpm lint' -- .github returns release-windows.yml:49.
  • The append-only triggers are untested. git grep -n -F APPEND_ONLY -- '*.test.ts' returns nothing; the control git grep -c -F APPEND_ONLY -- packages/core/src/database/connection.ts counts 10.
  • No submodules, no paper. .gitmodules, CITATION.cff and SECURITY.md are absent; git grep -n -i -E 'arxiv|doi\.org|bibtex|@article|@misc' -- . ':!pnpm-lock.yaml' returns nothing.

History

2026-12-02 — 6ec2485b…. First reading at the head of main (v0.6.7, dated 10 October 2026), read at the user's request from the 2026-12-02 triage shortlist, from a full clone. Screened: no auto-run surface, no build-time execution, nothing inside the cooldown, five unpinned dependency surfaces; AGENTS.md and CLAUDE.md read as data. Nothing was installed, built or run, and none of the 417 test cases was run. Three marks (section 9).