Skip to content

File formats

Index of every YAML and markdown artifact the tool reads or writes. Each entry names where it lives, which stage owns it, and links to the spec for full field details.

Every YAML file carries schema_version as its first key — see schema versioning.

Wiki repo

.wiki-context.yaml

  • Location — wiki root.
  • Owner — hand-maintained by the user.
  • Purpose — setting name, description, naming conventions, interpretation defaults, recurring speakers.
  • Detailscontext pipeline.

.transcription-corrections.yaml

  • Location — wiki root.
  • Owner — tool-maintained via promote-correction; hand-editable.
  • Purpose — global phonetic / mishearing fixes applied to all sources.
  • Detailsentity model.

sources/<source_id>/transcript.en.srt

  • Owner — tool-fetched or user-supplied; never rewritten.
  • Purpose — raw transcript evidence for every downstream fact.

sources/<source_id>/info.yaml

  • Owner — tool, with interactive context step filling in user-supplied fields.
  • Purpose — URL, title, duration, caption type, session date, per-source context.
  • Detailscontext pipeline.

sources/<source_id>/reading.md

  • Owner — tool (written to wiki when the reading-review engine commits with every segment decided).
  • Purpose — segmented, attributed, bulleted reading of the transcript. Frontmatter carries name_corrections, default_speaker, session_date, source_*. File presence is the approval gate.
  • DetailsStage 1: reading.

<category>/<slug>.yaml

  • Location — one of characters/, locations/, factions/, events/, items/, concepts/.
  • Owner — tool (created atomically on first approved fact); hand-editable as the designated post-approval edit surface.
  • Purpose — canonical name, aliases, and facts for a single entity. The source of truth for entity state.
  • Detailsentity model.

<category>/<slug>.md

  • Owner — tool, regenerated by the summarizer.
  • Purpose — readable prose view of an entity, with citations back to sources.
  • DetailsStage 4: summarizer.

index.md

  • Owner — tool.
  • Purpose — auto-generated table of contents.

Tool state directory

~/.auto-lorebook/config.yaml

  • Owner — user.
  • Purpose — model selection, wiki repo path, API key env var name.
  • Detailsinstallation.

~/.auto-lorebook/pending/<ingest_id>/reading/structure.yaml

  • Stage — Stage 1a output.
  • Purpose — segments, speaker attribution, sub-segment overrides, uncertainty flags. Intermediate artifact; retained as audit through ingest lifetime.
  • DetailsStage 1a.

~/.auto-lorebook/pending/<ingest_id>/reading/reading.yaml

  • Stage — Stage 1b output; sidecar.
  • Purpose — session metadata: default_speaker, name_corrections, session_date. Preserved across regenerations.
  • DetailsStage 1b.

~/.auto-lorebook/pending/<ingest_id>/reading/segments/<segment_id>.md

  • Stage — Stage 1b output; per-segment.
  • Purpose — YAML frontmatter (segment metadata, segment_status) plus pre-rendered bullet body. Assembled into the wiki-side reading.md at approval time.
  • Detailsreading assembly.

~/.auto-lorebook/pending/<ingest_id>/plan.yaml

  • Stage — Stage 2 output.
  • Purpose — entity resolutions, new-entity proposals, routed claims. No filesystem side effects.
  • DetailsStage 2: planner.

~/.auto-lorebook/pending/<ingest_id>/proposals/<proposal_id>.yaml

  • Stage — Stage 3 output.
  • Purpose — one proposed fact per file, with verbatim span, corrections applied, locator, and routing metadata.
  • DetailsStage 3: extractor.

Staleness hashes

Every tool-generated YAML or markdown carries an inputs block with SHA-256 hashes of the inputs that produced it. See staleness.

Hand-edit surfaces

Only these files are intended as hand-edit surfaces:

  • pending/<id>/reading/reading.yaml — before approval. Edit name_corrections and session_date.
  • pending/<id>/reading/segments/seg-NNN.md — before approval. Edit bullet body text and timestamps. (Per-segment interactive editing lands in a future slice; currently the assembled preview is read-only.)
  • <category>/<slug>.yaml — after approval. Edit facts, aliases, sections, superseded_by.

Hand-edits to intermediate artifacts (structure.yaml, plan.yaml, proposal YAMLs) are not detected as staleness signals; they are not supported edit surfaces.