Repository navigation
fix(rules): page-inapplicability skips use a not-applicable reason so their priors resolve #1011 - #1025
Closed
nc9 wants to merge 2 commits into
Closed
fix(rules): page-inapplicability skips use a not-applicable reason so their priors resolve #1011#1025nc9 wants to merge 2 commits into
nc9 wants to merge 2 commits into
Conversation
|
Review of #1025 (not-applicable skips resolve prior findings). I read the diff and did not run the tests. The design is coherent. There is one shared constant. The aggregate fold is only trusted when it carries
|
… their priors resolve #1011 Signed-off-by: Nik Cubrilovic <[email protected]>
…t stay gaps #1011 Signed-off-by: Nik Cubrilovic <[email protected]>
nc9
force-pushed
the
fix/1011-not-applicable-skip
branch
from
October 22, 2026 10:04
c425944 to
f2ec78d
Compare
|
Review of #1025: the logic looks sound and I found nothing that should block merge. I read the diff only; I did not run the tests or check CI.
Test coverage is good for the merge, the signal and the gap-versus-not-applicable split. Changing the free-text |
nc9
added a commit
that referenced
this pull request
Oct 22, 2026
…nt, skip reasons, link phrases (#1034) Batch of six reviewed PRs landed through one branch and one CI run: - #1032 Bun 1.4.4 pin (CA blocklist for the eight compromised eMudhra intermediates, NSS 3.131.1 roots) - #1030 nested CSS evidence for the style reader (repro from #1014 by @dbdefault) - #1025 page-intrinsic skips use a not-applicable reason so priors resolve - #1019 generic link phrases in ten more languages for link-text and anchor-text - #1021 content/word-count skips noindex pages - #1023 retirement of abandoned crawls uses the crawl lease Plus a test fix for the residency probe on Bun 1.4.4 linux-x64. Closes #840 Closes #946 Closes #1011 Closes #1013 Refs #841 Signed-off-by: Nik Cubrilovic <[email protected]>
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rules that skip a page because the check has nothing to look at used free-text skip reasons (or none), so smart audits could not tell them from a check that did not run, and a prior finding on such a page carried forever (#508). They now skip with one shared reason.
packages/core-contracts/src/resolution.ts:CHECK_NOT_APPLICABLE_SKIP_REASON = "not-applicable". Each such skip also carriesdetails.foldKeyof the same value (the pattern the noindex gate uses), so a folded row never mixes with a gap.packages/rules/src/resolution.ts: the signal reads a not-applicable skip as evaluated and clean (registers the key and the page, never failing), so the prior resolves. An aggregate is trusted only with the fold key; a clipped one leaves the other pages not evaluated (carry).packages/audit-engine/src/merge-core.ts: the fix(audit-engine): a check skipped on a page never resolves its prior finding #508 #1010 collector ignores it, so the local merge and the cloud publish merge resolve it too.Decision table (kept as not-applicable only where the skip is a property of the page's own headers, URL or markup that a fetch, parse or JS-rendering problem cannot produce; when unsure, a gap):
Linkheader<picture>novalidateLeft as gaps from the start:
scan-truncated,rule-timed-out, no timing data (performance/ttfb,no_data), cloud and service skips, probe skips,Parse error/No document available/Page could not be parsed/Invalid document structure, and the runner'ssoft-404gate.Known follow-up: the cloud merge's parity at
merge-promise.ts(~:798-806) is conservative on a truncated or incomplete crawl: a not-applicable page carries there instead of resolving.Report output: none of these reasons is listed in the report's skipped-checks section (only
scan-truncatedis), scores are unchanged (skips are not scored); the only visible delta is that those skipped rows in JSON carrydetails.foldKeyand no longer the free-textskipReason(theirmessagekeeps the text).Tests:
packages/audit-engine/tests/not-applicable-resolves-1011.test.ts(15; 5 fail without the change): the #1011 repro (A fails, then A not applicable and B passes: A resolves) in the sampled merge against a healthy and a key-dropped signal, a gap still carries, all-pages not-applicable resolves, folded rows with and without the fold key, the local merge, and the signal's reading. Existing tests that asserted the old free-text reasons were updated (9 rule test files). Also pass: 508, compact-resolution-merge, cloud-merge, scan-truncated-carry, publish-cap, golden-baseline, streaming-rules/page-rules/scoring goldens, rule-cache-replay-golden, rules resolution, fold, noindex-skip.tsgoclean in core-contracts, rules and audit-engine;tangly check --strictclean.Docs:
docs/configuration/index.mdxSmart Audits bullet updated (the #1011 caveat is gone). Agent skill (squirrelscan/skills): not needed.Closes #1011