Skip to content

Treat an absent sitemap readState as unknown, not complete (regenerate affected goldens deliberately) #1869

Description

@nc9

Follow-up to squirrelscan/repo#1760 (pub#1868). pub#1868 treats an ABSENT SitemapDiscovery.readState as "not incomplete" so existing rules and golden outputs stay unchanged. The issue intended absent to mean unknown: a sitemap whose read state was never recorded should not let crawl/sitemap-coverage report missing pages or let integrity/orphan-page escalate.

Acceptance Criteria

  • An absent readState is treated as unknown by crawl/sitemap-coverage (missing-page check not run, with a reason) and by integrity/orphan-page (no injected-page escalation).
  • The affected golden tests are regenerated in ONE PR, with a before/after diff of each changed golden in the PR body explaining why it changed.
  • Rules-level tests cover absent, complete, partial and unreadable, and fail if the guard is removed.
  • Any producer that should set readState but does not is listed (and fixed if trivial).

Activity

  1. added
    enhancement
    rules
    size: M
    on Nov 14, 2026
  2. added theissue type on Nov 14, 2026
  3. added 20 commits that reference this issue on Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementrulessize: M

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions