This commit is contained in:
eddiesoehnel committed 2026-07-31 16:31:45 -06:00
commit df52f578a2
47 files changed
+7328

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
# Tasks
Task folders contain approval-aware plans, implementation receipts, and validation results for bounded repository work.
A task plan records proposed scope; it is not authorization by itself. Implementation may proceed only after the plan's current revision receives explicit approval.
@@ -0,0 +1,60 @@
# Implementation Receipt
## Control
- Task: `structure-ai-ready-repository`
- Approved revision: `1`
- Approval date: `2026-07-31`
- Implemented date: `2026-07-31`
- Implementer: Codex, acting on explicit user approval
## Approval Evidence
The user approved revision 1 with: "Yes this is good." The user also confirmed that new email analyses are generated with a ChatGPT skill and will be added approximately weekly.
## Implemented Actions
- Added verified repository identity, manifest, content index, CC BY 4.0 license, citation, version, change history, security guidance, contribution guidance, and agent entry points.
- Migrated the existing email-analysis workflow to `skills/outdoor-brand-email-innovation-intelligence/SKILL.md` and added valid skill frontmatter, portable source requirements, repository maintenance steps, and safety boundaries.
- Added a placeholder-only weekly report template.
- Added a collection guide with a recurring weekly add/index/validate routine.
- Indexed all 12 existing Markdown documents without rewriting them.
- Preserved the historical Markdown conversion record under `receipts/markdown-conversion-report.json`.
- Added repository-local schemas, validation, and unit tests.
- Added this receipt and a validation-results record.
## Moves
- `skill-b2c-b2b2c-industry-intelligence-from-list-emails.md` → `skills/outdoor-brand-email-innovation-intelligence/SKILL.md`, followed by the approved structural and portability edits.
- `outdoor-brand-email-analysis/conversion-report.json` → `receipts/markdown-conversion-report.json` without content changes.
## Preservation
- All 12 historical Markdown documents under `outdoor-brand-email-analysis/` were left at their existing paths and were not edited.
- The external consumer-brand playbook was not copied into this repository.
- Git remotes, host configuration, branches, tags, releases, visibility settings, and repository topics were not changed.
## Deviations And Clarifications
- Content inspection showed that `2026-06-01-outdoor-brand-innovation-email-intelligence.md` contains applied-knowledge and recommendation notes rather than a weekly email intelligence report. It remains unchanged and is indexed accurately as `supporting-notes`.
- The template root validator is a validator for the full reference implementation, not a profile-aware target validator. It reported the intentionally absent `.gitea/`, `assets/`, `data/`, `docs/`, reference-skill, and template-example paths. The template's profile-aware audit, repository-local validator, tests, and skill validator all passed.
- No material departure from approved revision 1 occurred.
## Validation Summary
- Repository-local validator: PASS with no findings.
- Skill/workflow profile audit: PASS with no findings.
- Unit tests: PASS, 6 tests.
- Codex skill quick validation: PASS.
- JSON and CFF parsing: PASS.
- Historical report preservation: PASS, 12 of 12 SHA-256 hashes unchanged.
- Conversion receipt preservation: PASS, SHA-256 unchanged.
- Obvious secret scan: PASS.
See `validation-results.md` for commands and limitations.
## Rollback Guidance
Before the first commit, remove the newly created template files and folders, move the skill back to its original root filename, and move the conversion receipt back to `outdoor-brand-email-analysis/conversion-report.json`. Historical report rollback is unnecessary because those files were not edited.
After the repository is committed, use a normal revert of the implementing commit; do not rewrite or delete historical reports independently.
@@ -0,0 +1,228 @@
# Repository Structure Plan
## Plan Control
- Task ID: `structure-ai-ready-repository`
- Target repository: `C:\projects\indx\brand-innovation-intelligence`
- Repository mode: `existing`
- Profile: `skill-workflow`
- Revision: `1`
- Status: `implemented`
- Created: `2026-07-31`
- Updated: `2026-07-31`
- Approval evidence: User approved revision 1 on `2026-07-31`: "Yes this is good." The same message confirmed that new ChatGPT-skill email analyses will be added approximately weekly.
## Outcome
Create a compact, content-aware repository structure that lets humans understand and run the outdoor-brand intelligence workflow, lets AI agents retrieve the correct skill and dated reports safely, and makes repository identity, rights, versioning, content discovery, and validation explicit.
## Identity And Publication
- Author(s): `Eddie Soehnel`
- Publisher: `Eddie Soehnel`
- Maintainer: `Eddie Soehnel`
- Canonical repository URL: `https://projects.eddiesoehnel.com/adminprojects/brand-innovation-intelligence`
- License: `Creative Commons Attribution 4.0 International (CC BY 4.0)`
- Version: `0.1.0`
- Repository variables: not currently present; create `repository-variables.json` from these verified values
- Identity source: user confirmation on `2026-07-31`; canonical URL also matches the existing Git `origin`
## Current State
### Facts
- The repository is an existing Git worktree with no commits in its current history.
- Git `origin` is `https://projects.eddiesoehnel.com/adminprojects/brand-innovation-intelligence`.
- The worktree currently contains untracked, user-owned content only.
- The root contains one reusable workflow file: `skill-b2c-b2b2c-industry-intelligence-from-list-emails.md`.
- `outdoor-brand-email-analysis/` contains 12 dated Markdown intelligence reports and `conversion-report.json`.
- The workflow uses a connected Gmail inbox and an external consumer-brand playbook as source inputs.
- No repository-level README, manifest, author record, license, version, agent instructions, skill index, content index, validation scripts, or supporting profile directories currently exist.
- No existing `AGENTS.md` or conflicting repository-local instructions were found.
### Assumptions
- The repository is intended for public reuse because the verified license is CC BY 4.0; approval of this plan confirms `visibility: public` and `access.public: true` in the manifest.
- `adminprojects` is the repository organization identifier and display name because it is the organization segment in the verified canonical URL.
- The current reports are authoritative historical outputs and should not be rewritten during repository restructuring.
- The external playbook remains a required input and will not be copied into this repository.
- The repository is authored with AI assistance but remains human-maintained.
### Baseline Audit
- Command: `python C:\projects\productivity\repo-template-OPEN\skills\structure-ai-ready-repository\scripts\audit_repository.py C:\projects\indx\brand-innovation-intelligence --profile skill-workflow --json`
- Result: failed as expected for the current minimal repository, reporting 13 missing profile paths: `AGENTS.md`, `AUTHOR.md`, `CHANGELOG.md`, `LICENSE`, `README.md`, `UPDATES.md`, `VERSION`, `examples/`, `repository-variables.json`, `repository.json`, `skills/`, `skills.md`, and `templates/`.
## Profile Decision
Use the `skill-workflow` profile because the repository's primary reusable artifact is an AI-assisted intelligence workflow. Add `content-index.json` because the repository is also content-heavy: it contains 12 individually addressable, dated intelligence reports and is expected to receive recurring reports. A larger software profile is unnecessary because there is no application or operational code. A documentation-only profile would underrepresent the executable workflow and its source, evidence, approval, and validation rules.
## Proposed Structure
```text
brand-innovation-intelligence/
├── README.md
├── AUTHOR.md
├── repository-variables.json
├── repository.json
├── content-index.json
├── LICENSE
├── CHANGELOG.md
├── UPDATES.md
├── VERSION
├── CITATION.cff
├── CONTRIBUTING.md
├── SECURITY.md
├── AGENTS.md
├── skills.md
├── .gitignore
├── outdoor-brand-email-analysis/
│ ├── README.md
│ └── 12 existing dated Markdown reports
├── skills/
│ ├── README.md
│ └── outdoor-brand-email-innovation-intelligence/
│ └── SKILL.md
├── templates/
│ ├── README.md
│ └── weekly-outdoor-brand-intelligence-report.md
├── examples/
│ └── README.md
├── schemas/
│ ├── README.md
│ ├── repository.schema.json
│ ├── repository-variables.schema.json
│ └── content-index.schema.json
├── scripts/
│ ├── README.md
│ └── validate_repository.py
├── tests/
│ ├── README.md
│ └── test_repository.py
├── receipts/
│ ├── README.md
│ └── markdown-conversion-report.json
└── tasks/
├── README.md
└── structure-ai-ready-repository/
├── repository-structure-plan.md
├── implementation-receipt.md
└── validation-results.md
```
## File Actions
| Path | Action | Purpose and planned content | Existing-content treatment |
|---|---|---|---|
| `README.md` | `create` | Human entry point covering purpose, audience, workflow, inputs, outputs, report collection, validation, version, limitations, privacy, and license. | New project-specific content; do not copy template branding. |
| `AUTHOR.md` | `create` | Canonical author, publisher, maintainer, attribution, canonical URL, and adaptation guidance. | Use user-verified identity only. |
| `repository-variables.json` | `create` | Persist verified identity, repository ID/name/title/URL, organization, CC BY 4.0 rights, `skill-workflow` profile, and preservation/approval defaults. | Use verified values and `verified_at: 2026-07-31`; omit unsupported optional facts. |
| `repository.json` | `create` | Machine-readable manifest for the repository, primary skill, report collection, content index, audiences, capabilities, rights, provenance, and retrieval order. | Describe actual contents and use stable ID `adminprojects-brand-innovation-intelligence`. |
| `content-index.json` | `create` | Compact catalog with one stable record for each of the 12 dated reports. | Index existing files without copying report bodies; use repository-relative paths and unique IDs. |
| `LICENSE` | `create` | CC BY 4.0 license text and copyright attribution. | Use the user-verified license; do not inherit the template's MIT license. |
| `CHANGELOG.md` | `create` | Record initial `0.1.0` repository structure, migrated skill, and indexed historical reports. | Completed work only. |
| `UPDATES.md` | `create` | Future proposals and pending decisions only. | Do not present proposed work as approved or completed. |
| `VERSION` | `create` | Deterministic version `0.1.0`. | Align with manifest, citation, and changelog. |
| `CITATION.cff` | `create` | Citation metadata aligned to Eddie Soehnel, title, URL, CC BY 4.0, date, and version `0.1.0`. | Use verified identity and rights. |
| `CONTRIBUTING.md` | `create` | Explain report, taxonomy, skill, and documentation contributions; require evidence preservation and anonymization. | New project-specific guidance. |
| `SECURITY.md` | `create` | Protect Gmail credentials, message data, private links, customer information, and external-source material; describe private reporting without inventing a contact channel. | State that maintainers should be contacted through an established private channel; no fabricated email address. |
| `AGENTS.md` | `create` | Scoped read order, content authority, task routing, preservation rules, Gmail/privacy constraints, approval boundaries, and validation commands. | New procedural guidance; reports remain authoritative evidence records. |
| `skills.md` | `create` | Index the outdoor-brand intelligence skill, triggers, inputs, outputs, source requirements, and approval/sending boundaries. | Describe the migrated existing skill accurately. |
| `.gitignore` | `create` | Exclude credentials, environment files, caches, editor files, and transient outputs. | Do not ignore authoritative reports, task records, or receipts. |
| `skill-b2c-b2b2c-industry-intelligence-from-list-emails.md` | `move` | Relocate the reusable workflow to the standard skill path. | Preserve substantive instructions; no deletion. |
| `skills/outdoor-brand-email-innovation-intelligence/SKILL.md` | `modify` | Add stable front matter, objective, authority, inputs, workflow, validation, output, privacy, and escalation structure; retain the existing analytical taxonomy and report format. Replace the machine-local playbook path with a portable required-input description while documenting that maintainers may configure a local source path. | Merge and reorganize existing content without changing the workflow's analytical intent. |
| `skills/README.md` | `create` | Index repository skills and identify the primary skill. | New index. |
| `templates/weekly-outdoor-brand-intelligence-report.md` | `create` | Reusable weekly report scaffold derived from the existing skill's output contract with visible placeholders. | Do not duplicate historical findings or include real email data. |
| `templates/README.md` | `create` | Explain template purpose, required placeholders, and use. | New index. |
| `examples/README.md` | `create` | Explain that no synthetic worked example is included yet and distinguish examples from evidence-backed historical reports. | Avoid relabeling real reports as synthetic examples. |
| `outdoor-brand-email-analysis/README.md` | `create` | Explain the report collection, naming, evidence limitations, chronology, and relationship to the primary skill and content index. | Do not edit the 12 reports. |
| `outdoor-brand-email-analysis/*.md` | `preserve` | Historical, authoritative intelligence reports. | Preserve wording, formatting, names, and paths exactly. |
| `outdoor-brand-email-analysis/conversion-report.json` | `move` | Relocate a process-validation artifact to the repository's receipt area. | Preserve JSON content; change only its path. |
| `receipts/markdown-conversion-report.json` | `preserve` | Retain the prior Markdown conversion validation record as provenance. | No content rewrite unless a relative path must be clarified without falsifying the receipt. |
| `receipts/README.md` | `create` | Explain sanitized workflow receipts, authority, privacy, and non-source status. | New index. |
| `schemas/repository.schema.json` | `create` | Copy the compatible generic manifest schema from the template so the repository can validate itself. | Retain standard contract; no project-specific weakening. |
| `schemas/repository-variables.schema.json` | `create` | Copy the compatible repository-variable schema. | Retain standard contract. |
| `schemas/content-index.schema.json` | `create` | Copy the compatible content-index schema. | Retain standard uniqueness and path-safety contract. |
| `schemas/README.md` | `create` | Index schemas and their validation targets. | New index. |
| `scripts/validate_repository.py` | `create` | Adapt the template's dependency-free validator for this repository profile, metadata alignment, content-index integrity, version alignment, and relative links. | Reuse the template implementation where compatible; keep checks project-neutral. |
| `scripts/README.md` | `create` | Document runtime, read-only behavior, command, inputs, outputs, and failure modes. | New project-specific documentation. |
| `tests/test_repository.py` | `create` | Exercise repository validation, metadata alignment, indexed path existence, and skill/report entry points. | Use repository-local, deterministic tests only. |
| `tests/README.md` | `create` | Document test command and coverage. | New index. |
| `tasks/README.md` | `create` | Explain approval-aware task records and their non-authorization status. | New index. |
| `tasks/structure-ai-ready-repository/repository-structure-plan.md` | `create` | This approval artifact. | Only pre-approval target write. |
| `tasks/structure-ai-ready-repository/implementation-receipt.md` | `create` | Record approved revision, actions, deviations, and rollback guidance after implementation. | Create only after approval. |
| `tasks/structure-ai-ready-repository/validation-results.md` | `create` | Record commands, results, limitations, and unresolved issues. | Create only after approval. |
| `.gitea/` | `leave absent` | Avoid host workflow files until contribution and issue-routing needs justify them. | Existing remote is Gitea-like, but no host-specific files are required for the initial profile. |
| `docs/` | `leave absent` | Keep supporting guidance in the README, collection README, and skill until deeper documentation is needed. | Avoid empty ceremonial documentation. |
| `data/` | `leave absent` | Reports are documents, not a dataset with a defined record schema. | Avoid misclassifying the report collection. |
| `assets/` | `leave absent` | No repository assets are currently referenced. | Create only when sourced, rights-documented media exists. |
## Human and AI Entry Points
- Human starts at: `README.md`
- AI agent starts at: `README.md`, then `AGENTS.md`
- Authoritative manifest: `repository.json`
- Verified repository variables: `repository-variables.json`
- Retrieve next: `content-index.json` for a dated report; `skills.md` and `skills/outdoor-brand-email-innovation-intelligence/SKILL.md` to run the workflow; individual report files only when needed
## Hosting Platform Choices
- Detected canonical Git host: `projects.eddiesoehnel.com`, with organization segment `adminprojects`.
- Do not modify remote settings, repository description, topics, visibility, releases, tags, or branch configuration.
- Leave `.gitea/` absent in version `0.1.0`; add host-specific issue or pull-request templates only when the maintainer requests them.
- Record recommended hosting description and topics in `repository.json`, but do not apply them to the host.
## Validation and Definition of Done
- [x] Required files contain project-specific, accurate content.
- [x] Machine-readable files parse and agree with authoritative values.
- [x] `repository-variables.json` contains verified stable inputs and agrees with attribution, manifest, citation, and license files.
- [x] All 12 reports have unique content IDs and paths in `content-index.json`.
- [x] Declared paths and internal links resolve.
- [x] `VERSION`, `repository.json`, `CITATION.cff`, and `CHANGELOG.md` align at `0.1.0`.
- [x] The existing skill's analytical rules and all dated reports are preserved.
- [x] The migrated skill passes the available Codex skill validator.
- [x] Template profile audit, repository-local validator, and tests pass.
- [x] Examples and templates are synthetic or placeholder-only.
- [x] No credentials, private email contents, or machine-local secrets are introduced.
- [x] Agent instructions are scoped and non-conflicting.
- [x] The plan, implementation receipt, and validation results accurately record the work.
Commands:
```text
python C:\projects\productivity\repo-template-OPEN\skills\structure-ai-ready-repository\scripts\audit_repository.py C:\projects\indx\brand-innovation-intelligence --profile skill-workflow --json
python scripts/validate_repository.py .
python -m unittest discover -s tests -p "test_*.py"
python C:\projects\productivity\repo-template-OPEN\scripts\validate_repository.py C:\projects\indx\brand-innovation-intelligence
```
Also run the available Codex skill validator against `skills/outdoor-brand-email-innovation-intelligence/SKILL.md`; the exact command will be recorded in `validation-results.md` after tool discovery.
## Risks and Preservation Notes
- All current files are untracked, so Git cannot restore them until the maintainer commits them; implementation must use explicit source/destination checks and preserve report hashes.
- The existing workflow points to a machine-local external playbook path. The migrated skill must become portable without implying the external playbook is included.
- Historical reports appear to contain brand and campaign evidence from real emails. They must not be rewritten, generalized, or presented as synthetic examples.
- Gmail access may expose personal or sensitive information. Repository instructions must prohibit committing credentials, private message bodies, private links, or unrelated personal data.
- Moving the skill changes its path. All new entry points and indexes must use the new path; no compatibility stub is planned unless requested.
- Moving the conversion report changes its path but not its content or evidentiary meaning.
- CC BY 4.0 applies to repository content unless a file explicitly states otherwise; third-party names, quoted email material, and referenced sources remain subject to their own rights.
## Out of Scope
- Editing or regenerating the 12 historical reports.
- Copying or publishing the external consumer-brand playbook.
- Accessing Gmail or generating a new intelligence report.
- Changing Git remotes, host visibility, topics, descriptions, releases, tags, branches, or repository settings.
- Creating a commit, pull request, release, or publication deployment.
- Adding automation, scheduled scans, semantic chunks, knowledge IDs, `chunks.json`, or `qa.json`.
- Creating synthetic brand findings or examples that could be confused with real evidence.
## Open Questions
- None blocking. Approval of this plan confirms the stated `public` visibility assumption and authorizes the proposed move of the skill and conversion receipt.
## Approval
Approve this exact revision before implementation. Amendments create a new revision and return the plan to `awaiting approval`.
@@ -0,0 +1,87 @@
# Validation Results
## Control
- Task: `structure-ai-ready-repository`
- Approved revision: `1`
- Validation date: `2026-07-31`
- Status: `passed with one documented reference-validator limitation`
## Passed Checks
### Repository-local validator
Command:
```text
python scripts/validate_repository.py . --json
```
Result: PASS with no findings.
### Unit tests
Command:
```text
python -m unittest discover -s tests -p "test_*.py"
```
Result: PASS; 6 tests ran. Coverage includes the current repository, missing required paths, identity mismatch, duplicate content IDs, missing indexed content, and unindexed reports.
### Template profile audit
Command:
```text
python C:\projects\productivity\repo-template-OPEN\skills\structure-ai-ready-repository\scripts\audit_repository.py C:\projects\indx\brand-innovation-intelligence --profile skill-workflow --json
```
Result: PASS with no findings.
### Codex skill validation
Command:
```text
C:\Users\edsoe\AppData\Local\Programs\Python\Python313\python.exe -X utf8 C:\Users\edsoe\.codex\skills\.system\skill-creator\scripts\quick_validate.py C:\projects\indx\brand-innovation-intelligence\skills\outdoor-brand-email-innovation-intelligence
```
Result: PASS (`Skill is valid!`). The system Python was used because the bundled workspace Python does not include PyYAML; UTF-8 mode was required because the source contains Unicode punctuation.
### Machine-readable files
Result: PASS. Seven JSON files and `CITATION.cff` parsed successfully. Repository identity, publisher, maintainer, rights, version, entry points, and content-index paths also passed the repository-local alignment checks.
### Content index
Result: PASS. `content-index.json` contains 12 unique IDs and 12 unique paths. Every indexed file exists, every Markdown document in the collection is indexed, and all related-content references resolve.
### Historical content preservation
Result: PASS. SHA-256 hashes for all 12 historical Markdown documents match their pre-implementation values. The moved Markdown conversion receipt also retains its original SHA-256 hash.
### Security and portability scans
Result: PASS. No obvious secret assignments or private-key blocks were found in created repository-control files. The primary skill contains no machine-specific absolute path. No source-template identity or MIT licensing residue remains outside the task record that documents the source template.
## Reference-Validator Limitation
Command:
```text
python C:\projects\productivity\repo-template-OPEN\scripts\validate_repository.py C:\projects\indx\brand-innovation-intelligence --json
```
Result: NOT APPLICABLE / expected failure. This script validates the template repository's full reference implementation and hard-codes paths intentionally omitted by approved revision 1, including `.gitea/`, `assets/`, `data/`, `docs/`, template examples, and the template's own repository-structure skill. The profile-aware audit is the applicable template gate and passed.
## Not Run
- Full Draft 2020-12 JSON Schema validation was not run because neither available Python runtime includes the optional `jsonschema` package. The schemas are included, all JSON parses, and the dependency-free validator checks required fields, alignment, safe paths, unique IDs, indexed-file existence, and relationships.
- External URLs were not fetched or availability-tested.
- Gmail was not accessed and no new intelligence report was generated.
## Final Result
The approved `skill-workflow` repository structure is implemented and validated. No unresolved issue blocks normal weekly report additions.