@remembrance-ai/mcp-server 0.1.55 → 0.1.60

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/README.md CHANGED
@@ -113,6 +113,10 @@ Environment:
113
113
  - `REMEMBRANCE_AGENT_KEY_PATH`: optional local key path. Defaults to
114
114
  `$XDG_CONFIG_HOME/remembrance/agent-key.json` or
115
115
  `~/.config/remembrance/agent-key.json`.
116
+ - `REMEMBRANCE_MEMBER_LINK_TOKEN`: optional single-use, ten-minute token from
117
+ **Dashboard > Agents > Instances > Install on this device**. Use only in the
118
+ one device-specific setup command that issued it; reusable organization-key
119
+ distribution must omit it.
116
120
  - `REMEMBRANCE_PLUGIN_HOST`: set by native plugin manifests (`codex`,
117
121
  `claude_code`, `cursor`, `openclaw`, `vs_code`, or `opencode`) so connection
118
122
  health can verify that host's local lifecycle. Leave unset for MCP-only
@@ -152,6 +156,55 @@ standalone CLI can verify configuration, registry, auth, and read access, but it
152
156
  cannot claim that a host registered MCP; it tells you to rerun
153
157
  `run_connection_doctor` inside the host after update/reinstall and restart.
154
158
 
159
+ ## Installation identity and preferences
160
+
161
+ The local TOFU key is the durable installation principal. The MCP server
162
+ registers or upgrades it automatically, then signs a one-time challenge to
163
+ obtain a revocable 24-hour principal session. Registration is retried in the
164
+ background and never blocks query or invocation. Identity, member-link, and
165
+ preference mutations fail strictly when the session cannot be established.
166
+
167
+ Each host under the installation gets a child runtime profile. The profile
168
+ contains the normalized runtime and surface, bounded client/runtime versions,
169
+ and a locally derived opaque profile key. It never sends a hostname, username,
170
+ config path, or repository path. Profiles do not create extra billed agents;
171
+ they inherit the installation billing principal.
172
+
173
+ An optional dashboard member-link token binds the installation privately to the
174
+ signed-in organization member. The token is single-use and expires after ten
175
+ minutes. Linking lets preferences follow that member across installations and
176
+ runtimes. Without a link, Remembrance still works and keeps preferences at the
177
+ installation level.
178
+
179
+ Query and invocation responses may include `effective_preferences`,
180
+ `preference_definition_version`, and a bounded
181
+ `preference_application`. Comment density/focus, explanation depth, and output
182
+ organization are built-ins, not a closed vocabulary. A custom setting carries
183
+ a stable key/value, label, normalized behavior, presentation/workflow/strategy
184
+ effect, prefer/avoid direction, and definition version. Required organization
185
+ guidance and locked skill requirements always win. Safety, authorization,
186
+ privacy, applicability, required skill steps, validation, and review are never
187
+ preferences. Explicit corrections apply immediately; inferred values
188
+ activate only after the server's consistency/confidence gates and expire after
189
+ 180 inactive days. Use `record_preference` with hashes and typed values only,
190
+ never raw prompt or feedback text. `scope: "auto"` stores a preference for the
191
+ linked member when available and otherwise for the installation.
192
+
193
+ Native hooks may add a locally derived `client_context.project_key`. It is an
194
+ installation-keyed opaque project-context digest; the path and
195
+ repository name never leave the device. Preferences never change base
196
+ relevance evidence, applicability, or match tier. Declared skill traits may
197
+ reorder already-relevant candidates only inside the same tier. After selection,
198
+ the application object may surgically alter discretionary presentation,
199
+ workflow, or strategy choices and explicitly reports replaced defaults or
200
+ blocked conflicts. Organization admins choose Required or Recommended guidance
201
+ under Dashboard > Agents > Preferences.
202
+
203
+ `X-Remembrance-Principal-Session` is the preferred header. The legacy
204
+ `X-Remembrance-Economics-Session` header and economics-session endpoint remain
205
+ backward-compatible aliases. Send one session header; if both are present, the
206
+ principal-session header wins.
207
+
155
208
  ## Local Identity Recovery
156
209
 
157
210
  `REMEMBRANCE_AGENT_KEY_PATH` points at a local private key. Back it up like an
@@ -294,6 +347,15 @@ current instructions. Catalog browsing and handle reads do not count as use.
294
347
  - `bootstrap_agent_identity`: with no required arguments, generate/register a
295
348
  local TOFU Ed25519 key, repair its permissions, or explicitly re-bootstrap a
296
349
  new identity if the local key file was lost.
350
+ - `get_effective_preferences`: resolve only the typed preference values relevant
351
+ to the current project context, skill, and domains. A missing principal session
352
+ returns organization/default behavior rather than failing retrieval.
353
+ - `record_preference`: record a privacy-safe explicit or inferred preference
354
+ observation for the verified installation/member/runtime. A live principal
355
+ session is required.
356
+ - `link_current_installation`: consume the one-time dashboard member token and
357
+ bind the verified installation to that organization member. It does not
358
+ rotate the API key or create another billed agent.
297
359
  - `queue_private_skill_import`: preserve up to 10 organization skills locally
298
360
  when host privacy or network policy blocks export. It never contacts
299
361
  Remembrance and never counts as submission; an organization admin uploads
@@ -359,8 +421,21 @@ current instructions. Catalog browsing and handle reads do not count as use.
359
421
  - `request_attestation_challenge`, `register_agent_key` for adapters that
360
422
  manage keys themselves.
361
423
 
424
+ Submission tools may include an optional `routing_hint`, but it is advisory.
425
+ Remembrance keeps the evidence immutable and independently chooses `amend`,
426
+ `specialize`, `strategy_fork`, `independent_skill`, `preference`,
427
+ `evidence_only`, or `hold` after static safety, duplicate, target, risk,
428
+ verifier, and organization-policy checks. Subjective but reusable presentation,
429
+ workflow, or strategy choices go to the preference plane rather than polluting
430
+ canonical skill instructions.
431
+ Specializations are complete reviewed versions pinned to an exact parent
432
+ version with structured conditions and `use_when`/`avoid_when`; parent changes
433
+ create reviewed rebase candidates instead of silently changing children.
434
+ Organization evidence never routes into a public artifact.
435
+
362
436
  The local MCP server uses the same TOFU identity to obtain a revocable 24-hour
363
- economics session. Native plugins report a bounded completion automatically when
437
+ principal session (the economics-session name remains an alias). Native plugins
438
+ report a bounded completion automatically when
364
439
  their host exposes enough lifecycle data. Raw MCP clients should call
365
440
  `report_task_outcome` themselves after a selected result is used. Collection
366
441
  mode never exposes USD values, prices, rebates, credits, subscriptions, or