Skip to content

release batch 2: pub#1997, #1913, #1973, #2021, #1956 - #2132

Merged
nc9 merged 6 commits into
mainfrom
release-batch-2
Nov 19, 2026
Merged

nc9 merged 6 commits into
mainfrom
release-batch-2

Conversation

@nc9

@nc9 nc9 commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

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.

Original PR Draft head used Batch commit Differences from the draft Clean-pass safety
pub#1997 tech-detect finds Clarity command calls in bundles (#1996) cdbc2a1 6775020 None. Patch identical. Safe as is. A new detector; it never turns an unfetched page into a pass.
pub#1913 content/near-duplicate (repo#1369) e3bde54 fb44cdb content_simhash is migration 46 (SCHEMA_VERSION 46, the two pinning tests updated), rule cache prc-11 (main is at prc-10). The page_features INSERT keeps nav_link_set and adds content_simhash (38 columns and placeholders). Declares meta.checks. The draft put its CHANGELOG bullet under an already released version; it moved to changelog.d/1369-near-duplicate.added.md. Table rows keep main's text and add "near-duplicate pages". Safe as is. Site-scope, one check with no pageUrl, not a folded aggregate. Skips under 10 pages.
pub#1973 ax/commerce-readiness (repo#3881) d7b96fd 5d2832a Declares meta.checks (the draft declared none, so rule-check-declarations failed). CHANGELOG bullet moved to changelog.d/3881-commerce-readiness.added.md. Table rows keep main's text and add "shop offer completeness". Unsafe, fixed in this commit. On a page not read completely, offer-completeness reported 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 carry details.inconclusive (#1031), so the page is not evaluated and the finding carries. 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 runner's applies = "off" override emits the same free-text skip as the existing site-type gate, under the rule's own check name.
pub#2021 content/conversion-path (repo#3004) dd2436d 8ce88e7 The draft's CHANGELOG change added the same bullet under ten released versions (bad rebase); CHANGELOG equals main's, one bullet in changelog.d/3004-conversion-path.added.md. Declares meta.checks (the draft declared none). Table rows keep main's text and add "money pages with no on-site conversion path". Unsafe, fixed in this commit. A page cut before its calls to action found none and passed, clearing a stored warning. That case is now an inconclusive info, so the finding carries. A page read whole still passes. Test a truncated page with no call to action found keeps the stored finding open fails without the fix.
pub#1956 entity-map facts in the local store (repo#2105) 5d77f35 7efd550 The two new tables are migration 47 (SCHEMA_VERSION 47). rule-results-observation-2302.test.ts takes this PR's non-pinning check; javascript-shipped-migration.test.ts still pins and expects 47. CHANGELOG bullet moved to changelog.d/2105-entity-map-store.added.md. Safe as is. No rule or verdict change: the rows feed squirrel entities and 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_count INTEGER, refs TEXT JSON array of node keys referenced but not declared). refs has no size cap of its own, and it is not bounded by the 10 MiB document body cap: 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 row. A cap on refs is a follow-up. Both tables are cleared on map rewrite and listed in RETIREABLE_TABLES.

Recount commit 4288aa9 chore(rules): recount after release batch 2. Counted from loadAllRules() grouped by meta.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.overall moves 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 --write adds the three check-name sections; glossary.ts --write had nothing to change.

CHANGELOG.md and rule-checks-undeclared.json equal 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 assertion link-in-text-block: 5,000 nested blocks in under 1 s at 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 fail
  • typecheck of tech-detect, rules, audit-engine, core-contracts, crawler, utils and apps/cli; root bun run lint and bun run format:check: exit 0
  • bun scripts/changelog.ts check: changelog.d OK (5 entries)
  • make validate in docs: 71 pass, 0 fail

The squirrelscan agent skill needs no change: skills do not list rules, and no command changed (the new commerce argument of audit_website is documented in docs/cli/mcp.mdx).

Merge with rebase merge so each signed commit lands as is.

…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]>
nc9 added 5 commits November 19, 2026 00:36
…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]>
@nc9 nc9 changed the title release batch 2: pub#1932, #1997, #1913, #1973, #2021, #1956, #1959 release batch 2: pub#1997, #1913, #1973, #2021, #1956 Nov 19, 2026
@nc9
nc9 merged commit 06cf748 into main Nov 19, 2026
16 checks passed
@nc9
nc9 deleted the release-batch-2 branch November 19, 2026 01:32
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]>
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