This commit is contained in:
eddiesoehnel committed 2026-09-22 07:50:20 -06:00
commit 2bcc107c13
39 files changed
+2643

No files matched your search

@@ -0,0 +1,18 @@
# Implementation receipt
- Date: 2026-09-22
- Approved plan: revision 2; user approved attribution, MIT, canonical origin and preparation branch.
- Status: implemented; prepared for human review, not committed or published.
- Profile: software-automation; version 0.1.0.
- Author, publisher, maintainer: Eddie Soehnel.
- Branch: codex/publication-preparation.
Created portable script derivatives, clean HTML templates, synthetic registry/alias/override examples, a generated demo workbook, searchable repository metadata, human/AI entry points, docs and privacy guardrails. The exact source-to-output map and file hashes are held in the separate private publication receipt. All 14 source top-level file hashes matched before and after work; source caches and Git history were not copied.
Original live status/history exports, generated results, production aliases, embedded calendar records, workstation paths and project-specific identifiers were omitted or replaced. Generated workbook, dashboards and screenshots are ignored local artifacts. Existing destination Git configuration and origin were preserved; it had no commits.
Implemented small correctness fixes discovered while validating the approved derivatives: empty worksheet handling, safe regex payload replacement, the worksheet label, a calendar list header that blocked clicks, and results-layout overflow. Live collection is explicitly opt-in and separate from rendering. No material scope expansion.
Validation is recorded in [validation-results.md](validation-results.md). No known publication blocker remains in the prepared public file set. Human review is still required before commit/publication. Remote visibility and external indexing were not tested or changed. Heuristic evidence interpretation is documented and is not independent proof of business outcomes.
Rollback: no source rollback is needed. The destination additions are uncommitted and can be reviewed individually using repository.json and the approved plan. Do not delete the existing Git directory. Keep the detailed private receipt outside any public commit.
@@ -0,0 +1,83 @@
# 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.
@@ -0,0 +1,23 @@
# Validation results
Date: 2026-09-22. Approved revision: 2. Test data was synthetic. No live scheduler, account or private log collector was executed.
| Check | Result |
|---|---|
| `python -m unittest discover -s tests -p "test_*.py" -v` | PASS: 9 tests; workbook schedule/order, aliases, unknown outcomes, history limit, unlinked evidence, script escaping/backslashes, empty sheet, missing headers, privacy guardrails |
| `./tests/test-workflow-run-status.ps1` | PASS: 5 synthetic receipt/scheduler cases |
| PowerShell AST parsing for all scripts/tests | PASS |
| `python scripts/create_example_workbook.py` and combined refresh command | PASS: 3 workflows, calendar and results generated from clean templates |
| Collector with synthetic override and with no sources | PASS: 1 expected success record and 0 records respectively |
| `python scripts/audit_repository.py . --profile software-automation` | PASS |
| `python scripts/check_publication.py` | PASS: public files, JSON, Python syntax, metadata, declared paths, local Markdown links and common leak patterns |
| Independent regex scans | PASS after manual classification; matches are generic security prose, scanner patterns, deny-list file suffixes, approved attribution/URL and XML namespaces |
| Source-derived identifier comparison | 61 terms checked; only this tool's generic identifiers and the Unspecified sentinel remain |
| Source integrity | All 14 source file SHA-256 hashes unchanged |
| Browser smoke tests | PASS: isolated headless Edge, HTTP blocked, list/search/dialog/navigation/outcome filters, no JavaScript errors |
| Visual review | Desktop calendar, desktop results and mobile results screenshots inspected; inherited overlap/overflow fixed and rechecked |
| Git checks | Correct preparation branch, zero commits, no tracked private files; diff --check clean; runtime artifacts ignored |
Browser checks used generated demo output. Six managed rows represent three workflows over two stored snapshots. Results filtering found one failure and two report rows. At a 390px viewport the page no longer overflows; the wide results table scrolls within its panel.
Limitations: real scheduler permissions and external integrations were not exercised. No remote URL reachability, remote visibility, hosting topics, external indexing or release was verified. The source-substring check supplements manual review and generic scanners; it is not a formal proof of anonymity. Git diff is empty for untracked files, so the new files were separately scanned and reviewed.