Repository navigation
Conversation
This was referenced Oct 30, 2026
nc9
force-pushed
the
fix/page-type-900-902
branch
2 times, most recently
from
October 30, 2026 19:16
7824042 to
11148e3
Compare
…902 Signed-off-by: Nik Cubrilovic <[email protected]>
…e case #902 Signed-off-by: Nik Cubrilovic <[email protected]>
…aw, 0.946 after set-asides) #902 Signed-off-by: Nik Cubrilovic <[email protected]>
Signed-off-by: Nik Cubrilovic <[email protected]>
nc9
force-pushed
the
fix/page-type-900-902
branch
from
October 30, 2026 20:24
11148e3 to
18c7b6d
Compare
Signed-off-by: Nik Cubrilovic <[email protected]>
Contributor
Author
|
Landed in v0.0.145 as nik |
5 tasks done
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.
Fixes #902. Refs #900 (already satisfied on main for the model side, see below).
What changed
isRootPath(the URL rule behindhomepage) now also accepts the single-segment/index.html, exact and case-sensitive, query string and fragment ignored. Nothing else changes: nested documents, other document names and locale roots stay as they were. README andrulePageTypedocs state the rule. The existing test that listed/index.htmlamong "never homepage" paths is updated, and/index.htmlis added to the "root path is unchanged" shipped-model test.Measurement (issue AC 1, 2, 4): the bar is NOT met on the raw numbers
For 3,000 origins from the launch corpus (fixed seed) I fetched
/, a control path that cannot exist (a host that serves the home page for any path is excluded), and each index, default and home document. A document "is the home page" when title, first H1 and (Jaccard >= 0.9) text equal the root's: objective, no judge. Script and criteria:ops/scratch/pagetype-902/analyze-index-docs.py./index.htmlserved in place (not redirected away): 628 pages, 558 the same page as/: 0.889, lower 95% bound 0.862 (under the 0.90 the issue set).So the rule is justified only if near-empty answers are not counted against it. That is a judgement call and is left to the maintainer; the numbers above are all stated in the CHANGELOG and on the issue.
Caveats, stated plainly: the sample is launch-corpus origins, skewed to modern sites, and I cannot check overlap with the page-type training and audit sets. The first pass (a different 3,000 origins) gave the same picture (index.html 0.88 raw, everything else lower). The 457 sites whose
/index.htmlredirects elsewhere are not counted: their crawled page is wherever it lands.#900
The model-side ACs (1 to 4) are already on main:
selectPageTypevetoeshomepageoff the root path, the README documents the choice, andpredict.test.tshas unit tests plus a test on the shipped head. AC 5 and 6 (golden numbers and re-scoring the 5,841-page fire-audit sample) need the private sample and are not done here.Tests
predict.test.ts: each of index, default and home with html, htm, php, asp, aspx and jsp (only/index.htmlis root), a nested path, a query string, a fragment, exact-match negatives (case, trailing dot, extra text), the locale root, and the page at/index.htmlclassified ashomepagefrom the rules at confidence 1. page-classifier suite: 230 pass.make validatepasses, tsgo clean. Docs: package README (no user docs mention this rule). Skill: no change.Review round
/and/index.htmlhas two pages read ashomepage; they are two pages in the crawl and the page structure counts both. Noted in the classifier README rather than deduped.CLASSIFIER_RULES_VERSION(2 to 3) so cached/index.htmlpages relabel on the next crawl, and its CHANGELOG says so.