AI engines cite passages they can lift whole, without surrounding context — so passage structure is the highest-leverage on-page AI signal. This module checks extractability; for who is allowed to fetch and cite the page, see references/ai-crawlers.md.
Inputs
Work from the PageSnapshot named in your dispatch envelope: read parsed from <run_dir>/pages/<slug>.json (headings[], text_sample, word_count) — passages come from the HTML file, not from a summary; Grep pages/<slug>.html for verbatim evidence; site artifacts live in <run_dir>/site/{robots.json,sitemaps.json,discovery.json}. Deterministic findings already emitted by audit.mjs are listed in <run_dir>/findings.deterministic.json — do not re-emit those ids; add model-judged findings only. If invoked directly with a URL/path and no snapshot exists, first run node "${CLAUDE_PLUGIN_ROOT}/scripts/snapshot.mjs" <target> --out "${CLAUDE_PLUGIN_DATA}/runs" and use the printed snapshot path.
Audits
Working from the PageSnapshot (parsed_rendered when render.used is not none, else parsed):
- Heading → direct answer: for each H2/H3 that reads as a question (or implies one), is the first paragraph a direct, ~40-60 word answer — not a windup ("In this section we'll explore…")?
- Self-contained passages: are top-level passages ~134-167 words and answerable on their own? Flag unresolved anaphora ("as mentioned above", "this", "the latter") that needs prior context to parse.
- Structured forms: presence of lists, comparison tables, and explicit term definitions where the content warrants them — these are disproportionately quoted.
- Question-shaped headings: do headings phrase real user questions (how/what/why/when), matching likely prompts?
- TL;DR / summary blocks: an up-front summary or key-takeaways block the engine can extract verbatim.
- Semantic completeness: can each passage answer its heading with zero external context — the strongest single correlate of AI citation, and the heaviest check in this module (it carries the most weight, but it never caps the score — see Findings).
Fixes
- PROPOSED: answer-block rewrites (heading → tight 40-60 word lead) and TL;DR drafts, generated from existing page content, surfaced one item at a time for the user to accept/edit. Each becomes a
fix_previewdiff only after acceptance. - ADVISORY: structural suggestions ("split this 400-word passage", "add a definition list here") where intent is editorial.
- Never silently rewrite published prose, and never invent facts to fill a passage — if a claim is missing leave a clearly-marked
TODOplaceholder for the user. No finding here isauto.
Verification
- Method is
manual_review. The deterministic part is reproducible offline: word-count windows (answer 40-60w; passage 134-167w), question-heading detection, anaphora openers, and TL;DR presence vianode "${CLAUDE_PLUGIN_ROOT}/scripts/check-answerblocks.mjs" --snapshot <pages/<slug>.json> [--lang en|es|auto](or--url <u>/--file <path>). Usemanual_reviewas the finding'sverification.method(the enum has noheuristicvalue); the script is theverification.reproducecommand. - Language coverage: the heuristics ship EN and ES lexicons (question words including
¿, windup openers, anaphora, TL;DR/Resumenmarkers). When the detected language is neither, the language-dependent fields come backnull— never 0 — and the finding ismanual_review, so a page in an unsupported language is never scored as a clean pass. - Semantic completeness and anaphora resolution still require a judgment pass; when that pass or the rendered DOM is unavailable, status is
needs_api(ormanual_review), never a falsepass.
Findings
Findings conform to schema/finding.schema.json; axis ai. Severity policy: 5 is reserved for catastrophic, eligibility-killing facts at site/template scope; 4 major · 3 moderate · 2 minor · 1 cosmetic · 0 informational — and only an established severity-5 fail in an active category can cap a score (references/scoring-model.md). Nothing in M11 is established, so nothing here ever caps.
M11.heading.no_direct_answer— a question H2/H3 followed by a windup instead of an answer (fail, severity 3,fixable: proposed, confidencedirectional).M11.passage.unresolved_anaphora— a passage opens with "As mentioned above…" / "Esto…" and cannot be read standalone (warn, severity 2,fixable: proposed, confidencedirectional).M11.passage.overlong— a passage runs well past the extractable window (>167 words) with no internal structure to lift (warn, severity 2,fixable: proposed, confidencedirectional).M11.summary.missing_tldr— no up-front summary / key-takeaways block on a long-form page (warn, severity 2,fixable: proposed, confidencedirectional).M11.answers.ok— question headings are answered directly and passages are self-contained (pass, severity 3, confidencedirectional).M11.lang.unsupported— the page language is outside the EN/ES lexicons, so the passage heuristics cannot decide (manual_review, severity 0; language-dependent fieldsnull). Each finding'sevidence.observedquotes the page (heading text + first sentence, or the offending clause) andverification.reproduceis the runnable command above;expected_impactis banded + confidence-tagged with no naked percentage.
Honesty
- Google does not ask for AI-specific rewriting or chunking. Its generative-AI guidance points back at the same fundamentals — indexable, snippet-eligible, well-structured pages written for people — and it publishes no passage length, no "chunk size", and no answer-block format. Everything in this module is a readability and extractability argument that also helps human readers; say that, and never sell a rewrite as an engine requirement.
- Word-count windows are heuristics from observed citation patterns, not engine-published thresholds — they are
directional, neverestablished; flag a passage, don't hard-fail purely on length. - Adding a "TL;DR" label or bolting question marks onto headings does nothing if the passage still cannot answer standalone. Semantic completeness is what carries weight; formatting theatre is a myth this tool does not ship.
- The heuristics are language-bound. On an unsupported language the honest output is
manual_review, not a pass — a silent zero would read as "no problems found".