added
This commit is contained in:
1 parent
4eaec52904
commit
df7571392e
50 files changed
+3390
-258
No files matched your search
@@ -0,0 +1,65 @@
|
||||
# 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.
|
||||
|
||||
@@ -0,0 +1,579 @@
|
||||
{
|
||||
"$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
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"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)"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,164 @@
|
||||
"""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()
|
||||
@@ -0,0 +1,14 @@
|
||||
# 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.
|
||||
@@ -0,0 +1,24 @@
|
||||
# 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.
|
||||
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"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"
|
||||
}
|
||||
@@ -0,0 +1,228 @@
|
||||
{
|
||||
"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"
|
||||
}
|
||||
@@ -0,0 +1,134 @@
|
||||
# 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.
|
||||
@@ -0,0 +1,22 @@
|
||||
# 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.
|
||||
Reference in new issue
Block a user