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

+4
View File
@@ -0,0 +1,4 @@
# Documentation
- [Architecture](architecture.md): components, evidence semantics, limitations and privacy boundaries.
- [Implementation](implementation.md): data formats, commands and configuration.
+15
View File
@@ -0,0 +1,15 @@
# Architecture
Saved XLSX workflows → Python schedule parser → clean calendar template → local calendar HTML.
Explicit local sources → optional PowerShell collector → JSON registry → Python status join → results template → local results HTML.
The demo creates its workbook from synthetic Python rows and reads checked-in synthetic JSON. It never starts the collector. Python uses the standard library; PowerShell collection is Windows-specific.
Names/aliases are normalized by removing non-alphanumeric characters and case-folding. Later records overwrite earlier matches. Keep normalized names unique. Unmatched or invalid outcomes become unknown. Windows Task Scheduler result 267009 means running and remains unknown. Other nonzero results are failures; zero is success only when a run time exists.
The optional automation-memory reader infers outcomes from recent words, so its source is labeled best-effort. A specialized calendar-refresh parser examines the latest run section. The generic receipt adapter requires success, both validation passes, checkpoint advancement, and an existing nonempty report. A newer scheduler startup failure supersedes an older receipt. Logs are examined over a bounded lookback window. These are evidence rules, not independent verification of business outcomes.
The collector and results builder retain at most three daily snapshots. Each snapshot is matched against the current workbook, not a historical schedule. Manual overrides appear after collected records and can supersede them. Local source labels omit absolute paths, but names and detail text are not anonymized automatically. HTML templates escape displayed fields and embedded JSON protects closing-script sequences.
Dashboard writes use a temporary file followed by replacement; the aggregate-updates utility writes directly. Outputs can be overwritten. The refresh command renders only and does not change schedules or services. Remote hosting, alert delivery and external indexing are outside this project.
+36
View File
@@ -0,0 +1,36 @@
# Implementation
## Workbook
Use a saved XLSX sheet named `workflows`. Required headers, case-insensitive: Name, Machine, Project, Ops Segment, Mon, Tues, Wed, Thu, Fri, Sat, Sun, Other, Notes. Optional Operator or Location supplies the execution location; Operational or Status supplies the schedule status. Empty names, rows beginning with `Do not edit`, and rows without any weekday entries are excluded. Rows sort by Ops Segment, Project and Name.
Numeric weekday values use Excel fractional days (0.375 means 09:00). Text such as `Hourly` is cadence, not a parsed time. Existing formulas need saved cached values; this tool never recalculates Excel. Empty sheets return an empty schedule; incomplete headers fail clearly.
## Registry
The JSON object has `generatedAt`, optional `note`, `records`, and optional `history`. Each record has `name`, optional string-array `aliases`, `outcome` (success/failure/unknown), optional ISO `lastRun`, `detail`, and `source`. Each history item has `date`, `generatedAt`, and `records`. See [synthetic registry](../examples/status.example.json).
## Collection: explicit sources only
PowerShell 7 on Windows is the supported collection environment. Use one or more of:
```powershell
./scripts/collect_automation_statuses.ps1 -IncludeScheduledTasks -OutputPath ./local/status.json
./scripts/collect_automation_statuses.ps1 -CodexAutomationsPath ./local/automations -OutputPath ./local/status.json
./scripts/collect_automation_statuses.ps1 -WorkflowRepository ./local/workflow -WorkflowId workflow-demo -SchedulerLogRoot ./local/scheduler-logs -OutputPath ./local/status.json
./scripts/collect_automation_statuses.ps1 -OverridesPath ./examples/status-overrides.example.json -AliasesPath ./examples/status-aliases.example.json -OutputPath ./output/synthetic-status.json
```
With no source flags, collection writes an empty registry and queries no live sources. Prior snapshots may remain in an existing output. `WorkflowRepository` and `WorkflowId` must be supplied together. Scheduler logs are optional. Overrides are assertions from the configured JSON, not independently checked outcomes. Do not mistake a successful command exit for complete source coverage: inspect warnings and record counts.
The generic workflow receipt format includes `skill.name`, `finished_at`, `status`, `failures`, `validation.deterministic`, `validation.manual`, and `artifacts.report`/`artifacts.checkpoint_advanced`. Report paths must remain inside the configured repository. The fixture test demonstrates success, explicit failure, unknown validation, a newer scheduler failure, and a later successful receipt.
## Rendering and utilities
Both Python builders support `--workbook` and `--status`. The calendar accepts `--html` and `--template`; results accepts `--output` and `--template`. Defaults are repository-relative. The calendar can render without a registry (unknown statuses); the results builder requires a registry file.
`refresh_automations_calendar.ps1` accepts `-Workbook`, `-Status`, `-OutputDirectory`, and `-Python` (executable name or path). It performs offline rendering only. Use a separate collector invocation for current evidence.
`aggregate_updates.py --projects-dir local/projects --output output/updates.html` collects UPDATES.md beneath immediate project subfolders. It excludes common VCS/environment directories but does not redact document contents.
`copy-workbook.ps1 -Source local/workflows.xlsx -Destination local/workflows-copy.xlsx` refuses an existing destination and supports `-WhatIf`. The destination's parent must exist.