Repository navigation
Closed
Labels
P2hamsterwheelenhancementNew feature or requestrulespackages/rules — audit rule definitionssize: Shamsterwheel
Description
Part of #103 (V-02).
Separate from the churn case in V-01: here the sitemap does carry varied dates, they are just wrong
relative to what the page itself says. Nothing correlates the two today.
Two production sites, and the two directions were different bugs:
- A personal blog — sitemap lastmod up to 5,589 days ahead of the page's own
dateModified.
Cause: lastmod took the build date while the page rendered the post's real 2011-2016 date. - A consultancy site — sitemap lastmod 433 days behind
dateModifiedon revised posts. Cause: the
sitemap generator resolvedpublishedAt ?? updatedAtwhile the route rendered
dateModified: updatedAt ?? publishedAt. A precedence inversion — both fields were present and
valid, so every presence-based check passed.
Worth distinguishing in the output, because they point at different code: ahead means the field is
build-stamped, behind means stale or inverted precedence. Lastmod being older than the page's own
dateModified is the more clearly wrong of the two — it tells crawlers not to bother with a page that
has in fact changed.
Acceptance Criteria
- New site-scope rule
crawl/sitemap-lastmod-driftunderpackages/rules/src/crawl/, registered in the rules catalog - For each crawled page present in the sitemap, compares sitemap
lastmodagainst the page's own strongest date signal (schemadateModified, elsedateModifiedequivalent meta, else visible date) - Warns when
lastmodis older than the page'sdateModifiedby more than 7 days, reported as a distinct check name from the ahead case - Warns when
lastmodis newer than the page'sdateModifiedby more than a configurable threshold (default 30 days) - Each finding reports the two dates and the delta in days
- Skips pages with no page-side date signal at all (that is
content/freshnessterritory, not drift) - Does NOT warn on same-day or within-threshold differences
- Passes on a fixture where lastmod tracks dateModified per page
- Byte-identical output across the legacy and
siteQuerypaths - Rule page added to
docs/andmake validatepasses there -
packages/audit-engine/tests/streaming-rules-canonical-golden.test.tsupdated: bumpv1.findings.lengthandv1.perRuleTally.lengthby exactly one each, and add a comment line naming this rule as the cause, matching the convention already used for the six rules above it
Metadata
Metadata
Assignees
Labels
P2hamsterwheelenhancementNew feature or requestrulespackages/rules — audit rule definitionssize: Shamsterwheel
Activity
nc9 commentedon Aug 19, 2026
🐹 hamsterwheel claimed this issue.
loop-mszws8w9-107loop/107-rules-crawl-sitemap-lastmod-drifts-from-nc9 commentedon Aug 19, 2026
🐹 hamsterwheel claimed this issue.
loop-mszxc576-107loop/107-rules-crawl-sitemap-lastmod-drifts-from-nc9 commentedon Aug 19, 2026
🐹 PR opened: #114 — running the merge gate (CI · human rules · review · rubric).
feat(rules): add crawl/sitemap-lastmod-drift (#107) (#114)
nc9 commentedon Aug 19, 2026
🐹 Merged #114 — CI green · no human rule fired · review clean · rubric passed.
feat(rules): report uncompressed text assets over size threshold #9 (#…