Summary
No API endpoints for pinning or setting importance. These exist in CLI but not HTTP server.
Proposed
POST /memory/pin {"id": "uuid", "pinned": true/false}
POST /memory/importance {"id": "uuid", "importance": 0.9}
Acceptance Criteria
Functional
Verification (CMO can run without reading code)
Tests
Priority
Low — could be superseded by PUT /memory (#658).
Dependencies
Could be superseded by #658 (PUT /memory).
Summary
No API endpoints for pinning or setting importance. These exist in CLI but not HTTP server.
Proposed
Acceptance Criteria
Functional
POST /memory/pin— pin or unpin a memoryPOST /memory/importance— set importance (0.0-1.0)Verification (CMO can run without reading code)
curl POST /memory/pin {"id":"<existing>","pinned":true}→ 200, memory now pinnedcurl POST /memory/pin {"id":"<existing>","pinned":false}→ 200, memory unpinnedcurl POST /memory/pin {"id":"<existing>"}(omit pinned) → 200, defaults to pin (toggle on)curl POST /memory/importance {"id":"<existing>","importance":0.85}→ 200, importance = 0.85curl POST /memory/importance {"id":"<existing>","importance":1.5}→ 400 validation errorcurl POST /memory/importance {"id":"<existing>","importance":-0.1}→ 400 validation errorcurl POST /memory/pin {"id":"nonexistent"}→ 404Tests
Priority
Low — could be superseded by PUT /memory (#658).
Dependencies
Could be superseded by #658 (PUT /memory).