This commit is contained in:
eddiesoehnel committed 2026-10-19 12:56:31 -06:00
1 parent df7571392e
commit a47b915ed5
27 files changed
+135 -1352

No files matched your search

+14
View File
@@ -15,3 +15,17 @@ recordings/
*.m4a
*.flac
*.webm
# Operational evidence and recording-specific assets belong outside the template.
/tasks/
/task-records/
/runtime/
/structured/
/structured-final*/
media-intake.json
structure-plan.json
build-receipt.json
approval.json
*.ticket.json
*.receipt.json
*.log
+1 -1
View File
@@ -2,7 +2,7 @@
Read `README.md`, `AUTHOR.md`, `repository-variables.json`, `repository.json`, `AGENTS.md`, and `skills.md`; use `content-index.json` to retrieve individual guides. Default: original media + TXT + VTT in a user folder, metadata interview, local draft build, then human review. Use `skills/media-intake/SKILL.md`, followed by `skills/structure-media/SKILL.md`. Intake and structure-plan JSON are editable inputs; `structured/` and approved final packages are derived. The public exporter retains separate contracts and publication requirements.
Preserve semantic IDs, unrelated work, all three originals, and prior output. Gather useful missing metadata upfront; accept partial answers and unknowns. Local drafts do not require public URLs or prior human content approval. Never invent timing, identities, consent, rights, or factual verification. Resolve sensitive exclusions before processing affected content. Public export requires clearance. Keep private sources and credentials outside this template repo.
Preserve semantic IDs, unrelated work, all three originals, and prior output. Gather useful missing metadata upfront; accept partial answers and unknowns. Local drafts do not require public URLs or prior human content approval. Never invent timing, identities, consent, rights, or factual verification. Resolve sensitive exclusions before processing affected content. Public export requires clearance. Keep private sources and credentials outside this template repo. Store task plans, operator receipts, metadata interviews, real-recording validation details, and unrelated project records in a private workspace outside the clone. Use synthetic examples and portable path placeholders in public documentation. Preserve required copyright attribution and public project references.
Validate JSON contracts, source/timing/citation relationships, review fingerprints, output checksums, and representative retrieval behavior. Run `python -m unittest discover -s tests -v` and `git diff --check`. Keep README, schemas, script, examples, skill, interfaces, version, and changelog aligned when contracts change. Existing example review hashes depend on source bytes and builder version.
+1 -1
View File
@@ -6,6 +6,6 @@ Canonical repository: https://projects.eddiesoehnel.com/adminprojects/structured
Preferred attribution: **Structured Media Builder by Eddie Soehnel**, version 0.3.0, 2026. See [CITATION.cff](CITATION.cff).
Initial implementation prepared with AI assistance. Identity/canonical facts come from this repository and the owner's approval of the structure plan; MIT was explicitly selected by the owner on 2026-10-17. Code/docs are [MIT licensed](LICENSE). Recording creators, speakers, transcription provenance, and publication rights belong in each media manifest and are separate from repository ownership.
Initial implementation prepared with AI assistance. Code/docs are [MIT licensed](LICENSE). Recording creators, speakers, transcription provenance, and publication rights belong in each media manifest and are separate from repository ownership.
Derived repositories should replace identity and canonical URL when they no longer describe the project, keeping AUTHOR, repository variables, manifest, citation, and license aligned. Retain attribution required by the MIT license.
+6
View File
@@ -1,5 +1,11 @@
# Changelog
## Unreleased — public-template cleanup, 2026-10-18
- Made usage prompts portable and removed local operational records and real-recording trial details from the public working tree.
- Kept synthetic examples and public attribution; preserved the MIT copyright notice and public project references.
- Added public-template hygiene checks and contributor guidance to keep processing records outside the clone.
## 0.3.0 — 2026-10-17
- Applied approved repository structure plan revision 1 using the software-automation profile; aligned upstream-compatible manifests, verified identity, MIT license, citation, document catalog, navigation, and Gitea contribution templates.
+1 -1
View File
@@ -1,5 +1,5 @@
# Contributing
Use synthetic fixtures for tests. Preserve IDs and source/derivative boundaries. For a new input format, document what is preserved and what needs review; reject unsupported timing instead of silently changing it. Update schema, builder, workflow, examples, and tests together for contract changes.
Use synthetic fixtures for tests. Keep operational task records and recording-specific assets outside this clone; use portable path placeholders in instructions. Preserve the upstream MIT notice and distinguish public project attribution from recording-specific identities. Preserve IDs and source/derivative boundaries. For a new input format, document what is preserved and what needs review; reject unsupported timing instead of silently changing it. Update schema, builder, workflow, examples, and tests together for contract changes.
Run the test suite and a local example build, verify checksums, inspect a representative retrieval result, and review `git diff --check`. Publishing and service integration require separate authorization. Builder code/docs use MIT; keep third-party media rights separate. Run the native repository checker and software-automation audit as well as relevant media tests.
+1 -1
View File
@@ -1,5 +1,5 @@
# License and media rights
Builder code and documentation are licensed under [MIT](LICENSE), copyright 2026 Eddie Soehnel, as explicitly selected by the owner on 2026-10-17.
Builder code and documentation are licensed under [MIT](LICENSE), copyright 2026 Eddie Soehnel.
This does not grant rights over third-party recordings, transcripts, slides, thumbnails, or underlying research. Verify their rights and attribution separately in each media manifest. Owner approval of structured content is not a substitute for a recording's license or consent.
+21 -13
View File
@@ -6,11 +6,14 @@ Use it for webinars, meetings, interviews, podcasts, lectures, demonstrations, a
Version **0.3.0**, experimental. By [Eddie Soehnel](AUTHOR.md), author, publisher, and maintainer. Builder code and documentation use the [MIT license](LICENSE); third-party media rights remain separate. See [the detailed workflow](docs/workflow.md) and [capabilities](docs/architecture.md).
# Re-usable Prompt To Run This Repo
## Reusable prompt
Use C:\projects\indx\structured-media-builder-OPEN to structure the media in:
Replace `<TEMPLATE_REPOSITORY>` with your clone location and `<MEDIA_FOLDER>` with your recording folder.
C:\PATH\TO\MY-MEDIA-FOLDER
```text
Use <TEMPLATE_REPOSITORY> to structure the media in:
<MEDIA_FOLDER>
This folder contains the original audio/video, TXT transcript, and VTT captions.
@@ -36,6 +39,7 @@ Metadata I already know (leave blank items for intake):
- Slides, reports, and supporting links:
- Credits, rights, sharing limits, or sensitive exclusions:
- Known transcript errors or processing preferences:
```
## What you prepare
@@ -65,8 +69,8 @@ The AI inspects supplied files, prompt, and authorized source pages before askin
## Example request
```text
Use C:\projects\indx\structured-media-builder-OPEN to structure the media in:
C:\path\to\my-recording-folder
Use <TEMPLATE_REPOSITORY> to structure the media in:
<MEDIA_FOLDER>
Title / organizer / date: ...
Published session page: ...
@@ -119,13 +123,13 @@ Python 3.11+ and `jsonschema` are required. Run from this template repo. The AI
```powershell
python -m pip install -r requirements.txt
python scripts/folder_builder.py inspect --folder "C:\path\to\my-recording-folder"
python scripts/folder_builder.py prepare --folder "C:\path\to\my-recording-folder" --output "C:\path\to\my-recording-folder\media-intake.json"
python scripts/folder_builder.py inspect --folder "<MEDIA_FOLDER>"
python scripts/folder_builder.py prepare --folder "<MEDIA_FOLDER>" --output "<MEDIA_FOLDER>/media-intake.json"
# Fill intake from the interview, then seed and author the semantic plan:
python scripts/folder_builder.py seed --folder "C:\path\to\my-recording-folder" --intake "C:\path\to\my-recording-folder\media-intake.json" --output "C:\path\to\my-recording-folder\structure-plan.json"
python scripts/folder_builder.py build --folder "C:\path\to\my-recording-folder" --intake "C:\path\to\my-recording-folder\media-intake.json" --plan "C:\path\to\my-recording-folder\structure-plan.json" --output "C:\path\to\my-recording-folder\structured"
python scripts/folder_builder.py verify --output "C:\path\to\my-recording-folder\structured"
python scripts/folder_builder.py search --output "C:\path\to\my-recording-folder\structured" --query "a useful question"
python scripts/folder_builder.py seed --folder "<MEDIA_FOLDER>" --intake "<MEDIA_FOLDER>/media-intake.json" --output "<MEDIA_FOLDER>/structure-plan.json"
python scripts/folder_builder.py build --folder "<MEDIA_FOLDER>" --intake "<MEDIA_FOLDER>/media-intake.json" --plan "<MEDIA_FOLDER>/structure-plan.json" --output "<MEDIA_FOLDER>/structured"
python scripts/folder_builder.py verify --output "<MEDIA_FOLDER>/structured"
python scripts/folder_builder.py search --output "<MEDIA_FOLDER>/structured" --query "a useful question"
```
`seed` is a starter, not completed semantic analysis. The AI must structure the content before delivery. Existing intake, plans, and outputs are not overwritten. Supported MP3 duration is measured from MPEG frames; otherwise media duration stays unknown and VTT end time is reported separately.
@@ -135,8 +139,8 @@ python scripts/folder_builder.py search --output "C:\path\to\my-recording-folder
Once you explicitly approve a specific draft, the AI runs `folder_builder.py finalize` with the source/output paths, intake, plan, reviewer, timezone-aware approval timestamp, and your approval evidence. It verifies that the inputs have not changed, writes `approval.json`, updates the source plan's review state, and produces `structured-final/`. A new draft is required if its inputs changed after the reviewed build.
```powershell
python scripts/folder_builder.py finalize --source "<media-folder>\structured" --output "<media-folder>\structured-final" --intake "<media-folder>\media-intake.json" --plan "<media-folder>\structure-plan.json" --reviewer "<reviewer>" --approved-at "<ISO timestamp with timezone>" --evidence "<explicit approval>"
python scripts/folder_builder.py verify --output "<media-folder>\structured-final"
python scripts/folder_builder.py finalize --source "<MEDIA_FOLDER>/structured" --output "<MEDIA_FOLDER>/structured-final" --intake "<MEDIA_FOLDER>/media-intake.json" --plan "<MEDIA_FOLDER>/structure-plan.json" --reviewer "<reviewer>" --approved-at "<ISO timestamp with timezone>" --evidence "<explicit approval>"
python scripts/folder_builder.py verify --output "<MEDIA_FOLDER>/structured-final"
```
Final-package verification and keyword search support approved packages as well as drafts. Approval is workflow evidence, not an authenticated digital signature, independent source fact-check, third-party content license, or deployment approval.
@@ -147,6 +151,10 @@ After review and collection of publication facts, the optional [approved public
Static JSON and local keyword search work now. [API/MCP contracts](docs/interfaces.md) are future adapter designs. [Research](docs/research.md) covers standards and platform patterns. This adapts [AI Knowledge Structure](https://projects.eddiesoehnel.com/adminprojects/ai-knowledge-structure-OPEN) and [Structured Website Builder](https://projects.eddiesoehnel.com/adminprojects/structured-website-builder-OPEN) to timed media evidence.
## Public template contents
Keep real recordings, metadata interviews, generated packages, approval evidence, local paths, and operational task records outside this clone. The bundled examples are synthetic. Use placeholders in reusable instructions and run `python scripts/check_repository.py` before sharing changes. See [security and privacy](SECURITY.md).
## Repository maintenance
- [Agent instructions](AGENTS.md), [manifest](repository.json), [identity](repository-variables.json), [author](AUTHOR.md), [citation](CITATION.cff), [changelog](CHANGELOG.md), [skills](skills.md).
+4
View File
@@ -7,3 +7,7 @@ The builder makes no network requests, executes no transcript content, escapes H
Input hashes and output checksums detect inconsistencies; they are not authenticated signatures. This static public profile supplies no authentication, revocation, PII detection, malware scanning, or private-corpus policy enforcement. Keep service credentials outside source control and generated output. Report sensitive issues privately to the repository owner rather than placing private media or secrets in an issue.
Owner-approved final content retains source caveats and does not establish third-party rights. MIT governs the builder code/docs, not private inputs or recorded third-party material. Repository metadata and examples must not include real meeting data.
Keep processing records outside the template clone: metadata interviews, source/plan snapshots, approval receipts, operator notes, local filesystem paths, account details, and cross-project diagnostics. Use only synthetic examples and portable placeholders. The native repository checker flags operational folders, generated recording assets, and machine-specific paths; manually review other identifying content and secrets.
Ignore rules do not remove tracked files or historical commits. A clean working tree does not sanitize Git history, previously pushed content, cached copies, forks, or existing releases. History remediation requires a separate coordinated change.
+4 -4
View File
@@ -4,7 +4,7 @@
"collection_id": "structured-media-builder-docs",
"title": "Structured Media Builder documentation",
"description": "Authoritative source guides for the current local revision; draft status does not claim a public deployment.",
"updated_at": "2026-10-17",
"updated_at": "2026-10-18",
"items": [
{
"content_id": "smb-doc-docs-readme",
@@ -98,7 +98,7 @@
"path": "docs/validation.md",
"status": "draft",
"author": "Eddie Soehnel",
"updated_at": "2026-10-17",
"updated_at": "2026-10-18",
"topics": [
"structured-media"
],
@@ -126,7 +126,7 @@
"path": "SECURITY.md",
"status": "draft",
"author": "Eddie Soehnel",
"updated_at": "2026-10-17",
"updated_at": "2026-10-18",
"topics": [
"structured-media"
],
@@ -140,7 +140,7 @@
"path": "CONTRIBUTING.md",
"status": "draft",
"author": "Eddie Soehnel",
"updated_at": "2026-10-17",
"updated_at": "2026-10-18",
"topics": [
"structured-media"
],
+2 -2
View File
@@ -34,6 +34,6 @@ Design inference: chunks and cited Q&A can support useful list/search/fetch inte
## 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 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.
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, platform-specific capability declarations, contact APIs, or private operational details. New interfaces are advertised only after implementation and verification.
+28 -25
View File
@@ -1,35 +1,38 @@
# Validation records
## 0.3.0 — repository standard and final approval, 2026-10-17
## Reproduce the checks
- The approved software-automation repository plan was applied with standard-compatible identity/rights manifests, MIT, citation, version 0.3.0, an 11-document catalog, navigation, and relevant Gitea templates.
- 51 tests passed: the original media behavior plus final-approval/input-integrity and repository-contract regressions.
- The software-automation audit and native checker passed, including standard schemas, version/identity/license alignment, nullable entry points, document relations, links, and targeted credential-pattern checks. Both media skills passed validation in UTF-8 mode.
- The two synthetic public-export examples built and passed checksum verification under the new version. Only synthetic fixture fingerprints were refreshed.
- The previously approved real webinar package verified successfully using the normal folder-builder command, retaining its original approval/version evidence, 908 cues, 38 chunks, 22 Q&A entries, and 10 chapters. No real content, approval, or original source file was rewritten for the template version change.
- Final verification and local keyword retrieval now accept approved artifacts. Skipping source checks reports those checks as skipped rather than claiming unchanged sources.
- No service, embeddings, publication, external indexing, independent fact-check, or audio/slide verification was added. Commit/push/deployment remain separate actions.
Run from the repository root with Python 3.11+ and the dependencies in `requirements.txt`:
## 0.2.0 — folder-first workflow, 2026-10-17
```text
python -m unittest discover -s tests -v
python scripts/check_repository.py
python scripts/audit_repository.py . --profile software-automation --json
git diff --check
```
- 39 regression tests passed in the canonical template repository: the original public-export tests plus 12 folder-first tests.
- Both repo-local skills passed the skill-creator validator with UTF-8 mode. Repository JSON, all nine schemas, links, declared paths, local schema references, source syntax/whitespace, and targeted credential-pattern checks passed.
- A real supplied MP3/TXT/VTT set was processed locally: 908 timed cues, 38 conceptual chunks, 22 grounded Q&A entries, and 10 navigation chapters. The encoded MP3 duration was approximately 92 minutes; VTT end time was reported separately.
- The source page supplied by the user populated published identity metadata with provenance; unknown publication/rights and transcript-review facts stayed explicit. The user's audience was recorded as paddling industry organizations.
- All three original source hashes matched the preflight after delivery. Output checksums and source references verified. All 908 transcript anchors and 364 local document links checked.
- Four representative keyword queries returned expected survey limitations, participation-versus-sales, instruction-next-step, and measurement-gap material in the top five. The test exposed ties caused by incidental transcript mentions; local ranking now weights questions/titles and summaries above body-only mentions.
- Outputs remain draft, with no human content approval or publication readiness claimed. No full-recording listening, visual/slide verification, independent research fact-check, public deployment, or AI/search-engine indexing was performed. No Git commit or push was made.
The native checker validates repository contracts, declared paths, local links, syntax, whitespace, targeted credential patterns, and public-template hygiene. These are bounded checks, not comprehensive personal-data detection or a security audit. Inspect examples and every publication artifact manually too.
## 0.1.0 — original public-export implementation
## Public-template cleanup — 2026-10-18
Validated 2026-10-17 in the canonical local repository. Version 0.1.0.
- Replaced machine-specific usage paths with portable placeholders while preserving the metadata interview and review workflow.
- Removed operational task records and real-recording trial details from the public working tree. Examples remain synthetic; no recording-specific approval evidence is used as a fixture.
- Retained public project attribution, the canonical repository URL, upstream references, and the MIT copyright notice.
- Added checks against operational records, recording-specific generated assets, and absolute machine paths entering the public template.
- All 55 regression tests passed, including four public-template hygiene regressions. The native checker and software-automation audit passed. Source examples, MIT license bytes, and runtime media-builder code were preserved.
- 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.
## 0.3.0 — repository contracts and final approval
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.
The implementation was checked with 51 regression tests, standard repository schemas, identity/version/license alignment, declared paths, local links, and the software-automation profile audit. Both synthetic public-export examples passed output verification. Approval-lifecycle tests cover input binding, source preservation, draft history, stale approval rejection, and approved-package retrieval.
All source files remain uncommitted. No Git push, remote repository setting change, or publication was performed. Repository licensing remains unselected.
## 0.2.0 — folder-first workflow
The implementation was checked with 39 regression tests covering the public exporter and folder-first processing. Tests cover explicit unknowns, source preservation, exclusions, changed inputs, draft status, local retrieval, and ambiguous source sets. Intake and structuring skills were checked with the skill validator.
## 0.1.0 — public-export implementation
The implementation was checked with 27 regression tests covering audio/video builds, source citations, cross-chunk Q&A, deterministic output, review invalidation, TXT/VTT alignment, timing errors, privacy/rights gates, unsupported captions, path boundaries, output preservation, tamper detection, HTML escaping, and partial-build refusal. The bundled examples contain placeholder media URLs and synthetic review metadata.
## Limits
Local checks do not independently verify transcript accuracy, speaker claims, participant consent, rights, recording playback, visual/slide content, hosted caption behavior, external API/MCP services, deployment, or search/AI indexing. Generated content needs its own review and publication decision. Working-tree cleanup does not remove earlier content from Git history or remote copies.
+1 -1
View File
@@ -33,6 +33,6 @@
"preserve_existing_content": true,
"use_smallest_fitting_profile": true
},
"verified_by": "Existing target identity and canonical origin; explicit user MIT selection and approval of repository structure plan revision 1 on 2026-10-17.",
"verified_by": "Published project attribution, canonical repository URL, and MIT copyright notice.",
"verified_at": "2026-10-17"
}
+2 -2
View File
@@ -20,7 +20,7 @@
"maturity": "experimental",
"version": "0.3.0",
"created_at": "2026-10-17",
"updated_at": "2026-10-17",
"updated_at": "2026-10-18",
"resource_types": [
"software",
"template",
@@ -272,7 +272,7 @@
"maintenance": {
"maintainer": "Eddie Soehnel",
"review_frequency": "as-needed when processing contracts change",
"last_reviewed_at": "2026-10-17",
"last_reviewed_at": "2026-10-18",
"deprecated": false,
"archived": false
},
+1 -1
View File
@@ -7,7 +7,7 @@ Run commands from the repository root with Python 3.11+ and `requirements.txt` d
| [folder_builder.py](folder_builder.py) | Inspect/prepare source folders; seed plans; build drafts; finalize explicitly approved content; verify and search drafts/finals |
| [media_approval.py](media_approval.py) | Final approval input binding and integrity checks, called by folder_builder |
| [media_builder.py](media_builder.py) | Optional reviewed public-export pipeline and collection search |
| [check_repository.py](check_repository.py) | Native schemas, identity/version/rights, catalog, links, paths, syntax, whitespace, and targeted credential-pattern checks |
| [check_repository.py](check_repository.py) | Native schemas, identity/version/rights, catalog, links, paths, syntax, whitespace, targeted credential-pattern checks, and public-template hygiene |
| [audit_repository.py](audit_repository.py) | Read-only software-automation profile audit adapted from the MIT AI-Ready Repository Template |
Use `python scripts/folder_builder.py --help` for commands and [the main README](../README.md) for the processing sequence. Finalize only on explicit approval of the specific reviewed draft, with `--reviewer`, `--approved-at`, and `--evidence`. Never invent those values to unblock a build.
+24 -2
View File
@@ -32,7 +32,9 @@ def validate_contracts(root=ROOT):
assert manifest['canonical_url'] in citation, 'Citation URL mismatch'
for record in manifest['authors']:
assert record['name'] in (root/'AUTHOR.md').read_text(encoding='utf-8'), 'Author notice mismatch'
assert 'Copyright (c) 2026 Eddie Soehnel' in (root/manifest['rights']['license_file']).read_text(encoding='utf-8'), 'License attribution mismatch'
license_text = (root/manifest['rights']['license_file']).read_text(encoding='utf-8')
assert re.search(r'Copyright \(c\) \d{4}', license_text), 'Missing copyright notice'
assert any(record['name'] in license_text for record in manifest['authors']), 'License attribution mismatch'
ids=[item['content_id'] for item in index['items']]
paths=[item['path'] for item in index['items']]
assert len(ids)==len(set(ids)) and len(paths)==len(set(paths)), 'Duplicate content identity/path'
@@ -46,6 +48,26 @@ def validate_contracts(root=ROOT):
return {'version':version,'license':manifest['rights']['license'],'indexed_documents':len(ids)}
def validate_public_template(root=ROOT):
"""Bounded repository hygiene checks; not a general PII detector."""
operational_roots = {'tasks', 'task-records', 'runtime', 'private', 'recordings', 'structured'}
generated_names = {'media-intake.json', 'structure-plan.json', 'build-receipt.json', 'approval.json'}
text_suffixes = {'.md', '.py', '.json', '.txt', '.vtt', '.cff'}
machine_path = re.compile(r'(?<![A-Za-z0-9])[A-Za-z]:[\\/]|/(?:Users|home)/[A-Za-z0-9_.-]+/')
checked = 0
for path in root.rglob('*'):
rel = path.relative_to(root)
if not path.is_file() or set(rel.parts) & SKIP:
continue
assert rel.parts[0] not in operational_roots and not rel.parts[0].startswith('structured-final'), 'Operational records in public template: ' + rel.as_posix()
assert path.name not in generated_names and not path.name.endswith(('.ticket.json', '.receipt.json', '.log')), 'Recording-specific output in public template: ' + rel.as_posix()
if path.suffix in text_suffixes or path.name in {'LICENSE', '.gitignore', '.gitattributes', 'VERSION'}:
text = path.read_text(encoding='utf-8-sig')
assert not machine_path.search(text), 'Absolute machine path in public template: ' + rel.as_posix()
checked += 1
return {'public_template_files': checked}
def check():
files = [p for p in ROOT.rglob('*') if p.is_file() and not (set(p.relative_to(ROOT).parts) & SKIP)]
count = {'json': 0, 'markdown_links': 0, 'schema_refs': 0, 'python': 0}
@@ -99,7 +121,7 @@ def check():
errors.append('Missing manifest path: ' + name)
if errors:
raise ValueError('\n'.join(errors))
print(json.dumps({'valid': True, **count, **validate_contracts(ROOT)}, indent=2))
print(json.dumps({'valid': True, **count, **validate_contracts(ROOT), **validate_public_template(ROOT)}, indent=2))
if __name__ == '__main__':
@@ -1,65 +0,0 @@
# LOD Media Parser: baseline reset, settings and experiment record
Date: 2026-10-18. Implemented application: C:\projects\lod\lod-media-parser,
version 0.0.7. This is an aggregate cross-project task record at the owner's request;
it changes no Structured Media Builder runtime or publication contract. Private media,
prompts, transcripts, dog identities and source paths are omitted.
## Decisions and observed results
| Test | Changes/selection | Observed results | Interpretation |
| --- | --- | --- | --- |
| Original successful reference | Full instructions; coarse 2 sec/max 960 px; dense 0.25 sec/max 960 px; full sampled timeline | 50 model calls, 1,415,475 reported tokens, 1,253.82 active seconds; 1 owner-valued clip | Best available reference, not proof of recall or exact cue timing. |
| 0.0.5 Efficient, comparison run 002 | Same source/substantive prompt; compact instructions, coarse max 640 px; static thinning available | 43 calls, 928,425 tokens, 850.92 seconds; 0 clips; 43 coarse windows; no static frames removed | Fewer tokens but did not reproduce the useful clip. Prompt newline representation differed. Not accepted as a quality improvement. |
| 0.0.6 uncertain routing, run 003 | Plausible coarse rejections routed to dense verification | 22 uncertain candidates, 43 dense calls, 86 total calls; 2,240,830 tokens, 1,427.85 seconds; 0 clips | Routing worked but increased usage without a useful result. All sampled windows completed. Cached transcript and 634 coarse frames reused; 868 frames extracted. |
| 0.0.7 baseline reset | Original restored as new-job default; optional presets/per-job controls | 53 regression tests and synthetic FFmpeg/Whisper/correction/approval smoke passed; no owner-video run | Real output and resource comparison pending owner test. |
Counts are provider-reported tokens, including cached input within input, not an
incremental dollar bill. Runtime/model conditions may vary. These are sequential
operational comparisons, not a controlled scientific evaluation.
## What we learned and tried
The efficient scan discarded the previously useful candidate before dense review.
Routing uncertainty fixed that path, but dense reviews still rejected the sequence.
Retained logs show ambiguous transcription and cue timing, plus sequences split into
6-second dense windows. A wait/hold can be useful even without a new movement after
the cue; earlier reasoning may have been too restrictive. These are diagnostic
findings from retained model evidence, not independently verified audio judgments.
Overlapping windows, hold-specific criteria and targeted retranscription were proposed
but are deferred. Owner chose to restore the working baseline and expose tuning.
## Implemented 0.0.7 controls
- Original/Baseline default: original full instructions, 2-second coarse interval,
max 960-pixel coarse/dense images, 0.25-second dense interval, 6-second dense windows;
speech filtering, static thinning and uncertain-rejection routing all off.
- Efficient preset: compact instructions, max 640-pixel coarse frames, static thinning.
Speech-guided preset adds cue-selected windows plus audits. Both are optional.
- Advanced controls: coarse/dense intervals, image sizes, dense window length,
instruction style and independent experimental toggles. Restore original defaults
resets controls. No AI-generated frames. Invalid/unbounded settings rejected.
- Frozen per-job settings, preset/custom flag and instruction hash saved to jobs,
summaries, reports, receipts and ResourceUsage.processing_settings in each companion
JSON. Existing jobs/previous outputs remain unchanged. Retry retains job settings;
create a new job to change them. Older checkpoints require Retry.
- Shared source preprocessing remains available; no shared AI inference or API fallback.
## Next owner test
1. Refresh dashboard. Create a new job from the same video and exact prompt/output.
2. Keep Original/Baseline selected; leave Advanced settings unchanged.
3. Review resulting clips for actual usefulness, cue/response, padding and false
positives. No clips is not proof that no qualifying behavior exists.
4. Record model calls/tokens, active time, accepted/rejected clips and known misses.
Compare against all earlier runs; note warm caches and model/environment changes.
5. After a useful baseline, change one parameter at a time on new jobs. Do not weaken
acceptance merely to produce a clip. Record preset/custom settings with each result.
No new media run, model training, publication, Git push or original-media change was
performed for this update. Human behavioral acceptance remains pending.
## Activation verification
0.0.7 is active. All 53 tests passed again in the installed repository. Browser checks confirmed Original is selected by default, Efficient changes image size/instructions/thinning, and Restore original defaults resets those controls. Both task-summary copies matched by SHA256. Existing job states and manually reviewed feedback were retained; no owner job was dispatched.
@@ -1,579 +0,0 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Local review folder exports",
"oneOf": [
{
"type": "object",
"properties": {
"schema_version": {
"const": "1.0"
},
"profile": {
"const": "local-review"
},
"status": {
"enum": [
"draft",
"approved"
]
},
"media_id": {
"type": "string",
"minLength": 1
},
"title": {
"type": "string",
"minLength": 1
},
"input_sha256": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"canonical_url": {
"type": [
"string",
"null"
]
},
"artifact_type": {
"const": "transcript"
},
"cues": {
"type": "array",
"items": {
"type": "object",
"properties": {
"cue_id": {
"type": "string",
"pattern": "^cue-[0-9]{6}$"
},
"source_cue_id": {
"type": [
"string",
"null"
]
},
"start_seconds": {
"type": "number",
"minimum": 0
},
"end_seconds": {
"type": "number",
"exclusiveMinimum": 0
},
"speaker": {
"type": [
"string",
"null"
]
},
"text": {
"type": "string",
"minLength": 1
}
},
"required": [
"cue_id",
"source_cue_id",
"start_seconds",
"end_seconds",
"speaker",
"text"
],
"additionalProperties": false
}
},
"excluded_cue_ids": {
"type": "array",
"items": {
"type": "string",
"pattern": "^cue-[0-9]{6}$"
}
}
},
"required": [
"schema_version",
"profile",
"status",
"media_id",
"title",
"input_sha256",
"canonical_url",
"artifact_type",
"cues",
"excluded_cue_ids"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"schema_version": {
"const": "1.0"
},
"profile": {
"const": "local-review"
},
"status": {
"enum": [
"draft",
"approved"
]
},
"media_id": {
"type": "string",
"minLength": 1
},
"title": {
"type": "string",
"minLength": 1
},
"input_sha256": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"canonical_url": {
"type": [
"string",
"null"
]
},
"artifact_type": {
"const": "chunks"
},
"chunks": {
"type": "array",
"items": {
"type": "object",
"properties": {
"chunk_id": {
"type": "string",
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9:._-]*$"
},
"knowledge_id": {
"type": "string",
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9:._-]*$"
},
"version": {
"type": "integer",
"minimum": 1
},
"supersedes": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9:._-]*$"
},
"minItems": 0
},
"title": {
"type": "string",
"minLength": 1
},
"heading_path": {
"type": "array",
"items": {
"type": "string",
"minLength": 1
},
"minItems": 1
},
"summary": {
"type": "string",
"minLength": 1
},
"tags": {
"type": "array",
"items": {
"type": "string",
"minLength": 1
},
"minItems": 0
},
"cue_ids": {
"type": "array",
"items": {
"type": "string",
"pattern": "^cue-[0-9]{6}$"
},
"minItems": 1,
"uniqueItems": true
},
"order": {
"type": "integer",
"minimum": 1
},
"media_id": {
"type": "string",
"minLength": 1
},
"content": {
"type": "string",
"minLength": 1
},
"content_sha256": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"start_seconds": {
"type": "number",
"minimum": 0
},
"end_seconds": {
"type": "number",
"minimum": 0
},
"speakers": {
"type": "array",
"items": {
"type": "string",
"minLength": 1
}
},
"citations": {
"type": "array",
"items": {
"type": "object",
"properties": {
"media_id": {
"type": "string",
"minLength": 1
},
"cue_id": {
"type": "string",
"pattern": "^cue-[0-9]{6}$"
},
"start_seconds": {
"type": "number",
"minimum": 0
},
"end_seconds": {
"type": "number",
"minimum": 0
},
"transcript_ref": {
"type": "string",
"minLength": 1
},
"transcript_url": {
"type": [
"string",
"null"
]
},
"source_media": {
"type": "string",
"minLength": 1
},
"playback_url": {
"type": "null"
}
},
"required": [
"media_id",
"cue_id",
"start_seconds",
"end_seconds",
"transcript_ref",
"transcript_url",
"source_media",
"playback_url"
],
"additionalProperties": false
}
}
},
"required": [
"chunk_id",
"knowledge_id",
"version",
"supersedes",
"title",
"heading_path",
"summary",
"tags",
"cue_ids",
"order",
"media_id",
"content",
"content_sha256",
"start_seconds",
"end_seconds",
"speakers",
"citations"
],
"additionalProperties": false
}
}
},
"required": [
"schema_version",
"profile",
"status",
"media_id",
"title",
"input_sha256",
"canonical_url",
"artifact_type",
"chunks"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"schema_version": {
"const": "1.0"
},
"profile": {
"const": "local-review"
},
"status": {
"enum": [
"draft",
"approved"
]
},
"media_id": {
"type": "string",
"minLength": 1
},
"title": {
"type": "string",
"minLength": 1
},
"input_sha256": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"canonical_url": {
"type": [
"string",
"null"
]
},
"artifact_type": {
"const": "qa"
},
"qa": {
"type": "array",
"items": {
"type": "object",
"properties": {
"qa_id": {
"type": "string",
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9:._-]*$"
},
"question": {
"type": "string",
"minLength": 1
},
"answer": {
"type": "string",
"minLength": 1
},
"answer_type": {
"enum": [
"extractive",
"synthesis"
]
},
"evidence": {
"type": "array",
"items": {
"type": "object",
"properties": {
"chunk_id": {
"type": "string",
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9:._-]*$"
},
"cue_id": {
"type": "string",
"pattern": "^cue-[0-9]{6}$"
},
"quote": {
"type": "string",
"minLength": 1
},
"media_id": {
"type": "string",
"minLength": 1
},
"start_seconds": {
"type": "number",
"minimum": 0
},
"end_seconds": {
"type": "number",
"minimum": 0
},
"transcript_ref": {
"type": "string",
"minLength": 1
},
"transcript_url": {
"type": [
"string",
"null"
]
},
"source_media": {
"type": "string",
"minLength": 1
},
"playback_url": {
"type": "null"
}
},
"required": [
"chunk_id",
"cue_id",
"quote",
"media_id",
"start_seconds",
"end_seconds",
"transcript_ref",
"transcript_url",
"source_media",
"playback_url"
],
"additionalProperties": false
}
},
"media_id": {
"type": "string",
"minLength": 1
}
},
"required": [
"qa_id",
"question",
"answer",
"answer_type",
"evidence",
"media_id"
],
"additionalProperties": false
}
}
},
"required": [
"schema_version",
"profile",
"status",
"media_id",
"title",
"input_sha256",
"canonical_url",
"artifact_type",
"qa"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"schema_version": {
"const": "1.0"
},
"profile": {
"const": "local-review"
},
"status": {
"enum": [
"draft",
"approved"
]
},
"media_id": {
"type": "string",
"minLength": 1
},
"title": {
"type": "string",
"minLength": 1
},
"input_sha256": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"canonical_url": {
"type": [
"string",
"null"
]
},
"artifact_type": {
"const": "index"
},
"description": {
"type": [
"string",
"null"
]
},
"artifacts": {
"type": "object",
"properties": {
"media.json": {
"type": "string",
"minLength": 1
},
"transcript.json": {
"type": "string",
"minLength": 1
},
"chunks.json": {
"type": "string",
"minLength": 1
},
"qa.json": {
"type": "string",
"minLength": 1
},
"chapters.json": {
"type": "string",
"minLength": 1
},
"schema.jsonld": {
"type": "string",
"minLength": 1
},
"README.md": {
"type": "string",
"minLength": 1
},
"review.md": {
"type": "string",
"minLength": 1
}
},
"required": [
"media.json",
"transcript.json",
"chunks.json",
"qa.json",
"chapters.json",
"schema.jsonld",
"README.md",
"review.md"
],
"additionalProperties": false
}
},
"required": [
"schema_version",
"profile",
"status",
"media_id",
"title",
"input_sha256",
"canonical_url",
"artifact_type",
"description",
"artifacts"
],
"additionalProperties": false
}
]
}
@@ -1,39 +0,0 @@
{
"repository": "C:\\projects\\indx\\structured-media-builder-OPEN",
"profile": "software-automation",
"passed": false,
"findings": [
{
"level": "error",
"message": "Missing required path: LICENSE"
},
{
"level": "error",
"message": "repository-variables.json lacks key: skill_defaults"
},
{
"level": "error",
"message": "repository-variables.json lacks key: verified_by"
},
{
"level": "error",
"message": "repository-variables.json lacks key: verified_at"
},
{
"level": "error",
"message": "authors differs between repository-variables.json and repository.json"
},
{
"level": "error",
"message": "repository differs between repository-variables.json and repository.json"
},
{
"level": "error",
"message": "rights differs between repository-variables.json and repository.json"
},
{
"level": "error",
"message": "repository_profile differs between repository-variables.json (software-template-workflow) and requested audit (software-automation)"
}
]
}
@@ -1,164 +0,0 @@
"""Task-scoped finalization for an explicitly approved local media package.
This does not deploy, license recordings, or independently verify their claims.
Until the repository structure plan is approved, the approved-state schema and
validator remain task-scoped rather than changing the main builder contracts.
"""
from pathlib import Path
import argparse
import copy
import hashlib
import json
import os
import re
import shutil
import sys
import tempfile
from datetime import datetime
from jsonschema import Draft202012Validator, FormatChecker
HERE = Path(__file__).resolve().parent
REPO = Path(os.environ.get('SMB_REPOSITORY', str(HERE.parent.parent))).resolve()
sys.dont_write_bytecode = True
sys.path.insert(0, str(REPO/'scripts'))
import media_builder as core
import folder_builder as folder_builder
def semantic_plan(plan):
return {key:value for key,value in plan.items() if key != 'review'}
def verify(output):
output=Path(output).resolve()
receipt=core.load(output/'build-receipt.json')
approval=core.load(output/'approval.json')
core.require(receipt['status']=='approved' and receipt['lifecycle']=='final', 'Not a final approved package')
actual={p.relative_to(output).as_posix():folder_builder.sha_file(p) for p in output.rglob('*')
if p.is_file() and p != output/'build-receipt.json'}
core.require(actual==receipt['files'], 'Final output differs from receipt')
schema=core.load(HERE/'approved-folder-export.schema.json')
validator=Draft202012Validator(schema,format_checker=FormatChecker())
for name in ('transcript.json','chunks.json','qa.json','ai-index.json'):
value=core.load(output/name)
validator.validate(value)
core.require(value['status']=='approved','Artifact not approved')
for record in receipt['source_files'].values():
path=core.relative_file(output.parent,record['path'])
core.require(folder_builder.sha_file(path)==record['sha256'],'Original source changed')
intake=core.relative_file(output.parent,approval['inputs']['intake'])
plan=core.relative_file(output.parent,approval['inputs']['plan'])
core.require(folder_builder.sha_file(intake)==approval['intake_sha256'],'Intake changed since approval')
plan_value=core.load(plan)
core.require(core.digest(core.encoded(semantic_plan(plan_value)))==approval['plan_content_sha256'],
'Plan content changed since approval')
core.require(plan_value['review']['status']=='approved','Source plan not approved')
core.require(plan_value['review']['input_sha256']==receipt['input_sha256'],'Plan approval fingerprint mismatch')
media=core.load(output/'media.json')
core.require(media['human_approval'] and not media['publication_ready'], 'Approval scope mismatch')
return {'valid':True,'status':'approved','lifecycle':'final','source_files_unchanged':True,
'reviewer':approval['reviewer'],**receipt['counts']}
def finalize(source,output,intake_path,plan_path,reviewer,approved_at,evidence):
source,output=Path(source).resolve(),Path(output).resolve()
intake_path,plan_path=Path(intake_path).resolve(),Path(plan_path).resolve()
core.require(source.parent==output.parent and output!=source,'Final must be a sibling of the reviewed draft')
core.require(not output.exists(),'Final output exists; do not overwrite it')
core.require(intake_path.parent==source.parent and plan_path.parent==source.parent,'Inputs must be beside the media sources')
core.require(reviewer.strip() and evidence.strip(),'Explicit reviewer and approval evidence required')
moment=datetime.fromisoformat(approved_at.replace('Z','+00:00'))
core.require(moment.tzinfo is not None,'Approval timestamp must include a timezone')
folder_builder.verify(source)
draft_receipt=core.load(source/'build-receipt.json')
plan=core.load(plan_path)
core.require(plan['review']['status']=='draft','Expected the reviewed draft source plan')
old_review=copy.deepcopy(plan['review'])
approval={
'schema_version':'1.0','status':'approved','lifecycle':'final',
'reviewer':reviewer,'approved_at':approved_at,'approval_evidence':evidence,
'scope':'Owner approval of the generated structured content and metadata as final, with documented limitations retained.',
'publication_ready':False,'input_sha256':draft_receipt['input_sha256'],
'inputs':{'intake':intake_path.name,'plan':plan_path.name},
'intake_sha256':folder_builder.sha_file(intake_path),
'plan_content_sha256':core.digest(core.encoded(semantic_plan(plan))),
'reviewed_draft_directory':source.name,'reviewed_draft_receipt':draft_receipt,
'notes':['The original reviewed draft remains available as history.',
'The approval timestamp records when this run recorded the user approval.',
'Approval does not claim independent fact-checking, audio/slide verification, a recording license, or deployment.',
'Unknown metadata and original source wording are retained.']}
pending=Path(tempfile.mkdtemp(prefix='.final-media-',dir=output.parent))
plan_updated=False
try:
for path in source.iterdir():
core.require(path.is_file(),'Unexpected draft subdirectory')
shutil.copyfile(path,pending/path.name)
for path in pending.glob('*.json'):
if path.name=='build-receipt.json':continue
value=core.load(path)
if value.get('profile')=='local-review':value['status']='approved'
if path.name=='media.json':
value['human_approval']=True
if value['metadata']['description']:
value['metadata']['description']=value['metadata']['description'].replace(
'This local draft preserves','This approved structured package preserves')
core.write(path,value)
page=(pending/'README.md').read_text(encoding='utf-8')
page=page.replace('**Draft for human review.** Built from the supplied recording, TXT, and VTT.',
f'**Final — approved by {reviewer} on {moment.date().isoformat()}.** '
'Built from the supplied recording, TXT, and VTT; documented limitations remain in the review record.')
page=page.replace('This local draft preserves','This approved structured package preserves')
page=page.replace('Draft credit','Approved credit')
core.write(pending/'README.md',page)
review=(pending/'review.md').read_text(encoding='utf-8')
review=review.replace('Status: **draft — not human approved or publication ready**.',
f'Status: **final and approved**. Approved by {reviewer} on {moment.date().isoformat()}.\n\n'
f'Approval evidence: “{evidence}”\n\n'
'This records approval of the generated structure with its stated limitations. '
'Publication prerequisites and source-verification notes below remain informational follow-up items.')
review=review.replace('## Please review','## Follow-up checks retained after approval')
review=review.replace('not factual accuracy or human approval.','not independent factual accuracy. Human approval is recorded separately in approval.json.')
core.write(pending/'review.md',review)
guide=(pending/'llms.txt').read_text(encoding='utf-8').replace(
'> Local draft for review; publication details may be unknown.',
'> Final, owner-approved structured content; publication details may remain unknown.')
core.write(pending/'llms.txt',guide)
core.write(pending/'approval.json',approval)
receipt={**draft_receipt,'status':'approved','lifecycle':'final','human_approval':True,
'publication_ready':False,'approval_record':'approval.json',
'files':{p.name:folder_builder.sha_file(p) for p in sorted(pending.iterdir())
if p.is_file() and p.name!='build-receipt.json'}}
core.write(pending/'build-receipt.json',receipt)
plan['review']={'status':'approved','reviewer':reviewer,'reviewed_at':approved_at,
'input_sha256':draft_receipt['input_sha256']}
core.validate(plan,'plan')
core.write(plan_path,plan)
plan_updated=True
# Validate all content/state and original hashes before exposing the final path.
verify(pending)
pending.rename(output)
return verify(output)
except Exception:
if plan_updated and not output.exists():
plan['review']=old_review
core.write(plan_path,plan)
raise
finally:
if pending.exists():shutil.rmtree(pending)
def main():
p=argparse.ArgumentParser(description=__doc__)
sub=p.add_subparsers(dest='command',required=True)
cmd=sub.add_parser('finalize')
for name in ('source','output','intake','plan'):cmd.add_argument('--'+name,type=Path,required=True)
for name in ('reviewer','approved-at','evidence'):cmd.add_argument('--'+name,required=True)
cmd=sub.add_parser('verify');cmd.add_argument('--output',type=Path,required=True)
a=p.parse_args()
if a.command=='verify':result=verify(a.output)
else:result=finalize(a.source,a.output,a.intake,a.plan,a.reviewer,a.approved_at,a.evidence)
print(json.dumps(result,indent=2))
if __name__=='__main__':main()
@@ -1,14 +0,0 @@
# Implementation receipt
- Approved plan: revision 1, explicitly approved by the owner on 2026-10-17.
- Implemented profile: software-automation, version 0.3.0.
- Identity: Eddie Soehnel, author/publisher/maintainer; original canonical URL and stable repository ID retained.
- Rights: owner-selected MIT for code/docs; third-party media rights and publication approval remain separate.
- Applied the approved file-action plan: aligned standard manifests and variables, source document catalog, MIT/citation, navigation, repository validation, approval support, focused regression tests, and Gitea contribution templates.
- Preserved the folder-first workflow, source/semantic IDs, original recordings, prior drafts/finals, remote configuration, and the pre-existing local validation-document change. Prior custom metadata is retained in the task's `prior-repository*.json` evidence.
- Final approval now uses the normal folder builder. The task-scoped utility remains historical evidence; it is not required by the primary workflow.
- Minor file-placement refinement: approval logic and its tests are in focused `scripts/media_approval.py` and `tests/test_media_approval.py` modules rather than expanding the existing files excessively. This implements the approved capability and boundaries without a material scope change.
- The companion AI Knowledge Structure repository received a reference-only media model, implementation/tool links, manifest routing, and aligned version/citation metadata. No executable builder assets or real media were copied into that guide.
- Validation is recorded in [validation-results.md](validation-results.md).
- Rollback: review the per-file diff and saved prior metadata; reverse only this task's changes. Do not reset user work, rewrite history, or alter finalized media to match a new template version.
- No commit, push, Git tag/release, remote/hosting setting change, or deployment was performed by this run.
@@ -1,24 +0,0 @@
# Webinar finalization receipt
Recorded 2026-10-17. This is the completed media-approval task, not a receipt claiming the repository standardization plan is implemented.
- Authority: user stated “this looks good and is approved” and authorized moving the documents to final/approved.
- Final disposition: `structured-final/` beside the original media, with a root `FINAL.md` entry point. The prior reviewed `structured/` output remains unchanged as history.
- Human review: Eddie Soehnel; approval recorded at 2026-10-17T22:38:28Z. The timestamp records this processing run, not a claim about the precise message-send time.
- Final state: `approved`, lifecycle `final`, human approval true. Publication readiness remains false because it is separate from approving the generated local content.
- Source plan: review block updated to approved and bound to the reviewed input fingerprint. Semantic chunk IDs, knowledge IDs, source text, Q&A content, and chapter ranges were preserved.
- Counts: 908 cues, 38 chunks, 22 Q&A entries, 10 chapters.
- Verification: final output checksums, approved-state schema, intake fingerprint, semantic-plan fingerprint, plan approval binding, and all three original file hashes passed.
- Synthetic forward check: finalization, prior-draft preservation, semantic payload preservation, approval binding, source hashes, and refusal to overwrite an existing final package passed.
- Repository native file check and `git diff --check` passed. Existing `docs/validation.md` change was preserved. No root repository structure/identity/license files were changed by this task.
- No commit, push, deployment, remote setting change, recording license grant, independent fact-check, or audio/slide verification was performed.
Until the repository plan is approved and final-state support is promoted into the normal builder, verify final packages using the task-scoped helper:
```text
python tasks/structure-ai-ready-repository/finalize_approved_media.py verify --output <media-folder>/structured-final
```
The MIT license decision for the builder is confirmed and recorded in [the structure plan](repository-structure-plan.md). That plan remains awaiting approval.
Historical note, 2026-10-17: repository plan revision 1 was subsequently approved and implemented. Normal `scripts/folder_builder.py verify` and `search` now support this approved package; the task helper is retained as original execution evidence.
@@ -1,27 +0,0 @@
{
"identity": {
"owner": {
"name": "Eddie Soehnel"
}
},
"publication": {
"companion_site_url": null,
"media_host": null,
"status": "local-draft"
},
"repository": {
"canonical_url": "https://projects.eddiesoehnel.com/adminprojects/structured-media-builder-OPEN",
"name": "structured-media-builder-OPEN",
"repository_id": "adminprojects-structured-media-builder-open"
},
"repository_profile": "software-template-workflow",
"rights": {
"license": null,
"license_status": "not-selected",
"notice_file": "LICENSE.md"
},
"schema_version": "1.0",
"updated_at": "2026-10-17",
"verified_from": "User-specified target and guide repository identity; local target Git config.",
"version": "0.2.0"
}
@@ -1,228 +0,0 @@
{
"authors": [
{
"name": "Eddie Soehnel"
}
],
"canonical_url": "https://projects.eddiesoehnel.com/adminprojects/structured-media-builder-OPEN",
"contents": [
{
"path": "README.md",
"title": "Overview and quick start",
"type": "documentation"
},
{
"path": "AGENTS.md",
"title": "Repository operating instructions",
"type": "agent-guidance"
},
{
"path": "docs/workflow.md",
"title": "Recording-to-discovery process",
"type": "workflow"
},
{
"path": "docs/architecture.md",
"title": "Sources, contracts, and capability boundaries",
"type": "documentation"
},
{
"path": "docs/research.md",
"title": "Standards and platform research",
"type": "research"
},
{
"path": "docs/interfaces.md",
"title": "Proposed API and MCP adapters",
"type": "design"
},
{
"path": "PUBLICATION_WORKFLOW.md",
"title": "Publication approval and verification",
"type": "workflow"
},
{
"path": "scripts/media_builder.py",
"title": "Deterministic builder and retrieval CLI",
"type": "software"
},
{
"path": "schemas/",
"title": "Source and export JSON schemas",
"type": "schema-collection"
},
{
"path": "templates/",
"title": "Blocked-by-default starter inputs",
"type": "template-collection"
},
{
"path": "examples/",
"title": "Synthetic audio and video fixtures",
"type": "example-collection"
},
{
"path": "skills.md",
"title": "Repo-local skill index",
"type": "skill-index"
},
{
"path": "skills/structure-media/SKILL.md",
"title": "Media structuring workflow",
"type": "skill"
},
{
"path": "tests/test_media_builder.py",
"title": "Pipeline regression coverage",
"type": "test"
},
{
"path": "interfaces/openapi.json",
"title": "Proposed read-only HTTP API",
"type": "design-contract"
},
{
"path": "interfaces/mcp-tools.json",
"title": "Proposed read-only MCP tools",
"type": "design-contract"
},
{
"path": "requirements.txt",
"title": "Python dependency range",
"type": "configuration"
},
{
"path": "LICENSE.md",
"title": "License selection pending",
"type": "rights-status"
},
{
"path": "CHANGELOG.md",
"title": "Completed versioned changes",
"type": "changelog"
},
{
"path": "UPDATES.md",
"title": "Proposed additions",
"type": "roadmap"
},
{
"path": "skills/media-intake/SKILL.md",
"title": "Upfront metadata interview",
"type": "skill"
},
{
"path": "scripts/folder_builder.py",
"title": "Folder-first draft builder",
"type": "software"
},
{
"path": "templates/media-intake.md",
"title": "Copyable human metadata checklist",
"type": "template"
},
{
"path": "docs/public-export.md",
"title": "Later approved public exporter",
"type": "workflow"
},
{
"path": "tests/test_folder_builder.py",
"title": "Folder-first regression coverage",
"type": "test"
}
],
"created_at": "2026-10-17",
"description": "Folder-first media intake, semantic structuring, and in-folder draft assets for human review, with an optional approved public exporter.",
"entrypoints": {
"ai": "AGENTS.md",
"human": "README.md",
"primary_script": "scripts/folder_builder.py",
"primary_skill": "skills/media-intake/SKILL.md",
"primary_template": "templates/media-intake.md"
},
"expected_outputs": [
"In-folder draft overview and review checklist",
"Static companion site",
"Timed transcript JSON",
"Chunks and Q&A JSON",
"Chapter JSON",
"Discovery files",
"Build receipt"
],
"implemented_capabilities": [
"Folder-based metadata intake and interview",
"Local draft assets before human review",
"Source-preserving transcript alignment and audit",
"Timed semantic chunks and cited Q&A",
"Chapter and known-fact JSON-LD export",
"Local keyword retrieval",
"Optional approved static public exporter"
],
"interfaces": {
"mcp_tools": "interfaces/mcp-tools.json",
"openapi": "interfaces/openapi.json",
"status": "design-only"
},
"license": null,
"license_status": "not-selected",
"maturity": "experimental",
"name": "structured-media-builder-OPEN",
"not_implemented": [
"STT integrations",
"Hosted API",
"MCP server",
"Embeddings",
"Platform sync",
"Deployment",
"Independent fact or consent verification"
],
"publication_status": "local-draft",
"related_repositories": [
{
"relationship": "conceptual-guidance",
"url": "https://projects.eddiesoehnel.com/adminprojects/ai-knowledge-structure-OPEN"
},
{
"relationship": "implementation-pattern",
"url": "https://projects.eddiesoehnel.com/adminprojects/structured-website-builder-OPEN"
}
],
"repository_id": "adminprojects-structured-media-builder-open",
"repository_status": "active",
"required_inputs": [
"Original audio/video plus TXT and VTT in a folder",
"Partial metadata or source-page links",
"AI-authored draft intake and semantic plan"
],
"resource_types": [
"software",
"template",
"workflow",
"skill",
"documentation"
],
"runtime": {
"dependencies": "requirements.txt",
"network_calls": false,
"python": ">=3.11"
},
"schema_version": "1.0",
"title": "Structured Media Builder",
"topics": [
"media-discovery",
"audio",
"video",
"transcripts",
"structured-data",
"ai-retrieval"
],
"updated_at": "2026-10-17",
"validation": {
"example_build": "python scripts/media_builder.py build --catalog examples/catalog.json --output build/demo",
"folder_inspect": "python scripts/folder_builder.py inspect --folder <media-folder>",
"tests": "python -m unittest discover -s tests -v",
"verify": "python scripts/media_builder.py verify --root build/demo"
},
"version": "0.2.0"
}
@@ -1,134 +0,0 @@
# Repository Structure Plan
## Plan Control
- Task ID: `structure-ai-ready-repository`
- Target: `C:\projects\indx\structured-media-builder-OPEN`
- Mode: existing repository
- Profile: `software-automation`, retaining its working skills and templates
- Revision: 1
- Status: implemented
- Created/updated: 2026-10-17
- Structure approval evidence: user explicitly approved revision 1 on 2026-10-17 and requested the AI Knowledge Structure integration.
- License decision: MIT, explicitly selected by the user on 2026-10-17.
## Outcome
Apply the actual conventions, manifest schemas, identity model, lifecycle files, and validation of `C:\projects\productivity\repo-template-OPEN` while preserving the folder-first intake → structuring → review workflow. Keep implemented behavior distinct from planned API/MCP/embedding capabilities.
This plan governs repository standardization. The separately authorized webinar finalization is handled by the task-local approval utility and does not authorize publication or repository restructuring.
## Identity and publication
- Author/owner: Eddie Soehnel, already recorded in the target AUTHOR and manifest.
- Publisher/maintainer: Eddie Soehnel, proposed explicit roles matching the existing owner; no third-party identity will be inherited.
- Canonical repository URL: `https://projects.eddiesoehnel.com/adminprojects/structured-media-builder-OPEN`, matching existing configuration.
- License: MIT for builder code/docs; excludes any automatic license grant over third-party media, transcripts, slides, or source research.
- Current variables: `repository-variables.json`; preserve stable repository ID and canonical URL. Normalize the machine name to `structured-media-builder-open` for the standard schema while preserving the actual remote name/URL.
- Public visibility: supplied directly by the user. No Git-host setting changes are proposed.
## Current state and baseline
- Version 0.2.0; working media intake and structuring skills, two Python builders, nine media schemas, synthetic examples, interface designs, and 39 tests.
- The folder-first README and real webinar outputs were reviewed and approved by the user.
- Existing `docs/validation.md` has a local modification that must be preserved.
- The main manifest and variables use custom field layouts; several fields do not conform to the template schemas.
- Baseline software-automation audit fails with eight findings: missing LICENSE, missing skill_defaults/verified_by/verified_at, author/repository/rights alignment, and unsupported profile name. Full results: [baseline-audit.json](baseline-audit.json).
- No existing source/data directories need relocation. Real recordings remain outside this public template repo.
## Profile and catalog decision
Use software-automation because executable, tested builders are central. Preserve `skills/`, `templates/`, and examples as useful existing extensions.
Add a compact `content-index.json` for the substantive guide documents. The current manifest lists numerous individual documents and implementation files; the standard manifest will retain major collections and entry points while the document index routes readers to individual guides. Do not create chunks or Q&A merely to index template documentation.
## Proposed structure
```text
structured-media-builder-OPEN/
README.md, AUTHOR.md, AGENTS.md, skills.md
repository-variables.json, repository.json, content-index.json
LICENSE, LICENSE.md, CITATION.cff, VERSION, CHANGELOG.md, UPDATES.md
CONTRIBUTING.md, SECURITY.md, PUBLICATION_WORKFLOW.md
docs/README.md and existing guides
scripts/README.md, audit_repository.py, existing builders/checker
schemas/ (existing media schemas plus repository/variables/content-index schemas)
skills/, templates/, examples/, interfaces/, tests/
.gitea/PULL_REQUEST_TEMPLATE.md
.gitea/ISSUE_TEMPLATE/{bug-report.md,feature-request.md}
tasks/structure-ai-ready-repository/ (this plan, baseline, receipts)
```
## File actions
| Path | Action | Purpose and preservation |
| --- | --- | --- |
| `README.md` | modify | Preserve the approved folder-first instructions; add standardized identity, MIT, repository navigation, validation, and final-approval entry point. |
| `AUTHOR.md` | modify | Explicit author/publisher/maintainer, attribution, canonical URL, derived-repo identity guidance. |
| `AGENTS.md` | modify | Standard read order and source boundaries; preserve intake, unknowns, and approval/publication distinctions. |
| `repository-variables.json` | modify | Standard verified identity, canonical facts, MIT rights, software-automation profile, and workflow defaults. |
| `repository.json` | modify | Conform to the upstream manifest schema; preserve all useful capabilities, limitations, inputs/outputs, relations, and entry points in supported fields. |
| `content-index.json` | create | Stable file-level catalog of authoritative guides with repository-relative paths and document relations. |
| `LICENSE` | create | MIT terms with Eddie Soehnel copyright and 2026 year; user license selection is recorded above. |
| `LICENSE.md` | modify | Replace the outdated unselected-license notice with a clear link to LICENSE and separate third-party media rights. Preserve the existing path. |
| `CITATION.cff` | create | Repository-specific author, title, canonical URL, version, date, and MIT metadata. |
| `VERSION`, `CHANGELOG.md` | modify | Record standardization as 0.3.0 and preserve earlier history. No Git tag/release is created. |
| `UPDATES.md` | modify | Remove or mark the now-completed license decision; preserve remaining proposals as unapproved ideas. |
| `CONTRIBUTING.md`, `SECURITY.md`, `PUBLICATION_WORKFLOW.md` | modify | Align MIT and validation references; preserve independent media rights and explicit publication authority. |
| `docs/README.md` | create | Index the existing architecture, workflow, research, interfaces, public-export, and validation guides. |
| `docs/workflow.md`, `docs/architecture.md`, `docs/validation.md` | modify | Document final approval semantics and validation while retaining approved workflow and current validation notes. |
| `skills.md`, `skills/structure-media/SKILL.md` | modify | Include draft → owner-approved final lifecycle, with no inferred publication/rights clearance. Preserve the intake skill. |
| `scripts/README.md` | create | Document inspect/build/finalize/verify/search and repository audits. |
| `scripts/audit_repository.py` | create | Adapt the upstream read-only profile audit; retain source attribution and its MIT notice. |
| `scripts/check_repository.py` | modify | Validate standard manifest/variables/content index, citation/version/rights alignment, nullable entry points, and local links. Keep existing media checks. |
| `scripts/folder_builder.py` | modify | Promote the task-scoped explicit approval/finalization capability into the normal builder; verify approved packages and preserve draft history. |
| `schemas/repository.schema.json`, `schemas/repository-variables.schema.json`, `schemas/content-index.schema.json` | create | Copy the actual upstream contracts, retaining identifiers and attribution. |
| `schemas/folder-export.schema.json`, `schemas/README.md` | modify | Add explicit approved artifact state and document it; draft builds still cannot claim human approval. |
| `tests/test_repository.py` | create | Meaningful standard-schema, identity/version/license, document-catalog, and declared-path checks. |
| `tests/test_folder_builder.py` | modify | Final approval/state, source preservation, stale approval, and output integrity behavior. |
| `scripts/media_builder.py`, `interfaces/openapi.json`, synthetic example plans | modify | Align runtime/design version and refresh synthetic-only fingerprints when the version changes; preserve behavior and IDs. |
| `.gitea/PULL_REQUEST_TEMPLATE.md`, `.gitea/ISSUE_TEMPLATE/bug-report.md`, `.gitea/ISSUE_TEMPLATE/feature-request.md` | create | Small Gitea contribution templates relevant to this repo; no CI, credentials, or server settings. |
| `tasks/structure-ai-ready-repository/implementation-receipt.md`, `validation-results.md` | create | Record approved revision, exact changes, tests, limitations, and rollback. |
| Existing sources, examples, stable IDs, remote config, and real webinar originals | preserve | No relocation, deletion, fetch, push, commit, deployment, or media licensing changes. |
| Empty assets/data/receipts folders, runtime agents, hosted API/MCP, embeddings | leave absent | No implemented need and no publication authority. |
## Entry points and host choices
Human: README. AI read order: README → AUTHOR → variables → manifest → document index as needed → AGENTS/skills → relevant workflow. `UPDATES.md` remains future notes, not authority. Gitea templates are proposed because the verified origin is the user's projects host; no Git-host setting changes are included.
## Validation and done criteria
- Upstream software-automation audit passes, and project-specific contract checks pass.
- Repository, variables, and document catalog validate against the copied upstream schemas.
- Identity, canonical URL, MIT, version 0.3.0, citation, changelog, declared paths, and local links agree.
- All existing 39 tests plus justified new repository/approval tests pass.
- Both media skills pass the skill validator in UTF-8 mode.
- Synthetic public export remains reproducible; local approved-package verification and representative retrieval work.
- Existing source hashes, semantic IDs, user edits, and real webinar originals remain unchanged.
- Whitespace and targeted credential/private-data review pass. No unsupported service/indexing claims.
Planned commands:
```text
python scripts/audit_repository.py . --profile software-automation --json
python scripts/check_repository.py
python -m unittest discover -s tests -v
python -X utf8 <skill-creator>/scripts/quick_validate.py skills/media-intake
python -X utf8 <skill-creator>/scripts/quick_validate.py skills/structure-media
git diff --check
```
## Risks, boundaries, and rollback
- Replacing the custom manifest requires careful field mapping, not loss of capabilities or limitations. Preserve its prior form in task evidence before editing.
- Version changes invalidate synthetic fixture approval fingerprints; refresh only synthetic records. Do not reapprove a real artifact silently because template code changed.
- A final approved local package remains distinct from public deployment and from third-party content licensing.
- The task-local approved-state validator is the current verification entry point for the finalized webinar. Support has now been promoted into the main builder under this approved plan; the task-local utility remains historical evidence.
- Preserve the current local validation-document change. Reinspect Git status/hashes before applying the plan.
- Roll back only changes made by this task using reviewed file copies/diffs; do not reset unrelated work or rewrite history.
## Approval
Revision 1 was explicitly approved and implemented on 2026-10-17. MIT and Eddie Soehnel as author/publisher/maintainer are confirmed. See [implementation receipt](implementation-receipt.md) and [validation results](validation-results.md). No outstanding approval remains for the local implementation described here.
Required gate source: `C:\projects\productivity\repo-template-OPEN\skills\structure-ai-ready-repository\SKILL.md`. The user-provided local skill is authoritative for this run.
@@ -1,22 +0,0 @@
# Validation results
Validated 2026-10-17 for approved structure-plan revision 1.
| Check | Result |
| --- | --- |
| Repository software-automation audit | Pass; no findings |
| Standard manifest/variables/document-catalog schemas | Pass |
| Native metadata, identity, MIT, version, path, link, syntax, and targeted credential-pattern checks | Pass |
| Regression tests | 51 passed |
| Metadata-intake and structure-media skill validators | Pass with UTF-8 mode |
| Synthetic public export and output checksums | Pass for both examples |
| Existing approved real-package verification with standard builder | Pass; original sources remain unchanged |
| Guide documentation profile audit | Pass |
| Guide JSON contracts, version/author/citation, paths, and local links | Pass; 28 relative links resolve |
| Guide scope preservation | No implementation code/schemas/skills/media copied; compact reference profile retained |
The guide's untouched CIS document has pre-existing trailing whitespace; its bytes were preserved. Whitespace checks apply to changed content, and existing content was not reformatted as unrelated cleanup.
No live playback, hosted response, external link availability, deployed API/MCP, embedding behavior, independent source fact-check, or search/AI indexing was tested. Public repository URLs in the reference guide route to their owning implementations; unpushed local changes are not represented as remotely published.
Final canonical readback: both repositories passed their profile audits; 51 builder tests passed in the target checkout; the native checker confirmed MIT, version 0.3.0, and 11 indexed source guides. The final real-media package passed the normal verifier with all source checks enabled. Delivery verified SHA-256 for all 54 created/modified files across both repositories.
+2 -2
View File
@@ -12,7 +12,7 @@ class ApprovalLifecycleTests(unittest.TestCase):
def finalize(self):
return media_approval.finalize(self.output,self.folder/'structured-final',self.intake,self.plan,
'Synthetic reviewer','2026-10-17T22:38:28Z','Explicit synthetic approval')
'Synthetic reviewer','2026-01-15T12:00:00Z','Explicit synthetic approval')
def test_final_package_and_draft_history(self):
self.build()
@@ -54,7 +54,7 @@ class ApprovalLifecycleTests(unittest.TestCase):
self.build()
with self.assertRaisesRegex(ValueError,'approval evidence required'):
media_approval.finalize(self.output,self.folder/'structured-final',self.intake,self.plan,
'Reviewer','2026-10-17T22:38:28Z','')
'Reviewer','2026-01-15T12:00:00Z','')
def test_existing_final_is_not_overwritten(self):
self.build();self.finalize()
+22
View File
@@ -45,3 +45,25 @@ class RepositoryContractTests(unittest.TestCase):
self.mutate('repository.json',lambda m:m.update(version='99.0.0'))
with self.assertRaisesRegex(AssertionError,'Manifest/version mismatch'):
check_repository.validate_contracts(self.root)
def test_public_template_has_no_operational_data(self):
self.assertGreater(check_repository.validate_public_template(ROOT)['public_template_files'], 0)
def test_private_task_record_is_rejected(self):
private = self.root/'tasks'/'operator-notes.md'
private.parent.mkdir()
private.write_text('Synthetic operational record', encoding='utf-8')
with self.assertRaisesRegex(AssertionError, 'Operational records'):
check_repository.validate_public_template(self.root)
def test_machine_specific_path_is_rejected(self):
path = self.root/'docs'/'local-path.md'
path.write_text('Z' + ':' + '/workstation/recordings/session', encoding='utf-8')
with self.assertRaisesRegex(AssertionError, 'Absolute machine path'):
check_repository.validate_public_template(self.root)
def test_recording_approval_receipt_is_rejected(self):
(self.root/'approval.json').write_text('{}', encoding='utf-8')
with self.assertRaisesRegex(AssertionError, 'Recording-specific output'):
check_repository.validate_public_template(self.root)