From 423eb3f54a4ecc9b2da487452650d6fca0e47507 Mon Sep 17 00:00:00 2001 From: Eugene Eisenstein Date: Thu, 3 Sep 2026 16:44:08 -0400 Subject: [PATCH] refactor(sdk): drop message content from TypeScript evidence types Follows the server: `EvidenceMessageRef` reports identity and provenance, not content. Callers fetch a message by id when they need its text. Co-Authored-By: Claude Opus 5 (1M context) --- sdks/typescript/__tests__/evidence.unit.test.ts | 1 - sdks/typescript/src/types/api.ts | 9 +++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/sdks/typescript/__tests__/evidence.unit.test.ts b/sdks/typescript/__tests__/evidence.unit.test.ts index 8b6711e1..db50b92c 100644 --- a/sdks/typescript/__tests__/evidence.unit.test.ts +++ b/sdks/typescript/__tests__/evidence.unit.test.ts @@ -26,7 +26,6 @@ const EVIDENCE: Evidence = { id: 'msg-sentinel', session_id: 'session-1', peer_id: 'alice', - content_preview: 'I drink a lot of coffee', created_at: '2026-01-01T00:00:00Z', }, ], diff --git a/sdks/typescript/src/types/api.ts b/sdks/typescript/src/types/api.ts index c748fad6..913dc49d 100644 --- a/sdks/typescript/src/types/api.ts +++ b/sdks/typescript/src/types/api.ts @@ -89,12 +89,17 @@ export interface EvidenceObservation { source_ids: string[] } -/** A message the dialectic read while answering. */ +/** + * A message the dialectic read while answering. + * + * Identity and provenance only — no content. Fetch the message by `id` when + * you need its text; evidence is for auditing what was read, not for reading + * messages in bulk. + */ export interface EvidenceMessageRef { id: string session_id: string peer_id: string - content_preview: string created_at: string }