Match bDS2 zero-byte route validation

This commit is contained in:
2026-07-23 09:55:19 +02:00
parent 3e3b2d9698
commit d87e80f96b
4 changed files with 16 additions and 4 deletions

View File

@@ -450,7 +450,8 @@ surface SiteValidationSurface {
rule SiteValidationScan {
when: SiteValidationScanRequested()
-- Parses <loc> entries from sitemap.xml into expected URL set
-- Scans HTML output dir for index.html files (zero-byte = missing)
-- Scans HTML output dir for index.html files (an expected zero-byte route
-- is missing; an unexpected zero-byte route is extra)
-- Compares source .md mtime against generated HTML mtime
ensures: SiteValidationReport
}

View File

@@ -267,7 +267,8 @@ rule ValidateSite {
-- expected: sitemap-eligible routes derived from published snapshots
-- actual: non-empty **/index.html files on disk
-- missing: expected routes with no non-empty index.html
-- extra: non-empty index.html routes absent from the expected set
-- extra: index.html routes absent from the expected set, including
-- zero-byte files
-- stale: existing post routes whose source mtime is more than one second
-- newer than both the output mtime and tracked generation time
-- Standalone HTML, XML, JSON, assets, Pagefind files, and content hashes are