Audit-driven cleanup of the standalone pandoc/ CLI tools (no changes to
the server's own zddc/internal/convert engine).
convert:
- DOCX→MD now reads lowercase client/project from zddc.conf (was $CLIENT/
$PROJECT, always empty)
- ZDDC filename parsing via a shared parse_zddc_filename helper that
extracts each field with its own backref, so a '|' in the title no
longer truncates it (was cut -d'|')
- drop duplicate --section-divs and no-op --id-prefix=
convert-diff:
- replace hardcoded "(AR 28088)" in the diff header with the configured
$project_number (omitted when unset)
- only pass --template when one was found (empty --template= errors out)
- drop the false "Loading ZDDC configuration" log and the sed quote-escape
that leaked backslashes into custom_header
- remove dead REV_A/REV_B and rev*_date extraction; fix usage typo;
pin LC_TIME=C on date calls
index.sh:
- relative_path passes paths to python via argv (no -c interpolation) and
uses realpath --relative-to as the fallback instead of an absolute path
- escape '|' in title/status before emitting the markdown table row
README:
- rewrite the stale server-side section to match the real binary+bubblewrap
design and flags/defaults (was a non-existent podman/docker/image design)
- fix the invalid zddc.conf example (sourced shell, four real vars) and the
understated input-format list
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
ZDDC — Zero Day Document Control. A file-naming convention plus five
single-file HTML tools (archive, transmittal, classifier, mdedit,
landing) and an optional Go HTTP server (zddc-server) with ACL and a
virtual archive index. Self-contained, offline-capable, dependency-free.
See README.md for an overview, AGENTS.md and ARCHITECTURE.md for the
build/release/architecture detail, bootstrap/README.md for the
two-level deployment install pattern, and zddc/README.md for the
HTTP server.