migrate_corpus()

Converts a legacy corpus in place, idempotently.

Usage

Source

migrate_corpus(store)

Adds the event_uuid column (backfilled from the legacy origin_uuid) and the triage.fidelity column (existing verdicts were judged on baked summaries, so they default to 'summary' and stay re-judgeable via triage --refresh-summary), then rewrites every legacy context_json snapshot into a cc-transcript.context/1 document.

Parameters

store: FeedbackStore
The open feedback store to migrate.

Returns

MigrationReport
The pass’s migrated/skipped row counts.