Description

The audit skill already emits insights (durable/time-bound). Extend that schema to capture the richer analysis requested: historical/era context (the 2010-2015 moment), conference + topic context, interviewee context, “lessons for now,” followup questions, short-worthy quote timestamps, and cross-interview link anchors. Update the audit prompt (backlog/audit/outbox generation) to produce the extended fields, keeping backward compatibility with already-ingested insights.

Acceptance Criteria

Implementation Plan

Scope

Extend the ONE canonical audit path only. Leave bin/archive/modules/enrich.rb and bin/cerebral_enrichment.rb untouched — they are direct-LLM scripts TASK-242 is retiring; do not spread the schema onto engines about to be deleted.

Investigation findings

Extended schema (all additive/optional → backward compatible; add schema_version: 2, absence = v1)

Files to touch

  1. src/generators/transcript_processor.rb — extend SYSTEM_PROMPT OUTPUT SCHEMA + rules: quote verbatim only; DO NOT invent timestamp (leave absent unless diarized turns supplied); context summaries grounded in transcript, mark uncertain: true for anything not directly stated.
  2. .gemini/skills/transcript-conversational-audit/SKILL.md — update step 2 generated-field list.
  3. bin/ingest_audit.rb — persist new top-level keys (context, lessons_for_now, followup_questions, cross_links, schema_version) alongside existing four.
  4. Rakefile transcript:process apply block (~L335) — same additive persistence.
  5. Validator — extend rake validate:audit_transcripts (Generators::ArchiveManager::TranscriptAuditor) or add bin/validate_insight_schema.rb wired into validate:all: new fields well-formed when present; v1 records (statement/type/confidence only) still pass (AC#3 backward compat); assert no timestamp present unless a diarized turn exists.

Verify

rake audit:prepare[slug] → generate → rake audit:ingest[slug] on 2-3 FRESHLY audit-processed slugs (not the stale near-duplicate enrich.rb output). Validator green on both new + existing v1 files. rake build clean.

Definition of Done