{"at":"2026-11-23T05:18:58.540Z","dir":"sent","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/clientInfo":{"name":"didrun-lab","version":"0.1.0"},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T05:18:59.429Z","dir":"received","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","result":{"_meta":{"io.modelcontextprotocol/serverInfo":{"name":"cambium","version":"0.0.0+local"}},"cacheScope":"public","capabilities":{"prompts":{"listChanged":true},"resources":{"listChanged":true,"subscribe":true},"tools":{"listChanged":true}},"resultType":"complete","supportedVersions":["2026-07-28"],"ttlMs":300000}}}
{"at":"2026-11-23T05:18:59.429Z","dir":"sent","era":"server_discover","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T05:18:59.431Z","dir":"received","era":"server_discover","message":{"id":2,"jsonrpc":"2.0","result":{"_meta":{"io.modelcontextprotocol/serverInfo":{"name":"cambium","version":"0.0.0+local"}},"cacheScope":"public","resultType":"complete","tools":[{"description":"Save a knowledge item to your LOCAL scope: a fact, design note, gotcha,\nor troubleshooting step worth remembering. This is the manual capture path;\ndistill() is the automatic one.\n\ntype        : memory | need | skill\nkind        : freeform subtype (note, decision, constraint, runbook, ...)\nwhy         : the rationale — makes the item far more useful at recall time\ntags        : comma/space-separated keywords (boost recall matching)\nvalid_while : optional premise this knowledge depends on, e.g. \"while we're\n              on NetSuite\" — surfaced later so a dead assumption is spottable","inputSchema":{"properties":{"content":{"title":"Content","type":"string"},"kind":{"default":"note","title":"Kind","type":"string"},"tags":{"default":"","title":"Tags","type":"string"},"type":{"default":"memory","title":"Type","type":"string"},"valid_while":{"default":"","title":"Valid While","type":"string"},"why":{"default":"","title":"Why","type":"string"}},"required":["content"],"title":"captureArguments","type":"object"},"name":"capture","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"captureOutput","type":"object"}},{"description":"Record a NEED — something missing, wanted, or blocking. Needs are\nfirst-class alongside memories: \"we need staging seeds\", \"docs for X are\nmissing\", \"no way to replay a failed job\".\n\nWhen to use this instead of the alternatives:\n  record_need : a GAP. Something that does not exist yet and should.\n  capture     : a FACT you learned. Use it when the thing is already true.\n  distill     : never called by hand for this — it imports work that\n                already happened, and cannot invent a need.\n\nSide effects: appends one item to the LOCAL knowledge store on this machine\n(personal scope) and writes it to disk immediately. Nothing is shared with\nthe team or org until promote() is called on it, and nothing is sent over\nthe network. Recording the same need twice creates two items — this does\nnot deduplicate, so recall() first if you may already have logged it.\n\nParameters:\n  content : the need itself, stated concretely. \"docs for the retry policy\n            are missing\" beats \"docs are bad\".\n  why     : optional but strongly worth filling. The rationale — what is\n            blocked, or what it costs to leave unfixed. This is what makes\n            the item useful months later when the urgency is forgotten,\n            and it is indexed for recall alongside the content.\n  tags    : optional comma- or space-separated keywords (\"ci, flaky,\n            staging\"). They boost recall matching, so a future session\n            searching different words can still find this.\n\nReturns JSON: {\"status\": \"captured\", \"item\": {...}} where item includes the\ngenerated id needed by promote(), endorse() and deprecate(). On failure\nreturns {\"error\": \"...\"} — an empty content is refused.","inputSchema":{"properties":{"content":{"title":"Content","type":"string"},"tags":{"default":"","title":"Tags","type":"string"},"why":{"default":"","title":"Why","type":"string"}},"required":["content"],"title":"record_needArguments","type":"object"},"name":"record_need","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"record_needOutput","type":"object"}},{"description":"Automatically turn work that already happened into knowledge. Reads two\nsubstrates natively — no export step, no copy-paste:\n\n1. agentsync: every DONE claim on the coordination branch (task + partner\n   note + changed files) becomes an 'outcome' memory. The note your partner\n   left for reconciliation is exactly the knowledge worth keeping.\n2. context-keeper: every active decision and constraint in .context/\n   becomes a memory with its rationale, preserving the dec-NNN/con-NNN\n   provenance.\n\nIdempotent — each source record imports at most once; re-run freely (e.g.\nfrom a session-end or post-commit hook for passive capture).\n\nRelease-time capture (opt-in, CAMBIUM_RELEASE_CAPTURE=1): agentsync erases a\nclaim from live state the moment it is released or re-claimed, so a claim\nthat completes and churns before the next full distill is lost. With the flag\non, distill also remembers the last-seen claim per agent and captures any\nthat has churned away since the previous run — from that snapshot, via the\nsame watermark, so nothing double-imports. Wire distill to fire on\ncompletion events and captured-once-at-completion is the result. The residual\ngap: a done state that lives and dies entirely between two runs is never\nobserved (only the agentsync git log holds it).","inputSchema":{"properties":{},"title":"distillArguments","type":"object"},"name":"distill","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"distillOutput","type":"object"}},{"description":"Ingest an external memory export into cambium as LOCAL-scope, provenance-\ntagged knowledge items — a source adapter alongside distill's substrate\nreaders. Import/ingest only: it reads the source READ-ONLY and never writes\nback to it.\n\nsource : adapter name. 'json' = a generic JSON/JSONL export — a list of\n         records (or an object wrapping one under memories/items/records),\n         each with a text body (content/text/body/memory/note) plus optional\n         title, why, kind, tags, id, timestamp. It's the extension point:\n         new formats are new adapters, no core changes.\npath   : local file path to read (no network, no external auth).\n\nEvery item is stamped with provenance (source.imported=True, the origin\nsystem, original id + timestamp) so imports never masquerade as native\ncapture. Idempotent — re-importing the same records adds nothing (dedupe by\nsource id, or content hash when no id). Imported items are NOT auto-promoted;\nthey earn team/org the normal way, through recall usage and endorsement.\n\nReturns a summary: imported / skipped / duplicates.","inputSchema":{"properties":{"path":{"title":"Path","type":"string"},"source":{"title":"Source","type":"string"}},"required":["source","path"],"title":"import_memoryArguments","type":"object"},"name":"import_memory","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"import_memoryOutput","type":"object"}},{"description":"Search knowledge across scopes and return the best matches. THE read\nendpoint for every agent type — a coding agent, a Slack KB bot, an SRE bot\n— they all ask here, so knowledge captured once serves them all.\n\nscope : auto (local+team+org, the default) | local | team | org\nlimit : max results\n\nEvery returned item's recall counter is incremented (local directly, team\nbest-effort via the shared branch) — usage is the trust signal promotion\nfeeds on. If nothing clears the relevance floor the response says\nno_confident_match: true — don't present weak matches as established fact.","inputSchema":{"properties":{"limit":{"default":5,"title":"Limit","type":"integer"},"query":{"title":"Query","type":"string"},"scope":{"default":"auto","title":"Scope","type":"string"}},"required":["query"],"title":"recallArguments","type":"object"},"name":"recall","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"recallOutput","type":"object"}},{"description":"Vouch for an item — the strong trust signal, and a human judgement that\nnothing else in this server can substitute for.\n\nWhy it matters: one endorsement fast-tracks local->team promotion, and it\nis REQUIRED for team->org. Recall counts alone never reach org scope, by\ndesign — popularity is not correctness, so somebody has to deliberately say\n\"this is right\" before knowledge becomes org-wide.\n\nWhen to use this instead of the alternatives:\n  endorse       : you have CONFIRMED the item is correct and want it to\n                  carry more weight and become promotable.\n  verify_entry  : you re-checked it and want to refresh its freshness date\n                  without adding a trust signal.\n  promote       : you want to move it up a scope now. Endorse first if it\n                  has not cleared the bar.\n  deprecate     : it turned out to be wrong.\n\nSide effects: appends an endorsement stamp (your agent id, a timestamp, and\nyour note) to the item's trust record and writes it immediately. Endorsing\nthe same item twice appends a SECOND stamp rather than replacing the first\n— this is deliberate, since two people vouching is stronger than one, but\nit does mean re-running this inflates the count. Searches local scope\nfirst, then team and org.\n\nParameters:\n  item_id : the id of the item to vouch for, as returned by recall(),\n            capture(), record_need() or status(). Not the content text —\n            an id that matches nothing in any scope returns an error rather\n            than creating anything.\n  note    : optional free text recording WHY you are vouching — e.g. \"hit\n            this in prod on 2026-07-14, the workaround is exact\". Stored on\n            the stamp and shown to whoever reviews the promotion later, so\n            it is the difference between a countable vote and a reviewable\n            one.\n\nReturns JSON: {\"status\": \"endorsed\", \"scope\": \"local\"|\"team\"|\"org\",\n\"item\": {...}} naming the scope the item was found in. On failure returns\n{\"error\": \"...\"}.","inputSchema":{"properties":{"item_id":{"title":"Item Id","type":"string"},"note":{"default":"","title":"Note","type":"string"}},"required":["item_id"],"title":"endorseArguments","type":"object"},"name":"endorse","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"endorseOutput","type":"object"}},{"description":"Confirm a knowledge entry still holds — stamp its last_verified to now.\nThis is the event that keeps promoted knowledge honest: promotion's trust gate\ndefends what comes IN, verification keeps an entry from silently going stale\nafter. An optional note records what was confirmed. Absent/old last_verified\nis a signal (see stale_report), never an automatic downgrade. Works on local\nand team entries; find stale ones with stale_report().","inputSchema":{"properties":{"item_id":{"title":"Item Id","type":"string"},"note":{"default":"","title":"Note","type":"string"}},"required":["item_id"],"title":"verify_entryArguments","type":"object"},"name":"verify_entry","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"verify_entryOutput","type":"object"}},{"description":"Retire a knowledge item so recall stops serving it — the counterpart to\nverify_entry (which re-affirms). This is the action stale_report points at:\nwhen an entry's premise has died (\"we've left NetSuite\"), deprecate it.\n\nSets status='deprecated' wherever the item lives — local, team, or org —\nthrough the same write/CAS path promotion uses (org honours CAMBIUM_ORG_PR,\nlanding the change as a pull request). Deprecated items drop out of recall(),\nKNOWLEDGE.md, and promotion, but stay in the store with a `deprecated_at`\nstamp and optional reason for provenance/audit; reactivating one is a manual\nJSON edit by design (retiring is the common, safe direction).","inputSchema":{"properties":{"item_id":{"title":"Item Id","type":"string"},"reason":{"default":"","title":"Reason","type":"string"}},"required":["item_id"],"title":"deprecateArguments","type":"object"},"name":"deprecate","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"deprecateOutput","type":"object"}},{"description":"Graduate knowledge up a scope as it earns trust — the compound-growth\nstep. With no arguments, scans your local items and promotes every one\nthat qualifies to team. With an item_id, promotes that item one level\n(local->team, or team->org with to_scope=\"org\").\n\nThresholds: local->team needs recalls >= CAMBIUM_PROMOTE_RECALLS or one\nendorsement; team->org always needs an endorsement (force=True overrides,\nuse deliberately). Org promotion lands as a direct push, or as a pull\nrequest when CAMBIUM_ORG_PR=1 — the PR review is the org trust gate.\n\norg_content : the cross-project restatement of a body that is specific to\none repo. Promotion to org changes the readership to everyone, so a\nproject-local runbook (\"append to dashboard.py REGIMES\") must become the\ngeneral rule (\"annotate a regime boundary when a metric's computation\nchanges\"). If the body reads project-specific and no org_content is given,\npromotion is refused (with the tells and a suggested draft) unless\nforce=True. When supplied, org_content becomes the org body and the original\nis preserved as `example`.","inputSchema":{"properties":{"force":{"default":false,"title":"Force","type":"boolean"},"item_id":{"default":"","title":"Item Id","type":"string"},"org_content":{"default":"","title":"Org Content","type":"string"},"to_scope":{"default":"","title":"To Scope","type":"string"}},"title":"promoteArguments","type":"object"},"name":"promote","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"promoteOutput","type":"object"}},{"description":"Restate an ALREADY-PROMOTED item's body as the cross-project rule, in\nplace, keeping the concrete version as `example`. The remediation\ncounterpart of the org generalization gate: items that reached org (or team)\nbefore the gate — or were forced past it — are listed by review_promotions()\nunder `org_needs_generalization`; this rewrites one to its general form.\n\norg_content : the cross-project rule to become the body. If omitted, the\n              item's latest endorsement note is used (that is where the\n              generalization was usually already written).\nnote        : optional note recorded as a verification stamp.\n\nWrites through the org store's CAS path (direct push, or the shared\n`cambium/generalize` PR branch when CAMBIUM_ORG_PR=1 — repeated calls batch\ninto one reviewable PR), re-rendering KNOWLEDGE.md alongside. Team-scope\nitems are edited via the team CAS path.","inputSchema":{"properties":{"item_id":{"title":"Item Id","type":"string"},"note":{"default":"","title":"Note","type":"string"},"org_content":{"default":"","title":"Org Content","type":"string"}},"required":["item_id"],"title":"generalizeArguments","type":"object"},"name":"generalize","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"generalizeOutput","type":"object"}},{"description":"What's ready to move up? Lists local items eligible for team, team items\neligible for org (endorsed), and org PRs already opened. The human-readable\ncheckpoint before running promote().","inputSchema":{"properties":{},"title":"review_promotionsArguments","type":"object"},"name":"review_promotions","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"review_promotionsOutput","type":"object"}},{"description":"Which promoted knowledge might be going stale? Lists team + org entries\n(the ones that cleared the trust gate) sorted OLDEST-VERIFIED-FIRST, with\nnever-reverified entries flagged at the top and each entry's valid_while\npremise surfaced so a reader can spot dead assumptions (\"while we're on\nNetSuite\" long after the NetSuite migration).\n\nproject         : limit to one project's entries (default: all)\nolder_than_days : only entries last verified more than N days ago (plus every\n                  never-verified one); 0 = no age filter.\n\nEvent-driven, not clock-driven: this reports absent/old verification events,\nit does NOT compute a decaying confidence score. Re-confirm with\nverify_entry(); promotion also counts as a verification.","inputSchema":{"properties":{"older_than_days":{"default":0,"title":"Older Than Days","type":"integer"},"project":{"default":"","title":"Project","type":"string"}},"title":"stale_reportArguments","type":"object"},"name":"stale_report","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"stale_reportOutput","type":"object"}},{"description":"Render knowledge to a human-readable KNOWLEDGE.md — grouped by scope then\nproject, each item showing summary, kind, provenance (dec-NNN / claim\norigin), recall count and promoted date. cp1252 mojibake (em dashes, curly\nquotes) is normalized so the text is clean.\n\nscope='org' (default): re-render the org knowledge repo's KNOWLEDGE.md from\nits knowledge.json and commit + push it beside the JSON, so the org repo's\ndocs are always current. (This also runs automatically after any org\npromotion — direct-push commits both files together; PR mode puts both on\nthe same PR branch.)\n\nscope='local'|'team'|'all': render those scope(s) and RETURN the markdown\nwithout publishing — there is no repo to publish local/team docs to.","inputSchema":{"properties":{"scope":{"default":"org","title":"Scope","type":"string"}},"title":"export_markdownArguments","type":"object"},"name":"export_markdown","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"export_markdownOutput","type":"object"}},{"description":"First thing to call — especially when cambium looks broken. Returns\nstructured config state: what's set, what's missing, what each gap costs in\nplain terms, and the exact setup() call that fixes it. NEVER raises on\nmissing config. When fully configured it also reports item counts per\nscope/type, distill watermarks, and which substrates are actually wired.","inputSchema":{"properties":{},"title":"statusArguments","type":"object"},"name":"status","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"statusOutput","type":"object"}},{"description":"Finish cambium's setup in one call — the tool status() and every\nunconfigured error point you to. Validates paths, scaffolds .cambium/ (and\ngitignores it), and writes a local fallback config the server reads when env\nvars are absent (env still wins when set, and it takes effect immediately —\nno restart).\n\nproject_repo : absolute path to your project's git clone (required)\nagent_id     : your unique agent id (required)\norg_repo     : optional — a local clone path, OR a GitHub 'owner/name'. If a\n               name isn't cloned locally, setup OFFERS the exact gh/git\n               commands to stand it up and leaves org scope off; it never\n               creates or pushes a repo for you.\norg_pr       : optional — org promotion opens a pull request instead of a\n               direct push.\nteam_branch  : optional — override the team-scope branch (default 'cambium').\n\nNo secrets are written anywhere; the config file holds only paths, ids, and\nflags, and lives outside any repo.","inputSchema":{"properties":{"agent_id":{"title":"Agent Id","type":"string"},"org_pr":{"default":false,"title":"Org Pr","type":"boolean"},"org_repo":{"default":"","title":"Org Repo","type":"string"},"project_repo":{"title":"Project Repo","type":"string"},"team_branch":{"default":"","title":"Team Branch","type":"string"}},"required":["project_repo","agent_id"],"title":"setupArguments","type":"object"},"name":"setup","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"setupOutput","type":"object"}},{"description":"A compact digest of what's ALREADY known for this project — built to be\ninjected automatically at session start so recall is passive, not a step an\nagent has to remember. Returns the highest-value active knowledge (most-\nrecalled, then most-recently-updated) across local+team+org, plus any promoted\nassumptions (valid_while premises) that look stale and worth re-checking.\n\nREAD-ONLY: unlike recall(), it does NOT increment recall counters — a passive\nsession-start surfacing must never inflate trust or nudge promotion. It is the\nsession-start counterpart to distill() at session end: together they close the\ncapture/recall loop without either one depending on the agent remembering to\ncall it. Use recall(query) for a real, query-scoped search.","inputSchema":{"properties":{"limit":{"default":8,"title":"Limit","type":"integer"}},"title":"session_primerArguments","type":"object"},"name":"session_primer","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"session_primerOutput","type":"object"}}],"ttlMs":300000}}}
{"at":"2026-11-23T05:18:59.582Z","dir":"sent","era":"initialize","message":{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{},"clientInfo":{"name":"didrun-lab","version":"0.1.0"},"protocolVersion":"2025-11-25"}}}
{"at":"2026-11-23T05:19:00.478Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"prompts":{"listChanged":false},"resources":{"listChanged":false,"subscribe":false},"tools":{"listChanged":false}},"protocolVersion":"2025-11-25","serverInfo":{"name":"cambium","version":"0.0.0+local"}}}}
{"at":"2026-11-23T05:19:00.478Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T05:19:00.478Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T05:19:00.480Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"description":"Save a knowledge item to your LOCAL scope: a fact, design note, gotcha,\nor troubleshooting step worth remembering. This is the manual capture path;\ndistill() is the automatic one.\n\ntype        : memory | need | skill\nkind        : freeform subtype (note, decision, constraint, runbook, ...)\nwhy         : the rationale — makes the item far more useful at recall time\ntags        : comma/space-separated keywords (boost recall matching)\nvalid_while : optional premise this knowledge depends on, e.g. \"while we're\n              on NetSuite\" — surfaced later so a dead assumption is spottable","inputSchema":{"properties":{"content":{"title":"Content","type":"string"},"kind":{"default":"note","title":"Kind","type":"string"},"tags":{"default":"","title":"Tags","type":"string"},"type":{"default":"memory","title":"Type","type":"string"},"valid_while":{"default":"","title":"Valid While","type":"string"},"why":{"default":"","title":"Why","type":"string"}},"required":["content"],"title":"captureArguments","type":"object"},"name":"capture","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"captureOutput","type":"object"}},{"description":"Record a NEED — something missing, wanted, or blocking. Needs are\nfirst-class alongside memories: \"we need staging seeds\", \"docs for X are\nmissing\", \"no way to replay a failed job\".\n\nWhen to use this instead of the alternatives:\n  record_need : a GAP. Something that does not exist yet and should.\n  capture     : a FACT you learned. Use it when the thing is already true.\n  distill     : never called by hand for this — it imports work that\n                already happened, and cannot invent a need.\n\nSide effects: appends one item to the LOCAL knowledge store on this machine\n(personal scope) and writes it to disk immediately. Nothing is shared with\nthe team or org until promote() is called on it, and nothing is sent over\nthe network. Recording the same need twice creates two items — this does\nnot deduplicate, so recall() first if you may already have logged it.\n\nParameters:\n  content : the need itself, stated concretely. \"docs for the retry policy\n            are missing\" beats \"docs are bad\".\n  why     : optional but strongly worth filling. The rationale — what is\n            blocked, or what it costs to leave unfixed. This is what makes\n            the item useful months later when the urgency is forgotten,\n            and it is indexed for recall alongside the content.\n  tags    : optional comma- or space-separated keywords (\"ci, flaky,\n            staging\"). They boost recall matching, so a future session\n            searching different words can still find this.\n\nReturns JSON: {\"status\": \"captured\", \"item\": {...}} where item includes the\ngenerated id needed by promote(), endorse() and deprecate(). On failure\nreturns {\"error\": \"...\"} — an empty content is refused.","inputSchema":{"properties":{"content":{"title":"Content","type":"string"},"tags":{"default":"","title":"Tags","type":"string"},"why":{"default":"","title":"Why","type":"string"}},"required":["content"],"title":"record_needArguments","type":"object"},"name":"record_need","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"record_needOutput","type":"object"}},{"description":"Automatically turn work that already happened into knowledge. Reads two\nsubstrates natively — no export step, no copy-paste:\n\n1. agentsync: every DONE claim on the coordination branch (task + partner\n   note + changed files) becomes an 'outcome' memory. The note your partner\n   left for reconciliation is exactly the knowledge worth keeping.\n2. context-keeper: every active decision and constraint in .context/\n   becomes a memory with its rationale, preserving the dec-NNN/con-NNN\n   provenance.\n\nIdempotent — each source record imports at most once; re-run freely (e.g.\nfrom a session-end or post-commit hook for passive capture).\n\nRelease-time capture (opt-in, CAMBIUM_RELEASE_CAPTURE=1): agentsync erases a\nclaim from live state the moment it is released or re-claimed, so a claim\nthat completes and churns before the next full distill is lost. With the flag\non, distill also remembers the last-seen claim per agent and captures any\nthat has churned away since the previous run — from that snapshot, via the\nsame watermark, so nothing double-imports. Wire distill to fire on\ncompletion events and captured-once-at-completion is the result. The residual\ngap: a done state that lives and dies entirely between two runs is never\nobserved (only the agentsync git log holds it).","inputSchema":{"properties":{},"title":"distillArguments","type":"object"},"name":"distill","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"distillOutput","type":"object"}},{"description":"Ingest an external memory export into cambium as LOCAL-scope, provenance-\ntagged knowledge items — a source adapter alongside distill's substrate\nreaders. Import/ingest only: it reads the source READ-ONLY and never writes\nback to it.\n\nsource : adapter name. 'json' = a generic JSON/JSONL export — a list of\n         records (or an object wrapping one under memories/items/records),\n         each with a text body (content/text/body/memory/note) plus optional\n         title, why, kind, tags, id, timestamp. It's the extension point:\n         new formats are new adapters, no core changes.\npath   : local file path to read (no network, no external auth).\n\nEvery item is stamped with provenance (source.imported=True, the origin\nsystem, original id + timestamp) so imports never masquerade as native\ncapture. Idempotent — re-importing the same records adds nothing (dedupe by\nsource id, or content hash when no id). Imported items are NOT auto-promoted;\nthey earn team/org the normal way, through recall usage and endorsement.\n\nReturns a summary: imported / skipped / duplicates.","inputSchema":{"properties":{"path":{"title":"Path","type":"string"},"source":{"title":"Source","type":"string"}},"required":["source","path"],"title":"import_memoryArguments","type":"object"},"name":"import_memory","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"import_memoryOutput","type":"object"}},{"description":"Search knowledge across scopes and return the best matches. THE read\nendpoint for every agent type — a coding agent, a Slack KB bot, an SRE bot\n— they all ask here, so knowledge captured once serves them all.\n\nscope : auto (local+team+org, the default) | local | team | org\nlimit : max results\n\nEvery returned item's recall counter is incremented (local directly, team\nbest-effort via the shared branch) — usage is the trust signal promotion\nfeeds on. If nothing clears the relevance floor the response says\nno_confident_match: true — don't present weak matches as established fact.","inputSchema":{"properties":{"limit":{"default":5,"title":"Limit","type":"integer"},"query":{"title":"Query","type":"string"},"scope":{"default":"auto","title":"Scope","type":"string"}},"required":["query"],"title":"recallArguments","type":"object"},"name":"recall","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"recallOutput","type":"object"}},{"description":"Vouch for an item — the strong trust signal, and a human judgement that\nnothing else in this server can substitute for.\n\nWhy it matters: one endorsement fast-tracks local->team promotion, and it\nis REQUIRED for team->org. Recall counts alone never reach org scope, by\ndesign — popularity is not correctness, so somebody has to deliberately say\n\"this is right\" before knowledge becomes org-wide.\n\nWhen to use this instead of the alternatives:\n  endorse       : you have CONFIRMED the item is correct and want it to\n                  carry more weight and become promotable.\n  verify_entry  : you re-checked it and want to refresh its freshness date\n                  without adding a trust signal.\n  promote       : you want to move it up a scope now. Endorse first if it\n                  has not cleared the bar.\n  deprecate     : it turned out to be wrong.\n\nSide effects: appends an endorsement stamp (your agent id, a timestamp, and\nyour note) to the item's trust record and writes it immediately. Endorsing\nthe same item twice appends a SECOND stamp rather than replacing the first\n— this is deliberate, since two people vouching is stronger than one, but\nit does mean re-running this inflates the count. Searches local scope\nfirst, then team and org.\n\nParameters:\n  item_id : the id of the item to vouch for, as returned by recall(),\n            capture(), record_need() or status(). Not the content text —\n            an id that matches nothing in any scope returns an error rather\n            than creating anything.\n  note    : optional free text recording WHY you are vouching — e.g. \"hit\n            this in prod on 2026-07-14, the workaround is exact\". Stored on\n            the stamp and shown to whoever reviews the promotion later, so\n            it is the difference between a countable vote and a reviewable\n            one.\n\nReturns JSON: {\"status\": \"endorsed\", \"scope\": \"local\"|\"team\"|\"org\",\n\"item\": {...}} naming the scope the item was found in. On failure returns\n{\"error\": \"...\"}.","inputSchema":{"properties":{"item_id":{"title":"Item Id","type":"string"},"note":{"default":"","title":"Note","type":"string"}},"required":["item_id"],"title":"endorseArguments","type":"object"},"name":"endorse","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"endorseOutput","type":"object"}},{"description":"Confirm a knowledge entry still holds — stamp its last_verified to now.\nThis is the event that keeps promoted knowledge honest: promotion's trust gate\ndefends what comes IN, verification keeps an entry from silently going stale\nafter. An optional note records what was confirmed. Absent/old last_verified\nis a signal (see stale_report), never an automatic downgrade. Works on local\nand team entries; find stale ones with stale_report().","inputSchema":{"properties":{"item_id":{"title":"Item Id","type":"string"},"note":{"default":"","title":"Note","type":"string"}},"required":["item_id"],"title":"verify_entryArguments","type":"object"},"name":"verify_entry","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"verify_entryOutput","type":"object"}},{"description":"Retire a knowledge item so recall stops serving it — the counterpart to\nverify_entry (which re-affirms). This is the action stale_report points at:\nwhen an entry's premise has died (\"we've left NetSuite\"), deprecate it.\n\nSets status='deprecated' wherever the item lives — local, team, or org —\nthrough the same write/CAS path promotion uses (org honours CAMBIUM_ORG_PR,\nlanding the change as a pull request). Deprecated items drop out of recall(),\nKNOWLEDGE.md, and promotion, but stay in the store with a `deprecated_at`\nstamp and optional reason for provenance/audit; reactivating one is a manual\nJSON edit by design (retiring is the common, safe direction).","inputSchema":{"properties":{"item_id":{"title":"Item Id","type":"string"},"reason":{"default":"","title":"Reason","type":"string"}},"required":["item_id"],"title":"deprecateArguments","type":"object"},"name":"deprecate","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"deprecateOutput","type":"object"}},{"description":"Graduate knowledge up a scope as it earns trust — the compound-growth\nstep. With no arguments, scans your local items and promotes every one\nthat qualifies to team. With an item_id, promotes that item one level\n(local->team, or team->org with to_scope=\"org\").\n\nThresholds: local->team needs recalls >= CAMBIUM_PROMOTE_RECALLS or one\nendorsement; team->org always needs an endorsement (force=True overrides,\nuse deliberately). Org promotion lands as a direct push, or as a pull\nrequest when CAMBIUM_ORG_PR=1 — the PR review is the org trust gate.\n\norg_content : the cross-project restatement of a body that is specific to\none repo. Promotion to org changes the readership to everyone, so a\nproject-local runbook (\"append to dashboard.py REGIMES\") must become the\ngeneral rule (\"annotate a regime boundary when a metric's computation\nchanges\"). If the body reads project-specific and no org_content is given,\npromotion is refused (with the tells and a suggested draft) unless\nforce=True. When supplied, org_content becomes the org body and the original\nis preserved as `example`.","inputSchema":{"properties":{"force":{"default":false,"title":"Force","type":"boolean"},"item_id":{"default":"","title":"Item Id","type":"string"},"org_content":{"default":"","title":"Org Content","type":"string"},"to_scope":{"default":"","title":"To Scope","type":"string"}},"title":"promoteArguments","type":"object"},"name":"promote","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"promoteOutput","type":"object"}},{"description":"Restate an ALREADY-PROMOTED item's body as the cross-project rule, in\nplace, keeping the concrete version as `example`. The remediation\ncounterpart of the org generalization gate: items that reached org (or team)\nbefore the gate — or were forced past it — are listed by review_promotions()\nunder `org_needs_generalization`; this rewrites one to its general form.\n\norg_content : the cross-project rule to become the body. If omitted, the\n              item's latest endorsement note is used (that is where the\n              generalization was usually already written).\nnote        : optional note recorded as a verification stamp.\n\nWrites through the org store's CAS path (direct push, or the shared\n`cambium/generalize` PR branch when CAMBIUM_ORG_PR=1 — repeated calls batch\ninto one reviewable PR), re-rendering KNOWLEDGE.md alongside. Team-scope\nitems are edited via the team CAS path.","inputSchema":{"properties":{"item_id":{"title":"Item Id","type":"string"},"note":{"default":"","title":"Note","type":"string"},"org_content":{"default":"","title":"Org Content","type":"string"}},"required":["item_id"],"title":"generalizeArguments","type":"object"},"name":"generalize","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"generalizeOutput","type":"object"}},{"description":"What's ready to move up? Lists local items eligible for team, team items\neligible for org (endorsed), and org PRs already opened. The human-readable\ncheckpoint before running promote().","inputSchema":{"properties":{},"title":"review_promotionsArguments","type":"object"},"name":"review_promotions","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"review_promotionsOutput","type":"object"}},{"description":"Which promoted knowledge might be going stale? Lists team + org entries\n(the ones that cleared the trust gate) sorted OLDEST-VERIFIED-FIRST, with\nnever-reverified entries flagged at the top and each entry's valid_while\npremise surfaced so a reader can spot dead assumptions (\"while we're on\nNetSuite\" long after the NetSuite migration).\n\nproject         : limit to one project's entries (default: all)\nolder_than_days : only entries last verified more than N days ago (plus every\n                  never-verified one); 0 = no age filter.\n\nEvent-driven, not clock-driven: this reports absent/old verification events,\nit does NOT compute a decaying confidence score. Re-confirm with\nverify_entry(); promotion also counts as a verification.","inputSchema":{"properties":{"older_than_days":{"default":0,"title":"Older Than Days","type":"integer"},"project":{"default":"","title":"Project","type":"string"}},"title":"stale_reportArguments","type":"object"},"name":"stale_report","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"stale_reportOutput","type":"object"}},{"description":"Render knowledge to a human-readable KNOWLEDGE.md — grouped by scope then\nproject, each item showing summary, kind, provenance (dec-NNN / claim\norigin), recall count and promoted date. cp1252 mojibake (em dashes, curly\nquotes) is normalized so the text is clean.\n\nscope='org' (default): re-render the org knowledge repo's KNOWLEDGE.md from\nits knowledge.json and commit + push it beside the JSON, so the org repo's\ndocs are always current. (This also runs automatically after any org\npromotion — direct-push commits both files together; PR mode puts both on\nthe same PR branch.)\n\nscope='local'|'team'|'all': render those scope(s) and RETURN the markdown\nwithout publishing — there is no repo to publish local/team docs to.","inputSchema":{"properties":{"scope":{"default":"org","title":"Scope","type":"string"}},"title":"export_markdownArguments","type":"object"},"name":"export_markdown","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"export_markdownOutput","type":"object"}},{"description":"First thing to call — especially when cambium looks broken. Returns\nstructured config state: what's set, what's missing, what each gap costs in\nplain terms, and the exact setup() call that fixes it. NEVER raises on\nmissing config. When fully configured it also reports item counts per\nscope/type, distill watermarks, and which substrates are actually wired.","inputSchema":{"properties":{},"title":"statusArguments","type":"object"},"name":"status","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"statusOutput","type":"object"}},{"description":"Finish cambium's setup in one call — the tool status() and every\nunconfigured error point you to. Validates paths, scaffolds .cambium/ (and\ngitignores it), and writes a local fallback config the server reads when env\nvars are absent (env still wins when set, and it takes effect immediately —\nno restart).\n\nproject_repo : absolute path to your project's git clone (required)\nagent_id     : your unique agent id (required)\norg_repo     : optional — a local clone path, OR a GitHub 'owner/name'. If a\n               name isn't cloned locally, setup OFFERS the exact gh/git\n               commands to stand it up and leaves org scope off; it never\n               creates or pushes a repo for you.\norg_pr       : optional — org promotion opens a pull request instead of a\n               direct push.\nteam_branch  : optional — override the team-scope branch (default 'cambium').\n\nNo secrets are written anywhere; the config file holds only paths, ids, and\nflags, and lives outside any repo.","inputSchema":{"properties":{"agent_id":{"title":"Agent Id","type":"string"},"org_pr":{"default":false,"title":"Org Pr","type":"boolean"},"org_repo":{"default":"","title":"Org Repo","type":"string"},"project_repo":{"title":"Project Repo","type":"string"},"team_branch":{"default":"","title":"Team Branch","type":"string"}},"required":["project_repo","agent_id"],"title":"setupArguments","type":"object"},"name":"setup","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"setupOutput","type":"object"}},{"description":"A compact digest of what's ALREADY known for this project — built to be\ninjected automatically at session start so recall is passive, not a step an\nagent has to remember. Returns the highest-value active knowledge (most-\nrecalled, then most-recently-updated) across local+team+org, plus any promoted\nassumptions (valid_while premises) that look stale and worth re-checking.\n\nREAD-ONLY: unlike recall(), it does NOT increment recall counters — a passive\nsession-start surfacing must never inflate trust or nudge promotion. It is the\nsession-start counterpart to distill() at session end: together they close the\ncapture/recall loop without either one depending on the agent remembering to\ncall it. Use recall(query) for a real, query-scoped search.","inputSchema":{"properties":{"limit":{"default":8,"title":"Limit","type":"integer"}},"title":"session_primerArguments","type":"object"},"name":"session_primer","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"session_primerOutput","type":"object"}}]}}}
