@remembrance-ai/mcp-server 0.1.55 → 0.1.62

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,74 @@ 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
+ Private working preferences follow each engineer across approved agents and
194
+ steer relevant public and team skills without changing shared instructions or
195
+ weakening organization policy. Profiles, observations, compatibility records,
196
+ and feedback remain private to the authenticated organization.
197
+
198
+ Native hooks may add a locally derived `client_context.project_key`. It is an
199
+ installation-keyed opaque project-context digest; the path and
200
+ repository name never leave the device. Preferences never change base
201
+ relevance evidence, applicability, or match tier. Organization-private,
202
+ exact-version compatibility records may reorder already-relevant candidates
203
+ only inside the same tier. Classification is asynchronous; query and
204
+ invocation add no generative preference call or second embedding request, and
205
+ missing or stale classification is neutral. Preference or policy changes use
206
+ leased catalog sweeps; exact skill-version changes enqueue only that skill for
207
+ affected organizations, and blocked scopes resume automatically when eligible.
208
+ After selection,
209
+ the application object may surgically alter discretionary presentation,
210
+ workflow, or strategy choices and explicitly reports replaced defaults or
211
+ blocked conflicts. Organization admins choose Required or Recommended guidance
212
+ under Dashboard > Agents > Preferences.
213
+
214
+ Use `submit_preference_compatibility_feedback` only after actually using an
215
+ exact skill version returned with a `preference_compatibility_feedback` offer.
216
+ Send the offer's exact `query_id`, `result_id`, `skill_version_id`, and
217
+ server-issued `preference_fingerprint`; the server verifies the correlated
218
+ fetch and resolves the active preference itself. The operation requires a
219
+ verified principal session and never mutates the skill or another
220
+ organization's ranking.
221
+
222
+ `X-Remembrance-Principal-Session` is the preferred header. The legacy
223
+ `X-Remembrance-Economics-Session` header and economics-session endpoint remain
224
+ backward-compatible aliases. Send one session header; if both are present, the
225
+ principal-session header wins.
226
+
155
227
  ## Local Identity Recovery
156
228
 
157
229
  `REMEMBRANCE_AGENT_KEY_PATH` points at a local private key. Back it up like an
@@ -294,6 +366,15 @@ current instructions. Catalog browsing and handle reads do not count as use.
294
366
  - `bootstrap_agent_identity`: with no required arguments, generate/register a
295
367
  local TOFU Ed25519 key, repair its permissions, or explicitly re-bootstrap a
296
368
  new identity if the local key file was lost.
369
+ - `get_effective_preferences`: resolve only the typed preference values relevant
370
+ to the current project context, skill, and domains. A missing principal session
371
+ returns organization/default behavior rather than failing retrieval.
372
+ - `record_preference`: record a privacy-safe explicit or inferred preference
373
+ observation for the verified installation/member/runtime. A live principal
374
+ session is required.
375
+ - `link_current_installation`: consume the one-time dashboard member token and
376
+ bind the verified installation to that organization member. It does not
377
+ rotate the API key or create another billed agent.
297
378
  - `queue_private_skill_import`: preserve up to 10 organization skills locally
298
379
  when host privacy or network policy blocks export. It never contacts
299
380
  Remembrance and never counts as submission; an organization admin uploads
@@ -359,8 +440,21 @@ current instructions. Catalog browsing and handle reads do not count as use.
359
440
  - `request_attestation_challenge`, `register_agent_key` for adapters that
360
441
  manage keys themselves.
361
442
 
443
+ Submission tools may include an optional `routing_hint`, but it is advisory.
444
+ Remembrance keeps the evidence immutable and independently chooses `amend`,
445
+ `specialize`, `strategy_fork`, `independent_skill`, `preference`,
446
+ `evidence_only`, or `hold` after static safety, duplicate, target, risk,
447
+ verifier, and organization-policy checks. Subjective but reusable presentation,
448
+ workflow, or strategy choices go to the preference plane rather than polluting
449
+ canonical skill instructions.
450
+ Specializations are complete reviewed versions pinned to an exact parent
451
+ version with structured conditions and `use_when`/`avoid_when`; parent changes
452
+ create reviewed rebase candidates instead of silently changing children.
453
+ Organization evidence never routes into a public artifact.
454
+
362
455
  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
456
+ principal session (the economics-session name remains an alias). Native plugins
457
+ report a bounded completion automatically when
364
458
  their host exposes enough lifecycle data. Raw MCP clients should call
365
459
  `report_task_outcome` themselves after a selected result is used. Collection
366
460
  mode never exposes USD values, prices, rebates, credits, subscriptions, or