Back to notes
The Tesseract MemoryTechnical note

Rebuilding lesson sources from repaired transcripts

Rebuilds now use usable transcript repairs before trying another import, while shared media checks exclude text attached to a replaced video or file.

Topics

Use the repair before requesting the same import again

Some lessons had usable manual transcripts while automated caption imports were still failing. The rebuild queued another remote import before looking for manual or managed text, and could return without rebuilding the segments and chunks needed downstream.

The job now selects a preferred ready transcript version and checks that it contains usable text or nonempty chunks. If usable material exists, canonical ingestion and the guide and embedding jobs can proceed. If not, transcript acquisition is still required.

A ready flag doesn't establish usable, current text

A source marked ready can still be empty. One regression creates that state and expects transcript repair, with no study-guide generation. The status alone must not skip acquisition.

A transcript can also belong to media that has since been replaced. The shared material service compares media-derived sources with the lesson's current video or uploaded file. Guide assembly and assistant retrieval both use that check to exclude stale chunks.

Manual transcripts are explicitly supplied lesson material rather than automatically linked to a remote-media ID. Reusing one doesn't verify that it accurately describes the video; that remains part of the source review.

What the development record established

The June report records failing-then-passing tests for manual transcript reuse and empty ready sources, followed by regressions for media replacement and stale chunks in both consumers. Those are dated local results. The repair changes the pipeline's ordering and source checks; it doesn't create missing transcripts or establish a fresh run here.

Reuse transcript evidence only when it is usable and relevant

Rebuild ordering checks material before reacquisition; both downstream consumers reject stale media-derived evidence.

Direct callAsync taskBlocked / denied
Ingestion orchestration
Evidence checks
Downstream consumers

Scroll or drag the background to move. Use the zoom buttons to resize.Arrow keys move between components. Enter selects.

Choose a component to explore

Select a numbered component on the map or use the component menu. Its details and connections will appear here.

No component selected.

All connections (11)
  1. 01 · RebuildLessonIngestion05 · Existing transcript evidence checkCheck existing evidence · Direct call
  2. 05 · Existing transcript evidence check04 · Ready transcript versionsResolve ready material · Direct call
  3. 05 · Existing transcript evidence check06 · Current-media matching helperCheck source relevance · Direct call
  4. 05 · Existing transcript evidence check02 · Transcript acquisition jobMissing or empty evidence · Async task
  5. 05 · Existing transcript evidence check03 · Canonical ingestionReuse usable material · Direct call
  6. 03 · Canonical ingestion07 · GenerateLessonStudyPackDispatch downstream work · Async task
  7. 07 · GenerateLessonStudyPack08 · StudyPackEvidenceAssemblerAssemble lesson evidence · Direct call
  8. 08 · StudyPackEvidenceAssembler06 · Current-media matching helperValidate source identity · Direct call
  9. 09 · CanonicalHybridRetrievalService06 · Current-media matching helperValidate source identity · Direct call
  10. 06 · Current-media matching helper08 · StudyPackEvidenceAssemblerExclude stale source · Blocked / denied
  11. 06 · Current-media matching helper09 · CanonicalHybridRetrievalServiceExclude stale chunks · Blocked / denied