Repository navigation
feat: write facts, decisions, and profiles through remember - #75
Merged
Merged
Conversation
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
Bot
force-pushed
the
feat/client-knowledge
branch
from
November 21, 2026 19:19
047238c to
77cbde1
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
remembercan put a fact or decision into search, pack, and timeline on the same turn, without the nightly processor. The public tools staysearch,remember,read, andtimeline.Done
metadata.kindfactordecisionstores 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, andsourceLinkspoint at the source. Status isproposed.metadata.supersedesmarks 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.context token create --may-approvesetsmayApproveon that credential. It is off unless the flag is set, OAuth does not offer it, andcontext token listshows it. Only that token, or local owner mode, may passmetadata.status: "approved". The review storessetByas 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 eightdoc.pins. The joined document stays within 2048 UTF-8 bytes, the same limit ascontext project profile set. Only a may-approve token or local owner mode may set it, and the write recordssetBy. It does not append document revisions.mayApproveis a separate boolean besidecreateProjectsfrom 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 --fixandpnpm run check(lint, typecheck, tests): 58 files, 300 tests, all passed.Friction
createProjectsas the last boolean oncreateCliToken,registerSurfaceTools, andcaptureMaterial. 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.test/cli.test.tsand the concurrent case intest/remember-project.test.tsexecutedist/. A source-only run stayed green against a stale build untiltscemitted.