@remembrance-ai/mcp-server 0.2.7 → 0.2.9

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
@@ -646,7 +646,12 @@ submission then sends the confirmed fields:
646
646
  "routing": {
647
647
  "capabilities": ["deploy-to-cloud"],
648
648
  "domains": ["deployments-cicd", "cloud-platforms"],
649
- "runtime_requirements": ["repo-checkout", "shell", "cloud-account", "provider-azure"],
649
+ "runtime_requirements": [
650
+ "repo-checkout",
651
+ "shell",
652
+ "cloud-account",
653
+ "provider-azure"
654
+ ],
650
655
  "risk": "cloud-changes"
651
656
  }
652
657
  },
@@ -685,6 +690,80 @@ does not create a draft or consume a reformulation attempt, and does not require
685
690
  another approval. Runtime, storage, and remote-response errors do not masquerade
686
691
  as input diagnostics.
687
692
 
693
+ Capture failures also return a content-free `correlation_id`, `failure_stage`
694
+ (`validation`, `preparation`, `encrypted_persistence`, or `response`) and
695
+ `persistence_outcome` (`not_persisted`, `persisted`, or `unknown`). A confirmed
696
+ saved draft includes `draft_id`; an uncertain write includes a separate
697
+ `reconciliation_draft_id` when known. Capture performs no network submission:
698
+ `candidate_sent` is false even when its local draft was saved. Fixed diagnostic
699
+ metadata is written to MCP stderr with the same correlation ID and UTC time;
700
+ exception messages, request values and filesystem paths are never logged.
701
+
702
+ For a lesson, allocate `capture_id` before the first call: `cap_` followed by
703
+ 32 random lowercase hexadecimal characters. Keep it with the original lesson.
704
+ After a lost response, call `inspect_private_lesson_outbox` with that
705
+ `capture_id` and follow the returned action. Repeating `capture_learning` with
706
+ the identical lesson and capture ID reconciles interrupted encrypted writes
707
+ and returns the existing draft instead of creating another. A different
708
+ prepared payload or destination is refused. Local reconciliation is guaranteed
709
+ while the draft or its outcome marker is retained; submitted/deleted outcome
710
+ markers expire after 14 days. Reconcile within that window, and do not treat an
711
+ expired marker's absence as proof that a capture never existed. A retained
712
+ completed or deleted identity cannot create a new draft. Correct validation/preparation failures before
713
+ retrying. An unavailable or undecryptable reconciliation remains unresolved;
714
+ never change the capture ID to bypass it. This identity contract applies only
715
+ to lessons. For private skills, use the returned draft handle and existing
716
+ outbox recovery actions.
717
+
718
+ Older captures without a caller-kept ID cannot be matched conclusively by
719
+ timestamp alone. Inspect retained drafts and submitted receipts without
720
+ creating another capture, and preserve any unresolved original task context.
721
+ Updating a plugin does not replace an already running MCP process: check the
722
+ connection doctor in each affected chat after fully restarting the host.
723
+
724
+ A retained lesson refused with `private_lesson_destination_legacy_unbound`
725
+ has no recorded destination. Its `next_action` now requests a content-free
726
+ review through the existing private retry tool:
727
+
728
+ ```json
729
+ {
730
+ "draft_id": "pld_<retained draft ID>",
731
+ "legacy_destination_recovery": { "action": "review" }
732
+ }
733
+ ```
734
+
735
+ The review checks the selected encrypted draft before making any request,
736
+ then reads only the signed organization policy. It returns the exact draft
737
+ and payload digest, current destination fingerprints, authenticated organization
738
+ audience hash, and a stable `review_id`. It changes no draft and returns no
739
+ retained lesson text. The current credential proves only the proposed
740
+ destination; it does not prove where an older draft belonged.
741
+ Historical clients can count a refusal before delivery as an attempt and leave
742
+ the draft scheduled for retry. This counter is not proof of delivery. Migration
743
+ eligibility requires the exact legacy destination refusal, no bound policy,
744
+ no safety hold or hold telemetry, and no submission/completion receipt; every
745
+ candidate challenge and submission follows a persisted policy binding.
746
+
747
+ The owner must explicitly confirm that this selected draft belongs only to
748
+ the reviewed organization, authorize its unchanged private delivery there,
749
+ and confirm that every client reading the shared outbox is Remembrance
750
+ 0.2.6 or newer. Existing submission approval does not grant this migration
751
+ approval. After that confirmation, complete the returned `approve` arguments
752
+ with both true owner confirmations and the SHA-256 hash of the exact approval.
753
+ The tool recomputes the review and refuses changed draft, destination, or
754
+ audience fields before local migration. It preserves original payload bytes,
755
+ submission identity, and encryption key source. A separate exact normal retry
756
+ then performs ordinary signed private delivery and receipt verification.
757
+
758
+ Repeating the same approval safely returns `already_recovered` once the
759
+ selected draft is bound to that destination and audience; it does not claim
760
+ to verify an earlier attestation receipt. If the local outcome cannot be
761
+ established, the tool returns `persistence_outcome: unknown` with the exact
762
+ approved reconciliation action. Keep that action and the retained draft;
763
+ do not recapture, infer another destination, or reveal the retained source.
764
+ Migration handles one selected draft at a time, so a partial batch can never
765
+ silently authorize the remaining drafts.
766
+
688
767
  Every complete-skill inspection persists its trusted build-derived
689
768
  `inspector_digest` with exactly one outcome: `unchanged`, `redacted`
690
769
  (source-redacted), `positive_recovery_need`, or `operational_failure`. Only a