9.1 KiB
Repository Structure Plan
Plan Control
- Task ID: structure-ai-ready-repository
- Target repository: C:\projects\indx\seo-geo-research-OPEN
- Mode: existing
- Profile: skill-workflow with recurring-document index
- Revision: 1
- Status: implemented
- Created/updated: 2026-10-14
- Approval evidence: owner replied "approved" to revision 1 on 2026-10-14.
Outcome
Make the public research pack discoverable by topic, audience, capability and individual report, with authoritative human and agent entrypoints and deterministic metadata validation. Structure prepares files for repository/catalog search; it does not prove indexing by external search engines.
Identity and Publication
- Author: Eddie Soehnel, evidenced by the existing license and pack attribution.
- Publisher/maintainer: Eddie Soehnel, confirmed by approval of this plan.
- Canonical repository: https://projects.eddiesoehnel.com/adminprojects/seo-geo-research-OPEN (local origin configuration).
- Visibility: public, supplied by user; live hosting not verified.
- License: preserve existing MIT license. Third-party research remains cited source material, not relicensed source text.
- repository-variables.json: absent; create with these values, verification source/date and skill-workflow defaults.
Current State and Baseline
The repo contains the version 1.0.0 research skill, imported original framework, templates, evaluations, deterministic rollup and checks, a 17-week historical archive, cumulative rollup and setup/pilot receipts. Preserve these contents and paths.
Template source: local repo-template-OPEN, its structure skill, reference standard and plan template. No remote freshness claim.
Read-only profile audit failed with nine missing requirements: AGENTS.md, AUTHOR.md, CHANGELOG.md, UPDATES.md, VERSION, examples/, repository-variables.json, repository.json and skills.md. Git status under the sandbox returned permission denied; obtain a read-only elevated status before implementation. No Git mutations authorized.
Profile Decision
Use skill-workflow because the repository delivers a reusable research procedure with templates and validations. Add content-index.json because weekly reports form a growing document collection. Keep one catalog entry per file; the imported archive is one file with a coverage range, not 17 invented files or chunks.
Proposed Structure and File Actions
| Path | Action | Purpose / preservation |
|---|---|---|
| README.md | modify | Merge existing usage and limitations with public overview, topics, repository map, human/AI read order, portable commands and links. Keep local operator settings in a clearly scoped section. |
| AUTHOR.md | create | Verified identity, attribution, canonical URL, adaptation guidance. |
| repository-variables.json | create | Stable identity, rights, profile, URL and preservation/approval defaults. |
| repository.json | create | Template-compatible manifest: stable ID, description, summary, SEO/GEO/AEO/AI retrieval/agent discovery topics, audiences, problems, capabilities, inputs/outputs, entrypoints, contents and retrieval order. |
| content-index.json | create | Compact file-level catalog with stable IDs, relative paths, descriptions, keywords, dates, status and relationships. Index framework, skill, report template, historical archive and rollup; include future weekly reports. Exclude local receipts and transient task records. Clearly identify the rollup as derived and historical archive as unverified imported context. |
| AGENTS.md | create | Read order, source authority, search provenance, preservation, public-data boundaries and indexing workflow. |
| skills.md | create | Research trigger, contract, inputs/outputs, tools, validation and authority scope. |
| VERSION | create | Repository release 1.1.0; research procedure remains skill version 1.0.0 unless its contract changes. Explain distinct version scopes. |
| CHANGELOG.md | create | Record initial pack 1.0.0 and approved repository-structure release 1.1.0. |
| UPDATES.md | create | Future proposals only: evidence-backed indexing improvements; no standing authorization. |
| CITATION.cff | create | Title, author, canonical URL, MIT and repository version 1.1.0. |
| CONTRIBUTING.md | create | Evidence corrections, source/date requirements, validation and review. |
| SECURITY.md | create | No credentials/private research; source prompt-injection handling; no invented private security contact. |
| .gitignore | create | Python caches, environments, temporary files and local operational receipts; do not imply existing tracked files are removed. |
| examples/README.md | create | One small synthetic provenance example distinguishing Web search, Exa, Both and underlying-source independence. |
| scripts/README.md | create | Script functions, runtimes, inputs/outputs, exact portable commands and mutation scope. |
| scripts/audit_repository.py | create | Copy the template's read-only profile auditor with source attribution. |
| scripts/build_content_index.py | create | Deterministic index builder for declared authoritative files and dated reports; stable IDs and explicit imported/derived roles; no chunks or copied report bodies. |
| scripts/validate_discovery.py | create | Validate JSON/schema, attribution, release alignment, declared paths, content IDs/relationships, hashes if declared and relative links in changed public entrypoints. |
| schemas/repository.schema.json; schemas/content-index.schema.json; schemas/repository-variables.schema.json | create | Preserve template schema contracts; validator checks them when the runtime supports JSON Schema. |
| tests/test_discovery.py | create | Meaningful regression tests: duplicate ID/path, missing target, stale index after new report, version mismatch and stable ID on unchanged rebuild. |
| scripts/rollup.py | modify | Refresh the content index after successful rollup so weekly automation can maintain discoverability through its existing script call. Write only reports/ plus content-index.json; validate before atomic index replacement and preserve old index on failure. |
| skills/seo-geo-research/SKILL.md | modify | Allow the narrowly named content-index.json write through the deterministic rollup/index scripts; keep all other recurring mutation boundaries. Retain research scope and original framework. |
| tasks/structure-ai-ready-repository/repository-structure-plan.md | preserve/modify | Current approved plan and implementation state. |
| tasks/structure-ai-ready-repository/implementation-receipt.md; validation-results.md | create | Sanitized file actions, checks, limitations, rollback and approval evidence. |
| LICENSE; existing reports/; original framework; templates/; evals/; current tests | preserve | No report rewriting or relabeling historical claims as verified. |
| .gitea/, assets/, data/, llms.txt, ai-index.json, chunks.json, qa.json | leave absent | No demonstrated need; manifest/index provide local discovery. No hosting configuration edits. |
Entry Points and Hosting
Human and agent begin with README.md, then AUTHOR.md, repository-variables.json, repository.json, content-index.json when selecting a document, AGENTS.md, skills.md and the relevant skill. Gitea-style origin is recorded but no server topics, descriptions, releases or access settings are changed.
Validation and Definition of Done
Use the bundled Python runtime or a compatible Python 3 installation:
python -B scripts/audit_repository.py . --profile skill-workflow --json
python -B scripts/build_content_index.py
python -B scripts/validate_discovery.py
python -B scripts/validate_pack.py
python -B scripts/test_rollup.py
python -B -m unittest discover -s tests -p "test_*.py"
git diff --check
Parse all JSON; validate against template schemas using available jsonschema runtime; verify every declared local path, unique stable content IDs and related references. Confirm attribution and repository version alignment. Hash/read back original archive to prove preservation. Inspect changed public files for secrets and machine-local residue. Verify automatic report/index refresh with synthetic fixtures. Record unavailable checks rather than declaring them passed. Read back all persisted final metadata and receipt files.
Risks, Authority and Preservation
The current automation permits recurring writes only to reports/. Implementation must narrowly update its prompt to allow deterministic content-index.json refresh, preserving Monday 07:00 America/Denver and all other settings. Approval includes this necessary automation instruction update; scheduling changes are out of scope.
Local paths in existing operator-facing files are not secrets, but should not be mistaken for portable public prerequisites. Receipts are not included in the public search catalog. No deletion, moves, commits, pushes, deployment, publication, external messaging or remote probing are proposed. An existing public repository does not authorize pushing local edits.
Approval
Approve revision 1 to implement these file actions and the narrowly scoped automation instruction update. Approval also confirms Eddie Soehnel as publisher and maintainer. Amendments return this same plan to awaiting approval with a new revision.