added
This commit is contained in:
commit
4eaec52904
55 files changed
+5044
No files matched your search
@@ -0,0 +1,53 @@
|
||||
# Architecture and data contracts
|
||||
|
||||
## Default local-review profile (0.2.0)
|
||||
|
||||
The primary workflow starts with three files, metadata intake, local generation, then human review. `folder_builder.py` implements `intake.schema.json` and `folder-export.schema.json`, preserving unknowns without requiring invented URLs or prior approval. Originals remain unchanged; TXT/VTT differences become review notes. All output is draft. Intake and structure-plan JSON are editable inputs.
|
||||
|
||||
The remaining sections describe the stricter optional public exporter retained from 0.1.0. Its catalog/manifest contracts and gates do not apply to ordinary local drafts. See [folder workflow](workflow.md) and [later public export](public-export.md).
|
||||
|
||||
## Sources and build direction
|
||||
|
||||
The original recording is the evidence for what happened. A reviewed VTT is the authoritative timed text representation. TXT mirrors its words. `media.json` owns recording facts, rights, publication clearance, and transcription provenance. `plan.json` owns semantic boundaries, stable identities, authored interpretations, citations, chapters, and review metadata. A collection catalog lists the intended release set.
|
||||
|
||||
Generated files are disposable derivatives. Never edit them as source. A build has no wall-clock timestamps: meaningful dates come from authored metadata, so identical inputs produce identical bytes. Exact source hashes detect transcription/metadata changes; exported checksums detect derivative changes.
|
||||
|
||||
| Implemented | Deliberately separate / future |
|
||||
| --- | --- |
|
||||
| Reviewed VTT/TXT ingestion and alignment | STT vendor orchestration and downloads |
|
||||
| Authored semantic plans; deterministic source text | Automatic LLM interpretation and review |
|
||||
| Timed citations, chunks, grounded Q&A, chapters | OCR, slides, scene/frame descriptions, visual evidence |
|
||||
| Static companion pages, JSON-LD, catalog, sitemap | Deployment, search-engine validation, video sitemap extension |
|
||||
| Local keyword search with citations | Hosted API, MCP runtime, authentication, rate limits |
|
||||
| Checksummed input/output and explicit versions | Full CIS envelope, registry, graph, policy service, tombstones |
|
||||
| Portable JSON for downstream retrieval | Vector database, embeddings, hybrid ranking, evaluation corpus |
|
||||
|
||||
## Minimum semantic projection
|
||||
|
||||
This uses the guide repositories' lightweight CIS approach rather than copying the entire advanced envelope. Each chunk has an authored `chunk_id`, conceptual `knowledge_id`, integer version, prior IDs when superseding, label, heading path, summary, tags, order, exact transcript text, cue IDs, start/end seconds, speakers when present, and citations. Document-level rights and the input fingerprint apply to all chunks and Q&A.
|
||||
|
||||
IDs are namespaced by media ID in the examples. They are assigned during authoring and preserved across compatible edits. They are not text hashes or timecodes. The builder enforces uniqueness within a recording; a future cross-corpus registry must reconcile conceptual identity explicitly. `supersedes` is authored lineage, not a validated remote relationship.
|
||||
|
||||
Each citation includes media/cue IDs, start/end seconds, a canonical transcript anchor, and a native player link when available. Transcript cue IDs are revision-sensitive locators, so archive the input hash/version with a citation when exact historical reconstruction matters. Keep old approved releases privately as needed; public permanent version URLs are a future hosting decision.
|
||||
|
||||
## JSON contracts
|
||||
|
||||
The seven public-export schemas plus the two local intake/export [JSON Schemas](../schemas/README.md) use Draft 2020-12 and reject unknown fields. Runtime validation also checks relationships that JSON Schema alone cannot establish: identity alignment, sequential cue coverage, time bounds, exact evidence quotes, chapter ordering, TXT/VTT equality, review hashes, URL safety, output boundaries, and publication clearance.
|
||||
|
||||
`qa.json` may contain zero answers. A claim in a transcript is attributed speech, not independent verification. Q&A can synthesize multiple cues, but each supporting quote must be a literal substring of its referenced cue. The builder cannot mechanically prove entailment; review is required.
|
||||
|
||||
`chapters.json` uses the Podcast Namespace chapter format with `version: 1.2.0` and seconds as numbers. It is separate from our transcript schema and from the namespace's alternative transcript JSON format. Those formats use different field names; do not advertise our `transcript.json` as a Podcast Namespace JSON transcript. Use the exported TXT/VTT for podcast links today.
|
||||
|
||||
## Discovery and playback
|
||||
|
||||
The public URL root is the contents of a build directory. `/media/<id>/` contains the human page and relative alternate links. JSON artifact URLs share that canonical path. `/ai-index.json` routes to all release items and their artifacts. `llms.txt` is optional guidance, while `sitemap.xml` is a standard URL sitemap. Neither is an access-control mechanism or a guarantee that an AI will fetch content.
|
||||
|
||||
Native `content_url` playback uses HTML video/audio and `?t=<seconds>` on the companion page. Its small player script seeks after metadata loads. A source URL's CORS, media availability, MIME, codecs, and range support must be checked at publication. Embed-only media gets an outbound recording link and transcript anchors; it does not claim universal external-platform seeking. Integrate a host's supported player API explicitly if needed.
|
||||
|
||||
Video chapters become Schema.org `Clip` records only for a native player, where the builder actually implements time links. Audio emits `AudioObject`. Generic Schema.org validity is distinct from eligibility for a particular search feature. No `FAQPage`, `SeekToAction`, live API, or MCP capability is advertised just because a Q&A file or interface design exists.
|
||||
|
||||
## Privacy and rights
|
||||
|
||||
Raw source locations never appear in the export. The public `media.json` omits local transcript paths. It still contains reviewed creator/provenance and rights facts; review those for intended publication. VTT is copied intact, including NOTE blocks, so remove private annotations before clearance. No automatic PII redactor is claimed.
|
||||
|
||||
This first profile is for fully public, cleared content. It is not a private meeting vault or multi-tenant permission system. A private or paid corpus needs an access layer that checks policy before any list/search/fetch response, including snippets and Q&A; static obscurity and robots directives are insufficient.
|
||||
@@ -0,0 +1,26 @@
|
||||
# Proposed API and MCP adapters
|
||||
|
||||
The static files and CLI search are implemented. [openapi.json](../interfaces/openapi.json) and [mcp-tools.json](../interfaces/mcp-tools.json) are design contracts only; there is no listening API, MCP transport, service deployment, or service discovery advertisement. Do not register them with clients as available endpoints.
|
||||
|
||||
## Read-only surface
|
||||
|
||||
| Need | Proposed HTTP operation | Proposed MCP tool |
|
||||
| --- | --- | --- |
|
||||
| Browse recordings | `GET /media` | `list_media` |
|
||||
| Find a passage or answer | `GET /search?q=...&limit=5` | `search_media` |
|
||||
| Fetch recording context and artifact routes | `GET /media/{media_id}` | `get_media` |
|
||||
| Fetch one source-cited conceptual unit | `GET /media/{media_id}/chunks/{chunk_id}` | `get_media_chunk` |
|
||||
|
||||
Use opaque media/chunk IDs as identifiers; URL-encode IDs containing colons. Return the same IDs, text, time ranges, canonical transcript URLs, rights, and input fingerprint as the approved export. Search returns a bounded `results` array matching the local CLI records. No matches returns an empty array, never an invented answer. Fetching an unknown or withdrawn item returns a clear not-found response.
|
||||
|
||||
An adapter should load only a complete release after checksum/schema verification and use a single release snapshot for each request. Validate parameters, constrain limits, return structured errors, log without private transcripts or credentials, and prevent arbitrary path/URL fetching. Add pagination and deterministic filtering when scale requires them. The initial OpenAPI design is intentionally limited to a small corpus; it is not a deployed production API specification.
|
||||
|
||||
For a restricted corpus, apply access checks before search, snippets, Q&A, list, or fetch; never expose a public index that reveals restricted metadata. This repository's first profile is entirely public. A production adapter also needs authentication decisions, rate limits, CORS, health checks, release refresh, withdrawal handling, and integration tests.
|
||||
|
||||
MCP implementation must support the actual protocol lifecycle, capability negotiation, tool listing/invocation, and error behavior. Tool definitions alone are not a server. No additional network action is implied by a transcript's content.
|
||||
|
||||
## Future embeddings
|
||||
|
||||
Keep vector records downstream of the canonical chunks. Store media/chunk/knowledge IDs, chunk version, source input fingerprint, exact embedded-text hash, embedding model/version and dimensions, language, and rights/access filters. Regenerate when text/model changes; invalidate removed or restricted content. Decide whether to index Q&A separately and preserve its source citations.
|
||||
|
||||
Use a realistic question set to compare keyword, semantic, and hybrid retrieval. Measure retrieval coverage and citation correctness before choosing infrastructure. Never replace source text with an embedding, or use vector similarity as proof that an answer is supported.
|
||||
@@ -0,0 +1,71 @@
|
||||
# Recording-to-discovery workflow
|
||||
|
||||
## 1. Establish source and publication facts
|
||||
|
||||
Create one source folder per stable recording ID, for example `collection/annual-webinar/`. Copy `templates/media.json` into it as `media.json`. Put reviewed, publication-safe `transcript.txt` and `transcript.vtt` alongside it. Store only material you are authorized to expose in a public repository. Keep the original recording and unredacted STT output in private storage, with an operator-side mapping to the media ID.
|
||||
|
||||
Fill in every template field, including the real duration in seconds, language, stable media URL or embed URL, published date, meaningful update date, creators, transcription tool/model when known, and rights statement. Use explicit `null` for unknown optional facts. `recorded_at` and `published_at` are different facts. Do not fabricate an original upload date from a later build date.
|
||||
|
||||
Set a stable collection `site_url`, such as `https://media.your-domain.example`, and a canonical URL exactly matching `<site_url>/media/<media_id>/`. A host URL identifies the bytes or player; the canonical URL identifies the companion page. Mirrors retain the recording's stable ID. Edited recordings with shifted timelines need a distinct media ID and an explicit migration record.
|
||||
|
||||
Set `synthetic` to false for real recordings and `allow_synthetic` to false in real catalogs. The supplied template intentionally blocks public output until rights, privacy, and consent are cleared. Its example URLs, dates, and names must be replaced.
|
||||
|
||||
## 2. Review STT and align text
|
||||
|
||||
Run the STT tool you already use; there is no paid transcription integration here. Preserve its raw output privately. Review public copies against the recording, especially names, numbers, unfamiliar vocabulary, speaker attribution, and low-quality audio.
|
||||
|
||||
VTT supplies the timed source. TXT supplies the portable reading copy and must match the normalized cue words exactly, including any speaker prefixes that appear as literal text. WebVTT `<v Speaker>` markup is extracted as speaker metadata and is not part of TXT. If your TXT has timestamps or speaker prefixes that the VTT does not, reconcile the reviewed copies before building. A multilingual translation is a separate source set and review, not a silent replacement.
|
||||
|
||||
Supported VTT: UTF-8/BOM, LF/CRLF, `HH:MM:SS.mmm` or `MM:SS.mmm`, optional cue identifiers/settings, NOTE blocks, multiline text, voice labels, basic emphasis/class/language tags, and HTML entities. The parser rejects overlapping/out-of-order cues, multiple speakers inside one cue, STYLE/REGION blocks, header metadata, ruby, and inline karaoke timestamps. Normalize these formats with a reviewed adapter rather than discard their meaning. Rolling captions often require deduplication and resegmentation. Cues must fit within the declared duration. Gaps are allowed; they are not inferred speech.
|
||||
|
||||
No cue-level confidence is invented. Missing speaker names remain null. Literal prefixes such as `Speaker 1:` remain source text unless converted to reviewed voice markup. Do not infer real identities from voices.
|
||||
|
||||
## 3. Draft semantic structure
|
||||
|
||||
```powershell
|
||||
python scripts/media_builder.py draft --manifest collection/annual-webinar/media.json --plan collection/annual-webinar/plan.json
|
||||
```
|
||||
|
||||
This creates one explicitly unreviewed starter chunk covering all cues. It performs no semantic inference. Ask an AI/editor to split this into coherent topic units using the repo-local skill and recording context. The `cue-000001` IDs refer to cue sequence in the normalized transcript, not permanent knowledge identities. Cue IDs can change after transcript edits, which invalidate the review hash.
|
||||
|
||||
For each chunk, author `chunk_id`, `knowledge_id`, `version`, `supersedes`, title, heading path, summary, a few useful tags, and a contiguous ordered cue list. Every cue must belong to exactly one chunk. This base layer has no overlapping windows. Future RAG adapters can add context windows without changing these canonical chunks. Keep long single-topic chunks when needed; no fixed token count is required.
|
||||
|
||||
Q&A should answer plausible retrieval questions, including what to do, why it matters, and stated limitations. `answer_type` distinguishes a direct extract from synthesis. Each answer needs at least one exact quote with a `chunk_id` and `cue_id`; cross-chunk synthesis cites all supporting chunks. An exact quote is mechanically checked; whether it supports the answer is a human/editorial judgment. Leave Q&A empty when there is no useful grounded answer. Never turn an unanswered meeting question into a claimed answer or invent a to-do owner/date.
|
||||
|
||||
Choose chapters for navigation, independently of chunk count. Each chapter identifies its first and last source cue. Chapters may omit a greeting or other nonessential navigation section; chunks still cover all cues. Chapter labels and summaries are interpretations requiring review.
|
||||
|
||||
## 4. Approve this exact input set
|
||||
|
||||
```powershell
|
||||
python scripts/media_builder.py signature --manifest collection/annual-webinar/media.json --plan collection/annual-webinar/plan.json
|
||||
```
|
||||
|
||||
After inspecting the recording and plan, paste the returned `input_sha256` into `plan.json` → `review.input_sha256`. Set `review.status` to `approved`, identify the reviewer, and record an ISO 8601 `reviewed_at` with timezone. Do not use an AI's name to imply a human approved real material. Clear consent/privacy and confirm redistribution rights in `media.json` before computing the final hash.
|
||||
|
||||
The hash covers canonical manifest and plan data (excluding the review block), the exact TXT/VTT bytes, and builder version. Changing any of these invalidates approval. Changing only review metadata does not. This is a workflow integrity check, not authentication or a signature authority. Automated validation cannot determine copyright ownership, consent, factual truth, or semantic entailment.
|
||||
|
||||
```powershell
|
||||
python scripts/media_builder.py validate --manifest collection/annual-webinar/media.json --plan collection/annual-webinar/plan.json
|
||||
```
|
||||
|
||||
## 5. Build and retrieve
|
||||
|
||||
Copy `templates/catalog.json` to `collection/catalog.json`, edit its title/site URL, and list the source manifest and plan paths relative to the catalog. Catalog paths must stay inside the catalog folder; transcript paths stay inside their media source folder. Keep generated output outside those media source folders.
|
||||
|
||||
```powershell
|
||||
python scripts/media_builder.py build --catalog collection/catalog.json --output build/release-001
|
||||
python scripts/media_builder.py verify --root build/release-001
|
||||
python scripts/media_builder.py search --root build/release-001 --query "equipment maintenance" --limit 5
|
||||
```
|
||||
|
||||
All catalog items must pass before output is written. Files are assembled in a temporary sibling directory and renamed into a new output directory. Existing outputs are never overwritten. Failures preserve sources and prior releases. The output checksum receipt covers every exported file except the receipt itself. It detects accidental changes, not malicious replacement of both files and receipt.
|
||||
|
||||
Search reads only a verified export, matches Unicode word tokens, ranks by distinct query-token matches, and returns chunks or Q&A plus citations and rights. This is a small-corpus keyword baseline, not vector retrieval or a relevance guarantee. No network calls, paid inference, or embeddings occur.
|
||||
|
||||
## 6. Update and retire
|
||||
|
||||
Minor corrections preserve semantic IDs; increment the chunk version when its text or meaning changes. A split or merge gets new chunk/knowledge IDs and records prior IDs in `supersedes`. This version does not maintain an identity registry or automatically audit historical version increments; review continuity against the previous release. Build a new complete catalog release, not an incremental append to old public files.
|
||||
|
||||
For removal, omit the item from the next release, remove all old public copies/hosted captions, purge caches and downstream retrieval stores, and record the decision privately where appropriate. Replacing local output alone does not revoke an already published copy. Redirects, tombstones, and change feeds are proposed additions, not implemented lifecycle services.
|
||||
|
||||
Inspect the generated page and data, then follow [the publication workflow](../PUBLICATION_WORKFLOW.md). Publish only the chosen complete output directory; never upload the repository root.
|
||||
@@ -0,0 +1,39 @@
|
||||
# Research and adoption decisions
|
||||
|
||||
Researched 2026-10-17 using official specifications and platform documentation. These sources inform the design; they do not show that a specific AI system will index or cite the eventual site. No public media collection or service has been deployed during template creation.
|
||||
|
||||
## Portable media representation
|
||||
|
||||
- **WebVTT:** timed text cues and voice annotations provide a portable source for captions and evidence locators. Keep reviewed TXT alongside VTT for simple consumption. This builder supports a documented subset and rejects formats needing normalization. [W3C WebVTT](https://www.w3.org/TR/webvtt1/).
|
||||
- **Schema.org:** `AudioObject` and `VideoObject` support a transcript property; media identity and metadata belong with the recording. Emit these types on companion pages. [AudioObject](https://schema.org/AudioObject).
|
||||
- **Video discovery:** Google's guidance includes `VideoObject`, chapter `Clip` records, and `SeekToAction`. Adopt recording metadata and chapter clips where actual seeking works. Do not emit `SeekToAction` for unsupported players. Metadata eligibility, crawlability, thumbnails, prominence, and playback still need live checks; schema output alone does not establish a rich result. [Google video structured data](https://developers.google.com/search/docs/appearance/structured-data/video).
|
||||
- **Video sitemaps:** a video extension can describe video assets beyond a basic page sitemap. Keep it as a next step after real hosting and thumbnail URLs are selected; this version emits the ordinary URL sitemap only. [Google video sitemaps](https://developers.google.com/search/docs/crawling-indexing/sitemaps/video-sitemaps).
|
||||
- **Media fragments:** the W3C defines temporal fragment addressing, but arbitrary hosted players cannot be assumed to support it. Use actual companion-player seeking for native sources and transcript anchors for embed-only sources. [W3C Media Fragments](https://www.w3.org/TR/media-frags/).
|
||||
|
||||
## Existing platform patterns
|
||||
|
||||
| Platform or system | Observed pattern | Adopt here |
|
||||
| --- | --- | --- |
|
||||
| Podcast Namespace | RSS links to typed transcript files and an external chapter JSON file | Export portable TXT/VTT and chapter JSON; RSS integration remains separate |
|
||||
| YouTube | Caption-track download is an authorized API operation requiring permission to edit the video | Use owner-authorized caption exports; do not build around arbitrary public-caption downloading |
|
||||
| Zoom cloud recordings | Recording APIs distinguish audio/video, VTT transcripts, and other artifacts such as meeting chat | Import only approved transcript/media exports; chat is not a transcript or automatic publication input |
|
||||
| Vimeo | API documentation exposes text-track management and upload | Retain portable caption tracks; a platform sync adapter needs separate implementation and credentials |
|
||||
| Azure AI Video Indexer | Insights span transcript, OCR, and other audio/visual information | Track visual coverage; later add reviewed visual evidence rather than imply STT captures slides or demonstrations |
|
||||
|
||||
Sources: [Podcast Namespace transcript specification](https://github.com/Podcastindex-org/podcast-namespace/blob/main/docs/tags/transcript.md), [chapter specification](https://github.com/Podcastindex-org/podcast-namespace/blob/main/docs/tags/chapters.md), [chapter JSON format](https://podcasting2.org/docs/podcast-namespace/examples/chapters/jsonChapters), [YouTube caption download](https://developers.google.com/youtube/data/reference/rest/v3/captions/download), [Zoom Meetings API](https://developers.zoom.us/docs/api/meetings/), [Vimeo text-track uploads](https://developer.vimeo.com/api/upload/texttracks), [Azure Video Indexer insights](https://learn.microsoft.com/en-us/azure/azure-video-indexer/insights-overview).
|
||||
|
||||
Vimeo's full documentation body was not extractable in this research session; its official search result supports only the text-track/upload pattern above. No Vimeo behavior or integration was tested. Zoom's compliance archive API has different artifact formats from cloud recording; inspect the exact export route rather than treat every `TRANSCRIPT` type as VTT.
|
||||
|
||||
## AI retrieval and interfaces
|
||||
|
||||
MCP describes tools with names, descriptions, and JSON Schema inputs; a server must implement the protocol and invocation behavior. Our [interface designs](interfaces.md) define proposed read-only adapters over the same reviewed artifacts. A JSON file listing tools is not a functioning MCP server. [MCP tools specification](https://modelcontextprotocol.io/specification/2025-11-25/server/tools).
|
||||
|
||||
`llms.txt` is a proposal for concise agent guidance and linked content, separate from sitemaps and crawler rules. Use it as a small routing guide alongside the machine catalog, without claiming universal adoption or access enforcement. [llms.txt proposal](https://llmstxt.org/).
|
||||
|
||||
Design inference: chunks and cited Q&A can support useful list/search/fetch interfaces before embeddings exist. Start with directly retrievable JSON and measurable keyword search. Add hybrid/vector retrieval when realistic questions expose a demonstrated gap. RAG is a downstream use of the canonical material, not the defining storage format.
|
||||
|
||||
## Alignment with the guide repositories
|
||||
|
||||
The current local AI Knowledge Structure guide defines maturity profiles and separates authoring, semantic artifacts, discovery, runtime policy, and retrieval. The current Structured Website Builder uses authored chunk identities, heading paths, order, lightweight rights, Q&A, HTML alternate links, and generated discovery files. This template preserves those choices and adds media timing and evidence relationships.
|
||||
|
||||
The guide's advanced CIS identity/lineage ideas remain useful design context, but this template implements a small explicit projection. It does not copy site-specific branding, content licenses, hosting settings, Poppy capability declarations, contact APIs, or private operational details. New interfaces are advertised only after implementation and verification.
|
||||
@@ -0,0 +1,13 @@
|
||||
# Initial implementation validation
|
||||
|
||||
Validated 2026-10-17 in the canonical local repository. Version 0.1.0.
|
||||
|
||||
- 27 regression tests passed, covering audio/video builds, source citations, cross-chunk Q&A, deterministic output, review invalidation, TXT/VTT alignment, timing errors, privacy/rights gates, unsupported captions, source path boundaries, output preservation, tamper detection, HTML escaping, and partial-build refusal.
|
||||
- Both synthetic example manifests validated and built together into `build/demo`. Output checksums verified from that directory.
|
||||
- Repository JSON parsed, all seven JSON Schemas checked, local Markdown links and manifest paths resolved, and local OpenAPI schema references resolved.
|
||||
- Repo-local skill passed the skill-creator validator. Source whitespace and a targeted high-confidence credential-pattern scan passed. This scan is not a comprehensive security audit.
|
||||
- Keyword retrieval returned source-cited chunks and a cross-chunk answer with expected timed transcript anchors. Generated HTML and its embedded JSON-LD were parsed and checked against the JSON-LD export.
|
||||
|
||||
No real recording was supplied. Audio recognition quality, human factual review, participant consent, real media playback, hosted caption behavior, external API/MCP service behavior, deployment, and search-engine or AI indexing were not verified. The examples contain placeholder media URLs and synthetic review metadata.
|
||||
|
||||
All source files remain uncommitted. No Git push, remote repository setting change, or publication was performed. Repository licensing remains unselected.
|
||||
@@ -0,0 +1,35 @@
|
||||
# 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.
|
||||
Reference in new issue
Block a user