Skip to content

feat(classifier): bundled page classifier, link sections on parsed links, sqlite migrations 37/38 (1/3 of #926) - #1179

Merged
nc9 merged 1 commit into
mainfrom
split/926-a-classifier
Oct 27, 2026
Merged

nc9 merged 1 commit into
mainfrom
split/926-a-classifier

Conversation

@nc9

@nc9 nc9 commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Layer 1 of 3, split from #926 on current main (v0.0.136 + #856). Merge order: this, then #1180 (schema rules), then #1181 (report and rules).

  • The bundled page classifier (package page-classifier, classifier-v2.json, about 9 MB, MIT, no network call): names the part of a page a link sits in where the markup says nothing, and a page type. Markup landmarks and comment threads win. Off with --no-classifier or [classifier] enabled = false; squirrel self doctor shows the artifact.
  • Parser: classifier hook and link sections on extracted links. Core contracts: section and component-evidence types and codecs. Crawler: additive local sqlite migrations 37 (component evidence columns) and 38 (site-resource evidence columns), after main's 36 (scan scope). Engine and CLI wiring.
  • CodeQL: the price pattern's digit run is bounded (the 2 polynomial-regex alerts), with a test.

No rule or report change in this layer, so no user-visible finding moves yet.

Docs: docs/configuration/classifier.mdx, docs/cli, configuration pages. Skill: OUTPUT-FORMAT.md note tracked in a private skills issue (squirrelscan/repo, label skills).

Hold: do not merge before v0.0.137 is tagged.

@github-actions

Copy link
Copy Markdown
Contributor

PR too large for auto-review

This PR is 100 changed files (limit 80) and 12014 changed lines (limit 6000), so the automated reviewer was skipped: past that size it runs out of turns mid-session and posts nothing, which is worse than saying so.

Run it manually (/review, or a focused review per area) before merging, or split the PR.

Diff measured: 100 reviewable files, 12014 changed lines (1 generated files ignored).

@github-actions

Copy link
Copy Markdown
Contributor

PR too large for auto-review

This PR is 100 changed files (limit 80) and 12014 changed lines (limit 6000), so the automated reviewer was skipped: past that size it runs out of turns mid-session and posts nothing, which is worse than saying so.

Run it manually (/review, or a focused review per area) before merging, or split the PR.

Diff measured: 100 reviewable files, 12014 changed lines (1 generated files ignored).

…nks, sqlite migrations 37/38, [classifier] config #2307

Layer 1 of 3 (split of #926). Rules, report and the schema rules follow.
Docs: docs/configuration/classifier.mdx, docs/cli. Skill: OUTPUT-FORMAT.md note tracked in a private skills issue.

Signed-off-by: Nik Cubrilovic <[email protected]>
@nc9
nc9 force-pushed the split/926-a-classifier branch from 1c55895 to 4185e2b Compare October 27, 2026 07:17
@github-actions

Copy link
Copy Markdown
Contributor

PR too large for auto-review

This PR is 100 changed files (limit 80) and 12014 changed lines (limit 6000), so the automated reviewer was skipped: past that size it runs out of turns mid-session and posts nothing, which is worse than saying so.

Run it manually (/review, or a focused review per area) before merging, or split the PR.

Diff measured: 100 reviewable files, 12014 changed lines (1 generated files ignored).

@nc9
nc9 merged commit 8f40967 into main Oct 27, 2026
15 checks passed
@nc9
nc9 deleted the split/926-a-classifier branch October 27, 2026 07:34
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