From a47b915ed5cc07be959d783ef6f935ebf4b6c930 Mon Sep 17 00:00:00 2001 From: eddiesoehnel Date: Mon, 19 Oct 2026 12:56:31 -0600 Subject: [PATCH] added --- .gitignore | 14 + AGENTS.md | 2 +- AUTHOR.md | 2 +- CHANGELOG.md | 6 + CONTRIBUTING.md | 2 +- LICENSE.md | 2 +- README.md | 34 +- SECURITY.md | 4 + content-index.json | 8 +- docs/research.md | 4 +- docs/validation.md | 53 +- repository-variables.json | 2 +- repository.json | 4 +- scripts/README.md | 2 +- scripts/check_repository.py | 26 +- ...arser-original-default-and-job-settings.md | 65 -- .../approved-folder-export.schema.json | 579 ------------------ .../baseline-audit.json | 39 -- .../finalize_approved_media.py | 164 ----- .../implementation-receipt.md | 14 - .../media-finalization-receipt.md | 24 - .../prior-repository-variables.json | 27 - .../prior-repository.json | 228 ------- .../repository-structure-plan.md | 134 ---- .../validation-results.md | 22 - tests/test_media_approval.py | 4 +- tests/test_repository.py | 22 + 27 files changed, 135 insertions(+), 1352 deletions(-) delete mode 100644 tasks/2026-10-18-lod-media-parser-original-default-and-job-settings.md delete mode 100644 tasks/structure-ai-ready-repository/approved-folder-export.schema.json delete mode 100644 tasks/structure-ai-ready-repository/baseline-audit.json delete mode 100644 tasks/structure-ai-ready-repository/finalize_approved_media.py delete mode 100644 tasks/structure-ai-ready-repository/implementation-receipt.md delete mode 100644 tasks/structure-ai-ready-repository/media-finalization-receipt.md delete mode 100644 tasks/structure-ai-ready-repository/prior-repository-variables.json delete mode 100644 tasks/structure-ai-ready-repository/prior-repository.json delete mode 100644 tasks/structure-ai-ready-repository/repository-structure-plan.md delete mode 100644 tasks/structure-ai-ready-repository/validation-results.md diff --git a/.gitignore b/.gitignore index a4fb3a8..ebb3802 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/AGENTS.md b/AGENTS.md index 712c596..e88c792 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -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. diff --git a/AUTHOR.md b/AUTHOR.md index ce07b5c..56a1771 100644 --- a/AUTHOR.md +++ b/AUTHOR.md @@ -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. diff --git a/CHANGELOG.md b/CHANGELOG.md index 0110f83..17c3889 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index d277dd9..bb5aabf 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -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. diff --git a/LICENSE.md b/LICENSE.md index 3763a27..d84669c 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -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. diff --git a/README.md b/README.md index d759c95..270c529 100644 --- a/README.md +++ b/README.md @@ -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 `` with your clone location and `` with your recording folder. -C:\PATH\TO\MY-MEDIA-FOLDER +```text +Use to structure the media in: + + 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 to structure the media in: + 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 "" +python scripts/folder_builder.py prepare --folder "" --output "/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 "" --intake "/media-intake.json" --output "/structure-plan.json" +python scripts/folder_builder.py build --folder "" --intake "/media-intake.json" --plan "/structure-plan.json" --output "/structured" +python scripts/folder_builder.py verify --output "/structured" +python scripts/folder_builder.py search --output "/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 "\structured" --output "\structured-final" --intake "\media-intake.json" --plan "\structure-plan.json" --reviewer "" --approved-at "" --evidence "" -python scripts/folder_builder.py verify --output "\structured-final" +python scripts/folder_builder.py finalize --source "/structured" --output "/structured-final" --intake "/media-intake.json" --plan "/structure-plan.json" --reviewer "" --approved-at "" --evidence "" +python scripts/folder_builder.py verify --output "/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). diff --git a/SECURITY.md b/SECURITY.md index 79e3071..a88a925 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -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. diff --git a/content-index.json b/content-index.json index 1df81b7..409d31d 100644 --- a/content-index.json +++ b/content-index.json @@ -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" ], diff --git a/docs/research.md b/docs/research.md index 3cb996c..9d9cda1 100644 --- a/docs/research.md +++ b/docs/research.md @@ -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. diff --git a/docs/validation.md b/docs/validation.md index b3a914c..aefad9e 100644 --- a/docs/validation.md +++ b/docs/validation.md @@ -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. diff --git a/repository-variables.json b/repository-variables.json index 1264566..039e7d5 100644 --- a/repository-variables.json +++ b/repository-variables.json @@ -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" } diff --git a/repository.json b/repository.json index a52895d..6eda671 100644 --- a/repository.json +++ b/repository.json @@ -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 }, diff --git a/scripts/README.md b/scripts/README.md index f8de6fe..9282aeb 100644 --- a/scripts/README.md +++ b/scripts/README.md @@ -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. diff --git a/scripts/check_repository.py b/scripts/check_repository.py index d56c6ca..de29312 100644 --- a/scripts/check_repository.py +++ b/scripts/check_repository.py @@ -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'(? 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() diff --git a/tasks/structure-ai-ready-repository/implementation-receipt.md b/tasks/structure-ai-ready-repository/implementation-receipt.md deleted file mode 100644 index 3c5dfb7..0000000 --- a/tasks/structure-ai-ready-repository/implementation-receipt.md +++ /dev/null @@ -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. diff --git a/tasks/structure-ai-ready-repository/media-finalization-receipt.md b/tasks/structure-ai-ready-repository/media-finalization-receipt.md deleted file mode 100644 index 08df201..0000000 --- a/tasks/structure-ai-ready-repository/media-finalization-receipt.md +++ /dev/null @@ -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 /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. diff --git a/tasks/structure-ai-ready-repository/prior-repository-variables.json b/tasks/structure-ai-ready-repository/prior-repository-variables.json deleted file mode 100644 index 80c25d8..0000000 --- a/tasks/structure-ai-ready-repository/prior-repository-variables.json +++ /dev/null @@ -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" -} diff --git a/tasks/structure-ai-ready-repository/prior-repository.json b/tasks/structure-ai-ready-repository/prior-repository.json deleted file mode 100644 index 7102023..0000000 --- a/tasks/structure-ai-ready-repository/prior-repository.json +++ /dev/null @@ -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 ", - "tests": "python -m unittest discover -s tests -v", - "verify": "python scripts/media_builder.py verify --root build/demo" - }, - "version": "0.2.0" -} diff --git a/tasks/structure-ai-ready-repository/repository-structure-plan.md b/tasks/structure-ai-ready-repository/repository-structure-plan.md deleted file mode 100644 index 741057e..0000000 --- a/tasks/structure-ai-ready-repository/repository-structure-plan.md +++ /dev/null @@ -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 /scripts/quick_validate.py skills/media-intake -python -X utf8 /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. diff --git a/tasks/structure-ai-ready-repository/validation-results.md b/tasks/structure-ai-ready-repository/validation-results.md deleted file mode 100644 index 7a95bfc..0000000 --- a/tasks/structure-ai-ready-repository/validation-results.md +++ /dev/null @@ -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. diff --git a/tests/test_media_approval.py b/tests/test_media_approval.py index 3ddae62..8eae2c5 100644 --- a/tests/test_media_approval.py +++ b/tests/test_media_approval.py @@ -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() diff --git a/tests/test_repository.py b/tests/test_repository.py index e3259a7..a00025f 100644 --- a/tests/test_repository.py +++ b/tests/test_repository.py @@ -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)