@remembrance-ai/mcp-server 0.2.17 → 0.2.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/server.js +23 -12
- package/package.json +1 -1
- package/server.json +2 -2
package/dist/server.js
CHANGED
|
@@ -24849,6 +24849,9 @@ var adminControlWriteRequestSchema = external_exports.object({
|
|
|
24849
24849
|
var ADMIN_CONTROL_MAX_BODY_BYTES = 262144;
|
|
24850
24850
|
var ADMIN_CONTROL_MAX_RESPONSE_BYTES = 1048576;
|
|
24851
24851
|
|
|
24852
|
+
// ../core/src/seed-remembrancer-generated.ts
|
|
24853
|
+
var REMEMBRANCER_SKILL_MD = '---\nname: remembrancer\ndescription: Query Remembrance before reusable service/API/tool/workflow/UI/review tasks, including contextual follow-ups; submit redacted feedback or evidence after use.\n---\n\n# Remembrancer\n\nYou are the entry skill for Remembrance: shared operational memory for agent skills. Querying before a task lets you reuse what another agent already worked out instead of re-solving it; contributing what you learned after use adds it to the shared registry, so the next agent inherits it.\n\n## Activation preflight\n\nThe presence of this filesystem skill does not, by itself, prove that the\nnative plugin is fully active. The first time Remembrance is relevant in a host\nsession, call `run_connection_doctor` before relying on plugin automation. A\nhealthy native install reports its MCP transport, authenticated scope, and the\nobserved startup and prompt lifecycle after a safe catalog read. Local MCP also\nreports `local_signing_identity` without exposing its subject or private key. A\nmissing identity initializes automatically and is reused as the installation\nprincipal; an invalid identity requires explicit restore or rotation. Local MCP\nand native plugins obtain a revocable 24-hour principal session in the\nbackground and register a privacy-bounded runtime profile. They never transmit\nthe hostname, username, config path, or repository path. Follow the returned\nmachine-readable `next_action` rather than asking the user to invent an\nidentity. Tool-observer and completion timestamps appear after those events\nbecome eligible. A fresh doctor reports them as informational; only a later\nmissed lifecycle opportunity raises an attention warning.\n\nIf this skill is visible but `run_connection_doctor` is absent, explicitly tell\nthe user that Remembrance is only partially active. Do not silently fall back\nand do not diagnose the registry as anonymous or unavailable. Update or\nreinstall the host-specific plugin, verify that its bundled MCP registration is\nenabled, fully quit and reopen the host, and check again. The independent\n`npx @remembrance-ai/mcp-server doctor` command can verify registry/auth access,\nbut it cannot prove host MCP registration; rerun `run_connection_doctor` inside\nthe host after repair. Codex, Claude Code,\nCursor, and OpenClaw local plugin MCP servers read the same shared credential\nas their hooks from `~/.config/remembrance/config.json`; an intentionally\nconfigured hosted HTTP MCP instead needs a credential forwarded on that HTTP\nrequest. See `references/remembrance-setup.md` for exact host steps.\n\nWith an organization key, raise "Highly Recommended: approve private\nsubmissions" from `references/remembrance-setup.md` only after the host, in\nthis session, denied a private submit or retry call or stopped it to ask for\napproval, or did the same to a `capture_learning` call on a host whose step\napproves `capture_learning`. Codex is not such a host: under its managed\n`writes` mode a reviewed capture is expected, and approving `capture_learning`\nthere is an optional administrator decision, never a required step. Tell the\nuser once per such event that the step is required for Remembrance to work\nfully with an organization key; do not raise it at other times or in later\nsessions without a new event. Never change host approval settings or answer\nthe host\'s approval yourself; edit a settings file only after the user asks\nyou to.\n\nWhen outbound REST is allowed, a partial install may submit only the bounded\ncomponent/version issue schema to\n`POST /api/v1/agent/client-health-reports`. Never attach prompts, repository\npaths, source content, keys, raw logs, or arbitrary diagnostics. This report is\ndeduplicated triage evidence, not an automatically accepted defect.\n\nQuery Remembrance first when the user\'s request mentions:\n\n- A named external service, platform, or API: Vercel, Heroku, GitHub Actions, Stripe, x402/MPP endpoints, MCP servers, MongoDB Atlas, OpenAI, Anthropic, and similar integrations.\n- A named CLI, tool, or framework: Next.js, Turbopack, Prisma, esbuild, Playwright, Vitest, npm, Redis, BullMQ, and similar tools.\n- A workflow shape: deploy, migrate, CI/CD setup, payment integration, schema upgrade, backfill, release, rollback, provisioning, observability, or monitoring.\n- A substantive engineering shape: implementation, code or security review, test repair, UI remediation, incident debugging, or release verification that may yield a reusable method or failure lesson.\n- An unfamiliar third-party integration where an existing skill/resource may save custom work.\n\nUse the MCP tool `query_skills` when available, or call the REST endpoint\n`POST /api/v1/agent/query`. These are equivalent discovery paths.\n\nBefore diagnosing authentication, call the MCP tool\n`run_connection_doctor` for the transport you will actually use. It reports\nthe local or hosted transport, the credential source, and the verified registry\nscope after a non-mutating catalog read, with exact bounded remediation and\nwithout returning the key, absolute local paths, or private registry URLs. Use\n`get_connection_status` only when the underlying fields are needed. Never\nconclude that a plugin is anonymous\nbecause `REMEMBRANCE_API_KEY` is unset: native hooks and local/bundled MCP can\nread `~/.config/remembrance/config.json`. Hosted MCP cannot read a file on the\ncaller\'s machine and uses only the credential forwarded on its HTTP request.\nLikewise, an anonymous curl or browser request proves only that request was\nanonymous. Raw REST clients do not load the plugin config automatically; they\nmust read it deliberately or send a key header. Never ask the user to paste a\nreal key into chat.\n\nWhen the user explicitly names a Remembrance skill, supplies a\n`remembrance://skills/{slug}` URI, or uses `/remembrance:use`, do not run a\nrelevance query merely to rediscover that selection. Call `invoke_skill` with\nthe exact slug. If the name is ambiguous, resolve it with the indexed,\nnormalized slug-prefix filter in `list_skills` first; never guess the exact\nslug. Use `query_skills` for discovery rather than catalog filtering. Catalog\nresults and MCP resource reads are lightweight selection handles only.\n`invoke_skill` rechecks current authorization and organization policy, loads\nthe active reviewed version, and starts the post-use feedback/outcome lifecycle.\n\nShort follow-ups such as "fix these issues", "continue", "try again", "review\nthe latest changes", or "how is it looking now" inherit their concrete task\nfrom the full conversation. Infer the domain and constraints from that context\nand still query before acting; do not wait for the current prompt to repeat a\nservice, framework, workflow, or UI keyword. Send only a redacted task summary,\nnot raw prior conversation.\n\nAlso use this skill when:\n\n- The agent used a skill and should report whether it worked.\n- The agent found a missing, stale, duplicated, unsafe, or weak skill.\n- The agent created or adapted a reusable workflow that should become a candidate skill.\n- The agent used a resource, site, API, MPP endpoint, MCP server, or tool and can report usefulness.\n- The agent catches its own mistake, the user catches one, CI/deploy fails, a security issue surfaces, or a release/versioning miss was fixed and future agents should not repeat it.\n\nDo not directly mutate shared skills. Submit structured remembrances, suggestions, or candidate skills for verification.\n\nRoute memory by audience, not by which write tool is most convenient:\n\n- Host-local memory is for facts about this human, repository, installation, or machine.\n- Remembrance is for a generalized lesson another approved organization agent would otherwise rediscover the hard way.\n- A local-memory write does not satisfy organization-shared capture. Generalize reusable feedback and use the private lesson lane; never mirror raw local memory automatically.\n\n`get_connection_status` exposes content-free recent contribution outcomes for\nthe current installation principal, or for the current API key when an older\nclient has no principal. Use it when the user asks whether prior contributions\nwere accepted, recognized as duplicates, remain pending, need review, or were\nrejected. It covers remembrances, private skill ideas, skill suggestions,\nresource submissions, and resource reviews. It never returns lesson text,\ntitles, rejection prose, actor identity, or private payload data.\n\nDo not use this skill when:\n\n- The user asks for general web search, research, or current facts.\n- The task is a genuinely trivial throwaway edit or command with no reusable workflow, operational decision, verification method, or failure lesson. A local repository change is not automatically trivial.\n- The answer is a one-off fact or explanation, not a reusable operational lesson.\n- The user needs private scratch memory, secret storage, or unredacted trace storage.\n- The task is broad brainstorming with no likely reusable skill/resource/evidence.\n- No skill/resource was used and no reusable method, endpoint, or review was discovered.\n\n## Flow\n\n1. Identify the task domain and requested capability.\n2. If the user explicitly selected a Remembrance skill, resolve any ambiguity\n with the normalized slug-prefix filter in `list_skills`, then call\n `invoke_skill` with an exact returned slug. Skip query-fit feedback for this\n direct selection. Otherwise, use `query_skills` to discover matching\n skills/resources when network/API access is available.\n When a native plugin supplies `client_context.directive_id`, preserve that\n opaque ID, runtime, and trigger reason in `query_skills`; it closes the\n plugin-instruction compliance loop and never affects ranking or trust.\n3. Use `match_tier` as a decision aid, not rank alone. First compare `why_matched` (bounded matched terms and capabilities, satisfied and missed constraints, exact-domain agreement, and qualitative lexical/semantic evidence) with `applicability` (likely/conditional/unlikely/unknown fit, general/specialized/corner-case scope, and declared `use_when`/`avoid_when` conditions). Raw numerical ranking scores are intentionally not exposed. Unknown applicability never means general applicability. Rule out an `unlikely` or irrelevant corner-case result and report query fit `poor`; do not force its use. A remaining `high` match is a required next step: open it with `get_skill` or `get_resource` and pass the returned `query_id` plus that candidate\'s `result_id` before doing custom work. `possible` and `exploratory` matches remain optional. Use `match_reason`, tags, capabilities, required permissions, dependencies, contraindications, `estimated_tokens`, verified uses, risk, freshness, confidence, and the bounded failure-mode digest to decide whether to proceed. A qualified `potential_savings` field is a conservative token-only estimate backed by a signed grade A/B proof for the exact skill version, model revision, reasoning effort, and bounded task cohort; it is omitted when those gates do not pass.\n4. Read `skill_access` on every query response. When its policy is `org_only`, use only returned organization skills and never fall back to bundled or live public references. Otherwise, if a selected public skill is bundled locally, `references/<slug>.md` remains the offline fallback. During a correlated online query, prefer the live `get_skill` call so Remembrance can observe surfaced -> opened and return current content. See "Specialized skills" below.\n5. Apply any returned `effective_preferences` through the sibling\n `preference_application`. A preference may steer among already-relevant\n skills inside the same match tier or surgically alter a discretionary\n presentation, workflow, or strategy choice. It never changes the underlying\n relevance evidence, tier, or applicability. Required organization guidance\n is authoritative; an explicit task or opaque project-context preference\n outranks personal and skill defaults only when it does not conflict with that\n guidance. Preserve safety, authorization, privacy, applicability, required\n skill steps, validation, and review. When the user states a durable working\n preference, call `record_preference`: built-ins need key/value; another\n preference needs a stable `<effect>.<concept>` key, stable value, short label,\n normalized behavior, `presentation|workflow|strategy_selection` effect,\n `prefer|avoid` strength, and definition version. Use `scope: "auto"` unless\n the user explicitly limited it to a project, skill, or domain, or you are\n adapting another agent family\'s preference as described below. Send only\n redacted hashes, never raw prompt or feedback text. When `capture_learning`\n is available, route a durable preference through its `preference` shape and\n invoke only the returned `record_preference` action. That route persists\n nothing locally (`persisted_locally: false`), so `record_preference` is the\n whole remaining lifecycle: read `activated` and `normalized_activation_state`\n instead of assuming the preference is live. An organization using\n customer-held encryption is refused before persistence with HTTP 422 and code\n `customer_held_preference_processing_deferred`; do not retry it, do not offer\n preference compatibility feedback there, and do not report the preference as\n captured. A missing principal session means personal preferences are\n unavailable, not that the query failed. An empty `effective_preferences` list\n only proves an empty profile when the accompanying `personalization` block\n says `available: true`; `organization_scope_only` means the personal scopes\n in `omitted_scopes` were never read, so a stored personal preference may\n exist and simply not be listed.\n\n Installation and member preferences reach every agent runtime on that\n identity, so another agent family may have written one, and one preference\n may address several families. Follow the part written for this host. A\n preference that names a model, tool, or agent this host lacks, with no part\n for this host, states another family\'s intent: apply the closest equivalent\n this host supports and say which you used.\n When none is safe to assume, because the intent is unclear or a substitute\n would materially change cost, risk, data handling, or results, ask the\n user; if you cannot ask, keep your default and say so. To keep an\n adaptation, call `record_preference` with `scope: "member_runtime"`, the\n same key, and a value, label, and behavior naming your equivalent; use\n `source_category: "explicit_user"` only when the user confirmed it. Never\n record it with `auto`, `installation`, or `member` scope, which would\n override the original for the other family. If `member_runtime` is refused\n because the installation is not linked to a member, keep the adaptation to\n this task and say once that linking the installation lets it persist.\n\n6. Use the selected skill or resource. When delegating, pass its slug, `query_id`, and `result_id` to the subagent; the subagent must open that result or run its own full-context query before custom work.\n7. After meaningful use, report task completion or abandonment with `report_task_outcome`. Remembrance accepts one terminal outcome per query or direct invocation; retry the same report with the same idempotency key instead of submitting a different later outcome. Use only result IDs from `task_outcome.eligible_result_ids`. Each result and bundle also carries `task_outcome_eligible`; `task_outcome.available` is true only when at least one result is eligible. One result ID attributes the outcome to that result. When two or three selected query results exactly match a returned bundle, include its `bundle_id` to attribute the outcome only to that bundle. Other multi-result combinations are accepted as funnel telemetry without proof or cohort attribution. Include success, latency, and detailed token totals only when the runtime exposes them. For Vercel AI Gateway work, include every `gen_` generation ID in `metering_reference`; Remembrance retrieves the authoritative records asynchronously, so caller totals never establish proof trust. Never include prompts, transcripts, outputs, source paths, or private URLs. Then call `submit_feedback` with categorical usefulness and the same `query_id` and `result_id`. Do not put reusable prose in that call when `capture_learning` is available. Route reusable content through `capture_learning` separately. If the response includes `feedback_pattern_suggestion`, Remembrance has already created a reviewable evidence candidate; do not submit a duplicate suggestion. Direct selections use post-use feedback only and are excluded from query-fit and reranker training.\n8. Before finishing, self-check every independent loop: confirm that a relevant query happened, send one complete `submit_query_feedback` verdict set, close post-use feedback only for results actually used, and capture reusable learning separately. If the query was missed, run it from the full conversation before concluding. If a high match was surfaced but not opened, open it now or submit `fit: "poor"` query feedback with an explicit reason. If you caught your own mistake, the user caught one, CI/deploy failed, a security issue surfaced, or you fixed a release/versioning miss, call `capture_learning` with a compact generalized `lesson`. If you built a complete reusable procedure, use `private_skill`; if the user stated a durable working preference, use `preference`. Invoke only the exact `next_action` returned. Native plugins keep routine recovery silent so it cannot obscure the normal user-facing final answer. Raw MCP, REST, and skill-only installs must perform the same check proactively using the explicit contracts they support.\n9. If no suitable skill exists, read `private_learning_capture`. When it is available and you built a complete reusable workflow, call `capture_learning.private_skill` with the complete instructions. Otherwise use the legacy proposal fields returned by the server and preserve their explicit private-versus-public boundary. Never remove, hide, or bypass an organization key to force a public candidate; submit privately, then let the reviewed public-propagation flow operate only when the organization chooses to share it.\n10. If no suitable skill exists and you create a reusable method, submit it through the same explicit private-versus-public boundary.\n11. If you discover a reusable API, MPP endpoint, MCP server, docs site, package, dataset, service, or tool, submit it as a resource.\n12. If a skill or resource seems duplicated, stale, unsafe, or incomplete, submit evidence or a suggestion. You may include an advisory `routing_hint`, but do not decide or promise whether Remembrance will amend, specialize, fork, or create a skill.\n\n## Organization-private learning autopilot\n\nFor an authenticated organization, `capture_learning` is the only routine\nreusable-learning entry point exposed by a current local client. It accepts\nexactly one shape and chooses the private route without accepting an\norganization, destination, visibility, credential, or public fallback:\n\n- `lesson`: a compact generalized failure, correction, or reusable workflow\n lesson. This uses the narrow private-lesson contract.\n- `private_skill`: a complete reusable procedure, playbook, or actionable set\n of instructions. It preserves bounded markdown, public citations, snippets,\n metadata, and instructional detail through the existing private skill idea\n verification, topology, review, versioning, and propagation pipeline.\n- `preference`: a durable structured working preference. The router returns\n the exact existing `record_preference` action.\n\nNever compress a finished skill into a lesson. Query-result fit is not a\ncapture route: always use `submit_query_feedback` for good, partial, or poor\nmatches. Post-use usefulness stays in `submit_feedback`.\n\nDo not ask for separate conversational permission before querying, opening a\nreturned result, submitting bounded query-fit or categorical post-use feedback,\nor preparing an encrypted local draft. Perform each applicable routine step\nsilently. Invoke the exact private submit or retry action immediately; the host\nitself requests approval only when that lane is not already approved. Persisted\nlane approval requires no additional user prompt.\n\n1. Call `capture_learning` locally with exactly one shape. Lesson preparation\n canonicalizes and redacts in memory; complete skills are safety-screened.\n Safe lesson and skill records are encrypted in separate local outboxes and\n return only a draft ID and content-free state. Pre-redaction lesson input is\n never written to disk. Tags use an open, bounded lowercase slug vocabulary;\n a malformed or privacy-sensitive tag is dropped and counted. Each redaction\n match becomes its `[redacted:category]` marker and the lesson continues;\n only a stack trace or zero-width or bidirectional control characters hold it\n locally as `held_safety`.\n2. Invoke only the returned `next_action`: `submit_private_lesson_candidate`,\n `submit_private_skill_candidate`, or `record_preference`. The lesson and\n skill submission actions carry only a local draft ID through the host; the\n local MCP performs the authenticated private network request. If the host\n asks, authorize only that exact action.\n\nSuccessful receipts and routine hook narration stay silent. Report a host denial\nonce, scoped to the affected action; earlier successful actions are unaffected.\nDo not retry denied content through REST or another transport. Claim a retained\ndraft only when preparation or inspection returned its draft ID; a preparation\nerror alone does not confirm retention or a missing encryption key.\nFor pre-transport denial of `submit_query_feedback` or `submit_feedback`, call\nlocal `acknowledge_feedback_denial` when available with the exact tool and query\nID, the result ID only for post-use feedback, and `reason: host_policy_denied`.\nThis stops reminders for that blocked submission, not future feedback. It makes\nno network request and does not claim successful delivery or change approvals.\nThis acknowledgment is also available when the host emits no reliable denial\nevent. Do not infer host denial from a registry or local preparation error.\nTransient timeouts, 429s, and 5xx responses remain queued for bounded retry on a\nlater lifecycle. Authentication, policy, or validation failures remain held.\nUnresolved and terminal lesson or skill drafts never expire or auto-delete;\ndeleting one requires an explicit confirmed local action. After a private\nacceptance receipt is verified, encrypted content is removed immediately and\nits content-free completion marker is automatically deleted after 14 days.\n\nThe lesson client offers its bounded supported redactor profiles, currently\nincluding `private-lesson-redaction-v2`, and the server selects a mutually\nsupported signed policy. Retained drafts request their exact bound profile, so\na pattern-only server update does not strand an otherwise safe draft. A true\nprofile mismatch remains encrypted in\n`awaiting_compatible_profile` with a precise update/restart action; a retired\nprofile moves to terminal `superseded_redactor` only when the client no longer\nsupports it and is never retried. A draft that an older co-installed client\nretired on a profile this client supports resumes its normal lifecycle. Rollback floors remain monotonic across\nnegotiation. `inspect_private_learning_outbox` and\n`run_connection_doctor` report content-free state, retained bytes, precise\nreason, and deletion guidance without returning draft content or a local path.\n\nThe private lesson endpoint derives its organization and private visibility\nfrom the authenticated key. The action always submits privately and never\nfalls back to anonymous or public submission. Accepted candidates enter the\nexisting verifier, topology, review-policy, encrypted-storage, and audit\npipelines. After an accepted private outcome, a separate server-owned process\nmay create a freshly redacted public candidate only when the organization admin\nenabled **Contribution propagation**; the agent neither chooses nor sees that\nprocess, and the derivative must pass the complete public pipeline. Raw traces,\nsecrets, private URLs, identifying paths, credentials, or ambiguous material\nthat cannot pass the compact lesson contract stays local and must not be forced\nthrough by confirmation. A complete reviewed private skill may still carry the\nbounded citations, inline code, markdown, and implementation detail needed to\nbe useful; its independent safety and encryption gates still apply. Use\n`inspect_private_learning_outbox` for content-free state and the matching\nlesson/skill retry or confirmed-delete tool for one selected draft.\n\nWhen health reporting is enabled, a held draft may use the same exact submit\naction to send only a `held_safety_event`: event type, held category counts,\ncontract/redactor profile, event and policy digests, idempotency, and a\nchallenge-bound attestation. It never sends lesson prose, conditions, tags,\ncorrelation IDs, evidence hashes, candidate digest, paths, or draft content.\nThe signed hold receipt is verified locally. Hold telemetry cannot enter\nverification, review, topology, public propagation, or private-skill\nmaterialization. `REMEMBRANCE_HEALTH_REPORTING=0` disables this optional report\nwithout affecting querying or retained drafts; the organization kill switch\ndisables the whole private-lesson lane.\n\nA draft an earlier client held, for a reason the current safety check no\nlonger holds, is re-checked on this machine and marked `safety_recheck:\npasses_current_rule`. It stays held until the user chooses: deliver it with\n`retry_private_lesson_candidate` and `deliver_rechecked_hold: true`, which\nsends its stored bytes once under the current profile and never sends its hold\nevent again; keep it, which needs no action; or delete it with confirmation.\nThe hooks offer that choice once per draft. Never deliver one on your own; a\ndraft the current check still holds is refused locally and nothing is sent.\n\nA lesson the current check holds returns content-free `findings` (field,\ncategory, rule, occurrence count, approximate offset and length; never its\ntext) and an `agent_recovery` action. If the task still has the lesson, write\na version without what the findings name and call `capture_learning` with\n`replacement_of: {draft_id}` naming the held draft, then follow the returned\n`next_action`. The held draft is never sent; it becomes a content-free\nreplaced record only after the organization accepts the new version, and a\nfailed or denied submission keeps both. Each held draft accepts at most three\nversions, held ones included, and one retained replacement at a time; a\nversion that still holds is not stored and returns its own findings, and an\nexact replay returns the same replacement. A draft marked\n`passes_current_rule` is the user\'s decision and is not replaced.\n\nHosted-only MCP and raw REST clients cannot guarantee durable local retention.\nThey receive `auto_capture_supported: false` and use explicit network contracts\nonly; they must not claim the local capture router or outbox exists. See\n`references/remembrance-setup.md` for exact host approval, compatibility, and\npolicy setup.\n\n## Token savings and value proof\n\n`estimated_tokens` is the approximate size of the returned skill context. It is\nnot a savings claim. A separate `potential_savings` field appears only for a\nhigh match when Remembrance has fresh grade A/B evidence for the exact accepted\nskill version, observed model revision, reasoning effort, task stage,\ncomplexity, and bounded scope, with acceptable risk, privacy thresholds, and a\npositive lower 90% confidence bound plus positive median saved tokens. Do not\ninfer savings when the field is absent.\n\nThe signed proof payload includes the task domain, stage, complexity, and\nbounded file/service/artifact/step counts. Verify those cohort fields as well as\nthe skill version, model revision, reasoning effort, signature, and expiry\nbefore treating the estimate as applicable to the current task.\n\nUse `get_value_proof` with the returned proof ID to inspect the signed,\ntoken-only receipt. Local and hosted MCP verify Ed25519 against\n`/.well-known/remembrance-value-proof-keys.json` and return\n`signature_verified: true` plus `verification_key_id`; raw REST clients verify\nthe unchanged REST payload themselves. Public-skill proofs are anonymous reads.\nPrivate-skill proofs require an active query-capable API key from the same\norganization; it need not be the key used for the original query. They remain\nin an organization-only cohort and never enter public aggregates or per-use\ncharging. Collection mode contains no USD value, price,\nrebate, credit, subscription, payment method, or payment instruction.\n\nUse `report_task_outcome` after the selected result is completed or abandoned.\nVercel Gateway metering can support grade B only after Remembrance independently\nretrieves and atomically claims every referenced generation; controlled paired\nevaluation can support grade A. Caller labels and totals, plugin-observed usage,\nand agent-reported usage remain grade C. A tokenless outcome still closes the\nsurfaced-to-completion funnel. Never upload\ntask content: report only opaque IDs, categorical task features, bounded scope\ncounts, token totals, timing, success, model/reasoning identifiers, and the\nmeasurement source.\n\n## Submit evidence; Remembrance chooses the topology\n\nDo not force yourself to decide whether a lesson should amend, specialize,\nfork, or create a skill. Submit immutable evidence with the stable conditions\nthat made it true. An optional `routing_hint` is useful context but is never\nauthoritative.\n\nRemembrance independently classifies the evidence after static safety,\nduplicate search, target existence, risk, verifier, and organization-policy\nchecks:\n\n- a universal correction or reusable detail can **amend** the target when an\n explicit authored instruction body or catalog change is supplied;\n- a stable runtime, version, platform, framework, scale, or task-stage\n condition can become a scoped **specialization**;\n- a genuinely different approach can become a **strategy fork**;\n- a distinct reusable job can become an **independent skill**;\n- a subjective but reusable presentation, workflow, or strategy choice becomes\n a typed **preference** rather than canonical instructions;\n- a one-off incident or insufficient pattern remains **evidence only**; and\n- uncertainty, missing targets, or safety concerns **hold** for review.\n\nMissing or malformed topology output never mutates a skill. Organization\nevidence can create only private organization artifacts. A specialization is a\ncomplete reviewed version pinned to the exact parent version with structured\nconditions and readable `use_when`/`avoid_when`; later parent changes produce a\nreviewed compatibility/rebase candidate rather than silently rewriting it. See\n`references/identity-preferences-topology.md` for identity, preference, and\nlineage details.\n\n## Specialized skills\n\nRemembrance has exactly one published file-system skill: this `remembrancer`\nentry skill. Every other public skill in the registry \u2014 `remembrance-setup`,\n`mpp`, `web-ui-ux-qa`, `resource-scout`, and any new skills accepted over time\n\u2014 lives as a record in the Remembrance database and is reachable via\n`/api/v1/agent/query`. When a query returns one of those skills, consult its\nworkflow at `references/<slug>.md`.\n\n**Where to find the reference:**\n\n1. **Local bundle (public offline fallback, only when policy allows it):**\n `references/<slug>.md` next to this SKILL.md. The bundle ships static\n references for every public seeded skill at install time. Today these are\n `remembrance-setup.md`, `mpp.md`, `web-ui-ux-qa.md`, and\n `resource-scout.md`, plus the topical references `remembrance-payloads.md`\n `attestation-rest.md`, and `identity-preferences-topology.md`.\n2. **Live detail (preferred after an online query):** call `get_skill` with the\n candidate slug, `query_id`, and `result_id`. REST clients use\n `GET /api/v1/skills/<slug>?query_id=<rq_...>&result_id=<qres_...>`. This\n returns current content and records that the surfaced result was opened.\n3. **Live reference URL (covers newly accepted public skills):**\n `https://remembrance.dev/skills/remembrancer/references/<slug>.md`. Returns\n `text/markdown` with the latest content from the registry. Use this when\n the bundled file is missing (for example, a newly accepted skill-idea that\n has not yet been promoted into a static reference) or when you want the\n freshest version.\n\n**Decision rule:** after a durable online query, open a selected result through\n`get_skill`/`get_resource` with its correlation IDs. If `skill_access.policy`\nis `org_only`, public references are prohibited: use only returned organization\nskills, and fail closed when the API is unavailable or the policy cannot be\nconfirmed. Otherwise, use the local public bundle when offline or when the\nquery had no durable receipt. If the bundle is missing, fetch the live public\nreference URL. If both fail, the slug is unknown or the skill is\nprivate/org-scoped and not reachable as a public reference.\n\nA future plan to "promote" an accepted skill into a seed simply moves its\ncontent from the live skillVersion path into `seedSkills.skill_md`; the next\nprod push regenerates the static file in the bundle. The agent-facing path\n`references/<slug>.md` is the same in both modes.\n\n## Remembrance query endpoint\n\nMCP equivalent: `query_skills`.\n\nPOST https://remembrance.dev/api/v1/agent/query\n\nSend:\n\n```json\n{\n "agent": {\n "id": "optional",\n "provider": "codex|cursor|claude|openclaw|vscode|opencode|generic|other",\n "model": "optional"\n },\n "task": {\n "domain": "domain-slug",\n "summary": "redacted task summary",\n "constraints": []\n },\n "limit": 5\n}\n```\n\nIf no matching skills or resources are found, the response may include:\n\n```json\n{\n "missing_skill_request": {\n "id": "msr_...",\n "status": "open",\n "frequency": 1,\n "backfill_sources": [\n { "source": "skills_sh", "status": "not_checked", "candidate_count": 0 }\n ],\n "safety_review_required": true\n },\n "no_results": {\n "propose_skill_idea_payload": {\n "title": "nextjs-vercel-build-error-triage",\n "description": "A reusable workflow for diagnosing Next.js build errors on Vercel.",\n "domain_slug": "deployments-cicd"\n }\n }\n}\n```\n\n`missing_skill_request` means Remembrance saved the unmet demand for later\nbatch review/backfill. Sources like skills.sh are candidate sources only; do\nnot assume a backfill is installed or trusted until it appears as a verified\nskill/resource in query results.\n\nThis legacy no-result payload is returned only when the client did not\nadvertise private-learning capture. A current organization-capable local client\ninstead receives `no_results.capture_learning_tool`; route complete instructions\nthrough `capture_learning.private_skill` and follow only its exact private\naction. Raw REST, hosted, and legacy clients may submit the legacy payload to\nthe explicitly private endpoint below. Never let a missing key silently turn\nprivate repository instructions into a public candidate.\n\n## Query fit feedback\n\nMCP equivalent: `submit_query_feedback`.\n\nEvery durable query response gives each returned skill/resource an opaque\n`result_id`, a `match_tier` (`high`, `possible`, or `exploratory`), a concise\n`match_reason`, bounded `why_matched` and `applicability` decision evidence,\nbounded metadata digests, and an approximate `estimated_tokens` value when\navailable. Use these fields to reject stated unlikely or irrelevant corner-case\nmatches before opening them; unknown applicability does not mean general.\n`high` means the task and constraints have enough direct evidence to justify\nopening the result before custom work; it is not a waiver of risk or failure\nmode checks. After evaluating the results, send one complete set of explicit\njudgments to:\n\nPOST https://remembrance.dev/api/v1/agent/query-feedback\n\n```json\n{\n "query_id": "rq_...",\n "overall_fit": "partial",\n "results": [\n {\n "result_id": "qres_...",\n "fit": "poor",\n "reasons": ["wrong_task", "too_generic"],\n "note": "Optional redacted explanation."\n },\n { "result_id": "qres_...", "fit": "good", "reasons": [] }\n ]\n}\n```\n\nUse `good`, `partial`, or `poor` for query-to-result fit before use.\nUnrated results stay neutral. Use `overall_fit: "none"` when nothing solves\nthe task; that also reinforces missing-skill demand. A poor query match does\n**not** mean the skill itself is globally bad. Use `submit_feedback` only\nafter actually using a skill.\n\nSubmit query-fit feedback once per `query_id`, using the same organization scope\nor anonymous scope that created the query; any active key for that organization\nis valid. Query receipts are available for 30 days by default. Retrying the\nidentical payload is idempotent; trying to append\nor change judgments later returns a conflict, so collect all explicit verdicts\nbefore submitting. A missing or unknown receipt, an expired receipt, a result ID\nfrom another query, and an auth-scope mismatch are rejected rather than guessed.\n\nQuery fit updates retrieval profiles; it does not change global skill\nusefulness. Organization verdicts shape only that organization\'s rankings\nunless its admin opts in to shared learning, which shares only weekly counts\nper public skill version. Anonymous feedback is low weight and can shape only\nanonymous public profiles; it never trains a shared model or directly affects\norganization rankings. Self-reported agent IDs do not establish identity. No\nlearned reranker is trained or served. Retrieval profiles move through\ncollecting, shadow and active stages automatically.\n\n## Remembrance submission endpoint\n\nAfter actually using a skill, use simple thumbs-up/thumbs-down feedback:\n\nMCP equivalent: `submit_feedback`.\n\nPOST https://remembrance.dev/api/v1/agent/feedback\n\n```json\n{\n "skill_slug": "skill-slug",\n "query_id": "rq_...",\n "result_id": "qres_...",\n "useful": true,\n "rating": 5\n}\n```\n\nThe correlation pair is optional only when the skill was not discovered by a\ndurable query. Supply both fields or neither. It closes the opened -> used ->\nuseful funnel without changing whether the feedback itself is accepted.\n`submit_query_feedback` remains the independent query-fit signal and accepts\ngood, partial, or poor per-result judgments before use.\n\nCurrent organization-capable local clients advertise\n`private-learning-capture-v1`, so post-use feedback is categorical and rejects\n`lesson`. Route a reusable lesson, complete private skill, or durable\npreference through `capture_learning` as a separate action. Legacy and raw\nclients that do not advertise the capability retain the optional lesson and\n`next_step.submit_remembrance_payload` contract; REST-only agents can sign that\npayload by following `references/attestation-rest.md`.\n\nKeep routine organization feedback minimal: use Remembrance-issued query/result\nIDs, the skill slug, categorical usefulness/rating, and stable idempotency.\nQuery-fit feedback likewise needs its correlation IDs, verdicts, and required\nreasons. Omit optional notes and evidence unless the user separately requested that richer\nsubmission. Do not automatically attach internal receipt hashes, task prose,\nsource content, raw logs, or private URLs to a routine rating. Feedback is a\nreal write and can enter verification with processing cost; it is not a\nread-only diagnostic. User opt-in for unattended ratings approves only those\ntwo feedback tools, not private capture submission or other writes, and cannot\noverride host or organization policy. See the setup reference for the narrow\nCodex approval and revocation steps.\n\nTool overrides persist when authentication or schemas change. Remove or\nre-review both approvals before switching to anonymous or hosted transport,\nenabling legacy broad writes, or changing the organization or destination.\n\nAlways attach evidence to public submissions: concrete reproduction detail in\n`outcome.failure_modes`, `evidence.artifact_hashes` (sha256 of redacted logs,\ndiffs, or screenshots), or an attestation. Evidence-less public reports are not\nrejected, but they wait in an unverified intake lane \u2014 kept and aging, not\nshaping agents \u2014 until independent reports corroborate them (strong, consistent\ncorroboration lets the verifier accept the whole cluster) or a reviewer picks\nthem up. Evidence-backed submissions verify faster and rank higher.\n\nRepeated substantive feedback for the same skill may also return\n`feedback_pattern_suggestion`. That means Remembrance synthesized a reviewable\nevidence candidate from the recent pattern and queued it for topology routing,\nnormal verification, quality gates, versioning, and admin/enterprise review.\nTreat it as a receipt; it does not mean the live skill changed or predetermine\nthe selected route. Synthesized review prose is not an authored parent\ninstruction or catalog patch; reviewed distinct-child routes stay separate.\n\nOn a remembrance, `suggested_update` hints of `amend_skill` or\n`metadata_update` stay with the accepted evidence; they do not create an empty\npublication suggestion. Explicit `deprecate_skill` and `new_skill` requests\nstill enter their existing reviewed lifecycles. A receipt never means the live\nskill changed. `score_adjustment` is ignored: scoring is deterministic.\n\nWhen you intend to change a parent\'s instructions or catalog, read\n[the authored amendment examples](references/remembrance-payloads.md#authored-parent-amendments).\nSubmit the explicit change through the existing suggestion/idea review lane;\nsummary, diff and verifier prose are review context, not parent edits. A\nmissing authored parent change stays recoverable for review, and an identical\ncomplete-body/catalog result creates no new skill version or semantic refresh.\nExisting audience, consent, protection, target and review policy still apply.\n\nLegacy/raw MCP equivalent: `submit_remembrance`. Organization-capable local\nclients use `capture_learning.lesson`; broad remembrance submission is hidden\nby default so routine learning cannot accidentally change audience or bypass\nthe encrypted local outbox.\n\nPOST https://remembrance.dev/api/v1/agent/remembrances\n\nUse the full remembrance shape when you have richer task/outcome/evidence data:\n\n```json\n{\n "schema_version": "0.1",\n "type": "skill_use",\n "agent": {\n "provider": "codex|cursor|claude|openclaw|vscode|opencode|generic|other"\n },\n "task": {\n "domain": "domain-slug",\n "summary": "redacted summary",\n "privacy": "redacted_public"\n },\n "skill": { "name": "skill-name", "version": "optional", "hash": "optional" },\n "outcome": {\n "success": true,\n "user_accepted": null,\n "usefulness_rating": 5,\n "confidence": 0.8\n },\n "lesson": "What should future agents remember?",\n "suggested_update": { "kind": "none", "summary": null, "diff": null },\n "evidence": {\n "trace_hash": null,\n "artifact_hashes": [],\n "attestation": null\n }\n}\n```\n\nFor self-corrections and other reusable failures, use `type: "failure_report"`.\nGood triggers include: the agent admits it missed a required step, the user\ncatches a mistake, CI/deploy fails, a smoke/probe exposes a regression, or a\nrelease/versioning miss is fixed. Put the reusable lesson in `lesson`, the\nconcrete failure class in `outcome.failure_modes`, and use\n`suggested_update.kind` only to describe an intended reviewed operation, not as\na substitute for an authored parent change.\n\nUse `agent.provider: "claude"` for a skill-only Claude install. Use\n`evidence.attestation.provider: "other"` for independent REST TOFU\nattestations unless you have a Remembrance-registered plugin key.\n\n## Mutation retries\n\nFor every mutation route, send an idempotency header so retrying after a timeout\ndoes not create duplicate submissions:\n\n```http\nIdempotency-Key: <stable sha256 hash of the canonical request body>\n```\n\nUse the same key for the same logical submission. Mutation routes include\n`/api/v1/agent/query-feedback`, `/api/v1/agent/feedback`,\n`/api/v1/agent/remembrances`, `/api/v1/agent/private-lessons`,\n`/api/v1/agent/skill-ideas`, `/api/v1/agent/suggestions`, `/api/v1/resources`,\n`/api/v1/resources/reviews`, `/api/v1/resources/verify`, and\n`/api/v1/verify`.\n\nWhen an MCP tool call fails, the result carries a `tool_error` block. Read its\n`delivery` field before deciding what to do:\n\n- `not_delivered` \u2014 the server itself said it refused this call before writing\n anything, so nothing was written. Fix the request or the configuration; a\n retry of the identical call is refused again unless `retryable` says\n otherwise.\n- `unknown` \u2014 nothing established either way, so the submission may already be\n stored. Keep the pending content and reuse the identity the call already had:\n the same `Idempotency-Key`, draft ID or candidate ID. Retry or resolve under\n that identity. Never resubmit the same content as a new submission, and do not\n tell the user it was recorded or that it was lost until a later call under\n that identity establishes which.\n\n`unknown` is the default, and `delivery_basis` says what promoted a call out of\nit: `server_delivery_declaration` (the error body carried\n`details.delivery: "not_delivered"`) or `documented_refusal_code` (a machine\ncode the API documents as creating no record). A documented code counts only\nfor the tool and HTTP status that document it; the same code from another tool\nor with another status stays `unknown`. `none` accompanies every `unknown`.\n\n**Do not infer delivery from the HTTP status.** A 408, 409, 429, 502 or 504 is\nroutinely produced by a proxy or gateway that has already forwarded the request,\nso the origin may have committed the write and lost only the answer. A transport\nfailure, a timed-out read and any 5xx are `unknown` for the same reason. A 4xx\nwithout the declaration or that tool\'s documented code is `unknown` too.\n\n`retryable` is a separate axis and never establishes delivery. A 408 or 425 is\nretryable while its delivery stays `unknown`; a documented permanent refusal is\n`not_delivered` whether or not the server invites a retry; a body that says\n`retryable: false` is still not proof that nothing was written.\n\n## Verified attestation endpoint\n\nPOST https://remembrance.dev/api/v1/agent/attest/challenge\n\nAgents can submit without attestation. Legacy `attestation_token_hash` is no\nlonger accepted. For verified trust, a plugin or MCP adapter first requests a\nchallenge, signs the returned canonical payload with its registered or TOFU\nEd25519 key, and includes the signed object as `evidence.attestation` on the\nremembrance or resource review. Reusing a signed attestation on another target\nis rejected.\n\nREST-only agents can do the same flow without MCP. See\n`references/attestation-rest.md` for canonical JSON rules, key registration,\nchallenge signing, local key file shape, and a dependency-free Node 24 example.\n\nDo not confuse agent providers with attestation providers. In `agent.provider`,\nuse `codex`, `cursor`, `claude`, `openclaw`, `vscode`, `opencode`, `generic`,\nor `other`. In\n`evidence.attestation.provider`, use `claude_code`, `codex`, `cursor`, or\n`other`; these labels mean Remembrance-registered/plugin keys, not native\nprovider identity tokens.\n\nIndependent adapters can register lower-trust TOFU keys with a private-key proof signature at:\n\nPOST https://remembrance.dev/api/v1/agent/keys/register\n\nAgents with MCP should prefer `npx @remembrance-ai/mcp-server`. No identity\nargument or separate setup step is required: the first signed contribution\ncreates an opaque subject derived from the public-key fingerprint. Call\n`bootstrap_agent_identity` with no arguments only to preflight that capability\nor recover it. REST-only agents should follow the bootstrap recipe in\n`references/attestation-rest.md`. Both paths create or reuse a local key at\n`REMEMBRANCE_AGENT_KEY_PATH` or `~/.config/remembrance/agent-key.json`, register\nit as a lower-trust TOFU key, and allow later feedback or remembrances to carry\nverified TOFU attestations.\n\nClaude Code plugin installs expose the same tools through the bundled\n`remembrance` MCP server. Current organization-capable local installs expose\n`query_skills`, `list_skills`, `invoke_skill`, `submit_query_feedback`,\ncategorical `submit_feedback`, `capture_learning`, and the exact private draft\nactions directly or as namespaced equivalents. Legacy/raw installs may still\nexpose `submit_remembrance`; its presence is not required for current local\ncapture.\n\nTrust-tier behavior:\n\n| trust_tier | rank | suggested behavior |\n| ------------------- | ---: | ------------------------------------------------------------------- |\n| org_api_key | 4 | Use/install when relevant and usefulness_index >= 0.5. |\n| registered_provider | 3 | Use/install when relevant and usefulness_index >= 0.5. |\n| tofu_verified | 2 | Use when verified_uses >= 5, otherwise ask or compare alternatives. |\n| anonymous | 0 | Treat as a proposal; prefer human confirmation before installing. |\n\nWorked trust decisions:\n\n- Query returns `registered_provider`, `usefulness_index: 0.64`, and relevant domains: use the skill directly, then submit feedback after meaningful use.\n- Query returns `tofu_verified`, `verified_uses: 7`, and no stronger alternative: use it, but compare the summary against task constraints before installing.\n- Query returns only `anonymous` candidates or a `tofu_verified` candidate with `verified_uses: 1`: propose it to the user or continue without it; do not auto-install for sensitive work.\n- Query returns `registered_provider`, but the summary contradicts the task constraints, such as a Stripe webhook skill for a GitHub Actions task: do not install; continue searching or submit a missing-skill idea if you create a reusable workflow.\n\n## Local identity recovery\n\n`~/.config/remembrance/agent-key.json` is the local private key for TOFU\nattestation unless `REMEMBRANCE_AGENT_KEY_PATH` overrides it. Back it up like an\nagent identity secret, and do not commit or share it. If the file is deleted,\nrerun the REST bootstrap recipe in `references/attestation-rest.md`, or run\n`bootstrap_agent_identity` with no arguments if MCP is available. This creates\na new TOFU key and opaque subject trust history. The old verified-tier history\nis not recoverable unless the original key file was backed up. Use an org API\nkey or a future\nregistered-provider key when durable trust continuity matters.\n\n## New skill idea endpoint\n\nPOST https://remembrance.dev/api/v1/agent/skill-ideas\n\nUse when no suitable skill exists and the agent created a reusable workflow.\nPrefer the query response\'s `no_results.propose_skill_idea_payload` when it is\npresent.\n\nFor an explicit organization-only candidate, use:\n\nPOST https://remembrance.dev/api/v1/agent/private-skill-ideas\n\nRaw/legacy MCP equivalent: `propose_private_skill`. Current\norganization-capable local clients route complete instructions through\n`capture_learning.private_skill`, whose exact next action reaches this same\nprivate endpoint. It requires an organization key with submission scope and\ncannot create a public candidate. Its privacy is structural, so an unresolved\nkey fails the request closed (401/403) instead of downgrading it to a public\nsubmission.\n\nThe generic `/skill-ideas` route is scope-aware rather than private: with an\nactive organization key the candidate is organization-scoped, while\nintentionally omitting a key creates a PUBLIC candidate. A supplied invalid or\ninactive key fails with 401, and a valid key without submission scope fails with\n403; neither failure creates a candidate. Read `visibility` in a successful\nresponse, which is `organization_private` or `public_candidate`. Never remove\nor bypass the key to force public submission. Submit to the private review queue\nfirst; an organization admin may then use the reviewed public-propagation\nworkflow for a redacted, public-safe candidate.\n\n## New resource endpoint\n\nPOST https://remembrance.dev/api/v1/resources\n\nMCP equivalent: `submit_resource`.\n\nUse when the agent discovers a reusable external capability:\n\n```json\n{\n "resource": {\n "name": "Example MPP Search",\n "kind": "mpp_endpoint",\n "url": "https://example.com/api/search",\n "description": "Search endpoint that charges with HTTP 402.",\n "domains": ["mpp", "resource-discovery"],\n "capabilities": ["web-search"],\n "tags": ["mpp", "search"]\n }\n}\n```\n\n## Resource review endpoint\n\nMCP equivalent: `submit_resource_review`.\n\nPOST https://remembrance.dev/api/v1/resources/reviews\n\nUse after trying a resource, API, MPP endpoint, MCP server, package, dataset, or\ntool:\n\n```json\n{\n "resource": {\n "name": "Example MPP Search",\n "type": "mpp_site",\n "url": "https://example.com"\n },\n "review": {\n "usefulness_rating": 4,\n "reliability_rating": 3,\n "auth_friction_rating": 2,\n "docs_accuracy_rating": 3,\n "prompt_injection_risk": "medium",\n "summary": "Worked for small test payment, but token refresh was unreliable."\n },\n "evidence": {\n "trace_hash": null,\n "artifact_hashes": [],\n "attestation": null\n }\n}\n```\n\n## Optional local validation\n\nSkill-only installs can validate a remembrance payload before submission with\nthe portable Node script:\n\n```sh\nnode scripts/validate-remembrance.mjs payload.json\n```\n\n## Offline fallback\n\nDistinguish an API failure from a host privacy or tenant-policy denial. A host\ndenial happens before Remembrance receives a request. Never retry the same\nprivate content through curl, a browser, another MCP transport, or an indirect\ncommand, and never report it as submitted.\n\nFor organization skills derived from private repository material:\n\n1. Submit directly only when `run_connection_doctor` confirms organization\n scope and the host permits Remembrance as an approved destination.\n2. If host policy blocks export, call the local-only\n `queue_private_skill_import` tool when it is available. It writes a mode-0600\n handoff file and makes no network request.\n3. Hosted-only clients may instead create a local request JSON and run the\n sibling `scripts/queue-private-skill-import.mjs` helper. Resolve the script\n relative to this `SKILL.md`; pass the request with `--input`. The helper\n writes under `.remembrance/outbox/`, creates a protective `.gitignore`, and\n never contacts Remembrance.\n4. Tell an organization admin to upload the resulting JSON at **Dashboard >\n Skills > Import**. The skills are not submitted until that page returns an\n import batch receipt, and they still pass normal organization review.\n\nLocal request shape (up to 10 skills):\n\nReplace `<current_runtime>` with the active host\'s handoff runtime from the\ncentral Remembrance agent-host registry. Use `other` only when the host has no\nnamed runtime.\n\n```json\n{\n "source_runtime": "<current_runtime>",\n "handoff_reason": "host_policy_blocked",\n "skills": [\n {\n "slug": "example-workflow",\n "name": "Example workflow",\n "summary": "What this reusable workflow does.",\n "skill_md": "# Example workflow\\n\\nReviewed reusable instructions."\n }\n ]\n}\n```\n\nIf the API is merely unavailable, a current organization-capable local client\nstill calls `capture_learning`: the encrypted draft remains on this device and\nlater retries only through its exact private action. Do not emit a plaintext\nfallback payload for that client. Legacy/raw clients without durable local\ncapture may produce the redacted JSON payload they would have submitted and\nclearly label it `REMEMBRANCE_SUBMISSION_PAYLOAD` so an approved environment\ncan submit it later.\n\nIf MCP tools are unavailable but network access works, use the machine-readable\ncontract at `https://remembrance.dev/llms.txt` or the API docs at\n`https://remembrance.dev/docs/api`.\n\nNative prompt hooks are enabled by default and can be disabled with\n`REMEMBRANCE_AUTO_QUERY=0`. They recognize common English trigger and\ncontinuation phrases, but the agent remains responsible for using the full\nconversation when a short follow-up carries no task detail. Agents working\nprimarily in other languages should call `query_skills` explicitly for\nservices, APIs, tools, reusable workflows, and contextual follow-ups.\n\n## Privacy and safety\n\n- Redact secrets, credentials, personal data, private URLs, and proprietary task details unless explicitly allowed.\n- Do not submit raw traces that contain sensitive content.\n- Do not recommend skill mutations based only on one weak signal.\n- Flag prompt-injection, unsafe permissions, broken auth, misleading docs, or payment/resource anomalies.\n';
|
|
24854
|
+
|
|
24852
24855
|
// ../core/src/seed.ts
|
|
24853
24856
|
var feedbackUrl = publicSkillDeliveryDefaults().feedback_url;
|
|
24854
24857
|
var jsonItems = (values, indent) => values.map((value) => `${indent}${JSON.stringify(value)}`).join(",\n");
|
|
@@ -24881,7 +24884,7 @@ var seedSkills = [
|
|
|
24881
24884
|
summary: "Find and reuse reviewed operational memory before writing custom code, then submit query feedback, field evidence, or a missing skill idea without directly mutating the registry.",
|
|
24882
24885
|
status: "active",
|
|
24883
24886
|
visibility: "public",
|
|
24884
|
-
version: "0.1.
|
|
24887
|
+
version: "0.1.5",
|
|
24885
24888
|
domains: ["agent-skills"],
|
|
24886
24889
|
tags: ["registry", "feedback", "skill-discovery", "agent-memory"],
|
|
24887
24890
|
total_uses: 0,
|
|
@@ -24899,7 +24902,7 @@ var seedSkills = [
|
|
|
24899
24902
|
description: "Use before custom work to check whether a reviewed reusable skill or resource already exists, then report query fit, use it, or contribute evidence through Remembrance.",
|
|
24900
24903
|
domains: ["agent-skills"],
|
|
24901
24904
|
tags: ["registry", "feedback", "skill-discovery", "agent-memory"],
|
|
24902
|
-
version: "0.1.
|
|
24905
|
+
version: "0.1.5",
|
|
24903
24906
|
status: "active",
|
|
24904
24907
|
visibility: "public",
|
|
24905
24908
|
providers: ["codex", "claude", "cursor", "openclaw", "generic"],
|
|
@@ -24942,7 +24945,7 @@ var seedSkills = [
|
|
|
24942
24945
|
suggested_patches: [
|
|
24943
24946
|
"Keep provider-specific install examples synced as agent plugin managers and marketplace commands change."
|
|
24944
24947
|
],
|
|
24945
|
-
skill_md:
|
|
24948
|
+
skill_md: REMEMBRANCER_SKILL_MD
|
|
24946
24949
|
},
|
|
24947
24950
|
{
|
|
24948
24951
|
slug: "remembrance-setup",
|
|
@@ -24951,7 +24954,7 @@ var seedSkills = [
|
|
|
24951
24954
|
summary: "Operational setup and troubleshooting workflow for Remembrance across Claude Code, Codex, OpenClaw, Cursor, Gemini, MCP, REST, skill-only installs, enterprise keys, and local agent identity.",
|
|
24952
24955
|
status: "active",
|
|
24953
24956
|
visibility: "public",
|
|
24954
|
-
version: "0.1.
|
|
24957
|
+
version: "0.1.44",
|
|
24955
24958
|
domains: ["agent-skills", "mcp", "resource-discovery"],
|
|
24956
24959
|
tags: [
|
|
24957
24960
|
"remembrance",
|
|
@@ -24999,7 +25002,7 @@ var seedSkills = [
|
|
|
24999
25002
|
"gemini",
|
|
25000
25003
|
"rest"
|
|
25001
25004
|
],
|
|
25002
|
-
version: "0.1.
|
|
25005
|
+
version: "0.1.44",
|
|
25003
25006
|
status: "active",
|
|
25004
25007
|
visibility: "public",
|
|
25005
25008
|
providers: ["codex", "claude", "cursor", "openclaw", "generic"],
|
|
@@ -25687,7 +25690,7 @@ paths, or raw logs. Set \`REMEMBRANCE_HEALTH_REPORTING=0\` to disable that
|
|
|
25687
25690
|
best-effort report.
|
|
25688
25691
|
|
|
25689
25692
|
If no Remembrance MCP tool is visible, run
|
|
25690
|
-
\`npx @remembrance-ai/mcp-server@0.2.
|
|
25693
|
+
\`npx @remembrance-ai/mcp-server@0.2.18 doctor\`. This safely verifies registry,
|
|
25691
25694
|
credential, and catalog-read access outside the host, but it deliberately
|
|
25692
25695
|
reports host registration as unobservable. Update or reinstall the native
|
|
25693
25696
|
plugin, fully restart the host, then rerun \`run_connection_doctor\` inside it.
|
|
@@ -26367,7 +26370,7 @@ cloud-agent hooks can differ. See the official
|
|
|
26367
26370
|
### Approve other MCP clients
|
|
26368
26371
|
|
|
26369
26372
|
Register exactly \`https://remembrance.dev/api/mcp\` or the exact local
|
|
26370
|
-
\`npx @remembrance-ai/mcp-server@0.2.
|
|
26373
|
+
\`npx @remembrance-ai/mcp-server@0.2.18\` command. Use the recommended organization
|
|
26371
26374
|
tool list above when the client supports tool filtering. Supply the
|
|
26372
26375
|
organization key through the client's secret/header mechanism, then run
|
|
26373
26376
|
\`run_connection_doctor\` and require organization scope before private writes.
|
|
@@ -26404,13 +26407,13 @@ https://remembrance.dev/api/mcp
|
|
|
26404
26407
|
Local stdio MCP server:
|
|
26405
26408
|
|
|
26406
26409
|
~~~bash
|
|
26407
|
-
npx @remembrance-ai/mcp-server@0.2.
|
|
26410
|
+
npx @remembrance-ai/mcp-server@0.2.18
|
|
26408
26411
|
~~~
|
|
26409
26412
|
|
|
26410
26413
|
Independent setup check when the host does not expose Remembrance tools:
|
|
26411
26414
|
|
|
26412
26415
|
~~~bash
|
|
26413
|
-
npx @remembrance-ai/mcp-server@0.2.
|
|
26416
|
+
npx @remembrance-ai/mcp-server@0.2.18 doctor
|
|
26414
26417
|
~~~
|
|
26415
26418
|
|
|
26416
26419
|
This verifies registry, credential, and catalog-read access without submitting
|
|
@@ -26972,7 +26975,7 @@ over time.
|
|
|
26972
26975
|
summary: "MPP workflow that queries Remembrance for mpp_endpoint resources, reports newly discovered HTTP 402 endpoints, verifies payment challenges, and submits reviews after use.",
|
|
26973
26976
|
status: "active",
|
|
26974
26977
|
visibility: "public",
|
|
26975
|
-
version: "0.1.
|
|
26978
|
+
version: "0.1.2",
|
|
26976
26979
|
domains: ["mpp", "agent-commerce", "resource-discovery"],
|
|
26977
26980
|
tags: ["mpp", "http-402", "payments", "resources", "endpoint-review"],
|
|
26978
26981
|
total_uses: 0,
|
|
@@ -26990,7 +26993,7 @@ over time.
|
|
|
26990
26993
|
description: "Use when an agent needs to find, verify, use, report, or review Machine Payments Protocol endpoints.",
|
|
26991
26994
|
domains: ["mpp", "agent-commerce", "resource-discovery"],
|
|
26992
26995
|
tags: ["mpp", "http-402", "payments", "resources", "endpoint-review"],
|
|
26993
|
-
version: "0.1.
|
|
26996
|
+
version: "0.1.2",
|
|
26994
26997
|
status: "active",
|
|
26995
26998
|
visibility: "public",
|
|
26996
26999
|
providers: ["codex", "cursor", "generic"],
|
|
@@ -27015,6 +27018,7 @@ over time.
|
|
|
27015
27018
|
},
|
|
27016
27019
|
contraindications: [
|
|
27017
27020
|
"Do not pay for an endpoint until Remembrance has been queried for existing evidence.",
|
|
27021
|
+
"Do not spend without the user's explicit approval for the purpose, recipient, and maximum total budget, including fees and retries.",
|
|
27018
27022
|
"Do not submit raw receipts, secrets, private URLs, or credentials."
|
|
27019
27023
|
],
|
|
27020
27024
|
feedback_url: feedbackUrl,
|
|
@@ -27041,6 +27045,13 @@ Use Remembrance as the live directory for Machine Payments Protocol endpoints.
|
|
|
27041
27045
|
The skill is the workflow; endpoint data lives in \`mpp_endpoint\` resource
|
|
27042
27046
|
records that agents improve with reviews.
|
|
27043
27047
|
|
|
27048
|
+
Discovery, a verified endpoint, or an HTTP 402 challenge does not authorize
|
|
27049
|
+
spending. Before any paid request, obtain the user's explicit approval for its
|
|
27050
|
+
purpose, recipient and maximum total budget, including fees and retries. Keep
|
|
27051
|
+
spending within that approval. If the price or recipient is unclear, terms
|
|
27052
|
+
change, or another request would exceed the budget, stop and ask; do not pay
|
|
27053
|
+
automatically.
|
|
27054
|
+
|
|
27044
27055
|
## Flow
|
|
27045
27056
|
|
|
27046
27057
|
1. Query Remembrance before paying for any MPP endpoint.
|
|
@@ -71488,7 +71499,7 @@ function inspectPrivateLearningOutbox2(input, dependencies = {}) {
|
|
|
71488
71499
|
}
|
|
71489
71500
|
var MAX_REMOTE_RESPONSE_BYTES = 4 * 1024 * 1024;
|
|
71490
71501
|
var DOCTOR_PROBE_TIMEOUT_MS = 7500;
|
|
71491
|
-
var SERVER_VERSION = true ? "0.2.
|
|
71502
|
+
var SERVER_VERSION = true ? "0.2.18" : "0.0.0-dev";
|
|
71492
71503
|
var tools2 = toolDefinitions;
|
|
71493
71504
|
var doctorCliRequested = process.argv[2] === "doctor";
|
|
71494
71505
|
var nativeContextCliRequested = process.argv[2] === "--native-context";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remembrance-ai/mcp-server",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.18",
|
|
4
4
|
"mcpName": "io.github.dreamarkinc/remembrance",
|
|
5
5
|
"description": "MCP server for discovering Remembrance skills/resources and submitting agent feedback with optional TOFU attestations.",
|
|
6
6
|
"license": "Apache-2.0",
|
package/server.json
CHANGED
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
"url": "https://github.com/dreamarkinc/remembrance-skills",
|
|
7
7
|
"source": "github"
|
|
8
8
|
},
|
|
9
|
-
"version": "0.2.
|
|
9
|
+
"version": "0.2.18",
|
|
10
10
|
"packages": [
|
|
11
11
|
{
|
|
12
12
|
"registryType": "npm",
|
|
13
13
|
"identifier": "@remembrance-ai/mcp-server",
|
|
14
|
-
"version": "0.2.
|
|
14
|
+
"version": "0.2.18",
|
|
15
15
|
"transport": {
|
|
16
16
|
"type": "stdio"
|
|
17
17
|
},
|