@remembrance-ai/mcp-server 0.1.60 → 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
@@ -190,16 +190,35 @@ activate only after the server's consistency/confidence gates and expire after
190
190
  never raw prompt or feedback text. `scope: "auto"` stores a preference for the
191
191
  linked member when available and otherwise for the installation.
192
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
+
193
198
  Native hooks may add a locally derived `client_context.project_key`. It is an
194
199
  installation-keyed opaque project-context digest; the path and
195
200
  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,
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,
198
209
  the application object may surgically alter discretionary presentation,
199
210
  workflow, or strategy choices and explicitly reports replaced defaults or
200
211
  blocked conflicts. Organization admins choose Required or Recommended guidance
201
212
  under Dashboard > Agents > Preferences.
202
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
+
203
222
  `X-Remembrance-Principal-Session` is the preferred header. The legacy
204
223
  `X-Remembrance-Economics-Session` header and economics-session endpoint remain
205
224
  backward-compatible aliases. Send one session header; if both are present, the
package/dist/server.js CHANGED
@@ -5335,6 +5335,81 @@ var skillPreferenceTraitsSchema = external_exports.array(skillPreferenceTraitSch
5335
5335
  seen.add(identity);
5336
5336
  });
5337
5337
  });
5338
+ var preferenceCompatibilityRelationshipSchema = external_exports.enum([
5339
+ "supports",
5340
+ "conflicts",
5341
+ "neutral",
5342
+ "uncertain"
5343
+ ]);
5344
+ var preferenceCompatibilitySourceSchema = external_exports.enum([
5345
+ "classifier",
5346
+ "member_feedback",
5347
+ "organization_override",
5348
+ "legacy_trait"
5349
+ ]);
5350
+ var preferenceCompatibilityAssessmentSchema = external_exports.object({
5351
+ preference_fingerprint: external_exports.string().regex(/^sha256:[a-f0-9]{64}$/),
5352
+ preference_key: preferenceKeySchema,
5353
+ preference_value: preferenceValueSchema,
5354
+ relationship: preferenceCompatibilityRelationshipSchema,
5355
+ confidence: external_exports.number().min(0).max(1),
5356
+ rationale: external_exports.string().trim().min(1).max(200).nullable().default(null),
5357
+ classification_version: external_exports.string().trim().min(1).max(96),
5358
+ source: preferenceCompatibilitySourceSchema,
5359
+ locked: external_exports.boolean().default(false)
5360
+ }).strict();
5361
+ var preferenceCompatibilityAssessmentsSchema = external_exports.array(preferenceCompatibilityAssessmentSchema).max(MAX_EFFECTIVE_PREFERENCES * 2);
5362
+ var preferenceCompatibilityClassifierResultSchema = external_exports.object({
5363
+ relationship: preferenceCompatibilityRelationshipSchema,
5364
+ confidence: external_exports.number().min(0).max(1),
5365
+ rationale: external_exports.string().trim().min(1).max(200),
5366
+ // `locked` means the skill declares this behavior as a required step. It
5367
+ // can block surgical application after an explicit invocation, but never
5368
+ // lets a preference bypass a skill or organization requirement.
5369
+ locked: external_exports.boolean()
5370
+ }).strict();
5371
+ var preferenceCompatibilityFeedbackReasonCodeSchema = external_exports.enum([
5372
+ "workflow_alignment",
5373
+ "strategy_alignment",
5374
+ "presentation_alignment",
5375
+ "task_mismatch",
5376
+ "skill_requirement",
5377
+ "other_observed"
5378
+ ]);
5379
+ var preferenceCompatibilityFeedbackRequestSchema = external_exports.object({
5380
+ query_id: external_exports.string().trim().min(1).max(160),
5381
+ result_id: external_exports.string().trim().min(1).max(160),
5382
+ preference_fingerprint: external_exports.string().regex(/^sha256:[a-f0-9]{64}$/),
5383
+ skill_slug: external_exports.string().trim().toLowerCase().min(1).max(160).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/),
5384
+ skill_version_id: external_exports.string().trim().min(1).max(160),
5385
+ relationship: external_exports.enum(["supports", "conflicts"]),
5386
+ evidence_source: external_exports.enum(["explicit_user", "agent_observed"]),
5387
+ reason_code: preferenceCompatibilityFeedbackReasonCodeSchema.nullable().default(null)
5388
+ }).strict();
5389
+ var REMEMBRANCE_PREFERENCE_COMPATIBILITY_FEEDBACK_TOOL_DESCRIPTION = "After actually opening or invoking a skill, record whether that exact version supports or conflicts with one server-issued active working-preference fingerprint. This is private to the authenticated organization, requires the same verified installation principal that used the correlated query/result, and never changes the skill or another organization's ranking. Use evidence_source explicit_user only for a user's explicit assessment; otherwise use agent_observed. Send only correlation IDs, the returned fingerprint, exact slug/version id, relationship, source, and an optional allowlisted reason_code; never send prompts, source code, paths, free-text feedback, or a caller-generated idempotency hash.";
5390
+ var preferenceCompatibilityAdminActionSchema = external_exports.discriminatedUnion(
5391
+ "action",
5392
+ [
5393
+ external_exports.object({
5394
+ action: external_exports.literal("reclassify"),
5395
+ preference_fingerprint: external_exports.string().regex(/^sha256:[a-f0-9]{64}$/),
5396
+ skill_version_id: external_exports.string().trim().min(1).max(160)
5397
+ }).strict(),
5398
+ external_exports.object({
5399
+ action: external_exports.literal("override"),
5400
+ preference_fingerprint: external_exports.string().regex(/^sha256:[a-f0-9]{64}$/),
5401
+ skill_version_id: external_exports.string().trim().min(1).max(160),
5402
+ relationship: external_exports.enum(["supports", "conflicts"]),
5403
+ rationale: external_exports.string().trim().min(1).max(200),
5404
+ locked: external_exports.boolean().default(false)
5405
+ }).strict(),
5406
+ external_exports.object({
5407
+ action: external_exports.literal("reset"),
5408
+ preference_fingerprint: external_exports.string().regex(/^sha256:[a-f0-9]{64}$/),
5409
+ skill_version_id: external_exports.string().trim().min(1).max(160)
5410
+ }).strict()
5411
+ ]
5412
+ );
5338
5413
  var INFERRED_MAX_AGE_MS = 180 * 864e5;
5339
5414
  function builtInPreferenceDefinition(key) {
5340
5415
  return BUILT_IN_PREFERENCE_DEFINITIONS[key] ?? null;
@@ -5474,6 +5549,7 @@ var REMEMBRANCE_MCP_READ_TOOLS = [
5474
5549
  var REMEMBRANCE_MCP_FEEDBACK_TOOLS = [
5475
5550
  "submit_query_feedback",
5476
5551
  "submit_feedback",
5552
+ "submit_preference_compatibility_feedback",
5477
5553
  "report_task_outcome"
5478
5554
  ];
5479
5555
  var REMEMBRANCE_MCP_PRIVATE_CONTRIBUTION_TOOLS = [
@@ -6658,7 +6734,7 @@ var seedSkills = [
6658
6734
  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.",
6659
6735
  status: "active",
6660
6736
  visibility: "public",
6661
- version: "0.1.18",
6737
+ version: "0.1.19",
6662
6738
  domains: ["agent-skills", "mcp", "resource-discovery"],
6663
6739
  tags: [
6664
6740
  "remembrance",
@@ -6709,7 +6785,7 @@ var seedSkills = [
6709
6785
  "gemini",
6710
6786
  "rest"
6711
6787
  ],
6712
- version: "0.1.18",
6788
+ version: "0.1.19",
6713
6789
  status: "active",
6714
6790
  visibility: "public",
6715
6791
  providers: ["codex", "claude", "cursor", "openclaw", "generic"],
@@ -9765,6 +9841,12 @@ var toolDefinitions = [
9765
9841
  "/api/v1/agent/preferences",
9766
9842
  recordPreferenceRequestSchema
9767
9843
  ),
9844
+ tool(
9845
+ "submit_preference_compatibility_feedback",
9846
+ REMEMBRANCE_PREFERENCE_COMPATIBILITY_FEEDBACK_TOOL_DESCRIPTION,
9847
+ "/api/v1/agent/preferences/compatibility-feedback",
9848
+ preferenceCompatibilityFeedbackRequestSchema
9849
+ ),
9768
9850
  tool(
9769
9851
  "link_current_installation",
9770
9852
  "Link this verified installation to the signed-in organization member using a single-use dashboard token. The token expires after ten minutes and is consumed exactly once. A valid organization principal session is required; this never changes the organization API key or creates another billed agent.",
@@ -10921,7 +11003,7 @@ async function checkClientUpdate(input) {
10921
11003
  // src/server.ts
10922
11004
  var MAX_REMOTE_RESPONSE_BYTES = 4 * 1024 * 1024;
10923
11005
  var DOCTOR_PROBE_TIMEOUT_MS = 7500;
10924
- var SERVER_VERSION = true ? "0.1.60" : "0.0.0-dev";
11006
+ var SERVER_VERSION = true ? "0.1.62" : "0.0.0-dev";
10925
11007
  var tools = toolDefinitions;
10926
11008
  var doctorCliRequested = process.argv[2] === "doctor";
10927
11009
  var inputBuffer = Buffer.alloc(0);
@@ -10931,6 +11013,7 @@ var connectedClientInfo = null;
10931
11013
  var cachedValueProofKeys = null;
10932
11014
  var PRINCIPAL_SESSION_REQUIRED_TOOLS = /* @__PURE__ */ new Set([
10933
11015
  "record_preference",
11016
+ "submit_preference_compatibility_feedback",
10934
11017
  "link_current_installation"
10935
11018
  ]);
10936
11019
  var PRINCIPAL_SESSION_AWAITED_TOOLS = /* @__PURE__ */ new Set([
@@ -11730,6 +11813,9 @@ async function callRemembrance(definition, rawArguments, options = {}) {
11730
11813
  if (refreshed && refreshed !== sentPrincipalSession) {
11731
11814
  headers["x-remembrance-principal-session"] = refreshed;
11732
11815
  ({ response, body } = await execute());
11816
+ } else if (!PRINCIPAL_SESSION_REQUIRED_TOOLS.has(definition.name)) {
11817
+ delete headers["x-remembrance-principal-session"];
11818
+ ({ response, body } = await execute());
11733
11819
  }
11734
11820
  }
11735
11821
  } catch (error) {
@@ -11775,7 +11861,7 @@ async function localProjectKey() {
11775
11861
  function principalSessionAuthenticationFailed(response, body) {
11776
11862
  if (response.status !== 401 && response.status !== 403) return false;
11777
11863
  if (!isRecord4(body) || typeof body.error !== "string") return false;
11778
- return /principal session|economics session|installation session/i.test(
11864
+ return /principal session|economics session|installation session|agent principal|installation principal/i.test(
11779
11865
  body.error
11780
11866
  );
11781
11867
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remembrance-ai/mcp-server",
3
- "version": "0.1.60",
3
+ "version": "0.1.62",
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.1.60",
9
+ "version": "0.1.62",
10
10
  "packages": [
11
11
  {
12
12
  "registryType": "npm",
13
13
  "identifier": "@remembrance-ai/mcp-server",
14
- "version": "0.1.60",
14
+ "version": "0.1.62",
15
15
  "transport": {
16
16
  "type": "stdio"
17
17
  },