Export the complete CocoAudit trail as a uniquely timestamped compliance document. For stakeholder packaging, route Markdown/HTML/PDF formats through the shared exporter.
Steps
- Read
lifecycle/audit.md(append-only source of truth) - Count total event blocks (lines starting with
## [) - Generate timestamp:
YYYY-MM-DDTHH-MM-SSZ(hyphens replace colons for filesystem safety) - Write
.cocoplus/audit-export-[timestamp].mdwith header + full verbatim trail - If a format was requested, run
invoke reporting/report-export --source <exported-md> --format <markdown|html|pdf> --out-dir .cocoplus/audit-exports - Output path, event count, and export renderer status to developer
- Never overwrite prior export files — each invocation is uniquely timestamped (idempotent per export)
Exit Criteria
- Export file written to
.cocoplus/audit-export-[timestamp].md - Developer sees path and total event count
- No prior export file overwritten
- HTML export is available through
reporting/report-export; PDF reports renderer status if no renderer is configured
Anti-Rationalization
| Temptation | Why Wrong |
|---|---|
| Reuse same filename on same-day exports | Timestamp includes time — each export is unique and non-destructive |
| Read audit.md selectively | Source of truth is verbatim — export must include all events, not filtered view |