Files
2026-10-18 09:21:12 -06:00

42 lines
4.8 KiB
Markdown

# Folder-first intake, build, and review
The primary instructions and metadata checklist are in [README](../README.md). Start with the user's folder containing media, TXT, and VTT. Do not require a site, catalog, canonical URL, or preapproved transcript to create a local review draft.
## Intake
Use [media-intake](../skills/media-intake/SKILL.md) before [structure-media](../skills/structure-media/SKILL.md). Read supplied metadata first. Inventory exact files, record hashes, parse cues, compare normalized TXT/VTT, and distinguish media duration from final cue time. Filenames may differ. Ask which files to use when multiple sets create ambiguity.
Inspect authorized published source pages and extract only supported facts, with provenance. Do not treat a publication date as a recording date or a public embed as reuse permission. Ask remaining useful questions together using [the checklist](../templates/media-intake.md). Accept partial answers. File dates/titles are candidates; transcript names and statistics are attributed, unverified content. Record provenance in `media-intake.json`. Silence never becomes metadata or approval. Optional unknowns do not block a clearly incomplete local draft after a reasonable opportunity to reply.
Resolve source ambiguity and sensitive exclusions affecting processing first. Set `excluded_cue_ids` only from clear user direction. Excluded cues remain in unchanged originals but are omitted from generated transcript/chunks/Q&A and recorded by ID/count. Keep restricted originals in appropriate private storage.
## Structure
VTT supplies exact words and times. TXT is cross-checked; differences become review issues instead of prompting source rewrites or invented timing. Unsupported/overlapping VTT requires explicit normalization in a separate derivative.
Read the whole transcript. Create coherent topic units useful on their own. Assign stable chunk/knowledge IDs; preserve continuing concepts, increment substantive versions, and record splits/merges with `supersedes`. Every included cue belongs to one chunk. Chapters serve navigation independently.
Generate useful questions with exact supporting quotes. Cross-chunk answers cite every material supporting section. Substring validation proves a quote occurs, not that it entails the answer. Preserve uncertainty and sampling/measurement caveats beside numbers. Do not assign cue-level speaker identities without a source label or reliable mapping from the user.
## Build before review
Use `folder_builder.py build` to write a new immediate subfolder, normally `structured/`. Intake and plan JSON remain editable inputs. The output includes overview, transcript, review checklist, metadata, chunks, Q&A, chapters, draft JSON-LD, routing, and checksum receipt. Everything is draft and not publication ready.
Known facts appear in JSON-LD; missing public URLs, dates, and licenses are omitted. Local citations use transcript anchors and seconds. Chapter JSON omits unknown hosted URLs. No browser or server is required.
Validate source hashes/boundaries, cue coverage/order, times, identities, schema fields, exact quotes, and output checksums. Do not invent human approval to enable a draft build.
Local keyword retrieval weights question/title and summary matches above incidental mentions in a long transcript chunk. Scores are a lexical ranking aid, not confidence or semantic entailment. Inspect representative queries after a real build.
## Review and refine
Return direct links to the output README and review checklist. The user reviews identities/numbers, metadata, chunks, summaries, answers, rights, and missing visual evidence. Apply corrections to intake/plan, preserve continuing IDs, and build a fresh directory such as `structured-002/`. Review does not imply publication or Git push authority.
The [public export workflow](public-export.md) is later and optional, requiring real publication metadata and content/rights clearance. Hosted APIs, MCP, embeddings, publication, and independent fact verification are separate integrations.
## Explicit final approval
Run `folder_builder.py finalize` only after the user approves the specific draft. Supply source/output paths, intake/plan, reviewer, timezone-aware approval-record timestamp, and explicit evidence. The command refuses changed inputs, preserves the draft, updates the source plan's review state, and writes the approved package and `approval.json` into a new sibling folder. Unknowns and source caveats remain visible.
`verify` and `search` accept final approved packages. Final verification checks output/source hashes, intake and semantic-plan fingerprints, and reviewer/time/input binding. These records support reproducibility and workflow review; they are not authenticated signatures. A materially edited intake or semantic plan invalidates final verification. Create a new reviewed draft instead of modifying a final package in place.