Repository navigation
release batch 2: pub#1997, #1913, #1973, #2021, #1956 - #2132
Merged
Merged
Conversation
nc9
marked this pull request as ready for review
November 19, 2026 00:01
This was referenced Nov 19, 2026
…1996 (pub#1997) Squashed from pub#1997 at cdbc2a1. Patch identical to pub#1997 at cdbc2a1. Clean-pass safety: safe as is. A new tech-detect detector on scripts the crawl fetched; it adds a detection and never turns an unfetched page into a pass. Signed-off-by: Nik Cubrilovic <[email protected]>
…l main text (repo#1369) (pub#1913) Squashed from pub#1913 at e3bde54. Batch notes: main already uses local schema versions up to 45, so page_features.content_simhash is migration 46 (SCHEMA_VERSION 46); the two tests that pin the version now expect 46 and the changelog bullet says schema version 46. Main already uses rule cache prc-10, so the cache moves to prc-11. The page_features INSERT keeps main's nav_link_set column and adds content_simhash after it (38 columns, 38 placeholders); PageFeatureRow, the page-features builder, the store test and the rules index export keep main's nav-set-divergence entries and add this PR's. The rule declares meta.checks (problem, clean, skipped) instead of adding itself to rule-checks-undeclared.json. The CHANGELOG.md bullet (which the draft head put under an already released version) moved to changelog.d/1369-near-duplicate.added.md. The README and docs/index.mdx Content rows keep main's text and add "near-duplicate pages"; counts, the constants.ts comment and the canonical golden test keep main's values until the recount commit, which adds the canonical total for this rule. Clean-pass safety: safe as is. Site-scope rule with one check that carries no pageUrl and is not a folded aggregate, so it is dropped before storage and never resolves a stored per-page finding. Under 10 pages, or fewer than two hashed pages, it skips. Signed-off-by: Nik Cubrilovic <[email protected]>
…#3881) (pub#1973) Squashed from pub#1973 at d7b96fd. Batch notes: the CHANGELOG.md bullet moved to changelog.d/3881-commerce-readiness.added.md, with a docs link and one sentence on the safety fix below. The rule declares meta.checks (offer-completeness problem, clean and skipped; commerce-feed and commerce-manifest as advisory problems; the gate's ax/commerce-readiness skip); the draft head declared none and did not touch rule-checks-undeclared.json, so rule-check-declarations would have failed. The Agent Experience rows in README.md and docs/index.mdx keep main's text (WebMCP tools, answer blocks) and add "shop offer completeness"; the ax index lists and template-invariance-measured.json keep main's entries and add this rule; counts, the constants.ts comment and the canonical golden test keep main's values until the recount commit. Clean-pass safety: unsafe, fixed in this commit. On a page that was not read completely (truncated HTML, or microdata or RDFa the reader does not follow) offer-completeness reported an info with no inconclusive marker, which resolution reads as a verdict, so a stored offer-completeness warning on that page was marked fixed although the fields were never checked. The same held for a truncated page where no Product markup was found (the markup may sit past the cut). Both infos now carry details.inconclusive (#1031), so the resolution signal lists the page as not evaluated and the merge carries the finding. A page read whole with no Product markup stays a verdict. Tests "a truncated read with fields not found keeps the stored finding open" and "a truncated read with no Product markup found keeps the stored finding open" fail without the fix. The docs page says so. The runner's applies = "off" override returns the same free-text not-applicable skip as the existing site-type gate, under the ax/commerce-readiness check name; it never emits an offer-completeness verdict, so it resolves nothing for that check. Signed-off-by: Nik Cubrilovic <[email protected]>
Squashed from pub#2021 at dd2436d. Batch notes: the draft head's CHANGELOG.md change added the same bullet under ten already released versions (a bad rebase); CHANGELOG.md equals main's and the one bullet moved to changelog.d/3004-conversion-path.added.md, with one sentence on the safety fix below. The rule declares meta.checks (problem, clean, skipped) instead of being undeclared: the draft head declared none and did not touch rule-checks-undeclared.json, so rule-check-declarations would have failed. The Content rows in README.md and docs/index.mdx keep main's text and add "money pages with no on-site conversion path"; the content index table keeps main's rows and adds this one in title order; counts and the canonical golden test keep main's values until the recount commit. Clean-pass safety: unsafe, fixed in this commit. A page whose HTML was cut before its calls to action (no </body> or </html>, as htmlReadState reads it) found no call to action and passed, so a stored conversion-path warning on that page was marked fixed although its buttons were never read. That case is now an info with details.inconclusive (#1031), so the resolution signal lists the page as not evaluated and the merge carries the finding. A page read whole with no call to action still passes, and a cut page whose calls to action were read is still judged. Test "a truncated page with no call to action found keeps the stored finding open" fails without the fix. Its other skips (no document, no body, bad URL) are free-text skips, which carry; not-a-money-page is the coded not-applicable verdict on a page that was read. The docs page lists the new info line. Signed-off-by: Nik Cubrilovic <[email protected]>
…over (repo#2105) (pub#1956) Squashed from pub#1956 at 5d77f35 (three commits: b3aac47, 9d27e07, 5d77f35). Batch notes: main and pub#1913 (earlier in this batch) already use local schema versions up to 46, so the entity_map_runs and entity_map_pages tables are migration 47 (SCHEMA_VERSION 47); the changelog bullet says version 47. rule-results-observation-2302.test.ts takes this PR's change (SCHEMA_VERSION at least 43, so it no longer pins the version); javascript-shipped-migration.test.ts still pins it and now expects 47. The CHANGELOG.md bullet moved to changelog.d/2105-entity-map-store.added.md, with the issue reference at the end. Stored fields: entity_map_runs holds one row per crawl whose map was written (crawl_id, written_at). entity_map_pages holds one row per page with at least one declaration or reference (crawl_id, normalized_url, entity_count INTEGER, refs TEXT: a JSON array of node keys the page references without declaring). refs has no size cap of its own, and it is NOT bounded by the 10 MiB document body limit: a relative `@id` reference expands to the full page URL, so a 300 KB page with an 1,800-character URL can produce a 36.6 MB refs row. A cap on refs is a follow-up. Both tables are cleared with the crawl's other entity rows when the map is rewritten, and listed in RETIREABLE_TABLES so retiring a crawl removes them. Clean-pass safety: safe as is. No rule or verdict changes: the new rows only feed squirrel entities and the entity MCP tools, never a rule result or a stored finding. Signed-off-by: Nik Cubrilovic <[email protected]>
Recounted from loadAllRules() grouped by meta.category: 354 rules before the batch, 357 after (ax 19 to 20, content 33 to 35; every other category unchanged). Updates the README and docs/index.mdx category tables, the category cards in docs/rules/index.mdx, docs/rules/seo/index.mdx and docs/rules/agents/index.mdx, and the live total noted in constants.ts. 357 does not cross 360, so the floor stays 350 and no "N+" copy changes. Adds the three new rules' lines to the canonical golden totals (ax/commerce-readiness 500, content/conversion-path 500, content/near-duplicate 1). healthScore.overall moves from 57 to 58, and it needs BOTH content/conversion-path AND content/near-duplicate: content/conversion-path passes on the 100 synthetic /product/ pages (money pages by path with no call to action; the other 400 pages are a not-applicable skip) and content/near-duplicate adds one site pass, which together lift the weighted overall past a rounding boundary. Checked by removing each rule from the content rule list and running the golden test: without content/near-duplicate it is 57, without content/conversion-path it is 57, and without both it is 57. ax/commerce-readiness adds an info row on each of the 500 pages and does not move it. The test comment records this. Neither pub#1932 nor pub#1959 (dropped from this batch on review) adds a rule: both change existing rules, so the count from loadAllRules() is 357 with or without them. docs/scripts/rule-checks.ts --write adds the check-name sections for the three new rules, which declare meta.checks; glossary.ts --write had nothing to change. Signed-off-by: Nik Cubrilovic <[email protected]>
This was referenced Nov 19, 2026
Closed
nc9
added a commit
that referenced
this pull request
Nov 20, 2026
…ios #2091 (#2161) Replaces the 1 s wall-clock limits in two rules perf tests with ratio assertions (#2132 class flakes). landed during Actions billing lock: Daytona CI pubci-11202027-6307f92 (PASS at 6307f92; quality, tests, build; DCO). 0 behind main. Review: lane yes (Sonnet). Signed-off-by: Nik Cubrilovic <[email protected]>
2 of 3 tasks
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.
Five revived draft pull requests stacked into one batch, so the gates, CI and review run once. Each PR is squashed into one signed commit with its original author and sign-off. Every difference from the draft head is listed in that commit's body.
Dropped on review: pub#1932 (ax/markdown-response strict negotiation) and pub#1959 (leaked-secrets evidence context) were dropped from this batch on review. Their fixes happen on their own drafts, which they go back to; neither adds a rule, so the count is unchanged. With pub#1932 gone, main's discovery-probe expectation (three homepage probes) stands, and the local schema migrations of pub#1913 and pub#1956 are renumbered to 46 and 47 so there is no gap.
content_simhashis migration 46 (SCHEMA_VERSION46, the two pinning tests updated), rule cacheprc-11(main is atprc-10). Thepage_featuresINSERT keepsnav_link_setand addscontent_simhash(38 columns and placeholders). Declaresmeta.checks. The draft put its CHANGELOG bullet under an already released version; it moved tochangelog.d/1369-near-duplicate.added.md. Table rows keep main's text and add "near-duplicate pages".pageUrl, not a folded aggregate. Skips under 10 pages.meta.checks(the draft declared none, sorule-check-declarationsfailed). CHANGELOG bullet moved tochangelog.d/3881-commerce-readiness.added.md. Table rows keep main's text and add "shop offer completeness".offer-completenessreported a plain info, which resolution reads as a verdict, so a stored warning was marked fixed though the fields were never checked. The same held for a cut page with no Product markup found. Both now carrydetails.inconclusive(#1031), so the page is not evaluated and the finding carries. Testsa truncated read with fields not found keeps the stored finding openanda truncated read with no Product markup found keeps the stored finding openfail without the fix. The runner'sapplies = "off"override emits the same free-text skip as the existing site-type gate, under the rule's own check name.changelog.d/3004-conversion-path.added.md. Declaresmeta.checks(the draft declared none). Table rows keep main's text and add "money pages with no on-site conversion path".a truncated page with no call to action found keeps the stored finding openfails without the fix.SCHEMA_VERSION47).rule-results-observation-2302.test.tstakes this PR's non-pinning check;javascript-shipped-migration.test.tsstill pins and expects 47. CHANGELOG bullet moved tochangelog.d/2105-entity-map-store.added.md.squirrel entitiesand the entity MCP tools only.Stored fields (pub#1956).
entity_map_runs: one row per crawl whose map was written (crawl_id,written_at).entity_map_pages: one row per page with a declaration or reference (crawl_id,normalized_url,entity_countINTEGER,refsTEXT JSON array of node keys referenced but not declared).refshas no size cap of its own, and it is not bounded by the 10 MiB document body cap: a relative@idreference expands to the full page URL, so a 300 KB page with an 1,800-character URL can produce a 36.6 MB row. A cap onrefsis a follow-up. Both tables are cleared on map rewrite and listed inRETIREABLE_TABLES.Recount commit 4288aa9
chore(rules): recount after release batch 2. Counted fromloadAllRules()grouped bymeta.category: 354 before, 357 after (ax 19 to 20, content 33 to 35, every other category unchanged). It updates the README and docs/index.mdx tables, the category cards and the live total in constants.ts (357 does not cross 360, so the floor stays 350). Canonical golden totals gain ax/commerce-readiness 500, content/conversion-path 500 and content/near-duplicate 1.healthScore.overallmoves from 57 to 58, and it needs BOTH content/conversion-path (a pass on the 100 synthetic/product/pages) AND content/near-duplicate (one site pass). Verified by running the golden test with each removed: without near-duplicate 57, without conversion-path 57, without both 57. The test comment records this.docs/scripts/rule-checks.ts --writeadds the three check-name sections;glossary.ts --writehad nothing to change.CHANGELOG.mdandrule-checks-undeclared.jsonequal main's. No JSON report schema change.Gates (run once on head 4288aa9, rebuilt on origin/main 60d5f36):
scripts/test-suites.ts --check: test suites cover every test file (audit-engine, crawler, cli, rules, report, rest)--run rules: 11951 pass, 24 todo, 0 fail (the first run had 1 fail, the timing assertionlink-in-text-block: 5,000 nested blocks in under 1 sat 1424 ms while typecheck and lint ran alongside; the file is untouched by this batch, passes alone 18/18, and the full step re-run on an idle machine is green)--run audit-engine: 2358 pass, 3 skip, 0 fail--run report: 1408 pass, 0 fail--run crawler: 1161 pass, 0 fail--run cli: 4558 pass, 14 skip, 0 fail--run rest: 3902 pass, 0 failbun run lintandbun run format:check: exit 0bun scripts/changelog.ts check: changelog.d OK (5 entries)make validatein docs: 71 pass, 0 failThe squirrelscan agent skill needs no change: skills do not list rules, and no command changed (the new
commerceargument ofaudit_websiteis documented in docs/cli/mcp.mdx).Merge with rebase merge so each signed commit lands as is.