Skip to content

feat(report,cli): report re-verified and left-carried known pages #1759 - #1801

Closed
nc9 wants to merge 1 commit into
mainfrom
r3/seed-verification-1759
Closed

nc9 wants to merge 1 commit into
mainfrom
r3/seed-verification-1759

Conversation

@nc9

@nc9 nc9 commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Part of #1759 (public half). Private seeding is squirrelscan/repo#4014.

What

  • New @squirrelscan/core-contracts/seed-verification: summarizeSeedVerification classifies every known page with open findings as live, gone (404/410 with status), redirected (source, destination, status), skipped by the page budget, no longer linked, or unverified (5xx, rate limit, refused URL; never read as gone).
  • runSmartAudits takes an optional seedVerification (seeds + frontier) and returns coverage.seedVerification; no CLI controller passes it, the intended caller is the hosted run (repo#4014). Without it nothing is read and the report is byte-identical. Merge semantics are unchanged: capped and sampled audits keep today's carried behaviour for pages they did not visit; the counts only say why.
  • When a report has coverage.seedVerification (cloud only: no local CLI caller seeds pages, so a local audit is unchanged), the console/text/markdown/HTML coverage line, llm <seed-verification> element and JSON state "re-verified N, left carried M" with the split. Renderers print whole numbers only.
  • The controller's page rows carry finalUrl for redirect rows.

Acceptance criteria

  • Carried page redirecting off its URL resolves, redirect recorded: seed-verification-1759.test.ts "gone and redirected pages resolve, a live one is fresh, the rest are counted as carried".
  • 404/410 names status: same test (pages entry outcome gone, status 410).
  • Re-verified / left carried split (budget vs no longer linked): same test + core-contracts tests.
  • Live unlinked page reported by integrity/orphan-page, fresh: "the unlinked seeded page is an orphan finding of this run".
  • Resolution signal names the source URL of a followed redirect: resolution-redirect-source-1759.test.ts (pageStatuses carries the source with its 3xx; already true on main, now pinned). The destination is not on the wire: see residual risk.
  • Sampled/capped keep carried behaviour: no merge change; second test pins no coverage change without seeds.
  • Nut shop shape (never carried unnoticed): first test.

Gates

bun test: seed-verification-1759 (4), smart-audits (existing), nut-shop-regression, core-contracts seed-verification (7), resolution-redirect-source (1): 21 pass in one run. tsgo clean in core-contracts, report, audit-engine, rules, apps/cli; apps/cli lint and format:check clean; docs make validate 62 pass.

Docs: docs/configuration/index.mdx; CHANGELOG Unreleased/Added. Agent skill: no change. Private rule catalog: no rule meta text changed, no regeneration.

Residual risk: the compact resolution signal and publish schema do not carry a redirect destination (changing the wire format needs the private API schema); the hosted merge must call summarizeSeedVerification itself (repo#4014).

Review fix: wiring the controller would read the whole frontier and all open priors on every local audit and change every local smart-audit report, so I took option (b): docs and CHANGELOG now say cloud only, and the input is commented with its intended caller.

…th redirects and gone pages named #1759

Docs: docs/configuration/index.mdx and CHANGELOG. Skill: no change.
Signed-off-by: Nik Cubrilovic <[email protected]>
@nc9

nc9 commented Nov 13, 2026

Copy link
Copy Markdown
Contributor Author

Landed in bundle #1805, rebase-merged to main.

nik

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