/** * Single-writer old-store migration (L1, spec 6.2). * * Bounded deterministic transfer: each old entry is validated against * trusted owner/session metadata, active key bytes stay stable, every import * gets a durable migration ack receipt, and invalid or ambiguous entries are * quarantined without cross-binding caller input. Freezing and stopping the * old minting writer is companion-owned (h-cond); no dual writer remains * after cutover. Rollback reads the gateway's committed records. */ import type { LaunchRoutingContract } from '@sentropic/llm-mesh'; import { GatewaySessionService } from '../session-service.js'; export interface OldSessionEntry { readonly ownerScopeRef: string; readonly workspaceRef: string; readonly clientSessionRef: string; readonly keyMaterial: string; readonly expiresAt: string; readonly profiles?: readonly string[]; readonly models?: readonly string[]; readonly mappingRevision?: string; readonly routingContract?: LaunchRoutingContract; } export type QuarantineReason = 'invalid-owner' | 'short-key' | 'expired' | 'ambiguous-duplicate'; export interface QuarantinedEntry { readonly entry: OldSessionEntry; readonly reason: QuarantineReason; } export interface MigrationResult { readonly imported: string[]; readonly quarantined: QuarantinedEntry[]; readonly ack: { readonly receiptIds: string[]; readonly at: string; readonly oldWriterStop: 'companion-owned'; }; } export declare const migrateOldSessions: (options: { service: GatewaySessionService; entries: readonly OldSessionEntry[]; routingContract?: LaunchRoutingContract; }) => Promise; //# sourceMappingURL=session-migration.d.ts.map