Skip to main content

Class: ConversationVerifier

Defined in: packages/agentos/src/core/provenance/verification/ConversationVerifier.ts:30

Constructors

Constructor

new ConversationVerifier(ledger): ConversationVerifier

Defined in: packages/agentos/src/core/provenance/verification/ConversationVerifier.ts:33

Parameters

ledger

SignedEventLedger

Returns

ConversationVerifier

Methods

getProvenanceSummary()

getProvenanceSummary(conversationId): Promise<{ chainLength: number; conversationId: string; hasGenesis: boolean; humanInterventions: number; lastEventTimestamp: string | null; messageEvents: number; revisionEvents: number; tombstoneEvents: number; totalEvents: number; }>

Defined in: packages/agentos/src/core/provenance/verification/ConversationVerifier.ts:138

Get a summary of provenance status for a conversation. Lighter than full verification - just counts and metadata.

Parameters

conversationId

string

Returns

Promise<{ chainLength: number; conversationId: string; hasGenesis: boolean; humanInterventions: number; lastEventTimestamp: string | null; messageEvents: number; revisionEvents: number; tombstoneEvents: number; totalEvents: number; }>


verifyConversation()

verifyConversation(conversationId, publicKeyBase64?): Promise<ConversationVerificationResult>

Defined in: packages/agentos/src/core/provenance/verification/ConversationVerifier.ts:44

Verify the provenance chain for a specific conversation.

Parameters

conversationId

string

The conversation ID to verify.

publicKeyBase64?

string

Optional public key for signature verification.

Returns

Promise<ConversationVerificationResult>

Detailed verification result including conversation-specific metadata.


verifyMessage()

verifyMessage(messageId, publicKeyBase64?): Promise<VerificationResult & object>

Defined in: packages/agentos/src/core/provenance/verification/ConversationVerifier.ts:97

Verify a single post/message within a conversation. Checks that the message event exists and its chain position is valid.

Parameters

messageId

string

The message ID to verify.

publicKeyBase64?

string

Optional public key for signature verification.

Returns

Promise<VerificationResult & object>