You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ee425b4
Browse filesBrowse the repository at this point in the historyBrowse files
A large, mostly additive pass that keeps the existing CLI, output shapes,
and on-disk formats backward compatible (one deliberate exception:
--submit is now gated, see below). It covers five axes.
Authorized use. A canonical notice (src/legal.rs, docs/legal.md, NOTICE,
README, HTML footers) is printed by `formwatch legal`, surfaced as a
reminder on test/monitor, and enforced: --submit refuses to run (exit 2)
until acknowledged via --accept-terms, config, or FORMWATCH_ACCEPT_TERMS.
Observability and configuration. tracing-based diagnostics on stderr
(-v/-vv/--quiet, --log-format json), an append-only screenshot-free JSON
audit log, a formwatch.yml + FORMWATCH_* config layer with CLI > env >
file precedence, a typed error enum (thiserror) alongside anyhow, a
--fail-on fail|warn gate, --no-screenshots, --proxy/--insecure/
--no-sandbox, and per-host request pacing.
Contracts and integrations. Every record carries schema_version; report
gained --junit, --sarif, and --prometheus; test/monitor gained --junit/
--sarif/--out; regression webhooks (Slack or generic JSON); shell
completions; and a man page.
LLM semantic checks (optional, off by default). src/llm/ adds provider-
agnostic "Error wording (LLM)" and "Instructions (LLM)" checks over OpenAI
Chat Completions, Anthropic Messages, or any compatible endpoint, with a
no-network mock. Never fatal (missing key / provider error / timeout /
unparseable reply degrade to one Warn), best-effort PII redaction, input
truncation, an on-disk verdict cache, retries with Retry-After, parallel
checks, prompt-injection-resistant delimiting, and `doctor --probe-llm`.
Baseline. src/baseline.rs records accepted findings at their current
severity so CI fails only on new or worsened problems; it drives exit
codes, the [BASELINED] annotation, notifications, and JUnit/SARIF output.
Scale and serving. Deterministic sharding (monitor --shard INDEX/TOTAL),
Prometheus metrics (report --prometheus), and a read-only service mode
(formwatch serve) exposing /healthz, /readyz, /metrics, and /api/forms.
Supply chain and CI. Dockerfile, cargo-deny policy, Homebrew template,
Dependabot, release checksums + CycloneDX SBOM + build provenance, and CI
jobs for MSRV, deny, coverage, and CodeQL, plus SECURITY.md and ADR 0002.
Also fixes a latent cold-cache bug: the concurrent-safe Chrome download
created the cache's parent but never the private temp directory the
fetcher writes its archive into, so the first run with no system Chrome
died with "Failed to create archive file".
fmt, clippy -D warnings, and the full test suite (127 tests) pass.
0 commit comments