Skip to content

docs(configuration): say what the smart-audit coverage counts mean - #1173

Merged
nc9 merged 1 commit into
mainfrom
docs/1031-known-pages-semantics
Oct 27, 2026
Merged

nc9 merged 1 commit into
mainfrom
docs/1031-known-pages-semantics

Conversation

@nc9

@nc9 nc9 commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

Refs #1031 (does not close it: the root cause in the hosted store is being investigated privately).

Restates the coverage invariant with its real semantics instead of promising knownPages > auditedPages whenever findings carry: known pages are those with an active page record, carried findings are keyed by URL and do not expire until the page is re-crawled or removed, and a page with no active record can carry findings while known equals audited. Records the decision on expiry (none; the last-seen time shows a stale finding). Engine code is unchanged: cloud-merge.test already shows carried pages with active records counted in knownPages.

Docs: this is the docs change. Skill: no change needed.

@claude

claude Bot commented Oct 26, 2026

Copy link
Copy Markdown

Docs-only change. I read it against knownPageCount in packages/audit-engine/src/merge-promise.ts.

  • (medium) docs/configuration/index.mdx, the known bullet: it says known is the active records "plus this run's, plus the URLs this run found but never fetched". knownPageCount returns max(active, audited + unfetched), and its comment says it is a max on purpose, to avoid counting a carried page the frontier also queued twice. A reader will take "plus" as a sum. Suggested wording: known is the larger of the store's active page count and audited pages plus URLs found but not fetched because of rate limiting.
  • (nit) CHANGELOG.md: the diff adds a blank line before ### Docs and two after the bullet. The other sections use one.
  • (nit) docs/configuration/index.mdx: the last carried bullet breaks mid-sentence ("the finding" then "stays in the score"). Please reflow it.

I did not check the other claims against the code: audited excluding 404/410 pages, and carried findings having no expiry.



Audited, known and carried defined; carried findings are keyed by URL and do not expire until the page is re-crawled or removed, so known can equal audited while findings carry from a page with no active record.

Signed-off-by: Nik Cubrilovic <[email protected]>
@nc9
nc9 force-pushed the docs/1031-known-pages-semantics branch from 1984732 to cfc70be Compare October 27, 2026 02:52
@claude

claude Bot commented Oct 27, 2026

Copy link
Copy Markdown

Docs-only PR (CHANGELOG plus the smart-audits section of the configuration page). I didn't run any code or docs:check. I spot-checked the definitions against packages/report/src/coverage.ts and they look consistent with it. I did not trace how the engine computes knownPages, so the claim that it counts URLs skipped because of rate limiting is unverified.

  • (nit) CHANGELOG.md: there's a stray extra blank line before ## v0.0.136.
  • (nit) docs/configuration/index.mdx: the "carried" bullet has an awkward hard line break after "the finding". Reflowing it would read better.
  • (nit) The ### Docs bullet in the CHANGELOG is long. Consider trimming it to one or two sentences.

@nc9
nc9 merged commit e2a134b into main Oct 27, 2026
15 checks passed
@nc9
nc9 deleted the docs/1031-known-pages-semantics branch October 27, 2026 03:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant