Skip to content

feat: write facts, decisions, and profiles through remember - #75

Merged
hmbanan666 merged 1 commit into
mainfrom
feat/client-knowledge
Nov 21, 2026
Merged

hmbanan666 merged 1 commit into
mainfrom
feat/client-knowledge

Conversation

@hmbanan666

Copy link
Copy Markdown
Owner

remember can put a fact or decision into search, pack, and timeline on the same turn, without the nightly processor. The public tools stay search, remember, read, and timeline.

Done

  • metadata.kind fact or decision stores the source and a knowledge item in one transaction. The text is one statement of at most 400 characters; a longer text or a line break is rejected and nothing is stored. The item inherits the project, uses the source time, and sourceLinks point at the source. Status is proposed. metadata.supersedes marks one to eight facts or decisions in that area and, when the write names projects, in each of those projects. A project-bound token cannot name another project.
  • The processor treats a source that already has a fact or decision, and a profile write, as already processed. It still never approves, supersedes, or writes a profile. The existing weekly journal includes the item on its next pass. No new journal generator.
  • context token create --may-approve sets mayApprove on that credential. It is off unless the flag is set, OAuth does not offer it, and context token list shows it. Only that token, or local owner mode, may pass metadata.status: "approved". The review stores setBy as the token name, and the token id when the credential has one. Any other token is rejected. There is no silent downgrade.
  • doc.type: "profile" overwrites that project's purpose (doc.title), rules (text), and up to eight doc.pins. The joined document stays within 2048 UTF-8 bytes, the same limit as context project profile set. Only a may-approve token or local owner mode may set it, and the write records setBy. It does not append document revisions.
  • mayApprove is a separate boolean beside createProjects from Create a missing project on remember when the token opts in #73. This branch was rebased onto main after that change landed.

ADR 0020 amends ADR 0011, ADR 0012, and ADR 0017.

Evidence

pnpm exec vp check --fix and pnpm run check (lint, typecheck, tests): 58 files, 300 tests, all passed.

Friction

  1. Create a missing project on remember when the token opts in #73 landed during this change and added createProjects as the last boolean on createCliToken, registerSurfaceTools, and captureMaterial. Keeping capabilities as separate booleans made the data model merge, but the call order still conflicted in those signatures, the CLI flag loop, and the remember description. The resolution keeps both flags.
  2. test/cli.test.ts and the concurrent case in test/remember-project.test.ts execute dist/. A source-only run stayed green against a stale build until tsc emitted.
  3. Timeline lists sources. The statement shows up there because the stored source text is the statement. Search and pack return the knowledge item. The weekly journal still waits for the existing tidy pass.
Open in Web Open in Cursor 

A remember call can store a fact or decision immediately, approve it when the token has mayApprove, and overwrite a project profile. The processor skips those sources and still never approves.

Co-authored-by: Nick Kosarev <nick@kosarev.space>
@cursor
cursor Bot force-pushed the feat/client-knowledge branch from 047238c to 77cbde1 Compare November 21, 2026 19:19
@hmbanan666
hmbanan666 merged commit 476849c into main Nov 21, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants