# Repository Structure and Publication Plan ## Plan control - Task: structure-ai-ready-repository - Revision: 2 - Status: implemented - Created: 2026-09-22 - Profile: software-automation - Approval evidence: user approved revision 2, MIT, preparation branch, and existing origin on 2026-09-22. - Target: this repository; source remains unchanged. ## Outcome Prepare a standalone, anonymized automation-calendar tool with searchable human and machine entry points, synthetic examples, reproducible validation, and no copied private history. Preparation does not include publication, push, or commit. ## Current state and baseline The destination has an existing Git directory, configured origin, branch main, no commits, and no working-tree files before this plan. Remote visibility has not been verified. The source is a subdirectory of a larger repository, with Python builders, PowerShell collectors, HTML, status configuration, generated outputs, and tracked caches. Three source generated outputs have uncommitted changes; preserve all source files. The read-only software-automation profile audit found all 14 required paths missing, as expected for an empty target. ## Identity and publication decisions Author, publisher, and maintainer: Eddie Soehnel, supplied by the user on 2026-09-22 in response to the identity question. Retain this author attribution; anonymize operational personal data. License: MIT. Branch: codex/publication-preparation. Canonical URL: the existing origin, approved for public metadata. Operational brands remain anonymized. Proposed intent: mixed reusable tooling and synthetic examples. Proposed scope: the explicit source list below. Use full operational anonymization; preserve generic product and protocol names required to explain dependencies. Do not inherit template attribution or license choices for project code. ## Proposed structure and file actions All paths below are target-relative. Create means a sanitized derivative or new file, never an unreviewed verbatim copy of operational data. | Path | Action | Content and source treatment | |---|---|---| | .git/ | preserve | Existing destination history/configuration; never copy source history or alter origin. Branch changes only after branch approval. | | scripts/aggregate_updates.py | create | Derive from aggregate_updates.py; require/configure input root and output, remove private defaults. | | scripts/build_automations_calendar.py | create | Derive from same-named source; clean template/output separation, portable defaults, public-safe source labels. | | scripts/build_automation_results.py | create | Derive from same-named source; portable paths, public-safe output metadata. | | scripts/collect_automation_statuses.ps1 | create | Derive from same-named source; configurable, opt-in local sources; generalize project-specific receipt adapters and identifiers. | | scripts/refresh_automations_calendar.ps1 | create | Derive from same-named source; configured Python/workbook/output, clean template bootstrap. No live collector execution during validation. | | scripts/copy-workbook.ps1 | create | Derive from the source workbook-copy helper; explicit input/output parameters, no private sync destination or automatic overwrite. | | scripts/workflow-run-status.ps1 | create | Generalize the source workflow-status adapter with configurable workflow ID, repository, and log root; retain evidence semantics. | | tests/test-workflow-run-status.ps1 | create | Generalize the source workflow-status fixture test; synthetic local fixture tests. | | templates/automations-calendar.template.html | create | Extract only UI structure from automations-calendar.html; remove embedded records and private source stamp, inspect all remaining static text. | | templates/automations-results.template.html | create | Sanitize automations-results.template.html; preserve UI behavior. | | examples/status-overrides.example.json | create | Sanitize automations-calendar-status-overrides.example.json. | | examples/status-aliases.example.json | create | Rebuild structure of automations-calendar-status-aliases.json using wholly synthetic mappings. | | examples/status.example.json | create | New synthetic success/failure/unknown and history examples, not transformed live records. | | scripts/create_example_workbook.py | create | Generate a synthetic workflows worksheet locally using standard-library ZIP/XML. No source workbook copy. | | examples/README.md; templates/README.md; scripts/README.md | create | Index actual assets, schemas, commands, inputs, outputs, and privacy boundaries. | | README.md | create | Purpose, audience, setup, executable demo, inputs/outputs, limitations, repository map, validation, version, license. | | AUTHOR.md; repository-variables.json | create | Only confirmed identity/publication metadata and verification provenance; pending facts explicitly marked. | | repository.json | create | Searchable description, topics, technology, stable ID, software-automation profile, contents, human/AI entry points, retrieval order. | | VERSION; CHANGELOG.md; UPDATES.md | create | Initial 0.1.0, completed changes, and separate unapproved future improvements. | | LICENSE | create | User-approved license; preserve upstream notices applicable to reused template assets. | | AGENTS.md; CONTRIBUTING.md; SECURITY.md | create | Scoped agent guidance, verification workflow, private data/reporting boundaries without invented contacts. | | docs/README.md; docs/architecture.md; docs/implementation.md | create | Component flow, evidence limitations, configuration, workbook columns, status fields, usage and adaptation. | | .gitignore; PUBLICATION_WORKFLOW.md | create | Ignore local inputs, outputs, caches, logs, secrets; document review gates and safe regeneration. | | scripts/audit_repository.py; scripts/check_publication.py | create | Template profile audit with attribution plus leak/path/manifest checks; avoid putting real private identifiers into public scanner rules. | | tests/test_dashboard.py | create | Meaningful synthetic workbook-to-dashboard tests, status linking, unknown handling, HTML payload safety and source-label privacy. | | tasks/structure-ai-ready-repository/implementation-receipt.md; tasks/structure-ai-ready-repository/validation-results.md | create | Sanitized implementation and verification record after approval. | | automations-calendar-status.json; automations-results.html; __pycache__/ | leave absent | Live generated outputs and caches must not be copied. | | content-index.json; skills/; host CI/issue configuration | leave absent | Small software repo uses repository.json; no actual skill or authorized hosting setup. | ## Anonymization policy proposed for approval Replace personal names, email addresses, private domains, hostnames, IPs, workstation paths, project/automation identifiers, scheduler topology, receipt references and aliases with neutral configurable values or synthetic examples. Use example.com/example.org and workflow-demo where placeholders are needed. Keep the detailed original-to-replacement map only in the private publication receipt. Do not put original sensitive values in public plans, fixtures, tests, or scanner patterns. ## Entry points and host choices Human/AI start: README.md, then AUTHOR.md, repository-variables.json, repository.json, AGENTS.md, and task-relevant indexed files. Local metadata improves discoverability but does not prove external search indexing. Preserve destination remote; no host settings or visibility changes. ## Validation and definition of done - Hash approved source files before/after preparation to prove source preservation. - Parse Python and PowerShell; run fixture-based Python and PowerShell tests. - Generate synthetic workbook and both dashboards into ignored local output; verify nested weekday schedules, ordering, three evidence outcomes, aliases and bounded history. - Test HTML/script escaping and removal of absolute local source paths from rendered metadata. - Run python scripts/audit_repository.py . --profile software-automation. - Run python scripts/check_publication.py plus independent rg scans for credentials, emails, URLs, IPs, private paths and discovered identifiers. - Check all files including untracked additions, JSON metadata alignment, declared paths, Markdown links, version and license alignment. - Review git status, new-file contents, diff and diff --check. History is initially empty; no copied history. - Record actual commands/results and remaining limitations; no claim of operating live integrations. ## Risks, assumptions and preservation The calendar builder currently depends on an existing generated HTML file, so extracting a clean reusable template is required. Source scripts embed local paths and project-specific adapters. Some collected evidence uses heuristic text matching and must remain documented as best-effort. The empty-worksheet branch references an undefined variable; fix and test this in the public derivative. Any further material scope expansion requires an amended plan. Do not change private operational code, schedules, services, workbooks or remote visibility. ## Receipt Write the detailed private receipt, including source/destination paths, file hashes, substitutions, scans and findings, to the workflow-required external receipt directory under a date/repository-based filename. The public repository receives only sanitized records. ## Approval Revision 2 approved by the user on 2026-09-22, including copy scope, anonymization, attribution, MIT, canonical URL, and output branch. No commit or push is included. ## Implementation notes Completed approved revision 2. Small correctness fixes within the approved derivatives address an empty worksheet, safe JSON regex replacement, stale worksheet wording, calendar list-header overlap, and narrow-screen results layout. The refresh wrapper now renders offline; collection is a separate explicit command. No material scope expansion, source changes, commits, push, or visibility changes.