Skip to content

feat(content-editor): count the page type's own rules and a product page's shipping and returns in Quality (CE-052, part b) - #1494

Merged
gkhngyk merged 113 commits into
ansvisor:mainfrom
cihan-gyk:feature/quality-type-checks
Oct 25, 2026
Merged

gkhngyk merged 113 commits into
ansvisor:mainfrom
cihan-gyk:feature/quality-type-checks

Conversation

@cihan-gyk

Copy link
Copy Markdown
Collaborator

Summary

Quality Phase 3, CE-052, part b: the page type's own checks.

Stacked on #1491 (part a: profiles and weights). This PR's own change is the last commit(s). Everything is behind NEXT_PUBLIC_CONTENT_QUALITY_PHASE=3.

Spec §11 gives each page type its own Readability target and Trust checks:

  • product: short bullets, a specs table, shipping and returns;
  • category: an intro and an FAQ;
  • comparison: a comparison table, summary first.

The page type's rules in Readability (withTypeRules)

  • The Rules tab already reads a page type's own rules from the page (rules.ts TYPE_RULES): a specs table and fit questions on product pages, a side-by-side table on comparisons, an intro and a buying FAQ on category pages, a comparison table on feature pages, how-to steps on guides.
  • Quality now counts them as one Readability check: the share of those rules the page meets. Rules turned off in the Rules tab, and ones read by AI or the product feed, aren't counted, so the two tabs never disagree.
  • Its suggestion names the rules not met, e.g. "2 page type rules not met: Specs table, Answer fit and sizing questions".
  • Hand off takes it too: readability:typeRules, on both the web and the server. The server tells the agent to add what's missing from the page and its data only, with a placeholder where a fact is missing.
  • Weights: product 20, category 30, comparison 15, feature 10. Article-profile types (guides, definitions) leave it at 0: their rules stay in the Rules tab only.

Shipping and returns on product pages (shippingOnPage)

  • Trust reads whether a product page says how shipping and returns work, either in its words or as links to the shop's own pages (/shipping, /policies/refund-policy…), in en, tr, de, fr and es. It's a Trust check worth 10 points on product pages, and half when only one of the two is there.
  • Only the person knows these terms, so it's a to-do, "Say how shipping and returns work", not a suggestion. Hand off leaves it to them, as the spec's to-do rule asks.
  • The to-do reads the page directly, so it shows before Trust has its brand domains.

Weights are rebalanced so each score still has 100 points per profile.

Pre-push review fixes:

  • What the agent is told. The type rules check carries each rule's aim and how the page reads now, shared with Fix open rules (aimAndNow). Hand off now tells the agent what to meet. A table of facts (specs, sizes) gets only the facts given, with a placeholder in each cell it can't fill.
  • Shipping and returns are read in a policy's terms ("free shipping", "delivery in 2 days", "30-day returns", "iade"):
    • "ships with a cable", "in return" and "return on investment" no longer count;
    • headings count, and Turkish capitals ("İade koşulları");
    • links such as /shipping_policy, #versandkosten and /reembolso count.
  • Fit questions are read in English words only, so another language's page isn't scored on them. The Rules tab now says so too (englishOnly), as it already does for the definition rule.
  • Copy. The product and category lines name what they count.

Related issue

Quality spec (Drive), Phase 3, CE-052 (part b). Stacked on #1491.

Type of change

  • feat — New feature
  • fix — Bug fix
  • chore — Maintenance / dependencies
  • docs — Documentation only
  • refactor — Code change that neither fixes a bug nor adds a feature
  • test — Adding or updating tests

How to test

  1. With phase 3 on both sides, open a draft with page type Product page that has no specs table and says nothing about shipping.
  2. In Quality, under "What would raise it": "2 page type rules not met: Specs table, …". Under Your to-dos: "Say how shipping and returns work".
  3. Add a line "Free shipping in 2 days, returns within 30 days." The to-do is checked off.
  4. Click Hand off: the type rules go with the other suggestions; shipping doesn't.

The browser check (both themes, 1024 px) is still owed, batched with the Quality PRs.

Checklist

  • Branch follows the naming convention (feature/, fix/, chore/, docs/) — see CONTRIBUTING.md
  • Commits follow Conventional Commits
  • yarn lint passes (run from web/)
  • yarn typecheck passes (run from web/)
  • yarn format:check passes (run from web/)
  • Changes are focused — one concern per PR

Web: yarn test (3,817 passed) and yarn build pass. Server: format, lint and npm test (2,572 passed) pass.

🤖 Generated with Claude Code

cihan-gyk and others added 30 commits October 24, 2026 13:18
…he weak ones (CE-046, part a)

Quality phase 2 (NEXT_PUBLIC_CONTENT_QUALITY_PHASE=2), by rules only:

- sourceClass(): primary (official, research, standards), secondary (news,
  reviews, Wikipedia), weak (forums, social posts, uploaded papers), a
  competitor's page (primary on a comparison) or the brand's own; an
  address the rules can't place is left out (an AI read comes in part b)
- Trust's primarySources (15) and noWeakSources (10); two placed sources
  score Trust on their own
- Quality suggests replacing weak sources (Show, Keep) and adding a
  primary one, once Trust is scored; the editor underlines weak sources
  in amber (a decoration: never exported)
- 00263: content_drafts.kept_sources (≤ 50) and content_draft_keep_source()
- byUrl keeps a link's first place, so Show goes there

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… with AI (CE-046, part b)

Quality phase 2 (web NEXT_PUBLIC_CONTENT_QUALITY_PHASE and server
CONTENT_QUALITY_PHASE at 2):

- POST /api/content-pages/source-classes reads the sites a draft links
  (as saved) that the editor's rules can't place: the model sees each
  site's address alone and answers primary, secondary or weak; each read
  is kept for every workspace 90 days (00264 content_source_classes); 20
  sites a read, 30 reads a draft a day, its own rate limit
- the reads draw on the AI budget as their own feature, "quality" (00264
  widens prompt_improve_usage.feature): a small hold (holdUsd), left out
  of the median that sizes other calls' holds and the Improve tab's
  estimate; a read cut off by its timeout keeps its hold; Billing lists it
- the editor asks 3 s after a save (useSourceClasses), Trust takes the
  reads for sites the rules can't place, the weak-sources suggestion is
  tagged "AI check", and a spent budget pauses the reads with a note

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…rce-classes-ai

# Conflicts:
#	supabase/schema.sql
#	web/messages/en.json
#	web/src/app/[locale]/(dashboard)/dashboard/content/editor/[draftId]/_draft-editor.tsx
#	web/src/app/[locale]/(dashboard)/dashboard/content/editor/[draftId]/_quality-tab.test.tsx
#	web/src/app/[locale]/(dashboard)/dashboard/content/editor/[draftId]/_quality-tab.tsx
#	web/src/lib/actions/content-drafts.test.ts
#	web/src/lib/content/quality-checks.test.ts
#	web/src/lib/content/quality-checks.ts
#	web/src/lib/content/source-class.ts
#	web/src/types/supabase.ts
…a day, and skip kept sources (CE-046, part b review)

- SITE_NAME (LDH, a dot, a letter TLD; no IP, no single label) in
  keptSite/linkedSites, the editor's unplacedSites and 00264's check; a
  label that reads as words isn't asked about either
- the model may answer unknown, which Trust leaves out; it, and a site
  the model left out, is kept a day, so it isn't asked again (and
  charged) after every save
- a site whose every link the person kept isn't asked about (route and
  editor); a kept link counts in Trust with or without a read
- a failed classifyDraftSources call lets its sites go (.catch/.finally)
- .env.example: phase 2 turns the AI source reads on, from the AI budget

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…rce-classes-ai

# Conflicts:
#	supabase/schema.sql
#	web/src/app/[locale]/(dashboard)/dashboard/content/editor/[draftId]/_draft-editor.tsx
…ept by the paragraph (CE-045, part a)

Quality phase 2 (CONTENT_QUALITY_PHASE at 2), server side:

- POST /api/content-pages/claims reads the draft as saved: each paragraph
  and list item long enough to hold a claim; the model finds what a reader
  would want a source for (number, stat, superlative, fact), each claim in
  the paragraph's own words or dropped, five a paragraph at most
- 00266 content_quality_claims keeps the reads by draft and paragraph
  hash: an unchanged paragraph isn't read again, a removed one's row goes;
  the paragraph being written (skip) waits; 12 paragraphs a call, 2 calls
  an ask, one after the other
- the calls draw on the AI budget as "quality" (holdUsd 0.004), and share
  one day's cap per draft with the source kinds' reads
  (content-quality-calls.js, QUALITY_CALLS_PER_DAY 60)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…s too, and keep a missed answer as read (CE-045, part a review)

- draftParagraphs reads p, li, blockquote, td and th as trustBlocks does,
  with ownText's spacing (a line break, sibling paragraphs): the answer is
  { paragraphs: [{ text, claims }] }, so the editor knows each claim's block
- blocks from 12 characters ("Award-winning support"); a call takes 12
  paragraphs or 6,000 characters, whichever comes first
- an answer billed that missed the schema is charged and its paragraphs
  read with none (not sent, and charged, on every save); a kind the editor
  doesn't know drops that claim only; a paragraph answered twice keeps both
- claims leave 10 of the day's Quality calls to the sources' kinds, and the
  route has its own limiter; the reading's version is in the hash; logs
  carry no page words

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…underline the unsourced ones (CE-045, part b)

The editor asks the API for the claims a few seconds after a save (never
with changes to save), leaving the block being written until the person
leaves it. Trust counts each claim in its own block as a figure, the
draft underlines the unsourced ones in their blocks, and Quality's
suggestion gets Add source (link dialog on the claim's words) and Remove.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… per site (CE-046, part b review)

One generateObject per site the rules can't place, run together with
Promise.allSettled: no site's name reaches another's read, and a failed
site keeps the others' reads. Each read holds $0.0005; the day's cap
counts sites (SOURCE_READS_PER_DAY = 40). An answer off the schema is
charged and kept as unknown for a day. The route logs an error's name
and message only.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…-claims

# Conflicts:
#	server/src/lib/content-source-class.js
…tch claims across curly quotes, log no page words (CE-045, part a review)

- 00266 gets a `missed` column: an answer that missed the schema (cut
  short, or blocked by the provider's filter) keeps its paragraphs as read
  with no claims, and they're read again after MISSED_DAYS (1).
- keptClaims compares folded copies (’ ‘ → ', “ ” → ", ‐ ‑ – — → -),
  one character for one, and keeps the paragraph's own span.
- The claims route logs an error's name and message only: a provider's
  error carries the request, the page's paragraphs.
- QUALITY_CALLS_PER_DAY = 90, the claims leaving the sources'
  SOURCE_READS_PER_DAY (40) now that each site is a call: the claims keep
  their 50 calls a day.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…d log no whole error (CE-046, part b review)

When no site is read, the error thrown is a spent budget's if any (429,
the editor pauses) rather than the first site's. An ask reads its sites
five at a time, so 20 holds and their queries don't go out at once. A
site's hold is $0.001 (the model's thinking is billed as output). The
route's error log keeps the stack, not the provider's request.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…-claims

# Conflicts:
#	server/src/lib/content-source-class.js
…er the new ones, and fold more quote and dash forms (CE-045, part a review)

A paragraph whose answer missed the schema is read again after a day in
a call of its own, after the paragraphs not read yet: one the provider's
filter blocks no longer keeps its neighbours unread every day. The fold
also covers low quotes, primes, figure and horizontal-bar dashes and the
minus sign. The claims route keeps the error's stack in its log. Tests
pin the select's columns, both fold directions and the route's log.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…roduct pages, kept for approval (00269, CE-047, part a)

Quality phase 2, CE-047: the brand's prices and plans, trial, founding
year and claims, read from its own site for Trust's "consistent with
brand facts" check. The model finds the facts and copies each one's
words; a fact is kept only when its words are on the page as written,
and its value (amount, currency, period, days, year) is read from them
by rule. A person approves each one.

- 00269: brand_facts (members read, and change only the status, as
  themselves) and brand_fact_pages (server-only: a hash of each page's
  text, so an unchanged page isn't read by the model again; no text
  kept).
- brand-facts.js: findFactPages (page list, Site trust's About page,
  else probes on the main domain; never Scrape.do), factText, keptFacts,
  refreshBrandFacts (new values pending, approved ones gone from the
  site marked gone, pending ones dropped), readBrandFacts (first ask
  reads, asking again every 10 minutes at most), setFactStatus.
- GET /api/brand-facts, POST /fetch, PATCH /:id behind phase 2, with
  their own limiter; logs carry no page text.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…47, part c)

Brand settings › Brand facts, with Quality's phase 2: the facts the API
read from the brand's own pricing, About and product pages, each with
its words on the page, where it was read and the approved value it would
replace ("Was $59"). A member approves or rejects each one (no approve
all: the spec has each approved); approved facts no longer on the site
say so. Each page's read is listed (read, not found, turned our reader
away, didn't answer); Read again reads the site again once the API
allows it, and a spent AI budget says so. `?tab=facts` opens the tab,
for the editor's to-do to link to.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… still has, and store no wrong price (CE-047, part a review)

- factText walks the page once and stops near MAX_TEXT_CHARS: a page of
  100k blocks reads in well under a second (was quadratic). Struck-through
  old prices (del, s, strike) are left out.
- A fact still on any page read (its words, a price's with its plan near
  them; across a card's lines too) stays; only facts whose page was read
  and has them no more are marked gone or dropped, written once.
- A plan's name is found on the folded text without lowering it (a
  Turkish "İ" lowers to two characters), and a quote only where it
  doesn't run into a number ("$49" in "$499", "$1,2").
- parsePrice reads one price only, no saving, discount or old price, a
  dollar named by its code after it ("$49 CAD"), and the period in the
  words right after it, the first named ("Lifetime access, monthly
  updates" is once). Magnitudes in any case; a trial needs a trial word,
  "started in" is no founding year.
- A page read after a wall or a failure says "ok" again; a missed
  answer's hash isn't kept past a failed read. A changed page goes to the
  model once an hour at most (MODEL_EVERY_MS). A page that failed (or a
  spent budget) is read again at the next ask after RECHECK_MS.
- Facts are written before the pages' hashes; source_url is cut to 2048.
- A listed page that no longer answers falls back to the usual
  addresses; a probe that is the home page again isn't read as one.
- readPage maps not-HTML, refused and redirect-loop reads to not_found;
  401/403/429 to blocked, 5xx to failed. setFactStatus answers 404 for a
  fact removed meanwhile.
- GET has no bucket of its own (the editor reads it as its tab comes
  back); POST /fetch keeps brandFactsLimiter.
- 00269: each kind's value checked (amount ≥ 0, currency, days, year),
  source_url http(s) only, a member's reviewed_at within a minute of now.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…Trust, with an Approve to-do (CE-047, part d)

Trust's "consistent with brand facts" (10 points, phase 2): the page's
prices, trial and founding year against the brand's approved facts still
on its site, read so as not to cry wolf: a price in its own currency
only, against a plan's prices (any of them: monthly and annual billing
both count) when the sentence names the plan, else only when it names
the brand (or "we") with a period; "from $29" against the lowest price;
no sentence naming a competitor; discounts, scales and ranges aren't
prices. Like a working link, it doesn't score Trust on its own.

- A mismatch is Quality's suggestion, "Price differs from brand facts ·
  Page $39 · pricing page $49", with Show on its sentence.
- "Approve {n} brand facts" is the person's to-do while facts wait, with
  Review linking to Brand settings › Brand facts (the to-do row and the
  next-step nudge, not Settings › Authors).
- useBrandFacts reads them once with phase 2 and again when the tab
  comes back from Brand settings; the next-step reads wait for it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… after a review, and do one thing at a time (CE-047, part c review)

- settings/layout.tsx sets maxDuration 300: the first read and Read
  again wait while the API reads the site (pages, then the model).
- A review updates the list in place (no read that could read the whole
  site again); a failed one reads the list as kept, a fact a read
  removed meanwhile gone from it. Approve, Reject and Read again don't
  run at once; the row being saved says so (aria-busy).
- An API with brand facts off says they aren't available yet; a thrown
  action shows the failure instead of loading for ever.
- Page links read as the page's name; sections are labelled by their
  heading; the quote marks and the page status separator are messages;
  "missed" and the paused note say when the read comes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…after a price, and read brand facts once at a time (CE-047, part a review 2)

- A page under 200 characters (one its scripts write, a wall not told
  apart) leaves its facts as they are on every read, not only the first.
- A currency code or a scale right after a quote is read ("$49" then
  "CAD per month" is CAD; "$2" then "million" is no price); only "off"
  right after a price drops it (the next card's "Save 20%" doesn't). A
  period is named within 24 characters of the price, the first one
  named; "per active user" is per seat.
- A plan's name matches as whole words ("Pro" isn't in "Product"); a
  quote isn't taken inside another mark's dollar ("C$49") or a
  space-grouped number ("299 €" in "1 299 €").
- factText counts words toward its length, not indentation.
- A page whose model read failed waits MODEL_EVERY_MS like any other;
  a GET reads a failed page again behind its answer, not before it.
- New facts get the room the removed ones leave; a page whose new facts
  didn't fit keeps its old hash, to be read again. A kind no longer read
  (a shop's product page) loses its row.
- refreshOnce: one read per brand at a time, for the tab and the weekly
  read alike.
- 00269: a missing key is a check violation, and numbers compare as
  numeric (no cast error).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…de the price, the brand's own trial and founding year only (CE-047, part d review)

- A price is compared with the plan named nearest it, its name as the
  page writes it (case too); a plan that is an everyday word ("Pro",
  "Team", "Free", "Growth") only beside "plan"/"tier" or with the brand
  named. With no plan, only a sentence naming the brand and saying what
  it costs; no "we/our" path. Free ($0) is never compared; "from $19"
  matches any approved price.
- A sentence with an old price, a saving, a discount, credits, tax or a
  team's bill ("was $49", "incl. VAT", "5 users pay") isn't read for
  prices; "billed monthly/annually" narrows to that billing.
- Ranges need a number before the dash or word (French "à", Turkish
  "ile", "between … and"), so "Pro – $49" is a price again; an amount
  doesn't start inside a number.
- A trial is compared where it is the brand's ("your free trial",
  "every plan", its name), its days right beside the trial; a founding
  year right after "founded", with the brand named or "we were founded".
- Each sentence once. The to-do is last (the brand's, no points of the
  page's), "Review your brand facts" at 0 and "reviewed" when done.
- useBrandFacts fails instead of loading for ever when the action throws.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
cihan-gyk and others added 9 commits October 25, 2026 10:47
… off on their own, and list hand-offs in History (CE-051, part 4)

- A draft its brand hands off (Settings › Content, copied at creation,
  quality_handoff) whose page came from elsewhere (imported to optimize,
  or the agent's) goes to Hand off on its own, once: when Quality is
  settled and nothing holds Hand off (open suggestions, the agent at work,
  a spent AI budget, the reads, the HTML view). The editor reads whether
  the draft had its automatic run (readAutoHandOff); the server's row is
  the claim, and its `already` / `not_due` aren't said.
- History lists the draft's hand-offs of the last 90 days among the
  versions by time, who started each, how it ended and its checks, with
  nothing to restore (getDraftHandoffs).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…hed pages, and read History's hand-offs as they ended (CE-051)

- The automatic run says nothing when it doesn't run or finds nothing
  (only logged); a published draft, or a brand that stopped handing off
  (readAutoHandOff reads its setting too), doesn't run it at all.
- History: a run stopped before its outcome was written reads as
  stopped, one left past RUN_STALE_MS as failed; a done run with no
  change says so; rows sort by time, not by the timestamp's text.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…y which (CE-052, part a)

Phase 3 of the Quality spec (§11): the three scores keep their names, but
what each counts, and how much, follows the page's type.

- quality-profiles.ts: each page type reads as an article, product,
  category, feature or comparison profile (an article before Phase 3 and
  for the types §11 doesn't name), each with E-E-A-T, Trust and
  Readability weights; the article's are the blog defaults. `weighed`
  re-weighs a score's checks (each keeps its share of its points; a weight
  of 0 leaves the check out and rescales the rest).
- The editor weighs Readability, E-E-A-T and Trust for the page's type;
  Trust's unscored gains count out of the type's Phase 1 points.
- To-dos for checks the type leaves out aren't listed: a product, category
  or feature page goes out under the brand's byline, so no author to-dos,
  Export's "No author yet" or Before you publish's missing author.
- Quality says "Checks and weights for {type} (detected): …", with Change
  opening the header's page type menu.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… page type counts them (CE-052)

- Trust is scored after weighing, as trust() scores it: a type that
  leaves freshness out isn't scored by its links and site alone
  (weighedTrust).
- An unscored Trust gain for a check outside Phase 1's (brand facts)
  counts out of its own points too.
- A category page's E-E-A-T weighs the brand's own information (its site's
  trust, `brandInfo`) beside its own images, not all or nothing.
- Where the type leaves the disclosure out (product, category, feature),
  Before you publish and Export don't ask for one.
- Change has an accessible name.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…age's shipping and returns in Quality (CE-052, part b)

- Readability gains one check on the types that weigh it: the page
  type's own rules as the Rules tab reads them from the page (a specs
  table, a side-by-side table, an intro, a buying FAQ, how-to steps), their
  share met; ones read by AI or a feed, or turned off in Rules, aren't
  counted (withTypeRules). Its suggestion names the rules not met; Hand off
  takes it too (readability:typeRules, on both sides).
- Trust reads whether a product page says how shipping and returns work,
  or links where they're told (shippingOnPage: en, tr, de, fr, es), as its
  own check there. Only the person knows them: a to-do, not a suggestion.
- The profiles' Readability and Trust weights make room for both.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…nd tell the agent each type rule's aim (CE-052)

- shippingOnPage reads the page's HTML, headings too, for a policy's
  terms ("free shipping", "delivery in 2 days", "30-day returns",
  "iade"), not "ships with a cable", "in return" or "return on
  investment"; Turkish capitals ("İade") and links like
  /shipping_policy, #versandkosten, /reembolso count.
- The type rules check carries each rule's aim and how the page reads now
  (shared with Fix open rules: aimAndNow), so Hand off tells the agent
  what to meet; a table of facts gets only the facts given, placeholders
  for the rest.
- Fit questions are read in English only: another language's page isn't
  scored on them (the Rules tab says so, as for the definition rule).
- The product and category lines name what they count.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e-type-weights

# Conflicts:
#	supabase/schema.sql
#	web/src/app/[locale]/(dashboard)/dashboard/content/editor/[draftId]/_before-publish.tsx
#	web/src/app/[locale]/(dashboard)/dashboard/content/editor/[draftId]/_draft-editor.tsx
#	web/src/app/[locale]/(dashboard)/dashboard/content/editor/[draftId]/_quality-tab.test.tsx
#	web/src/app/[locale]/(dashboard)/dashboard/content/editor/[draftId]/_side-panel.tsx
#	web/src/app/[locale]/(dashboard)/dashboard/content/editor/[draftId]/page.test.tsx
#	web/src/lib/content/quality-checks.ts
#	web/src/lib/content/quality-todos.test.ts
#	web/src/lib/content/quality-todos.ts

@gkhngyk gkhngyk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs changes.

What I checked:

  • Below phase 3. profileFor gives the article profile, which weighs typeRules and shippingReturns at 0. So weighed drops the new Readability check and the score stays as it is today. shippingRead is null off the product profile, so there's no Trust check and no to-do. The to-dos' early return now filters by off, but none of its ids (placeholders, proof, reviewer, brandFacts) is ever off.
  • Weights. Each score adds up to 100 in every profile (product Trust 30+5+5+25+10+15+10, product Readability 15+20+20+15+10+20, category Readability 15+20+20+15+30; feature and comparison too). A type whose rules aren't read from the page (integration, pricing, best of, or all of them off or read by AI) adds no check, and the other checks rescale. withTypeRules returns early on an empty list or an unread page, so nothing divides by zero. A product page whose only checks are shipping and site trust stays unscored, as before, and the to-do's gain stays 0.
  • The two tabs agree. Only rules that are on, read from the page and not info (AI, feed, englishOnly, notHowTo) count, from the same statuses the Rules tab shows.
  • Hand off. readability:typeRules is on both sides. The API's item cap follows HANDOFF_CHECKS (16), and so does the web's slice. Shipping stays a to-do: it's neither a suggestion nor a hand-off key. Deploy the API before the web turns phase 3 on: until then, the API refuses the whole hand-off for any page with an open type rule.
  • Detection. Turkish capitals are read through toLocaleLowerCase('tr'), and a plain ASCII I typed for the Turkish dotted capital through /i. "Ships with a cable", "in return" and "return on investment" don't count. The regexes aren't global, so .test keeps no state.
  • fitQuestions read as English only also ships to the Rules tab and Fix open rules without the flag, which is right.
  • Merge commit 32d4f10 changes nothing beyond merging its parents. The PR merges cleanly on main.

Medium:

  1. web/src/lib/content/rules.ts:670 (used by buyingFaq, :940): the buying FAQ is found only under an English heading (faq|faqs|frequently asked). On a category or collection page, that rule is now half the type rules check, 15 of the 100 Readability points. A German, French, Spanish or Turkish page with its FAQ under "Häufig gestellte Fragen", "Questions fréquentes", "Preguntas frecuentes" or the Turkish heading reads "Buying tips + FAQ · Now: missing". Hand off then asks the agent to add a buying FAQ the page already has. The agent writes in the brand's language, so the new heading isn't found either. Read the heading in the five languages, lowercased the Turkish way too. Or return englishOnly for another language when no FAQ heading is found, as fitQuestions now does. Add a test with a non-English category page.

  2. web/src/lib/content/quality-checks.ts:81-90 (shippingOnPage): common ways of stating the terms aren't read, so the to-do never checks off on a page that has them. Trust also loses 5 or 10 points, which can drop a product page under Before you publish's Trust gate. None of these counts:

    • "Delivery & Returns", "Standard delivery 3–5 working days", "Free UK delivery on orders over £50", "Delivery: 2–4 working days";
    • "Returns are accepted within 30 days", "Returns & Exchanges";
    • "Expédition sous 24h", "retours acceptés", "satisfait ou remboursé"; "Entrega en 24/48 horas", "Reembolso en 14 días" (only the link reads); "kostenlose Retoure", "Umtausch"; the Turkish words for "delivered" and "exchange";
    • any page in a brand language the lists don't cover (Italian, Portuguese, Dutch, Swedish, Japanese, Korean, Arabic, Hindi), unless it links to a policy page.

    Some text that isn't a policy counts: "Shipping weight: 1.2 kg" in a specs table (a bare "shipping" counts anywhere), a link to /collections/delivery-bags, and a Turkish cargo trousers page, whose product name starts with the Turkish shipping word.

    Fixes:

    • Count a heading that names the policy ("Shipping", "Delivery", "Returns", "Shipping & Returns", "Versand", "Livraison", "Envíos"…) when text follows it.
    • Add "delivery" with a time or a cost, "returns are accepted", "returns & exchanges", "expédition", "entrega", "reembolso", "Retoure", "Umtausch" and the Turkish words.
    • Read a bare "shipping" in a policy's terms, as the rest are read.
    • For a page language the lists don't cover, leave the check and the to-do out (null) unless a link reads, as englishOnly does.
    • Add these phrases to the test.

Low, follow-up (please fix before phase 3 goes on):

  1. server/src/lib/content-handoff.js:27-28: the "never one made up" clause covers tables only. The type rules also ask for written answers: "Answer fit and sizing questions" on every English product page, and the category's buying FAQ, whose usual questions are about delivery, returns and sizing. Those are the terms the shipping to-do says the agent leaves to the person. The system prompt's facts rule and the number guard catch figures, but not "It runs true to size" or "Returns are free". Extend the clause to answers: an answer the page and your data don't give (fit, sizes, shipping, returns, prices) is a placeholder, never one made up. Also, a product with no sizes (a coffee grinder) now loses 10 of its 100 Readability points by default for lacking three fit questions. Consider counting fitQuestions in Quality only when the page has sizes (a size chart, sizes in its specs).

  2. web/messages/en.json:4711-4712: the product and category lines now name what they count, but the feature and comparison lines don't name their type rules (a comparison table, proof per section, use case steps; a side-by-side table).

cihan-gyk and others added 4 commits October 25, 2026 13:44
…compared price, and wait for the site before a category's E-E-A-T (CE-052)

Review on ansvisor#1491:
- Where brand facts weigh as much as sourced claims (product and
  category pages), a price compared with them scores Trust: a page with
  every price wrong no longer reads "Not scored yet" and passes Before you
  publish's gate. weighedTrust scores by the weighed checks (trust()
  leaves it unscored by its own). The article (10 to 30) is as it was.
- A category page's E-E-A-T waits for the site's trust, its 40 points of
  the brand's own information (waitsForSiteTrust), so it doesn't jump.
- Copy: a page type under the brand "goes out under {byline}" (Ansvisor
  gives no schema for it); the category line names the brand's own
  information and no longer promises an intro check.
- QUALITY_WEIGHTS_VERSION is gone until calibration reads it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…-type-checks

# Conflicts:
#	web/messages/en.json
…eturns in the page's language, and ask for fit only where there are sizes (CE-052)

Review on ansvisor#1494:
- The buying FAQ (and the FAQ rule) is found under its heading in German,
  French, Spanish, Turkish (lowercased the Turkish way), Italian,
  Portuguese and Dutch; another language's page isn't told its FAQ is
  missing (English only), so Hand off never adds one it has.
- shippingOnPage reads the ways shops state their terms: a heading that
  names the policy with text under it ("Delivery & Returns", "Returns &
  Exchanges"), delivery with a time or a cost ("Standard delivery 3–5
  working days", "Free UK delivery on orders over £50"), "Returns are
  accepted", "Expédition sous 24h", "Entrega en 24/48 horas", "Reembolso",
  "Retoure", "Umtausch", "satisfait ou remboursé", "teslim edilir",
  "değişim". Not a bare "shipping" ("Shipping weight"), a product's link
  ("/collections/delivery-bags") or a product named for it ("kargo
  pantolon"). A page in a language the words aren't written for is read
  by its links, and isn't asked without one.
- Answer fit and sizing questions counts only where the page has sizes or
  asks about them ("No sizes" for a coffee grinder).
- Hand off: an answer the page and the data don't give (fit, sizes,
  shipping, returns, prices) is a placeholder, never made up.
- Product Trust weighs brand facts 30 and sourced claims 25 (was 25 and
  30), so a compared price scores a product page's Trust as ansvisor#1491 makes it.
- The feature and comparison lines name their type rules.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@cihan-gyk

Copy link
Copy Markdown
Collaborator Author

Thanks. Fixed in 9139f47, after merging #1491 (7474b4b: only the category line's copy conflicted, and I kept both sides' meaning).

  1. Buying FAQ.
    • The FAQ heading (for buyingFaq and the general faq rule) is now read in German, French, Spanish and Turkish (also lowercased the Turkish way), plus Italian, Portuguese and Dutch.
    • On a page in any other language, a missing FAQ reads englishOnly, so Hand off never asks for one the page already has.
    • Tests: a German, a French, a Spanish and an all-caps Turkish category page are met; a Swedish one is englishOnly.
  2. shippingOnPage now reads the shop's terms in more of the ways they're written.
    • A heading that names the policy, with text under it: "Delivery & Returns", "Returns & Exchanges", "Shipping", "Versand", "Livraison", "Envíos", "Kargo", "İade".
    • Delivery with a time or a cost: "Standard delivery 3–5 working days", "Free UK delivery on orders over £50", "Delivery: 2–4 working days".
    • Phrases in other languages:
      • English: "Returns are accepted within 30 days";
      • French: "Expédition sous 24h", "retours acceptés", "satisfait ou remboursé";
      • Spanish: "Entrega en 24/48 horas", "Reembolso";
      • German: "Retoure", "Umtausch";
      • Turkish: "teslim edilir", "değişim".
    • No longer counted:
      • a bare "shipping" ("Shipping weight" in a specs table);
      • a link that isn't a policy page's own path ("/collections/delivery-bags");
      • a product named for the word ("kargo pantolon").
    • Other languages: a page in a language these words aren't written for is read by its links only, and returns null (no check, no to-do) when it has none.
    • Every phrase above is in the tests.
  3. Hand off.
    • The type rules' instruction now covers answers too: "an answer the page and your data don't give (fit, sizes, shipping, returns, prices) is a placeholder too, never one made up". A server test covers it.
    • fitQuestions counts only where the page has sizes (a size chart or guide, "sizes", letter sizes, EU/US/UK sizes) or already asks about fit. Otherwise it reads "No sizes" (info), so a coffee grinder isn't asked for fit questions.
  4. Copy. The feature and comparison lines now name their type rules.

Also, so that #1491's rule holds on a product page here, product Trust weighs brand facts 30 and sourced claims 25 (was 25 and 30). The sum is still 100.

Checks: the full web suite (3,871) and build on the stack's tip (#1498), and the server's format, lint and tests (2,587).

@gkhngyk gkhngyk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, with follow-ups to fix before phase 3 goes on.

What I checked:

  • 1. Buying FAQ in the page's language: done. rules.ts:679-680 reads the FAQ heading in en, de, fr, es, tr, it, pt and nl, also lowercased the Turkish way ("SIKÇA SORULAN SORULAR"). In any other language, :965-969 returns englishOnly instead of calling the FAQ missing, so Hand off never asks for an FAQ it can't see. Tested at rules.test.ts:484. The same read ships to the faq rule in the Rules tab without the flag, where it only removes false "Missing" results.
  • 2. Shipping and returns: done for every phrase listed. All of them read now. "Shipping weight", /collections/delivery-bags and the cargo trousers don't count. A page in a language the words aren't written for is read only by its links, and is null when it has none (quality-checks.ts:157-159). The narrower words and links do drop some forms that used to count (see 1 below).
  • 3. Hand off and fit: done. At content-handoff.js:28, an answer the page and the data don't give is now a placeholder. At rules.ts:1066, a page with no sizes and no fit question gets noSizes. That's an info status, so neither tab counts it. The sizes read has gaps (see 2).
  • 4. Feature and comparison lines: done (en.json:4711-4712).
  • Weights. Product Trust now weighs claims at 25 and brand facts at 30: 25+5+5+30+10+15+10 = 100. Only the product profile changes, so this is phase 3 only.
  • Below phase 3. shippingOnPage still runs only for the product profile. The FAQ and fit changes are reads in the Rules tab, and they only turn a false "Missing" or "0 of 3" into info.
  • Merge commit 7474b4b only resolves en.json's product and category lines, keeping both sides. The PR contains #1491's head and merges cleanly on main.

Medium, follow-up (please fix before phase 3 goes on):

  1. web/src/lib/content/quality-checks.ts:83-131: "shipping" now counts only in a policy's terms, and the links are stricter. Some common ways of stating the terms counted before and don't now. On such a page the to-do stays open, and Trust loses 5 or 10 points:

    • A label followed by its terms: "Shipping: Free on orders over $50", a table row "Shipping | 2–4 business days", "Versand: 1–3 Werktage", "Livraison : 2 à 4 jours", "Envío: 24/48 h", "Kargo: Ücretsiz". Also a bold "Delivery & Returns" line that isn't a heading, with the terms under it.
    • "Kostenloser Versand" on its own, since the pattern requires a word after it. Also the Turkish "kargoya verilmektedir".
    • Links: /refund_returns/ (WooCommerce's default returns page), /pages/shipping-delivery, /shipping-policy.html, /content/1-livraison. /pages/shipping-returns and /pages/delivery-returns count for shipping but not for returns.

    Two gaps that aren't new but are common: "Free shipping and returns" counts for shipping only, and "Returns: 30 days" counts for nothing. One new false positive: a charger's "Fast Power Delivery" or "Power Delivery charges a laptop…" counts as shipping.

    Fixes:

    • Count a block that holds only the policy's name (a heading, a th, a line on its own), or that starts with the name and a colon, when terms follow. Do it the way headed reads a heading. "Shipping weight" stays out, since it's neither.
    • Read "kostenloser Versand" on its own and kargoya\s+veril. Count "free shipping and returns" and "free shipping & returns" for returns too. Leave "power delivery" out.
    • For links, accept a path segment made only of policy words (shipping, delivery, returns, refund, exchanges, policy, info, and, or a leading number), joined by - or _, with an optional .html or .php. /collections/delivery-bags still stays out.
    • In a language the words aren't written for, a single link (shipping only, say) still marks returns as missing. Leave the side no link covers out of the score and the to-do.
    • Add these cases to the test.

Low, follow-up (please fix before phase 3 goes on):

  1. web/src/lib/content/rules.ts:685-686 (SIZES): some text that isn't a size reads as one: "Call us 24/7" (as "us 24"), "UK 3-pin plug", "EU 230 V", an "XL hopper". A coffee grinder that says any of these still loses 10 Readability points for fit questions. The reverse also happens: an apparel page that only says "wears a size M", "Size 10" or "true to size" reads as having no sizes, so it isn't asked for fit questions. Fix:
    • Read a country size only as capital "EU", "US" or "UK", not followed by another digit, a "/" or a unit.
    • Count "size" followed by a size ("size M", "size 10"), "true to size", and "runs small" or "runs large".

@gkhngyk
gkhngyk merged commit ea0d7af into ansvisor:main Oct 25, 2026
4 of 5 checks passed
gkhngyk added a commit that referenced this pull request Oct 25, 2026
…ed, with Add line (CE-052, part c) (#1495)

* feat(content): read what kind of source each link is, and underline the weak ones (CE-046, part a)

Quality phase 2 (NEXT_PUBLIC_CONTENT_QUALITY_PHASE=2), by rules only:

- sourceClass(): primary (official, research, standards), secondary (news,
  reviews, Wikipedia), weak (forums, social posts, uploaded papers), a
  competitor's page (primary on a comparison) or the brand's own; an
  address the rules can't place is left out (an AI read comes in part b)
- Trust's primarySources (15) and noWeakSources (10); two placed sources
  score Trust on their own
- Quality suggests replacing weak sources (Show, Keep) and adding a
  primary one, once Trust is scored; the editor underlines weak sources
  in amber (a decoration: never exported)
- 00263: content_drafts.kept_sources (≤ 50) and content_draft_keep_source()
- byUrl keeps a link's first place, so Show goes there

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content): read the kind of a source's site the rules can't place with AI (CE-046, part b)

Quality phase 2 (web NEXT_PUBLIC_CONTENT_QUALITY_PHASE and server
CONTENT_QUALITY_PHASE at 2):

- POST /api/content-pages/source-classes reads the sites a draft links
  (as saved) that the editor's rules can't place: the model sees each
  site's address alone and answers primary, secondary or weak; each read
  is kept for every workspace 90 days (00264 content_source_classes); 20
  sites a read, 30 reads a draft a day, its own rate limit
- the reads draw on the AI budget as their own feature, "quality" (00264
  widens prompt_improve_usage.feature): a small hold (holdUsd), left out
  of the median that sizes other calls' holds and the Improve tab's
  estimate; a read cut off by its timeout keeps its hold; Billing lists it
- the editor asks 3 s after a save (useSourceClasses), Trust takes the
  reads for sites the rules can't place, the weak-sources suggestion is
  tagged "AI check", and a spent budget pauses the reads with a note

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): ask only about public site names, keep an unknown read a day, and skip kept sources (CE-046, part b review)

- SITE_NAME (LDH, a dot, a letter TLD; no IP, no single label) in
  keptSite/linkedSites, the editor's unplacedSites and 00264's check; a
  label that reads as words isn't asked about either
- the model may answer unknown, which Trust leaves out; it, and a site
  the model left out, is kept a day, so it isn't asked again (and
  charged) after every save
- a site whose every link the person kept isn't asked about (route and
  editor); a kept link counts in Trust with or without a read
- a failed classifyDraftSources call lets its sites go (.catch/.finally)
- .env.example: phase 2 turns the AI source reads on, from the AI budget

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test(content): size Quality's checks against Starter's $5 AI budget after #1435

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content): read the claims in a draft's own paragraphs with AI, kept by the paragraph (CE-045, part a)

Quality phase 2 (CONTENT_QUALITY_PHASE at 2), server side:

- POST /api/content-pages/claims reads the draft as saved: each paragraph
  and list item long enough to hold a claim; the model finds what a reader
  would want a source for (number, stat, superlative, fact), each claim in
  the paragraph's own words or dropped, five a paragraph at most
- 00266 content_quality_claims keeps the reads by draft and paragraph
  hash: an unchanged paragraph isn't read again, a removed one's row goes;
  the paragraph being written (skip) waits; 12 paragraphs a call, 2 calls
  an ask, one after the other
- the calls draw on the AI budget as "quality" (holdUsd 0.004), and share
  one day's cap per draft with the source kinds' reads
  (content-quality-calls.js, QUALITY_CALLS_PER_DAY 60)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): read the claims by the editor's blocks, short list items too, and keep a missed answer as read (CE-045, part a review)

- draftParagraphs reads p, li, blockquote, td and th as trustBlocks does,
  with ownText's spacing (a line break, sibling paragraphs): the answer is
  { paragraphs: [{ text, claims }] }, so the editor knows each claim's block
- blocks from 12 characters ("Award-winning support"); a call takes 12
  paragraphs or 6,000 characters, whichever comes first
- an answer billed that missed the schema is charged and its paragraphs
  read with none (not sent, and charged, on every save); a kind the editor
  doesn't know drops that claim only; a paragraph answered twice keeps both
- claims leave 10 of the day's Quality calls to the sources' kinds, and the
  route has its own limiter; the reading's version is in the hash; logs
  carry no page words

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content): count the claims in the page's own words in Trust and underline the unsourced ones (CE-045, part b)

The editor asks the API for the claims a few seconds after a save (never
with changes to save), leaving the block being written until the person
leaves it. Trust counts each claim in its own block as a figure, the
draft underlines the unsourced ones in their blocks, and Quality's
suggestion gets Add source (link dialog on the claim's words) and Remove.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): read each source site in its own call, held and counted per site (CE-046, part b review)

One generateObject per site the rules can't place, run together with
Promise.allSettled: no site's name reaches another's read, and a failed
site keeps the others' reads. Each read holds $0.0005; the day's cap
counts sites (SOURCE_READS_PER_DAY = 40). An answer off the schema is
charged and kept as unknown for a day. The route logs an error's name
and message only.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): read a missed answer's paragraphs again after a day, match claims across curly quotes, log no page words (CE-045, part a review)

- 00266 gets a `missed` column: an answer that missed the schema (cut
  short, or blocked by the provider's filter) keeps its paragraphs as read
  with no claims, and they're read again after MISSED_DAYS (1).
- keptClaims compares folded copies (’ ‘ → ', “ ” → ", ‐ ‑ – — → -),
  one character for one, and keeps the paragraph's own span.
- The claims route logs an error's name and message only: a provider's
  error carries the request, the page's paragraphs.
- QUALITY_CALLS_PER_DAY = 90, the claims leaving the sources'
  SOURCE_READS_PER_DAY (40) now that each site is a call: the claims keep
  their 50 calls a day.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): say a spent budget first, read five sites at a time, and log no whole error (CE-046, part b review)

When no site is read, the error thrown is a spent budget's if any (429,
the editor pauses) rather than the first site's. An ask reads its sites
five at a time, so 20 holds and their queries don't go out at once. A
site's hold is $0.001 (the model's thinking is billed as output). The
route's error log keeps the stack, not the provider's request.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): read a missed answer's paragraphs again one a call, after the new ones, and fold more quote and dash forms (CE-045, part a review)

A paragraph whose answer missed the schema is read again after a day in
a call of its own, after the paragraphs not read yet: one the provider's
filter blocks no longer keeps its neighbours unread every day. The fold
also covers low quotes, primes, figure and horizontal-bar dashes and the
minus sign. The claims route keeps the error's stack in its log. Tests
pin the select's columns, both fold directions and the route's log.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content): read a brand's facts from its own pricing, About and product pages, kept for approval (00269, CE-047, part a)

Quality phase 2, CE-047: the brand's prices and plans, trial, founding
year and claims, read from its own site for Trust's "consistent with
brand facts" check. The model finds the facts and copies each one's
words; a fact is kept only when its words are on the page as written,
and its value (amount, currency, period, days, year) is read from them
by rule. A person approves each one.

- 00269: brand_facts (members read, and change only the status, as
  themselves) and brand_fact_pages (server-only: a hash of each page's
  text, so an unchanged page isn't read by the model again; no text
  kept).
- brand-facts.js: findFactPages (page list, Site trust's About page,
  else probes on the main domain; never Scrape.do), factText, keptFacts,
  refreshBrandFacts (new values pending, approved ones gone from the
  site marked gone, pending ones dropped), readBrandFacts (first ask
  reads, asking again every 10 minutes at most), setFactStatus.
- GET /api/brand-facts, POST /fetch, PATCH /:id behind phase 2, with
  their own limiter; logs carry no page text.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content): review and approve brand facts in Brand settings (CE-047, part c)

Brand settings › Brand facts, with Quality's phase 2: the facts the API
read from the brand's own pricing, About and product pages, each with
its words on the page, where it was read and the approved value it would
replace ("Was $59"). A member approves or rejects each one (no approve
all: the spec has each approved); approved facts no longer on the site
say so. Each page's read is listed (read, not found, turned our reader
away, didn't answer); Read again reads the site again once the API
allows it, and a spent AI budget says so. `?tab=facts` opens the tab,
for the editor's to-do to link to.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): read brand facts' text in one walk, keep facts any page still has, and store no wrong price (CE-047, part a review)

- factText walks the page once and stops near MAX_TEXT_CHARS: a page of
  100k blocks reads in well under a second (was quadratic). Struck-through
  old prices (del, s, strike) are left out.
- A fact still on any page read (its words, a price's with its plan near
  them; across a card's lines too) stays; only facts whose page was read
  and has them no more are marked gone or dropped, written once.
- A plan's name is found on the folded text without lowering it (a
  Turkish "İ" lowers to two characters), and a quote only where it
  doesn't run into a number ("$49" in "$499", "$1,2").
- parsePrice reads one price only, no saving, discount or old price, a
  dollar named by its code after it ("$49 CAD"), and the period in the
  words right after it, the first named ("Lifetime access, monthly
  updates" is once). Magnitudes in any case; a trial needs a trial word,
  "started in" is no founding year.
- A page read after a wall or a failure says "ok" again; a missed
  answer's hash isn't kept past a failed read. A changed page goes to the
  model once an hour at most (MODEL_EVERY_MS). A page that failed (or a
  spent budget) is read again at the next ask after RECHECK_MS.
- Facts are written before the pages' hashes; source_url is cut to 2048.
- A listed page that no longer answers falls back to the usual
  addresses; a probe that is the home page again isn't read as one.
- readPage maps not-HTML, refused and redirect-loop reads to not_found;
  401/403/429 to blocked, 5xx to failed. setFactStatus answers 404 for a
  fact removed meanwhile.
- GET has no bucket of its own (the editor reads it as its tab comes
  back); POST /fetch keeps brandFactsLimiter.
- 00269: each kind's value checked (amount ≥ 0, currency, days, year),
  source_url http(s) only, a member's reviewed_at within a minute of now.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content): check a page's prices against approved brand facts in Trust, with an Approve to-do (CE-047, part d)

Trust's "consistent with brand facts" (10 points, phase 2): the page's
prices, trial and founding year against the brand's approved facts still
on its site, read so as not to cry wolf: a price in its own currency
only, against a plan's prices (any of them: monthly and annual billing
both count) when the sentence names the plan, else only when it names
the brand (or "we") with a period; "from $29" against the lowest price;
no sentence naming a competitor; discounts, scales and ranges aren't
prices. Like a working link, it doesn't score Trust on its own.

- A mismatch is Quality's suggestion, "Price differs from brand facts ·
  Page $39 · pricing page $49", with Show on its sentence.
- "Approve {n} brand facts" is the person's to-do while facts wait, with
  Review linking to Brand settings › Brand facts (the to-do row and the
  next-step nudge, not Settings › Authors).
- useBrandFacts reads them once with phase 2 and again when the tab
  comes back from Brand settings; the next-step reads wait for it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): give Brand facts' reads their time, keep the list right after a review, and do one thing at a time (CE-047, part c review)

- settings/layout.tsx sets maxDuration 300: the first read and Read
  again wait while the API reads the site (pages, then the model).
- A review updates the list in place (no read that could read the whole
  site again); a failed one reads the list as kept, a fact a read
  removed meanwhile gone from it. Approve, Reject and Read again don't
  run at once; the row being saved says so (aria-busy).
- An API with brand facts off says they aren't available yet; a thrown
  action shows the failure instead of loading for ever.
- Page links read as the page's name; sections are labelled by their
  heading; the quote marks and the page status separator are messages;
  "missed" and the paused note say when the read comes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): leave a short page's facts alone, read a code or scale after a price, and read brand facts once at a time (CE-047, part a review 2)

- A page under 200 characters (one its scripts write, a wall not told
  apart) leaves its facts as they are on every read, not only the first.
- A currency code or a scale right after a quote is read ("$49" then
  "CAD per month" is CAD; "$2" then "million" is no price); only "off"
  right after a price drops it (the next card's "Save 20%" doesn't). A
  period is named within 24 characters of the price, the first one
  named; "per active user" is per seat.
- A plan's name matches as whole words ("Pro" isn't in "Product"); a
  quote isn't taken inside another mark's dollar ("C$49") or a
  space-grouped number ("299 €" in "1 299 €").
- factText counts words toward its length, not indentation.
- A page whose model read failed waits MODEL_EVERY_MS like any other;
  a GET reads a failed page again behind its answer, not before it.
- New facts get the room the removed ones leave; a page whose new facts
  didn't fit keeps its old hash, to be read again. A kind no longer read
  (a shop's product page) loses its row.
- refreshOnce: one read per brand at a time, for the tab and the weekly
  read alike.
- 00269: a missing key is a check violation, and numbers compare as
  numeric (no cast error).

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): cry no wolf on brand facts: plans named as written beside the price, the brand's own trial and founding year only (CE-047, part d review)

- A price is compared with the plan named nearest it, its name as the
  page writes it (case too); a plan that is an everyday word ("Pro",
  "Team", "Free", "Growth") only beside "plan"/"tier" or with the brand
  named. With no plan, only a sentence naming the brand and saying what
  it costs; no "we/our" path. Free ($0) is never compared; "from $19"
  matches any approved price.
- A sentence with an old price, a saving, a discount, credits, tax or a
  team's bill ("was $49", "incl. VAT", "5 users pay") isn't read for
  prices; "billed monthly/annually" narrows to that billing.
- Ranges need a number before the dash or word (French "à", Turkish
  "ile", "between … and"), so "Pro – $49" is a price again; an amount
  doesn't start inside a number.
- A trial is compared where it is the brand's ("your free trial",
  "every plan", its name), its days right beside the trial; a founding
  year right after "founded", with the brand named or "we were founded".
- Each sentence once. The to-do is last (the brand's, no points of the
  page's), "Review your brand facts" at 0 and "reviewed" when done.
- useBrandFacts fails instead of loading for ever when the action throws.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content): read a page's visual proof spots and proof asks in one AI pass, kept by its hash (00270, CE-049, part a)

Quality phase 2, CE-049 (spec §4b), the server: one model read of the
whole page, with its page type, the brand's business type (B2B, B2C,
e-commerce) and the brand's approved claims about itself (CE-047):

- spots: where one specific image the business can take itself would
  prove a paragraph ("A photo of this backpack on a real hike"); kept
  only on a paragraph, list item or quote, in its own words, plain text,
  not generic (EN/TR/DE blocklist), naming the page's own thing (a word
  shared with its passage or headings), one an H2 section, three a page;
- proofs: the business's own claims whose proof only it has (award,
  certification, research, rating, ranking, number, test, customer case,
  else unknown), in the paragraph's words, not where it already links
  out; a customer case on a B2C or shop page only when the claim names
  one;
- regulated (health, finance, legal) on a B2C page.

00270: content_quality_pages (server-only, by page hash; items name
their paragraph by its 00266 hash, so a changed one drops out; missed
answers read again after a day) and content_draft_own_images (a member's
"this is my own image", as themself, 50 a draft; for part d).

POST /api/content-pages/page-read behind phase 2 with its own limiter: a
changed page read once a minute at most, 20 a day per draft (the shared
cap rises to 110: claims 50, page reads 20, sources at least 40), held
$0.01 as "quality"; a spent budget answers the kept read, paused. Logs
carry no page words.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): ask for the proof of the page's own claims as to-dos (CE-049b)

The page read (CE-049a) names the claims only the brand can prove: an
award, a certification, its own test, a rating, a ranking, a figure, a
named customer. Quality lists each as a to-do while its paragraph has no
link, worded by the kind of proof and the business type (spec §4b), five
open at once in the page's order, checked once linked; Add proof link
selects the claim and opens the link dialog, as Add source does. A link
to the brand's own site sources its own claim in Trust, and a sentence a
proof to-do covers leaves Trust's source suggestion.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): cap a draft's page reads at 20 a day and keep generic image spots out (CE-049, part a)

Review fixes before the PR:
- count the day's page reads on the row (day_reads, day_started_at):
  20 a draft, within its shared Quality calls;
- an image naming only words every business page has (product, team,
  customer, dashboard) anchors nothing; generic patterns read with the
  Turkish "İ" folded; logo and illustration patterns narrowed;
- keep proofs in a block that links out (the editor checks them off), so
  removing the link brings the ask back;
- a customer case on a shop or consumer page needs case words or a named
  customer; a count asks for its source; kinds and regulated normalised;
  one claim inside another of its block is dropped;
- a kept read is re-mapped for the business type as it is now;
- two asks at once are each mapped to their own page, the older pending;
- the hash covers what the model reads (headings cut at 300, the 16k
  cut, the brand's facts in any order, no addresses); facts ordered by
  first_seen_at, id;
- each block keeps its H2's words (an empty H2 shifted the lookup);
- own-images cap trigger: advisory lock, a re-confirm passes ON CONFLICT;
  spots and proofs up to 8 KB.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): keep a proof to-do when its link adds a space, and let Next step wait for the page read (CE-049b)

Pre-push review fixes:
- match proof asks and Trust's own-site proof by their words without
  spaces (a link put on a claim adds one at its edge), so the row is
  checked, not lost; a block's claims in their order;
- an own-site link sources only the proof claim's sentence, not the
  block's other figures;
- usePageRead says when its first answer is in (settled): Next step
  drops a stale skip only after it; a failed ask clears pending;
- Next step reads each proof to-do by its key; proofKey names the block
  by a short hash; had holds only the to-dos shown open;
- Before you publish names the claims a proof to-do covers again;
- "license".

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): hash a page's blocks by their words without spaces, so a link on a claim reads nothing new (CE-049, part a)

A link put on a claim adds a space at its edge ("roll -top"): the page
and its block were read as changed, a paid read within the minute's
pending dropped the block's items. Blocks and the page are now hashed
without spaces; the kept read maps to the block as the page has it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): show visual proof spots in the draft's margin, with Add image (CE-049, part c)

The page read's visual proof spots (#1467) stand beside their passages:
from 1120 px a card with the image to take, "For: “{passage}”" and Add
image; narrower a 20 px marker in the page's padding. A widget
decoration, never the page's (no save, export, copy or CMS push has
it), placed again only when the spots or the page change; hidden while
the agent changes the page. A spot goes once an image follows its block.

Add image takes the image by its https address, the alt text drafted
from the passage (required) and an optional caption (an italic
paragraph), put in right after the passage's block; a passage gone
meanwhile says so.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): confirm the page's own images, E-E-A-T's visual proof (CE-049, part d)

Only the person can tell their own screenshot or photo from stock: a
confirm step, never a pass (spec §2.1, 10 points in phase 2).

- eeat({visual}): an image confirmed own scores 10/10; images or an open
  visual proof spot with none confirmed 0/10; neither leaves it out. In
  phase 2 E-E-A-T waits for it, so the score doesn't move once it lands.
- To-do "Show your own image": Confirm (the page's images, thumbnails
  with no referrer, "Our own image, not stock") or, with no image and a
  spot open, that spot's Add image; the nudge offers it too.
- Add image gets "This is our own image…, not stock".
- getOwnImages (fails soft) and confirmOwnImage (as the member, the
  database's now, once; full at 50) on 00270's content_draft_own_images;
  a confirm shows at once and only it is taken back on failure.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): ask regulated pages for a qualified reviewer, from Authors (00273, CE-049, part e)

A consumer page that advises on health, finance or law (the page read's
regulated) asks for a qualified reviewer, from Authors only (spec §4b).

- 00273: content_drafts.reviewer_id → content_authors (set null), a
  trigger checking they are the brand's organization's (as 00257's).
- Header: "Reviewed by {name} ▾" beside the author (amber "Add
  reviewer" while none), shown when regulated or set; the title is the
  credential. A failed save rolls back only the latest pick.
- Quality to-do "Add a qualified reviewer" (what the page advises on,
  Pick reviewer / add one in Settings › Authors), after the proofs, once
  the authors are read; the nudge offers it.
- Page info strip: "Reviewed by {name}, {title}".

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): tie a brand fact's figure to the brand, one price per plan

Review fixes on the brand-facts check (CE-047):
- a price with no plan named is read only right after the brand's name
  and a pricing verb; "was founded" needs the brand, "we" or "our
  company" right before it; a sentence with two trial lengths is skipped
- each named plan takes the one price nearest it, skipped when another
  price sits between; add-on words ("extra", "additional", "add-on")
  aren't prices
- the next step no longer waits for the brand's first site read; the
  brand facts' to-do joins when it lands

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): keep a linked proof to-do checked, ask the page read past the API's minute

Review fixes on the proof to-dos (CE-049, part b):
- a proof ask's key hashes its block's words without spaces, so a link's
  edge space on the next read keeps the to-do checked and the nudge quiet
- the page read asks a few seconds past the API's minute, which counts
  from when the last ask reached it, so it isn't answered "pending"
- the hook's constants are PROOF_READ_*, apart from the panel's
  PAGE_READ_DELAY_MS

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): take only https image addresses up to 2,048 characters in the proof image dialog

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): pair plan prices closest first, keep a trial to the brand's part of a sentence

Pre-push review fixes on the brand-facts check:
- each plan takes its nearest price, the closest pairs first; a sentence
  with more prices than plans named isn't read for prices
- setup, onboarding and one-time fees aren't a plan's price; with no plan
  named, only the plan or pricing may sit between the name and the verb
- a trial is read in the part of the sentence that is the brand's, and a
  length said of another ("Ledgerly's runs for 14 days") makes two
- "was founded" needs who at the start of its clause, and "we" outside
  quoted speech
- stale Next step skips wait for the brand facts again: only the dropping
  waits, and a proof skip's Trust can move when they land

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): key a proof to-do by its claim's words without spaces too

The API cuts a claim from its block as the page has it, so a link's edge
space changes the claim as well as the block.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): read a sentence's prices only when they match its plans one to one, a partner's trial apart

- prices are read only when the sentence has as many as plans named (one
  with none named): a plan beside another's price, or a monthly and an
  annual price with no plan, are unsure
- ", which/who/whose" turns to another subject: a partner's trial isn't
  the brand's
- "Ledgerly's trial runs for 30 days" is read as the brand's trial

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test(content-editor): let the page read land before the stale-skip check in phase 2

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): score the page read's AI checks: who/how/why, balance, disclosure, answer first (CE-050, part b)

The page read's checks (#1478) count in Quality, each tagged "AI check":
- E-E-A-T's who / how / why on pages a reader trusts more for it, as a
  to-do ("Say how you made this page", Add input)
- Trust's balance and disclosure where they apply, as suggestions with
  Show on the passage that puts the brand forward; neither scores Trust
  alone
- Readability's answer first takes the model's verdict while its
  paragraph is still the first, 60 words or fewer to pass
Left out before the first read, while the budget or the day's reads are
used up, not found on a page read in part, or read for another page type;
a type change asks again; an edited find holds while the page is read.
Answer first reads past a byline or a date under the H1, as the API does.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): word the disclosure suggestion plainly

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): ask for a disclosure in Before you publish, with Add line (CE-050, part c)

Where the page puts the brand forward (the page read's disclosure check),
Before you publish has a Disclosure row: what the page says, or Add line,
a line in the page's language (disclosureText) the person adds; Export's
Before you publish line names a missing one. Export doesn't add it on its
own: whether the page recommends the brand is an AI read.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): put the disclosure line under the opening paragraph, once, in neutral words

Pre-push review fixes:
- the line goes under the page's opening paragraph (past a byline), so
  the answer the H1 gets first stays first for Answer first
- not offered twice: a page that has the line already shows it added
- not while the HTML view holds the page, whose source is what goes out
- the H1 is the page's first one with words, not only its first node
- the lines say the product is offered by the brand (a service or
  software too), with no gendered article; "without a disclosure"

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content): hand a draft's open Quality checks to the Content Agent in one run (00275, CE-051, part 1)

POST /api/content-drafts/:draftId/handoff (Quality phase 2): the editor
sends the page's fixable checks by key, with what each names on the page;
the server says what each asks and runs Fix open rules as one run of kind
'handoff', its suggestions left for review. The editor's details are no
fact the agent may write, and a placeholder stays the person's.

00275: content_agent_runs.kind 'handoff' and origin (person | auto), an
automatic hand-off once a draft; brands.content_quality_handoff (off by
default) and content_drafts.quality_handoff, the brand's setting copied
when the draft is made. An automatic run on a draft its brand doesn't
hand off is 409 not_due, a second one 409 already; one the AI budget stops
before it begins is taken back, to run once the budget renews.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(settings): add Settings › Content with Hand off quality fixes automatically, per brand (CE-051, part 2)

With Content Editor Quality's phase 2, Settings has a Content section: per
brand, Hand off quality fixes automatically (brands.content_quality_handoff,
00275, off by default). Admins and managers change it; anyone else sees it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): let a hand-off link the draft's sources and write the brand's approved facts

Pre-push review fixes:
- the source checks (claims, fresh, weak, primary, broken) read the
  draft's sources as link targets, so the agent can link one
- trust:brandFacts writes the brand's approved facts, read on the server
- a placeholder is read in the passage before and after the change: a
  "before" that cuts into its brackets doesn't fill it
- the person's own rules are no fact a hand-off may write either
- not_due first; a person's run writes no origin (the column's default),
  so a database before 00275 takes it; a run not taken back is failed

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): skip an automatic hand-off once its brand turned the setting off

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(settings): show a saved hand-off at once, end the wait with no workspace, say what turning it off does

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): hand the page off to Content Agent from Quality, in one run (CE-051, part 3)

Quality has a Hand it off to Content Agent card under its scores: it sends
every open suggestion (#1481's fixable checks), each with what it names on
the page, and the agent leaves its fixes as one batch to review, on the
same card, steps and Stop as Fix open rules; the to-dos stay the person's.
The disclosure goes only with its line in the page's language.

Fix open rules and Hand off share what they send besides their items
(agentContext) and how their answer is told (runAgentFix).

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): hand off only what the agent's checks ask, each card on its own run (CE-051)

- A suggestion that asks the other way to its check (sentences too short,
  a page too simple) stays the person's: the agent is told shorter and
  easier.
- Fix open rules and Hand off each show their own run; the other card
  waits, saying the agent is at work.
- The disclosure isn't sent once its line is on the page; Hand off waits
  for the page's read after a save when it sends what AI read
  (usePageRead's behind), and while claims are read.
- The passage is cut to fit, never the disclosure line.
- A full hand-off says to hand it off again; the API's 'off' is said.
- The blocked reason is the button's description.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): count each placeholder a hand-off would drop, and run one fix at a time (CE-051)

- dropsPlaceholder counts each placeholder before and after the change,
  read in what is kept (the new words and the blocks after them): filling
  one of two "[figure, source]" in a passage is dropped too. In a heading
  only the agent's own forms count, as the editor reads them.
- A hand-off's prompt says to leave every [placeholder] as it is.
- Fix open rules and a hand-off are refused with 409 `running` while
  another fix or hand-off on the draft is under way (fixUnderWay).

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): read a plan's price only right after its name, and a trial only after the brand's (CE-047)

- A named plan's price is read as the brand's is: right after its name
  (with its plan or tier word), with nothing, "is", a colon, a dash, "("
  or a pricing verb between. A price compared within a few words after it
  ("$30 more than", "$20 less … than") is read for no one, and "saves",
  "saved", "saving" are a saving.
- In a part of the sentence that is the brand's, only a trial length after
  its name or "your trial", "every plan" is its own; "free for N days" is a
  trial only after "try"/"use" and the brand, or in a sentence that says
  "trial".
- "We were founded" starts its clause only at the sentence's start or after
  since/when/after/and, not after a colon (quoted speech).
- In phase 2, the Quality score also waits for the brand's facts.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): hold the Quality score until the page as saved is read for proof (CE-049)

usePageRead counts a save it hasn't asked about yet as reading, as
useClaims does, and waits only for changes on their way (the editor's
narrower `saving`), so a failed save, a conflict or a page too large
doesn't hold it. In phase 2, qualitySettled waits for the page's read.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): hold the Quality score for the visual proof, and score when the own images can't be read (CE-049)

- qualitySettled waits for E-E-A-T's visual proof in phase 2 (the page's
  read and the own images), so the chip doesn't settle on Trust and
  Readability and move when the read lands. The page read already waits
  only for changes on their way (#1468's `saving`).
- A failed own-images call counts the confirms made so far, so E-E-A-T
  scores and Confirm opens.
- The visual proof to-do is listed when Your input can't be read too, in
  its place.
- E-E-A-T takes both the visual proof and the author confirmations.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): hold what the page read found until the edited page is read again (CE-050)

- aiChecksOnPage holds a find whose paragraph changed while the page as it
  is now is still to be read: changes not saved yet, a save not asked
  about (usePageRead's reading, #1468) or an ask out. The passage that puts
  the brand forward still applies then, and Answer first's verdict is held
  (`held`, which readability takes over the block match).
- The editor, a save and a restore detect the page type with the existing
  page's address, as Start did, so the read's type and the editor's agree
  from the start.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): put the disclosure line past a hero image, and count it before the next read (CE-050)

- Add line looks for the opening paragraph past what has no words (an
  image, an empty paragraph), as Readability and the page read do, and a
  byline or a date: the answer stays first for Answer first.
- While the page has the line Add line put in, the disclosure counts as
  found (Trust, Quality's suggestion, Export's line); Before you publish
  still says it was added until the page is read again.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): wait on the page's read only where it moves what Hand off sends, and say `running` (CE-051)

- usePageRead's reading now counts a save not asked about yet (#1468), so
  the hand-off's own `behind` flag goes. Hand off waits for the page's
  read before its first answer, or after a save while it sends what AI
  read of the page (Answer first, the disclosure, balance); not after
  every save.
- The API's 409 `running` (another fix or hand-off on the draft, #1481)
  is said, for Fix open rules too.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): hand a brand's imported and agent-written pages off on their own, and list hand-offs in History (CE-051, part 4)

- A draft its brand hands off (Settings › Content, copied at creation,
  quality_handoff) whose page came from elsewhere (imported to optimize,
  or the agent's) goes to Hand off on its own, once: when Quality is
  settled and nothing holds Hand off (open suggestions, the agent at work,
  a spent AI budget, the reads, the HTML view). The editor reads whether
  the draft had its automatic run (readAutoHandOff); the server's row is
  the claim, and its `already` / `not_due` aren't said.
- History lists the draft's hand-offs of the last 90 days among the
  versions by time, who started each, how it ended and its checks, with
  nothing to restore (getDraftHandoffs).

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): keep the automatic hand-off quiet and off published pages, and read History's hand-offs as they ended (CE-051)

- The automatic run says nothing when it doesn't run or finds nothing
  (only logged); a published draft, or a brand that stopped handing off
  (readAutoHandOff reads its setting too), doesn't run it at all.
- History: a run stopped before its outcome was written reads as
  stopped, one left past RUN_STALE_MS as failed; a done run with no
  change says so; rows sort by time, not by the timestamp's text.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): weigh Quality's checks by the page type, and say which (CE-052, part a)

Phase 3 of the Quality spec (§11): the three scores keep their names, but
what each counts, and how much, follows the page's type.

- quality-profiles.ts: each page type reads as an article, product,
  category, feature or comparison profile (an article before Phase 3 and
  for the types §11 doesn't name), each with E-E-A-T, Trust and
  Readability weights; the article's are the blog defaults. `weighed`
  re-weighs a score's checks (each keeps its share of its points; a weight
  of 0 leaves the check out and rescales the rest).
- The editor weighs Readability, E-E-A-T and Trust for the page's type;
  Trust's unscored gains count out of the type's Phase 1 points.
- To-dos for checks the type leaves out aren't listed: a product, category
  or feature page goes out under the brand's byline, so no author to-dos,
  Export's "No author yet" or Before you publish's missing author.
- Quality says "Checks and weights for {type} (detected): …", with Change
  opening the header's page type menu.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): score Trust and ask for a disclosure only as the page type counts them (CE-052)

- Trust is scored after weighing, as trust() scores it: a type that
  leaves freshness out isn't scored by its links and site alone
  (weighedTrust).
- An unscored Trust gain for a check outside Phase 1's (brand facts)
  counts out of its own points too.
- A category page's E-E-A-T weighs the brand's own information (its site's
  trust, `brandInfo`) beside its own images, not all or nothing.
- Where the type leaves the disclosure out (product, category, feature),
  Before you publish and Export don't ask for one.
- Change has an accessible name.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): count the page type's own rules and a product page's shipping and returns in Quality (CE-052, part b)

- Readability gains one check on the types that weigh it: the page
  type's own rules as the Rules tab reads them from the page (a specs
  table, a side-by-side table, an intro, a buying FAQ, how-to steps), their
  share met; ones read by AI or a feed, or turned off in Rules, aren't
  counted (withTypeRules). Its suggestion names the rules not met; Hand off
  takes it too (readability:typeRules, on both sides).
- Trust reads whether a product page says how shipping and returns work,
  or links where they're told (shippingOnPage: en, tr, de, fr, es), as its
  own check there. Only the person knows them: a to-do, not a suggestion.
- The profiles' Readability and Trust weights make room for both.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): read shipping and returns in a policy's terms, and tell the agent each type rule's aim (CE-052)

- shippingOnPage reads the page's HTML, headings too, for a policy's
  terms ("free shipping", "delivery in 2 days", "30-day returns",
  "iade"), not "ships with a cable", "in return" or "return on
  investment"; Turkish capitals ("İade") and links like
  /shipping_policy, #versandkosten, /reembolso count.
- The type rules check carries each rule's aim and how the page reads now
  (shared with Fix open rules: aimAndNow), so Hand off tells the agent
  what to meet; a table of facts gets only the facts given, placeholders
  for the rest.
- Fit questions are read in English only: another language's page isn't
  scored on them (the Rules tab says so, as for the definition rule).
- The product and category lines name what they count.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test(content-editor): name the product line's new checks in Quality's test (CE-052)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): ask a comparison to show when it was last checked, with Add line (CE-052, part c)

Spec §11 wants a comparison's check date visible. E-E-A-T reads one on the
page (a "checked/tested/updated" word with a year from the last two, in
the nine languages the disclosure has) as its own check, weighed on
comparisons (20). Only the person knows when they checked, so it's a
to-do: "Show when you last checked", whose Add line (in Quality and the
nudge) puts "Last checked: {Month YYYY}." in the page's language under
the opening paragraph, where the disclosure goes (addLineUnderAnswer). A
language without a line asks the person to write it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): read a check date as a label too, and replace a stale one (CE-052)

- The check date is read as a verb or a label ("Last update", "Son
  güncelleme", "Letzte Aktualisierung", "Dernière mise à jour"), each word
  at a word's start ("areas of", "untested" aren't one), Turkish capitals
  too; in a block longer than a label, the year must be near the word.
- Add line replaces a check date the page has already (an old one) rather
  than adding a second, and isn't offered while the HTML view is open.
- The line has no full stop, so Answer first reads past it as a date.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): score a product or category page's Trust from a compared price, and wait for the site before a category's E-E-A-T (CE-052)

Review on #1491:
- Where brand facts weigh as much as sourced claims (product and
  category pages), a price compared with them scores Trust: a page with
  every price wrong no longer reads "Not scored yet" and passes Before you
  publish's gate. weighedTrust scores by the weighed checks (trust()
  leaves it unscored by its own). The article (10 to 30) is as it was.
- A category page's E-E-A-T waits for the site's trust, its 40 points of
  the brand's own information (waitsForSiteTrust), so it doesn't jump.
- Copy: a page type under the brand "goes out under {byline}" (Ansvisor
  gives no schema for it); the category line names the brand's own
  information and no longer promises an intro check.
- QUALITY_WEIGHTS_VERSION is gone until calibration reads it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): read a buying FAQ and a product's shipping and returns in the page's language, and ask for fit only where there are sizes (CE-052)

Review on #1494:
- The buying FAQ (and the FAQ rule) is found under its heading in German,
  French, Spanish, Turkish (lowercased the Turkish way), Italian,
  Portuguese and Dutch; another language's page isn't told its FAQ is
  missing (English only), so Hand off never adds one it has.
- shippingOnPage reads the ways shops state their terms: a heading that
  names the policy with text under it ("Delivery & Returns", "Returns &
  Exchanges"), delivery with a time or a cost ("Standard delivery 3–5
  working days", "Free UK delivery on orders over £50"), "Returns are
  accepted", "Expédition sous 24h", "Entrega en 24/48 horas", "Reembolso",
  "Retoure", "Umtausch", "satisfait ou remboursé", "teslim edilir",
  "değişim". Not a bare "shipping" ("Shipping weight"), a product's link
  ("/collections/delivery-bags") or a product named for it ("kargo
  pantolon"). A page in a language the words aren't written for is read
  by its links, and isn't asked without one.
- Answer fit and sizing questions counts only where the page has sizes or
  asks about them ("No sizes" for a coffee grinder).
- Hand off: an answer the page and the data don't give (fit, sizes,
  shipping, returns, prices) is a placeholder, never made up.
- Product Trust weighs brand facts 30 and sourced claims 25 (was 25 and
  30), so a compared price scores a product page's Trust as #1491 makes it.
- The feature and comparison lines name their type rules.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): replace only Add line's own old check date, and read a check date in the words that mean it (CE-052)

Review on #1495:
- Add line replaces only its own line from before: a top-level paragraph
  that is one of the nine labels, a month and a year, and nothing else
  (isCheckDateLine). A byline ("By Jane Doe · Updated March 2023"), the
  answer ("We tested 9 CRMs in 2024; …"), a body paragraph or a list item
  stay the person's; the line goes under the answer instead.
- The check date's words in the forms that mean checked: "verification",
  "updates" and "kontrolü" aren't one; "Letzte Prüfung", "Actualisé le",
  "Testato", "Last modified", "Verificado" are.
- The to-do says when the page's date is over a year old ("Update when
  you last checked"), and whether Add line replaces it or the person's
  old date needs updating too (checkDateOnPage).
- The nudge says to check the products first ("show when you last
  checked, once you've checked the products").
- The comparison line names the check date.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Cihan <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: Gökhan Geyik <[email protected]>
gkhngyk added a commit that referenced this pull request Oct 25, 2026
…ust link it (00280, CE-052, part d) (#1496)

* feat(content): read what kind of source each link is, and underline the weak ones (CE-046, part a)

Quality phase 2 (NEXT_PUBLIC_CONTENT_QUALITY_PHASE=2), by rules only:

- sourceClass(): primary (official, research, standards), secondary (news,
  reviews, Wikipedia), weak (forums, social posts, uploaded papers), a
  competitor's page (primary on a comparison) or the brand's own; an
  address the rules can't place is left out (an AI read comes in part b)
- Trust's primarySources (15) and noWeakSources (10); two placed sources
  score Trust on their own
- Quality suggests replacing weak sources (Show, Keep) and adding a
  primary one, once Trust is scored; the editor underlines weak sources
  in amber (a decoration: never exported)
- 00263: content_drafts.kept_sources (≤ 50) and content_draft_keep_source()
- byUrl keeps a link's first place, so Show goes there

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content): read the kind of a source's site the rules can't place with AI (CE-046, part b)

Quality phase 2 (web NEXT_PUBLIC_CONTENT_QUALITY_PHASE and server
CONTENT_QUALITY_PHASE at 2):

- POST /api/content-pages/source-classes reads the sites a draft links
  (as saved) that the editor's rules can't place: the model sees each
  site's address alone and answers primary, secondary or weak; each read
  is kept for every workspace 90 days (00264 content_source_classes); 20
  sites a read, 30 reads a draft a day, its own rate limit
- the reads draw on the AI budget as their own feature, "quality" (00264
  widens prompt_improve_usage.feature): a small hold (holdUsd), left out
  of the median that sizes other calls' holds and the Improve tab's
  estimate; a read cut off by its timeout keeps its hold; Billing lists it
- the editor asks 3 s after a save (useSourceClasses), Trust takes the
  reads for sites the rules can't place, the weak-sources suggestion is
  tagged "AI check", and a spent budget pauses the reads with a note

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): ask only about public site names, keep an unknown read a day, and skip kept sources (CE-046, part b review)

- SITE_NAME (LDH, a dot, a letter TLD; no IP, no single label) in
  keptSite/linkedSites, the editor's unplacedSites and 00264's check; a
  label that reads as words isn't asked about either
- the model may answer unknown, which Trust leaves out; it, and a site
  the model left out, is kept a day, so it isn't asked again (and
  charged) after every save
- a site whose every link the person kept isn't asked about (route and
  editor); a kept link counts in Trust with or without a read
- a failed classifyDraftSources call lets its sites go (.catch/.finally)
- .env.example: phase 2 turns the AI source reads on, from the AI budget

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test(content): size Quality's checks against Starter's $5 AI budget after #1435

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content): read the claims in a draft's own paragraphs with AI, kept by the paragraph (CE-045, part a)

Quality phase 2 (CONTENT_QUALITY_PHASE at 2), server side:

- POST /api/content-pages/claims reads the draft as saved: each paragraph
  and list item long enough to hold a claim; the model finds what a reader
  would want a source for (number, stat, superlative, fact), each claim in
  the paragraph's own words or dropped, five a paragraph at most
- 00266 content_quality_claims keeps the reads by draft and paragraph
  hash: an unchanged paragraph isn't read again, a removed one's row goes;
  the paragraph being written (skip) waits; 12 paragraphs a call, 2 calls
  an ask, one after the other
- the calls draw on the AI budget as "quality" (holdUsd 0.004), and share
  one day's cap per draft with the source kinds' reads
  (content-quality-calls.js, QUALITY_CALLS_PER_DAY 60)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): read the claims by the editor's blocks, short list items too, and keep a missed answer as read (CE-045, part a review)

- draftParagraphs reads p, li, blockquote, td and th as trustBlocks does,
  with ownText's spacing (a line break, sibling paragraphs): the answer is
  { paragraphs: [{ text, claims }] }, so the editor knows each claim's block
- blocks from 12 characters ("Award-winning support"); a call takes 12
  paragraphs or 6,000 characters, whichever comes first
- an answer billed that missed the schema is charged and its paragraphs
  read with none (not sent, and charged, on every save); a kind the editor
  doesn't know drops that claim only; a paragraph answered twice keeps both
- claims leave 10 of the day's Quality calls to the sources' kinds, and the
  route has its own limiter; the reading's version is in the hash; logs
  carry no page words

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content): count the claims in the page's own words in Trust and underline the unsourced ones (CE-045, part b)

The editor asks the API for the claims a few seconds after a save (never
with changes to save), leaving the block being written until the person
leaves it. Trust counts each claim in its own block as a figure, the
draft underlines the unsourced ones in their blocks, and Quality's
suggestion gets Add source (link dialog on the claim's words) and Remove.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): read each source site in its own call, held and counted per site (CE-046, part b review)

One generateObject per site the rules can't place, run together with
Promise.allSettled: no site's name reaches another's read, and a failed
site keeps the others' reads. Each read holds $0.0005; the day's cap
counts sites (SOURCE_READS_PER_DAY = 40). An answer off the schema is
charged and kept as unknown for a day. The route logs an error's name
and message only.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): read a missed answer's paragraphs again after a day, match claims across curly quotes, log no page words (CE-045, part a review)

- 00266 gets a `missed` column: an answer that missed the schema (cut
  short, or blocked by the provider's filter) keeps its paragraphs as read
  with no claims, and they're read again after MISSED_DAYS (1).
- keptClaims compares folded copies (’ ‘ → ', “ ” → ", ‐ ‑ – — → -),
  one character for one, and keeps the paragraph's own span.
- The claims route logs an error's name and message only: a provider's
  error carries the request, the page's paragraphs.
- QUALITY_CALLS_PER_DAY = 90, the claims leaving the sources'
  SOURCE_READS_PER_DAY (40) now that each site is a call: the claims keep
  their 50 calls a day.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): say a spent budget first, read five sites at a time, and log no whole error (CE-046, part b review)

When no site is read, the error thrown is a spent budget's if any (429,
the editor pauses) rather than the first site's. An ask reads its sites
five at a time, so 20 holds and their queries don't go out at once. A
site's hold is $0.001 (the model's thinking is billed as output). The
route's error log keeps the stack, not the provider's request.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): read a missed answer's paragraphs again one a call, after the new ones, and fold more quote and dash forms (CE-045, part a review)

A paragraph whose answer missed the schema is read again after a day in
a call of its own, after the paragraphs not read yet: one the provider's
filter blocks no longer keeps its neighbours unread every day. The fold
also covers low quotes, primes, figure and horizontal-bar dashes and the
minus sign. The claims route keeps the error's stack in its log. Tests
pin the select's columns, both fold directions and the route's log.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content): read a brand's facts from its own pricing, About and product pages, kept for approval (00269, CE-047, part a)

Quality phase 2, CE-047: the brand's prices and plans, trial, founding
year and claims, read from its own site for Trust's "consistent with
brand facts" check. The model finds the facts and copies each one's
words; a fact is kept only when its words are on the page as written,
and its value (amount, currency, period, days, year) is read from them
by rule. A person approves each one.

- 00269: brand_facts (members read, and change only the status, as
  themselves) and brand_fact_pages (server-only: a hash of each page's
  text, so an unchanged page isn't read by the model again; no text
  kept).
- brand-facts.js: findFactPages (page list, Site trust's About page,
  else probes on the main domain; never Scrape.do), factText, keptFacts,
  refreshBrandFacts (new values pending, approved ones gone from the
  site marked gone, pending ones dropped), readBrandFacts (first ask
  reads, asking again every 10 minutes at most), setFactStatus.
- GET /api/brand-facts, POST /fetch, PATCH /:id behind phase 2, with
  their own limiter; logs carry no page text.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content): review and approve brand facts in Brand settings (CE-047, part c)

Brand settings › Brand facts, with Quality's phase 2: the facts the API
read from the brand's own pricing, About and product pages, each with
its words on the page, where it was read and the approved value it would
replace ("Was $59"). A member approves or rejects each one (no approve
all: the spec has each approved); approved facts no longer on the site
say so. Each page's read is listed (read, not found, turned our reader
away, didn't answer); Read again reads the site again once the API
allows it, and a spent AI budget says so. `?tab=facts` opens the tab,
for the editor's to-do to link to.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): read brand facts' text in one walk, keep facts any page still has, and store no wrong price (CE-047, part a review)

- factText walks the page once and stops near MAX_TEXT_CHARS: a page of
  100k blocks reads in well under a second (was quadratic). Struck-through
  old prices (del, s, strike) are left out.
- A fact still on any page read (its words, a price's with its plan near
  them; across a card's lines too) stays; only facts whose page was read
  and has them no more are marked gone or dropped, written once.
- A plan's name is found on the folded text without lowering it (a
  Turkish "İ" lowers to two characters), and a quote only where it
  doesn't run into a number ("$49" in "$499", "$1,2").
- parsePrice reads one price only, no saving, discount or old price, a
  dollar named by its code after it ("$49 CAD"), and the period in the
  words right after it, the first named ("Lifetime access, monthly
  updates" is once). Magnitudes in any case; a trial needs a trial word,
  "started in" is no founding year.
- A page read after a wall or a failure says "ok" again; a missed
  answer's hash isn't kept past a failed read. A changed page goes to the
  model once an hour at most (MODEL_EVERY_MS). A page that failed (or a
  spent budget) is read again at the next ask after RECHECK_MS.
- Facts are written before the pages' hashes; source_url is cut to 2048.
- A listed page that no longer answers falls back to the usual
  addresses; a probe that is the home page again isn't read as one.
- readPage maps not-HTML, refused and redirect-loop reads to not_found;
  401/403/429 to blocked, 5xx to failed. setFactStatus answers 404 for a
  fact removed meanwhile.
- GET has no bucket of its own (the editor reads it as its tab comes
  back); POST /fetch keeps brandFactsLimiter.
- 00269: each kind's value checked (amount ≥ 0, currency, days, year),
  source_url http(s) only, a member's reviewed_at within a minute of now.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content): check a page's prices against approved brand facts in Trust, with an Approve to-do (CE-047, part d)

Trust's "consistent with brand facts" (10 points, phase 2): the page's
prices, trial and founding year against the brand's approved facts still
on its site, read so as not to cry wolf: a price in its own currency
only, against a plan's prices (any of them: monthly and annual billing
both count) when the sentence names the plan, else only when it names
the brand (or "we") with a period; "from $29" against the lowest price;
no sentence naming a competitor; discounts, scales and ranges aren't
prices. Like a working link, it doesn't score Trust on its own.

- A mismatch is Quality's suggestion, "Price differs from brand facts ·
  Page $39 · pricing page $49", with Show on its sentence.
- "Approve {n} brand facts" is the person's to-do while facts wait, with
  Review linking to Brand settings › Brand facts (the to-do row and the
  next-step nudge, not Settings › Authors).
- useBrandFacts reads them once with phase 2 and again when the tab
  comes back from Brand settings; the next-step reads wait for it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): give Brand facts' reads their time, keep the list right after a review, and do one thing at a time (CE-047, part c review)

- settings/layout.tsx sets maxDuration 300: the first read and Read
  again wait while the API reads the site (pages, then the model).
- A review updates the list in place (no read that could read the whole
  site again); a failed one reads the list as kept, a fact a read
  removed meanwhile gone from it. Approve, Reject and Read again don't
  run at once; the row being saved says so (aria-busy).
- An API with brand facts off says they aren't available yet; a thrown
  action shows the failure instead of loading for ever.
- Page links read as the page's name; sections are labelled by their
  heading; the quote marks and the page status separator are messages;
  "missed" and the paused note say when the read comes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): leave a short page's facts alone, read a code or scale after a price, and read brand facts once at a time (CE-047, part a review 2)

- A page under 200 characters (one its scripts write, a wall not told
  apart) leaves its facts as they are on every read, not only the first.
- A currency code or a scale right after a quote is read ("$49" then
  "CAD per month" is CAD; "$2" then "million" is no price); only "off"
  right after a price drops it (the next card's "Save 20%" doesn't). A
  period is named within 24 characters of the price, the first one
  named; "per active user" is per seat.
- A plan's name matches as whole words ("Pro" isn't in "Product"); a
  quote isn't taken inside another mark's dollar ("C$49") or a
  space-grouped number ("299 €" in "1 299 €").
- factText counts words toward its length, not indentation.
- A page whose model read failed waits MODEL_EVERY_MS like any other;
  a GET reads a failed page again behind its answer, not before it.
- New facts get the room the removed ones leave; a page whose new facts
  didn't fit keeps its old hash, to be read again. A kind no longer read
  (a shop's product page) loses its row.
- refreshOnce: one read per brand at a time, for the tab and the weekly
  read alike.
- 00269: a missing key is a check violation, and numbers compare as
  numeric (no cast error).

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): cry no wolf on brand facts: plans named as written beside the price, the brand's own trial and founding year only (CE-047, part d review)

- A price is compared with the plan named nearest it, its name as the
  page writes it (case too); a plan that is an everyday word ("Pro",
  "Team", "Free", "Growth") only beside "plan"/"tier" or with the brand
  named. With no plan, only a sentence naming the brand and saying what
  it costs; no "we/our" path. Free ($0) is never compared; "from $19"
  matches any approved price.
- A sentence with an old price, a saving, a discount, credits, tax or a
  team's bill ("was $49", "incl. VAT", "5 users pay") isn't read for
  prices; "billed monthly/annually" narrows to that billing.
- Ranges need a number before the dash or word (French "à", Turkish
  "ile", "between … and"), so "Pro – $49" is a price again; an amount
  doesn't start inside a number.
- A trial is compared where it is the brand's ("your free trial",
  "every plan", its name), its days right beside the trial; a founding
  year right after "founded", with the brand named or "we were founded".
- Each sentence once. The to-do is last (the brand's, no points of the
  page's), "Review your brand facts" at 0 and "reviewed" when done.
- useBrandFacts fails instead of loading for ever when the action throws.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content): read a page's visual proof spots and proof asks in one AI pass, kept by its hash (00270, CE-049, part a)

Quality phase 2, CE-049 (spec §4b), the server: one model read of the
whole page, with its page type, the brand's business type (B2B, B2C,
e-commerce) and the brand's approved claims about itself (CE-047):

- spots: where one specific image the business can take itself would
  prove a paragraph ("A photo of this backpack on a real hike"); kept
  only on a paragraph, list item or quote, in its own words, plain text,
  not generic (EN/TR/DE blocklist), naming the page's own thing (a word
  shared with its passage or headings), one an H2 section, three a page;
- proofs: the business's own claims whose proof only it has (award,
  certification, research, rating, ranking, number, test, customer case,
  else unknown), in the paragraph's words, not where it already links
  out; a customer case on a B2C or shop page only when the claim names
  one;
- regulated (health, finance, legal) on a B2C page.

00270: content_quality_pages (server-only, by page hash; items name
their paragraph by its 00266 hash, so a changed one drops out; missed
answers read again after a day) and content_draft_own_images (a member's
"this is my own image", as themself, 50 a draft; for part d).

POST /api/content-pages/page-read behind phase 2 with its own limiter: a
changed page read once a minute at most, 20 a day per draft (the shared
cap rises to 110: claims 50, page reads 20, sources at least 40), held
$0.01 as "quality"; a spent budget answers the kept read, paused. Logs
carry no page words.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): ask for the proof of the page's own claims as to-dos (CE-049b)

The page read (CE-049a) names the claims only the brand can prove: an
award, a certification, its own test, a rating, a ranking, a figure, a
named customer. Quality lists each as a to-do while its paragraph has no
link, worded by the kind of proof and the business type (spec §4b), five
open at once in the page's order, checked once linked; Add proof link
selects the claim and opens the link dialog, as Add source does. A link
to the brand's own site sources its own claim in Trust, and a sentence a
proof to-do covers leaves Trust's source suggestion.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): cap a draft's page reads at 20 a day and keep generic image spots out (CE-049, part a)

Review fixes before the PR:
- count the day's page reads on the row (day_reads, day_started_at):
  20 a draft, within its shared Quality calls;
- an image naming only words every business page has (product, team,
  customer, dashboard) anchors nothing; generic patterns read with the
  Turkish "İ" folded; logo and illustration patterns narrowed;
- keep proofs in a block that links out (the editor checks them off), so
  removing the link brings the ask back;
- a customer case on a shop or consumer page needs case words or a named
  customer; a count asks for its source; kinds and regulated normalised;
  one claim inside another of its block is dropped;
- a kept read is re-mapped for the business type as it is now;
- two asks at once are each mapped to their own page, the older pending;
- the hash covers what the model reads (headings cut at 300, the 16k
  cut, the brand's facts in any order, no addresses); facts ordered by
  first_seen_at, id;
- each block keeps its H2's words (an empty H2 shifted the lookup);
- own-images cap trigger: advisory lock, a re-confirm passes ON CONFLICT;
  spots and proofs up to 8 KB.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): keep a proof to-do when its link adds a space, and let Next step wait for the page read (CE-049b)

Pre-push review fixes:
- match proof asks and Trust's own-site proof by their words without
  spaces (a link put on a claim adds one at its edge), so the row is
  checked, not lost; a block's claims in their order;
- an own-site link sources only the proof claim's sentence, not the
  block's other figures;
- usePageRead says when its first answer is in (settled): Next step
  drops a stale skip only after it; a failed ask clears pending;
- Next step reads each proof to-do by its key; proofKey names the block
  by a short hash; had holds only the to-dos shown open;
- Before you publish names the claims a proof to-do covers again;
- "license".

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): hash a page's blocks by their words without spaces, so a link on a claim reads nothing new (CE-049, part a)

A link put on a claim adds a space at its edge ("roll -top"): the page
and its block were read as changed, a paid read within the minute's
pending dropped the block's items. Blocks and the page are now hashed
without spaces; the kept read maps to the block as the page has it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): show visual proof spots in the draft's margin, with Add image (CE-049, part c)

The page read's visual proof spots (#1467) stand beside their passages:
from 1120 px a card with the image to take, "For: “{passage}”" and Add
image; narrower a 20 px marker in the page's padding. A widget
decoration, never the page's (no save, export, copy or CMS push has
it), placed again only when the spots or the page change; hidden while
the agent changes the page. A spot goes once an image follows its block.

Add image takes the image by its https address, the alt text drafted
from the passage (required) and an optional caption (an italic
paragraph), put in right after the passage's block; a passage gone
meanwhile says so.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): confirm the page's own images, E-E-A-T's visual proof (CE-049, part d)

Only the person can tell their own screenshot or photo from stock: a
confirm step, never a pass (spec §2.1, 10 points in phase 2).

- eeat({visual}): an image confirmed own scores 10/10; images or an open
  visual proof spot with none confirmed 0/10; neither leaves it out. In
  phase 2 E-E-A-T waits for it, so the score doesn't move once it lands.
- To-do "Show your own image": Confirm (the page's images, thumbnails
  with no referrer, "Our own image, not stock") or, with no image and a
  spot open, that spot's Add image; the nudge offers it too.
- Add image gets "This is our own image…, not stock".
- getOwnImages (fails soft) and confirmOwnImage (as the member, the
  database's now, once; full at 50) on 00270's content_draft_own_images;
  a confirm shows at once and only it is taken back on failure.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): ask regulated pages for a qualified reviewer, from Authors (00273, CE-049, part e)

A consumer page that advises on health, finance or law (the page read's
regulated) asks for a qualified reviewer, from Authors only (spec §4b).

- 00273: content_drafts.reviewer_id → content_authors (set null), a
  trigger checking they are the brand's organization's (as 00257's).
- Header: "Reviewed by {name} ▾" beside the author (amber "Add
  reviewer" while none), shown when regulated or set; the title is the
  credential. A failed save rolls back only the latest pick.
- Quality to-do "Add a qualified reviewer" (what the page advises on,
  Pick reviewer / add one in Settings › Authors), after the proofs, once
  the authors are read; the nudge offers it.
- Page info strip: "Reviewed by {name}, {title}".

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): tie a brand fact's figure to the brand, one price per plan

Review fixes on the brand-facts check (CE-047):
- a price with no plan named is read only right after the brand's name
  and a pricing verb; "was founded" needs the brand, "we" or "our
  company" right before it; a sentence with two trial lengths is skipped
- each named plan takes the one price nearest it, skipped when another
  price sits between; add-on words ("extra", "additional", "add-on")
  aren't prices
- the next step no longer waits for the brand's first site read; the
  brand facts' to-do joins when it lands

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): keep a linked proof to-do checked, ask the page read past the API's minute

Review fixes on the proof to-dos (CE-049, part b):
- a proof ask's key hashes its block's words without spaces, so a link's
  edge space on the next read keeps the to-do checked and the nudge quiet
- the page read asks a few seconds past the API's minute, which counts
  from when the last ask reached it, so it isn't answered "pending"
- the hook's constants are PROOF_READ_*, apart from the panel's
  PAGE_READ_DELAY_MS

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): take only https image addresses up to 2,048 characters in the proof image dialog

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): pair plan prices closest first, keep a trial to the brand's part of a sentence

Pre-push review fixes on the brand-facts check:
- each plan takes its nearest price, the closest pairs first; a sentence
  with more prices than plans named isn't read for prices
- setup, onboarding and one-time fees aren't a plan's price; with no plan
  named, only the plan or pricing may sit between the name and the verb
- a trial is read in the part of the sentence that is the brand's, and a
  length said of another ("Ledgerly's runs for 14 days") makes two
- "was founded" needs who at the start of its clause, and "we" outside
  quoted speech
- stale Next step skips wait for the brand facts again: only the dropping
  waits, and a proof skip's Trust can move when they land

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): key a proof to-do by its claim's words without spaces too

The API cuts a claim from its block as the page has it, so a link's edge
space changes the claim as well as the block.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): read a sentence's prices only when they match its plans one to one, a partner's trial apart

- prices are read only when the sentence has as many as plans named (one
  with none named): a plan beside another's price, or a monthly and an
  annual price with no plan, are unsure
- ", which/who/whose" turns to another subject: a partner's trial isn't
  the brand's
- "Ledgerly's trial runs for 30 days" is read as the brand's trial

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test(content-editor): let the page read land before the stale-skip check in phase 2

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): score the page read's AI checks: who/how/why, balance, disclosure, answer first (CE-050, part b)

The page read's checks (#1478) count in Quality, each tagged "AI check":
- E-E-A-T's who / how / why on pages a reader trusts more for it, as a
  to-do ("Say how you made this page", Add input)
- Trust's balance and disclosure where they apply, as suggestions with
  Show on the passage that puts the brand forward; neither scores Trust
  alone
- Readability's answer first takes the model's verdict while its
  paragraph is still the first, 60 words or fewer to pass
Left out before the first read, while the budget or the day's reads are
used up, not found on a page read in part, or read for another page type;
a type change asks again; an edited find holds while the page is read.
Answer first reads past a byline or a date under the H1, as the API does.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): word the disclosure suggestion plainly

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): ask for a disclosure in Before you publish, with Add line (CE-050, part c)

Where the page puts the brand forward (the page read's disclosure check),
Before you publish has a Disclosure row: what the page says, or Add line,
a line in the page's language (disclosureText) the person adds; Export's
Before you publish line names a missing one. Export doesn't add it on its
own: whether the page recommends the brand is an AI read.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): put the disclosure line under the opening paragraph, once, in neutral words

Pre-push review fixes:
- the line goes under the page's opening paragraph (past a byline), so
  the answer the H1 gets first stays first for Answer first
- not offered twice: a page that has the line already shows it added
- not while the HTML view holds the page, whose source is what goes out
- the H1 is the page's first one with words, not only its first node
- the lines say the product is offered by the brand (a service or
  software too), with no gendered article; "without a disclosure"

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content): hand a draft's open Quality checks to the Content Agent in one run (00275, CE-051, part 1)

POST /api/content-drafts/:draftId/handoff (Quality phase 2): the editor
sends the page's fixable checks by key, with what each names on the page;
the server says what each asks and runs Fix open rules as one run of kind
'handoff', its suggestions left for review. The editor's details are no
fact the agent may write, and a placeholder stays the person's.

00275: content_agent_runs.kind 'handoff' and origin (person | auto), an
automatic hand-off once a draft; brands.content_quality_handoff (off by
default) and content_drafts.quality_handoff, the brand's setting copied
when the draft is made. An automatic run on a draft its brand doesn't
hand off is 409 not_due, a second one 409 already; one the AI budget stops
before it begins is taken back, to run once the budget renews.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(settings): add Settings › Content with Hand off quality fixes automatically, per brand (CE-051, part 2)

With Content Editor Quality's phase 2, Settings has a Content section: per
brand, Hand off quality fixes automatically (brands.content_quality_handoff,
00275, off by default). Admins and managers change it; anyone else sees it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): let a hand-off link the draft's sources and write the brand's approved facts

Pre-push review fixes:
- the source checks (claims, fresh, weak, primary, broken) read the
  draft's sources as link targets, so the agent can link one
- trust:brandFacts writes the brand's approved facts, read on the server
- a placeholder is read in the passage before and after the change: a
  "before" that cuts into its brackets doesn't fill it
- the person's own rules are no fact a hand-off may write either
- not_due first; a person's run writes no origin (the column's default),
  so a database before 00275 takes it; a run not taken back is failed

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): skip an automatic hand-off once its brand turned the setting off

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(settings): show a saved hand-off at once, end the wait with no workspace, say what turning it off does

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): hand the page off to Content Agent from Quality, in one run (CE-051, part 3)

Quality has a Hand it off to Content Agent card under its scores: it sends
every open suggestion (#1481's fixable checks), each with what it names on
the page, and the agent leaves its fixes as one batch to review, on the
same card, steps and Stop as Fix open rules; the to-dos stay the person's.
The disclosure goes only with its line in the page's language.

Fix open rules and Hand off share what they send besides their items
(agentContext) and how their answer is told (runAgentFix).

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): hand off only what the agent's checks ask, each card on its own run (CE-051)

- A suggestion that asks the other way to its check (sentences too short,
  a page too simple) stays the person's: the agent is told shorter and
  easier.
- Fix open rules and Hand off each show their own run; the other card
  waits, saying the agent is at work.
- The disclosure isn't sent once its line is on the page; Hand off waits
  for the page's read after a save when it sends what AI read
  (usePageRead's behind), and while claims are read.
- The passage is cut to fit, never the disclosure line.
- A full hand-off says to hand it off again; the API's 'off' is said.
- The blocked reason is the button's description.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): count each placeholder a hand-off would drop, and run one fix at a time (CE-051)

- dropsPlaceholder counts each placeholder before and after the change,
  read in what is kept (the new words and the blocks after them): filling
  one of two "[figure, source]" in a passage is dropped too. In a heading
  only the agent's own forms count, as the editor reads them.
- A hand-off's prompt says to leave every [placeholder] as it is.
- Fix open rules and a hand-off are refused with 409 `running` while
  another fix or hand-off on the draft is under way (fixUnderWay).

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): read a plan's price only right after its name, and a trial only after the brand's (CE-047)

- A named plan's price is read as the brand's is: right after its name
  (with its plan or tier word), with nothing, "is", a colon, a dash, "("
  or a pricing verb between. A price compared within a few words after it
  ("$30 more than", "$20 less … than") is read for no one, and "saves",
  "saved", "saving" are a saving.
- In a part of the sentence that is the brand's, only a trial length after
  its name or "your trial", "every plan" is its own; "free for N days" is a
  trial only after "try"/"use" and the brand, or in a sentence that says
  "trial".
- "We were founded" starts its clause only at the sentence's start or after
  since/when/after/and, not after a colon (quoted speech).
- In phase 2, the Quality score also waits for the brand's facts.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): hold the Quality score until the page as saved is read for proof (CE-049)

usePageRead counts a save it hasn't asked about yet as reading, as
useClaims does, and waits only for changes on their way (the editor's
narrower `saving`), so a failed save, a conflict or a page too large
doesn't hold it. In phase 2, qualitySettled waits for the page's read.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): hold the Quality score for the visual proof, and score when the own images can't be read (CE-049)

- qualitySettled waits for E-E-A-T's visual proof in phase 2 (the page's
  read and the own images), so the chip doesn't settle on Trust and
  Readability and move when the read lands. The page read already waits
  only for changes on their way (#1468's `saving`).
- A failed own-images call counts the confirms made so far, so E-E-A-T
  scores and Confirm opens.
- The visual proof to-do is listed when Your input can't be read too, in
  its place.
- E-E-A-T takes both the visual proof and the author confirmations.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): hold what the page read found until the edited page is read again (CE-050)

- aiChecksOnPage holds a find whose paragraph changed while the page as it
  is now is still to be read: changes not saved yet, a save not asked
  about (usePageRead's reading, #1468) or an ask out. The passage that puts
  the brand forward still applies then, and Answer first's verdict is held
  (`held`, which readability takes over the block match).
- The editor, a save and a restore detect the page type with the existing
  page's address, as Start did, so the read's type and the editor's agree
  from the start.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): put the disclosure line past a hero image, and count it before the next read (CE-050)

- Add line looks for the opening paragraph past what has no words (an
  image, an empty paragraph), as Readability and the page read do, and a
  byline or a date: the answer stays first for Answer first.
- While the page has the line Add line put in, the disclosure counts as
  found (Trust, Quality's suggestion, Export's line); Before you publish
  still says it was added until the page is read again.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): wait on the page's read only where it moves what Hand off sends, and say `running` (CE-051)

- usePageRead's reading now counts a save not asked about yet (#1468), so
  the hand-off's own `behind` flag goes. Hand off waits for the page's
  read before its first answer, or after a save while it sends what AI
  read of the page (Answer first, the disclosure, balance); not after
  every save.
- The API's 409 `running` (another fix or hand-off on the draft, #1481)
  is said, for Fix open rules too.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): hand a brand's imported and agent-written pages off on their own, and list hand-offs in History (CE-051, part 4)

- A draft its brand hands off (Settings › Content, copied at creation,
  quality_handoff) whose page came from elsewhere (imported to optimize,
  or the agent's) goes to Hand off on its own, once: when Quality is
  settled and nothing holds Hand off (open suggestions, the agent at work,
  a spent AI budget, the reads, the HTML view). The editor reads whether
  the draft had its automatic run (readAutoHandOff); the server's row is
  the claim, and its `already` / `not_due` aren't said.
- History lists the draft's hand-offs of the last 90 days among the
  versions by time, who started each, how it ended and its checks, with
  nothing to restore (getDraftHandoffs).

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): keep the automatic hand-off quiet and off published pages, and read History's hand-offs as they ended (CE-051)

- The automatic run says nothing when it doesn't run or finds nothing
  (only logged); a published draft, or a brand that stopped handing off
  (readAutoHandOff reads its setting too), doesn't run it at all.
- History: a run stopped before its outcome was written reads as
  stopped, one left past RUN_STALE_MS as failed; a done run with no
  change says so; rows sort by time, not by the timestamp's text.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): weigh Quality's checks by the page type, and say which (CE-052, part a)

Phase 3 of the Quality spec (§11): the three scores keep their names, but
what each counts, and how much, follows the page's type.

- quality-profiles.ts: each page type reads as an article, product,
  category, feature or comparison profile (an article before Phase 3 and
  for the types §11 doesn't name), each with E-E-A-T, Trust and
  Readability weights; the article's are the blog defaults. `weighed`
  re-weighs a score's checks (each keeps its share of its points; a weight
  of 0 leaves the check out and rescales the rest).
- The editor weighs Readability, E-E-A-T and Trust for the page's type;
  Trust's unscored gains count out of the type's Phase 1 points.
- To-dos for checks the type leaves out aren't listed: a product, category
  or feature page goes out under the brand's byline, so no author to-dos,
  Export's "No author yet" or Before you publish's missing author.
- Quality says "Checks and weights for {type} (detected): …", with Change
  opening the header's page type menu.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): score Trust and ask for a disclosure only as the page type counts them (CE-052)

- Trust is scored after weighing, as trust() scores it: a type that
  leaves freshness out isn't scored by its links and site alone
  (weighedTrust).
- An unscored Trust gain for a check outside Phase 1's (brand facts)
  counts out of its own points too.
- A category page's E-E-A-T weighs the brand's own information (its site's
  trust, `brandInfo`) beside its own images, not all or nothing.
- Where the type leaves the disclosure out (product, category, feature),
  Before you publish and Export don't ask for one.
- Change has an accessible name.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): count the page type's own rules and a product page's shipping and returns in Quality (CE-052, part b)

- Readability gains one check on the types that weigh it: the page
  type's own rules as the Rules tab reads them from the page (a specs
  table, a side-by-side table, an intro, a buying FAQ, how-to steps), their
  share met; ones read by AI or a feed, or turned off in Rules, aren't
  counted (withTypeRules). Its suggestion names the rules not met; Hand off
  takes it too (readability:typeRules, on both sides).
- Trust reads whether a product page says how shipping and returns work,
  or links where they're told (shippingOnPage: en, tr, de, fr, es), as its
  own check there. Only the person knows them: a to-do, not a suggestion.
- The profiles' Readability and Trust weights make room for both.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): read shipping and returns in a policy's terms, and tell the agent each type rule's aim (CE-052)

- shippingOnPage reads the page's HTML, headings too, for a policy's
  terms ("free shipping", "delivery in 2 days", "30-day returns",
  "iade"), not "ships with a cable", "in return" or "return on
  investment"; Turkish capitals ("İade") and links like
  /shipping_policy, #versandkosten, /reembolso count.
- The type rules check carries each rule's aim and how the page reads now
  (shared with Fix open rules: aimAndNow), so Hand off tells the agent
  what to meet; a table of facts gets only the facts given, placeholders
  for the rest.
- Fit questions are read in English only: another language's page isn't
  scored on them (the Rules tab says so, as for the definition rule).
- The product and category lines name what they count.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test(content-editor): name the product line's new checks in Quality's test (CE-052)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): ask a comparison to show when it was last checked, with Add line (CE-052, part c)

Spec §11 wants a comparison's check date visible. E-E-A-T reads one on the
page (a "checked/tested/updated" word with a year from the last two, in
the nine languages the disclosure has) as its own check, weighed on
comparisons (20). Only the person knows when they checked, so it's a
to-do: "Show when you last checked", whose Add line (in Quality and the
nudge) puts "Last checked: {Month YYYY}." in the page's language under
the opening paragraph, where the disclosure goes (addLineUnderAnswer). A
language without a line asks the person to write it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): read a check date as a label too, and replace a stale one (CE-052)

- The check date is read as a verb or a label ("Last update", "Son
  güncelleme", "Letzte Aktualisierung", "Dernière mise à jour"), each word
  at a word's start ("areas of", "untested" aren't one), Turkish capitals
  too; in a block longer than a label, the year must be near the word.
- Add line replaces a check date the page has already (an old one) rather
  than adding a second, and isn't offered while the HTML view is open.
- The line has no full stop, so Answer first reads past it as a date.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): confirm a customer case may be published, not just link it (00279, CE-052, part d)

Spec §11: what Quality can't verify becomes a confirm step, never a pass;
customer logos and cases need the customer's permission to publish, which
only the person knows.

- 00279 content_draft_confirmations: what a member confirmed that only
  they can (a customer case; category intro facts next, CE-054), by kind
  and key, with who and when; members read their drafts' and insert as
  themselves, now; 50 a draft; no update or delete.
- In Phase 3, a proof ask of a customer case is that confirm ("Confirm you
  may publish the customer case …", Confirm in Quality and the nudge),
  done once confirmed, linked or not.
- E-E-A-T counts the share of the page's customer cases confirmed
  (customerCase), weighed on feature pages (25); E-E-A-T waits for the
  confirms' read in Phase 3.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): key a customer case's confirm by its claim, and keep its sentence the person's (CE-052)

- A confirm is keyed by the case's claim alone (caseKey), so fixing a typo
  in its paragraph keeps it, and re-confirms don't fill the 50.
- A customer case's sentence, confirmed or not, stays out of Trust's
  agent-fixable suggestions: Hand off never sources or removes a case the
  person confirms (QualityRead.caseSentences).
- A case's to-do waits for the confirms' read (casesRead), so one
  confirmed before doesn't show open; E-E-A-T waits for it too, and a
  failed read counts the confirms made so far.
- The feature line names the customer cases it counts.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): score a product or category page's Trust from a compared price, and wait for the site before a category's E-E-A-T (CE-052)

Review on #1491:
- Where brand facts weigh as much as sourced claims (product and
  category pages), a price compared with them scores Trust: a page with
  every price wrong no longer reads "Not scored yet" and passes Before you
  publish's gate. weighedTrust scores by the weighed checks (trust()
  leaves it unscored by its own). The article (10 to 30) is as it was.
- A category page's E-E-A-T waits for the site's trust, its 40 points of
  the brand's own information (waitsForSiteTrust), so it doesn't jump.
- Copy: a page type under the brand "goes out under {byline}" (Ansvisor
  gives no schema for it); the category line names the brand's own
  information and no longer promises an intro check.
- QUALITY_WEIGHTS_VERSION is gone until calibration reads it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): read a buying FAQ and a product's shipping and returns in the page's language, and ask for fit only where there are sizes (CE-052)

Review on #1494:
- The buying FAQ (and the FAQ rule) is found under its heading in German,
  French, Spanish, Turkish (lowercased the Turkish way), Italian,
  Portuguese and Dutch; another language's page isn't told its FAQ is
  missing (English only), so Hand off never adds one it has.
- shippingOnPage reads the ways shops state their terms: a heading that
  names the policy with text under it ("Delivery & Returns", "Returns &
  Exchanges"), delivery with a time or a cost ("Standard delivery 3–5
  working days", "Free UK delivery on orders over £50"), "Returns are
  accepted", "Expédition sous 24h", "Entrega en 24/48 horas", "Reembolso",
  "Retoure", "Umtausch", "satisfait ou remboursé", "teslim edilir",
  "değişim". Not a bare "shipping" ("Shipping weight"), a product's link
  ("/collections/delivery-bags") or a product named for it ("kargo
  pantolon"). A page in a language the words aren't written for is read
  by its links, and isn't asked without one.
- Answer fit and sizing questions counts only where the page has sizes or
  asks about them ("No sizes" for a coffee grinder).
- Hand off: an answer the page and the data don't give (fit, sizes,
  shipping, returns, prices) is a placeholder, never made up.
- Product Trust weighs brand facts 30 and sourced claims 25 (was 25 and
  30), so a compared price scores a product page's Trust as #1491 makes it.
- The feature and comparison lines name their type rules.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): replace only Add line's own old check date, and read a check date in the words that mean it (CE-052)

Review on #1495:
- Add line replaces only its own line from before: a top-level paragraph
  that is one of the nine labels, a month and a year, and nothing else
  (isCheckDateLine). A byline ("By Jane Doe · Updated March 2023"), the
  answer ("We tested 9 CRMs in 2024; …"), a body paragraph or a list item
  stay the person's; the line goes under the answer instead.
- The check date's words in the forms that mean checked: "verification",
  "updates" and "kontrolü" aren't one; "Letzte Prüfung", "Actualisé le",
  "Testato", "Last modified", "Verificado" are.
- The to-do says when the page's date is over a year old ("Update when
  you last checked"), and whether Add line replaces it or the person's
  old date needs updating too (checkDateOnPage).
- The nudge says to check the products first ("show when you last
  checked, once you've checked the products").
- The comparison line names the check date.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): match a customer case's confirm by its words, keep its Trust share in sight, and hand off around it; move the migration to 00280 (CE-052)

Review on #1496:
- 00279 is #1493's (the catalog's sources): the confirmations migration is
  00280 now (file, header, table comment, schema.sql, comments). Its header
  says the key is the claim's words.
- A confirm counts for its case by its words, not the exact slice the page
  read picked (caseConfirmed): a confirmed claim's words in the case's
  sentence, or the case's claim in a confirmed one's (12 letters at least,
  so a name alone isn't a case). Used by the to-dos and the editor's count
  and open cases alike: a second read picking a longer slice keeps the
  confirm, and spends no other row of the 50.
- A case's to-do says when linking the published case still raises Trust
  (+N Trust), confirmed or not: its sentence is an unsourced claim until
  it's linked.
- Hand off sends the cases' paragraphs as locked passages: the server
  already drops any suggestion that changes one (keepSuggestions), so the
  agent never sources, softens or removes a case the person vouches for.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Cihan <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: Gökhan Geyik <[email protected]>
gkhngyk added a commit that referenced this pull request Oct 25, 2026
… price it states (CE-053, part a) (#1497)

* feat(content): read what kind of source each link is, and underline the weak ones (CE-046, part a)

Quality phase 2 (NEXT_PUBLIC_CONTENT_QUALITY_PHASE=2), by rules only:

- sourceClass(): primary (official, research, standards), secondary (news,
  reviews, Wikipedia), weak (forums, social posts, uploaded papers), a
  competitor's page (primary on a comparison) or the brand's own; an
  address the rules can't place is left out (an AI read comes in part b)
- Trust's primarySources (15) and noWeakSources (10); two placed sources
  score Trust on their own
- Quality suggests replacing weak sources (Show, Keep) and adding a
  primary one, once Trust is scored; the editor underlines weak sources
  in amber (a decoration: never exported)
- 00263: content_drafts.kept_sources (≤ 50) and content_draft_keep_source()
- byUrl keeps a link's first place, so Show goes there

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content): read the kind of a source's site the rules can't place with AI (CE-046, part b)

Quality phase 2 (web NEXT_PUBLIC_CONTENT_QUALITY_PHASE and server
CONTENT_QUALITY_PHASE at 2):

- POST /api/content-pages/source-classes reads the sites a draft links
  (as saved) that the editor's rules can't place: the model sees each
  site's address alone and answers primary, secondary or weak; each read
  is kept for every workspace 90 days (00264 content_source_classes); 20
  sites a read, 30 reads a draft a day, its own rate limit
- the reads draw on the AI budget as their own feature, "quality" (00264
  widens prompt_improve_usage.feature): a small hold (holdUsd), left out
  of the median that sizes other calls' holds and the Improve tab's
  estimate; a read cut off by its timeout keeps its hold; Billing lists it
- the editor asks 3 s after a save (useSourceClasses), Trust takes the
  reads for sites the rules can't place, the weak-sources suggestion is
  tagged "AI check", and a spent budget pauses the reads with a note

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): ask only about public site names, keep an unknown read a day, and skip kept sources (CE-046, part b review)

- SITE_NAME (LDH, a dot, a letter TLD; no IP, no single label) in
  keptSite/linkedSites, the editor's unplacedSites and 00264's check; a
  label that reads as words isn't asked about either
- the model may answer unknown, which Trust leaves out; it, and a site
  the model left out, is kept a day, so it isn't asked again (and
  charged) after every save
- a site whose every link the person kept isn't asked about (route and
  editor); a kept link counts in Trust with or without a read
- a failed classifyDraftSources call lets its sites go (.catch/.finally)
- .env.example: phase 2 turns the AI source reads on, from the AI budget

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test(content): size Quality's checks against Starter's $5 AI budget after #1435

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content): read the claims in a draft's own paragraphs with AI, kept by the paragraph (CE-045, part a)

Quality phase 2 (CONTENT_QUALITY_PHASE at 2), server side:

- POST /api/content-pages/claims reads the draft as saved: each paragraph
  and list item long enough to hold a claim; the model finds what a reader
  would want a source for (number, stat, superlative, fact), each claim in
  the paragraph's own words or dropped, five a paragraph at most
- 00266 content_quality_claims keeps the reads by draft and paragraph
  hash: an unchanged paragraph isn't read again, a removed one's row goes;
  the paragraph being written (skip) waits; 12 paragraphs a call, 2 calls
  an ask, one after the other
- the calls draw on the AI budget as "quality" (holdUsd 0.004), and share
  one day's cap per draft with the source kinds' reads
  (content-quality-calls.js, QUALITY_CALLS_PER_DAY 60)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): read the claims by the editor's blocks, short list items too, and keep a missed answer as read (CE-045, part a review)

- draftParagraphs reads p, li, blockquote, td and th as trustBlocks does,
  with ownText's spacing (a line break, sibling paragraphs): the answer is
  { paragraphs: [{ text, claims }] }, so the editor knows each claim's block
- blocks from 12 characters ("Award-winning support"); a call takes 12
  paragraphs or 6,000 characters, whichever comes first
- an answer billed that missed the schema is charged and its paragraphs
  read with none (not sent, and charged, on every save); a kind the editor
  doesn't know drops that claim only; a paragraph answered twice keeps both
- claims leave 10 of the day's Quality calls to the sources' kinds, and the
  route has its own limiter; the reading's version is in the hash; logs
  carry no page words

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content): count the claims in the page's own words in Trust and underline the unsourced ones (CE-045, part b)

The editor asks the API for the claims a few seconds after a save (never
with changes to save), leaving the block being written until the person
leaves it. Trust counts each claim in its own block as a figure, the
draft underlines the unsourced ones in their blocks, and Quality's
suggestion gets Add source (link dialog on the claim's words) and Remove.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): read each source site in its own call, held and counted per site (CE-046, part b review)

One generateObject per site the rules can't place, run together with
Promise.allSettled: no site's name reaches another's read, and a failed
site keeps the others' reads. Each read holds $0.0005; the day's cap
counts sites (SOURCE_READS_PER_DAY = 40). An answer off the schema is
charged and kept as unknown for a day. The route logs an error's name
and message only.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): read a missed answer's paragraphs again after a day, match claims across curly quotes, log no page words (CE-045, part a review)

- 00266 gets a `missed` column: an answer that missed the schema (cut
  short, or blocked by the provider's filter) keeps its paragraphs as read
  with no claims, and they're read again after MISSED_DAYS (1).
- keptClaims compares folded copies (’ ‘ → ', “ ” → ", ‐ ‑ – — → -),
  one character for one, and keeps the paragraph's own span.
- The claims route logs an error's name and message only: a provider's
  error carries the request, the page's paragraphs.
- QUALITY_CALLS_PER_DAY = 90, the claims leaving the sources'
  SOURCE_READS_PER_DAY (40) now that each site is a call: the claims keep
  their 50 calls a day.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): say a spent budget first, read five sites at a time, and log no whole error (CE-046, part b review)

When no site is read, the error thrown is a spent budget's if any (429,
the editor pauses) rather than the first site's. An ask reads its sites
five at a time, so 20 holds and their queries don't go out at once. A
site's hold is $0.001 (the model's thinking is billed as output). The
route's error log keeps the stack, not the provider's request.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): read a missed answer's paragraphs again one a call, after the new ones, and fold more quote and dash forms (CE-045, part a review)

A paragraph whose answer missed the schema is read again after a day in
a call of its own, after the paragraphs not read yet: one the provider's
filter blocks no longer keeps its neighbours unread every day. The fold
also covers low quotes, primes, figure and horizontal-bar dashes and the
minus sign. The claims route keeps the error's stack in its log. Tests
pin the select's columns, both fold directions and the route's log.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content): read a brand's facts from its own pricing, About and product pages, kept for approval (00269, CE-047, part a)

Quality phase 2, CE-047: the brand's prices and plans, trial, founding
year and claims, read from its own site for Trust's "consistent with
brand facts" check. The model finds the facts and copies each one's
words; a fact is kept only when its words are on the page as written,
and its value (amount, currency, period, days, year) is read from them
by rule. A person approves each one.

- 00269: brand_facts (members read, and change only the status, as
  themselves) and brand_fact_pages (server-only: a hash of each page's
  text, so an unchanged page isn't read by the model again; no text
  kept).
- brand-facts.js: findFactPages (page list, Site trust's About page,
  else probes on the main domain; never Scrape.do), factText, keptFacts,
  refreshBrandFacts (new values pending, approved ones gone from the
  site marked gone, pending ones dropped), readBrandFacts (first ask
  reads, asking again every 10 minutes at most), setFactStatus.
- GET /api/brand-facts, POST /fetch, PATCH /:id behind phase 2, with
  their own limiter; logs carry no page text.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content): review and approve brand facts in Brand settings (CE-047, part c)

Brand settings › Brand facts, with Quality's phase 2: the facts the API
read from the brand's own pricing, About and product pages, each with
its words on the page, where it was read and the approved value it would
replace ("Was $59"). A member approves or rejects each one (no approve
all: the spec has each approved); approved facts no longer on the site
say so. Each page's read is listed (read, not found, turned our reader
away, didn't answer); Read again reads the site again once the API
allows it, and a spent AI budget says so. `?tab=facts` opens the tab,
for the editor's to-do to link to.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): read brand facts' text in one walk, keep facts any page still has, and store no wrong price (CE-047, part a review)

- factText walks the page once and stops near MAX_TEXT_CHARS: a page of
  100k blocks reads in well under a second (was quadratic). Struck-through
  old prices (del, s, strike) are left out.
- A fact still on any page read (its words, a price's with its plan near
  them; across a card's lines too) stays; only facts whose page was read
  and has them no more are marked gone or dropped, written once.
- A plan's name is found on the folded text without lowering it (a
  Turkish "İ" lowers to two characters), and a quote only where it
  doesn't run into a number ("$49" in "$499", "$1,2").
- parsePrice reads one price only, no saving, discount or old price, a
  dollar named by its code after it ("$49 CAD"), and the period in the
  words right after it, the first named ("Lifetime access, monthly
  updates" is once). Magnitudes in any case; a trial needs a trial word,
  "started in" is no founding year.
- A page read after a wall or a failure says "ok" again; a missed
  answer's hash isn't kept past a failed read. A changed page goes to the
  model once an hour at most (MODEL_EVERY_MS). A page that failed (or a
  spent budget) is read again at the next ask after RECHECK_MS.
- Facts are written before the pages' hashes; source_url is cut to 2048.
- A listed page that no longer answers falls back to the usual
  addresses; a probe that is the home page again isn't read as one.
- readPage maps not-HTML, refused and redirect-loop reads to not_found;
  401/403/429 to blocked, 5xx to failed. setFactStatus answers 404 for a
  fact removed meanwhile.
- GET has no bucket of its own (the editor reads it as its tab comes
  back); POST /fetch keeps brandFactsLimiter.
- 00269: each kind's value checked (amount ≥ 0, currency, days, year),
  source_url http(s) only, a member's reviewed_at within a minute of now.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content): check a page's prices against approved brand facts in Trust, with an Approve to-do (CE-047, part d)

Trust's "consistent with brand facts" (10 points, phase 2): the page's
prices, trial and founding year against the brand's approved facts still
on its site, read so as not to cry wolf: a price in its own currency
only, against a plan's prices (any of them: monthly and annual billing
both count) when the sentence names the plan, else only when it names
the brand (or "we") with a period; "from $29" against the lowest price;
no sentence naming a competitor; discounts, scales and ranges aren't
prices. Like a working link, it doesn't score Trust on its own.

- A mismatch is Quality's suggestion, "Price differs from brand facts ·
  Page $39 · pricing page $49", with Show on its sentence.
- "Approve {n} brand facts" is the person's to-do while facts wait, with
  Review linking to Brand settings › Brand facts (the to-do row and the
  next-step nudge, not Settings › Authors).
- useBrandFacts reads them once with phase 2 and again when the tab
  comes back from Brand settings; the next-step reads wait for it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): give Brand facts' reads their time, keep the list right after a review, and do one thing at a time (CE-047, part c review)

- settings/layout.tsx sets maxDuration 300: the first read and Read
  again wait while the API reads the site (pages, then the model).
- A review updates the list in place (no read that could read the whole
  site again); a failed one reads the list as kept, a fact a read
  removed meanwhile gone from it. Approve, Reject and Read again don't
  run at once; the row being saved says so (aria-busy).
- An API with brand facts off says they aren't available yet; a thrown
  action shows the failure instead of loading for ever.
- Page links read as the page's name; sections are labelled by their
  heading; the quote marks and the page status separator are messages;
  "missed" and the paused note say when the read comes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): leave a short page's facts alone, read a code or scale after a price, and read brand facts once at a time (CE-047, part a review 2)

- A page under 200 characters (one its scripts write, a wall not told
  apart) leaves its facts as they are on every read, not only the first.
- A currency code or a scale right after a quote is read ("$49" then
  "CAD per month" is CAD; "$2" then "million" is no price); only "off"
  right after a price drops it (the next card's "Save 20%" doesn't). A
  period is named within 24 characters of the price, the first one
  named; "per active user" is per seat.
- A plan's name matches as whole words ("Pro" isn't in "Product"); a
  quote isn't taken inside another mark's dollar ("C$49") or a
  space-grouped number ("299 €" in "1 299 €").
- factText counts words toward its length, not indentation.
- A page whose model read failed waits MODEL_EVERY_MS like any other;
  a GET reads a failed page again behind its answer, not before it.
- New facts get the room the removed ones leave; a page whose new facts
  didn't fit keeps its old hash, to be read again. A kind no longer read
  (a shop's product page) loses its row.
- refreshOnce: one read per brand at a time, for the tab and the weekly
  read alike.
- 00269: a missing key is a check violation, and numbers compare as
  numeric (no cast error).

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): cry no wolf on brand facts: plans named as written beside the price, the brand's own trial and founding year only (CE-047, part d review)

- A price is compared with the plan named nearest it, its name as the
  page writes it (case too); a plan that is an everyday word ("Pro",
  "Team", "Free", "Growth") only beside "plan"/"tier" or with the brand
  named. With no plan, only a sentence naming the brand and saying what
  it costs; no "we/our" path. Free ($0) is never compared; "from $19"
  matches any approved price.
- A sentence with an old price, a saving, a discount, credits, tax or a
  team's bill ("was $49", "incl. VAT", "5 users pay") isn't read for
  prices; "billed monthly/annually" narrows to that billing.
- Ranges need a number before the dash or word (French "à", Turkish
  "ile", "between … and"), so "Pro – $49" is a price again; an amount
  doesn't start inside a number.
- A trial is compared where it is the brand's ("your free trial",
  "every plan", its name), its days right beside the trial; a founding
  year right after "founded", with the brand named or "we were founded".
- Each sentence once. The to-do is last (the brand's, no points of the
  page's), "Review your brand facts" at 0 and "reviewed" when done.
- useBrandFacts fails instead of loading for ever when the action throws.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content): read a page's visual proof spots and proof asks in one AI pass, kept by its hash (00270, CE-049, part a)

Quality phase 2, CE-049 (spec §4b), the server: one model read of the
whole page, with its page type, the brand's business type (B2B, B2C,
e-commerce) and the brand's approved claims about itself (CE-047):

- spots: where one specific image the business can take itself would
  prove a paragraph ("A photo of this backpack on a real hike"); kept
  only on a paragraph, list item or quote, in its own words, plain text,
  not generic (EN/TR/DE blocklist), naming the page's own thing (a word
  shared with its passage or headings), one an H2 section, three a page;
- proofs: the business's own claims whose proof only it has (award,
  certification, research, rating, ranking, number, test, customer case,
  else unknown), in the paragraph's words, not where it already links
  out; a customer case on a B2C or shop page only when the claim names
  one;
- regulated (health, finance, legal) on a B2C page.

00270: content_quality_pages (server-only, by page hash; items name
their paragraph by its 00266 hash, so a changed one drops out; missed
answers read again after a day) and content_draft_own_images (a member's
"this is my own image", as themself, 50 a draft; for part d).

POST /api/content-pages/page-read behind phase 2 with its own limiter: a
changed page read once a minute at most, 20 a day per draft (the shared
cap rises to 110: claims 50, page reads 20, sources at least 40), held
$0.01 as "quality"; a spent budget answers the kept read, paused. Logs
carry no page words.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): ask for the proof of the page's own claims as to-dos (CE-049b)

The page read (CE-049a) names the claims only the brand can prove: an
award, a certification, its own test, a rating, a ranking, a figure, a
named customer. Quality lists each as a to-do while its paragraph has no
link, worded by the kind of proof and the business type (spec §4b), five
open at once in the page's order, checked once linked; Add proof link
selects the claim and opens the link dialog, as Add source does. A link
to the brand's own site sources its own claim in Trust, and a sentence a
proof to-do covers leaves Trust's source suggestion.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): cap a draft's page reads at 20 a day and keep generic image spots out (CE-049, part a)

Review fixes before the PR:
- count the day's page reads on the row (day_reads, day_started_at):
  20 a draft, within its shared Quality calls;
- an image naming only words every business page has (product, team,
  customer, dashboard) anchors nothing; generic patterns read with the
  Turkish "İ" folded; logo and illustration patterns narrowed;
- keep proofs in a block that links out (the editor checks them off), so
  removing the link brings the ask back;
- a customer case on a shop or consumer page needs case words or a named
  customer; a count asks for its source; kinds and regulated normalised;
  one claim inside another of its block is dropped;
- a kept read is re-mapped for the business type as it is now;
- two asks at once are each mapped to their own page, the older pending;
- the hash covers what the model reads (headings cut at 300, the 16k
  cut, the brand's facts in any order, no addresses); facts ordered by
  first_seen_at, id;
- each block keeps its H2's words (an empty H2 shifted the lookup);
- own-images cap trigger: advisory lock, a re-confirm passes ON CONFLICT;
  spots and proofs up to 8 KB.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): keep a proof to-do when its link adds a space, and let Next step wait for the page read (CE-049b)

Pre-push review fixes:
- match proof asks and Trust's own-site proof by their words without
  spaces (a link put on a claim adds one at its edge), so the row is
  checked, not lost; a block's claims in their order;
- an own-site link sources only the proof claim's sentence, not the
  block's other figures;
- usePageRead says when its first answer is in (settled): Next step
  drops a stale skip only after it; a failed ask clears pending;
- Next step reads each proof to-do by its key; proofKey names the block
  by a short hash; had holds only the to-dos shown open;
- Before you publish names the claims a proof to-do covers again;
- "license".

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): hash a page's blocks by their words without spaces, so a link on a claim reads nothing new (CE-049, part a)

A link put on a claim adds a space at its edge ("roll -top"): the page
and its block were read as changed, a paid read within the minute's
pending dropped the block's items. Blocks and the page are now hashed
without spaces; the kept read maps to the block as the page has it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): show visual proof spots in the draft's margin, with Add image (CE-049, part c)

The page read's visual proof spots (#1467) stand beside their passages:
from 1120 px a card with the image to take, "For: “{passage}”" and Add
image; narrower a 20 px marker in the page's padding. A widget
decoration, never the page's (no save, export, copy or CMS push has
it), placed again only when the spots or the page change; hidden while
the agent changes the page. A spot goes once an image follows its block.

Add image takes the image by its https address, the alt text drafted
from the passage (required) and an optional caption (an italic
paragraph), put in right after the passage's block; a passage gone
meanwhile says so.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): confirm the page's own images, E-E-A-T's visual proof (CE-049, part d)

Only the person can tell their own screenshot or photo from stock: a
confirm step, never a pass (spec §2.1, 10 points in phase 2).

- eeat({visual}): an image confirmed own scores 10/10; images or an open
  visual proof spot with none confirmed 0/10; neither leaves it out. In
  phase 2 E-E-A-T waits for it, so the score doesn't move once it lands.
- To-do "Show your own image": Confirm (the page's images, thumbnails
  with no referrer, "Our own image, not stock") or, with no image and a
  spot open, that spot's Add image; the nudge offers it too.
- Add image gets "This is our own image…, not stock".
- getOwnImages (fails soft) and confirmOwnImage (as the member, the
  database's now, once; full at 50) on 00270's content_draft_own_images;
  a confirm shows at once and only it is taken back on failure.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): ask regulated pages for a qualified reviewer, from Authors (00273, CE-049, part e)

A consumer page that advises on health, finance or law (the page read's
regulated) asks for a qualified reviewer, from Authors only (spec §4b).

- 00273: content_drafts.reviewer_id → content_authors (set null), a
  trigger checking they are the brand's organization's (as 00257's).
- Header: "Reviewed by {name} ▾" beside the author (amber "Add
  reviewer" while none), shown when regulated or set; the title is the
  credential. A failed save rolls back only the latest pick.
- Quality to-do "Add a qualified reviewer" (what the page advises on,
  Pick reviewer / add one in Settings › Authors), after the proofs, once
  the authors are read; the nudge offers it.
- Page info strip: "Reviewed by {name}, {title}".

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): tie a brand fact's figure to the brand, one price per plan

Review fixes on the brand-facts check (CE-047):
- a price with no plan named is read only right after the brand's name
  and a pricing verb; "was founded" needs the brand, "we" or "our
  company" right before it; a sentence with two trial lengths is skipped
- each named plan takes the one price nearest it, skipped when another
  price sits between; add-on words ("extra", "additional", "add-on")
  aren't prices
- the next step no longer waits for the brand's first site read; the
  brand facts' to-do joins when it lands

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): keep a linked proof to-do checked, ask the page read past the API's minute

Review fixes on the proof to-dos (CE-049, part b):
- a proof ask's key hashes its block's words without spaces, so a link's
  edge space on the next read keeps the to-do checked and the nudge quiet
- the page read asks a few seconds past the API's minute, which counts
  from when the last ask reached it, so it isn't answered "pending"
- the hook's constants are PROOF_READ_*, apart from the panel's
  PAGE_READ_DELAY_MS

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): take only https image addresses up to 2,048 characters in the proof image dialog

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): pair plan prices closest first, keep a trial to the brand's part of a sentence

Pre-push review fixes on the brand-facts check:
- each plan takes its nearest price, the closest pairs first; a sentence
  with more prices than plans named isn't read for prices
- setup, onboarding and one-time fees aren't a plan's price; with no plan
  named, only the plan or pricing may sit between the name and the verb
- a trial is read in the part of the sentence that is the brand's, and a
  length said of another ("Ledgerly's runs for 14 days") makes two
- "was founded" needs who at the start of its clause, and "we" outside
  quoted speech
- stale Next step skips wait for the brand facts again: only the dropping
  waits, and a proof skip's Trust can move when they land

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): key a proof to-do by its claim's words without spaces too

The API cuts a claim from its block as the page has it, so a link's edge
space changes the claim as well as the block.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): read a sentence's prices only when they match its plans one to one, a partner's trial apart

- prices are read only when the sentence has as many as plans named (one
  with none named): a plan beside another's price, or a monthly and an
  annual price with no plan, are unsure
- ", which/who/whose" turns to another subject: a partner's trial isn't
  the brand's
- "Ledgerly's trial runs for 30 days" is read as the brand's trial

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test(content-editor): let the page read land before the stale-skip check in phase 2

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): score the page read's AI checks: who/how/why, balance, disclosure, answer first (CE-050, part b)

The page read's checks (#1478) count in Quality, each tagged "AI check":
- E-E-A-T's who / how / why on pages a reader trusts more for it, as a
  to-do ("Say how you made this page", Add input)
- Trust's balance and disclosure where they apply, as suggestions with
  Show on the passage that puts the brand forward; neither scores Trust
  alone
- Readability's answer first takes the model's verdict while its
  paragraph is still the first, 60 words or fewer to pass
Left out before the first read, while the budget or the day's reads are
used up, not found on a page read in part, or read for another page type;
a type change asks again; an edited find holds while the page is read.
Answer first reads past a byline or a date under the H1, as the API does.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): word the disclosure suggestion plainly

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): ask for a disclosure in Before you publish, with Add line (CE-050, part c)

Where the page puts the brand forward (the page read's disclosure check),
Before you publish has a Disclosure row: what the page says, or Add line,
a line in the page's language (disclosureText) the person adds; Export's
Before you publish line names a missing one. Export doesn't add it on its
own: whether the page recommends the brand is an AI read.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): put the disclosure line under the opening paragraph, once, in neutral words

Pre-push review fixes:
- the line goes under the page's opening paragraph (past a byline), so
  the answer the H1 gets first stays first for Answer first
- not offered twice: a page that has the line already shows it added
- not while the HTML view holds the page, whose source is what goes out
- the H1 is the page's first one with words, not only its first node
- the lines say the product is offered by the brand (a service or
  software too), with no gendered article; "without a disclosure"

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content): hand a draft's open Quality checks to the Content Agent in one run (00275, CE-051, part 1)

POST /api/content-drafts/:draftId/handoff (Quality phase 2): the editor
sends the page's fixable checks by key, with what each names on the page;
the server says what each asks and runs Fix open rules as one run of kind
'handoff', its suggestions left for review. The editor's details are no
fact the agent may write, and a placeholder stays the person's.

00275: content_agent_runs.kind 'handoff' and origin (person | auto), an
automatic hand-off once a draft; brands.content_quality_handoff (off by
default) and content_drafts.quality_handoff, the brand's setting copied
when the draft is made. An automatic run on a draft its brand doesn't
hand off is 409 not_due, a second one 409 already; one the AI budget stops
before it begins is taken back, to run once the budget renews.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(settings): add Settings › Content with Hand off quality fixes automatically, per brand (CE-051, part 2)

With Content Editor Quality's phase 2, Settings has a Content section: per
brand, Hand off quality fixes automatically (brands.content_quality_handoff,
00275, off by default). Admins and managers change it; anyone else sees it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): let a hand-off link the draft's sources and write the brand's approved facts

Pre-push review fixes:
- the source checks (claims, fresh, weak, primary, broken) read the
  draft's sources as link targets, so the agent can link one
- trust:brandFacts writes the brand's approved facts, read on the server
- a placeholder is read in the passage before and after the change: a
  "before" that cuts into its brackets doesn't fill it
- the person's own rules are no fact a hand-off may write either
- not_due first; a person's run writes no origin (the column's default),
  so a database before 00275 takes it; a run not taken back is failed

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): skip an automatic hand-off once its brand turned the setting off

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(settings): show a saved hand-off at once, end the wait with no workspace, say what turning it off does

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): hand the page off to Content Agent from Quality, in one run (CE-051, part 3)

Quality has a Hand it off to Content Agent card under its scores: it sends
every open suggestion (#1481's fixable checks), each with what it names on
the page, and the agent leaves its fixes as one batch to review, on the
same card, steps and Stop as Fix open rules; the to-dos stay the person's.
The disclosure goes only with its line in the page's language.

Fix open rules and Hand off share what they send besides their items
(agentContext) and how their answer is told (runAgentFix).

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): hand off only what the agent's checks ask, each card on its own run (CE-051)

- A suggestion that asks the other way to its check (sentences too short,
  a page too simple) stays the person's: the agent is told shorter and
  easier.
- Fix open rules and Hand off each show their own run; the other card
  waits, saying the agent is at work.
- The disclosure isn't sent once its line is on the page; Hand off waits
  for the page's read after a save when it sends what AI read
  (usePageRead's behind), and while claims are read.
- The passage is cut to fit, never the disclosure line.
- A full hand-off says to hand it off again; the API's 'off' is said.
- The blocked reason is the button's description.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): count each placeholder a hand-off would drop, and run one fix at a time (CE-051)

- dropsPlaceholder counts each placeholder before and after the change,
  read in what is kept (the new words and the blocks after them): filling
  one of two "[figure, source]" in a passage is dropped too. In a heading
  only the agent's own forms count, as the editor reads them.
- A hand-off's prompt says to leave every [placeholder] as it is.
- Fix open rules and a hand-off are refused with 409 `running` while
  another fix or hand-off on the draft is under way (fixUnderWay).

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): read a plan's price only right after its name, and a trial only after the brand's (CE-047)

- A named plan's price is read as the brand's is: right after its name
  (with its plan or tier word), with nothing, "is", a colon, a dash, "("
  or a pricing verb between. A price compared within a few words after it
  ("$30 more than", "$20 less … than") is read for no one, and "saves",
  "saved", "saving" are a saving.
- In a part of the sentence that is the brand's, only a trial length after
  its name or "your trial", "every plan" is its own; "free for N days" is a
  trial only after "try"/"use" and the brand, or in a sentence that says
  "trial".
- "We were founded" starts its clause only at the sentence's start or after
  since/when/after/and, not after a colon (quoted speech).
- In phase 2, the Quality score also waits for the brand's facts.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): hold the Quality score until the page as saved is read for proof (CE-049)

usePageRead counts a save it hasn't asked about yet as reading, as
useClaims does, and waits only for changes on their way (the editor's
narrower `saving`), so a failed save, a conflict or a page too large
doesn't hold it. In phase 2, qualitySettled waits for the page's read.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): hold the Quality score for the visual proof, and score when the own images can't be read (CE-049)

- qualitySettled waits for E-E-A-T's visual proof in phase 2 (the page's
  read and the own images), so the chip doesn't settle on Trust and
  Readability and move when the read lands. The page read already waits
  only for changes on their way (#1468's `saving`).
- A failed own-images call counts the confirms made so far, so E-E-A-T
  scores and Confirm opens.
- The visual proof to-do is listed when Your input can't be read too, in
  its place.
- E-E-A-T takes both the visual proof and the author confirmations.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): hold what the page read found until the edited page is read again (CE-050)

- aiChecksOnPage holds a find whose paragraph changed while the page as it
  is now is still to be read: changes not saved yet, a save not asked
  about (usePageRead's reading, #1468) or an ask out. The passage that puts
  the brand forward still applies then, and Answer first's verdict is held
  (`held`, which readability takes over the block match).
- The editor, a save and a restore detect the page type with the existing
  page's address, as Start did, so the read's type and the editor's agree
  from the start.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): put the disclosure line past a hero image, and count it before the next read (CE-050)

- Add line looks for the opening paragraph past what has no words (an
  image, an empty paragraph), as Readability and the page read do, and a
  byline or a date: the answer stays first for Answer first.
- While the page has the line Add line put in, the disclosure counts as
  found (Trust, Quality's suggestion, Export's line); Before you publish
  still says it was added until the page is read again.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): wait on the page's read only where it moves what Hand off sends, and say `running` (CE-051)

- usePageRead's reading now counts a save not asked about yet (#1468), so
  the hand-off's own `behind` flag goes. Hand off waits for the page's
  read before its first answer, or after a save while it sends what AI
  read of the page (Answer first, the disclosure, balance); not after
  every save.
- The API's 409 `running` (another fix or hand-off on the draft, #1481)
  is said, for Fix open rules too.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): hand a brand's imported and agent-written pages off on their own, and list hand-offs in History (CE-051, part 4)

- A draft its brand hands off (Settings › Content, copied at creation,
  quality_handoff) whose page came from elsewhere (imported to optimize,
  or the agent's) goes to Hand off on its own, once: when Quality is
  settled and nothing holds Hand off (open suggestions, the agent at work,
  a spent AI budget, the reads, the HTML view). The editor reads whether
  the draft had its automatic run (readAutoHandOff); the server's row is
  the claim, and its `already` / `not_due` aren't said.
- History lists the draft's hand-offs of the last 90 days among the
  versions by time, who started each, how it ended and its checks, with
  nothing to restore (getDraftHandoffs).

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): keep the automatic hand-off quiet and off published pages, and read History's hand-offs as they ended (CE-051)

- The automatic run says nothing when it doesn't run or finds nothing
  (only logged); a published draft, or a brand that stopped handing off
  (readAutoHandOff reads its setting too), doesn't run it at all.
- History: a run stopped before its outcome was written reads as
  stopped, one left past RUN_STALE_MS as failed; a done run with no
  change says so; rows sort by time, not by the timestamp's text.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): weigh Quality's checks by the page type, and say which (CE-052, part a)

Phase 3 of the Quality spec (§11): the three scores keep their names, but
what each counts, and how much, follows the page's type.

- quality-profiles.ts: each page type reads as an article, product,
  category, feature or comparison profile (an article before Phase 3 and
  for the types §11 doesn't name), each with E-E-A-T, Trust and
  Readability weights; the article's are the blog defaults. `weighed`
  re-weighs a score's checks (each keeps its share of its points; a weight
  of 0 leaves the check out and rescales the rest).
- The editor weighs Readability, E-E-A-T and Trust for the page's type;
  Trust's unscored gains count out of the type's Phase 1 points.
- To-dos for checks the type leaves out aren't listed: a product, category
  or feature page goes out under the brand's byline, so no author to-dos,
  Export's "No author yet" or Before you publish's missing author.
- Quality says "Checks and weights for {type} (detected): …", with Change
  opening the header's page type menu.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): score Trust and ask for a disclosure only as the page type counts them (CE-052)

- Trust is scored after weighing, as trust() scores it: a type that
  leaves freshness out isn't scored by its links and site alone
  (weighedTrust).
- An unscored Trust gain for a check outside Phase 1's (brand facts)
  counts out of its own points too.
- A category page's E-E-A-T weighs the brand's own information (its site's
  trust, `brandInfo`) beside its own images, not all or nothing.
- Where the type leaves the disclosure out (product, category, feature),
  Before you publish and Export don't ask for one.
- Change has an accessible name.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): count the page type's own rules and a product page's shipping and returns in Quality (CE-052, part b)

- Readability gains one check on the types that weigh it: the page
  type's own rules as the Rules tab reads them from the page (a specs
  table, a side-by-side table, an intro, a buying FAQ, how-to steps), their
  share met; ones read by AI or a feed, or turned off in Rules, aren't
  counted (withTypeRules). Its suggestion names the rules not met; Hand off
  takes it too (readability:typeRules, on both sides).
- Trust reads whether a product page says how shipping and returns work,
  or links where they're told (shippingOnPage: en, tr, de, fr, es), as its
  own check there. Only the person knows them: a to-do, not a suggestion.
- The profiles' Readability and Trust weights make room for both.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): read shipping and returns in a policy's terms, and tell the agent each type rule's aim (CE-052)

- shippingOnPage reads the page's HTML, headings too, for a policy's
  terms ("free shipping", "delivery in 2 days", "30-day returns",
  "iade"), not "ships with a cable", "in return" or "return on
  investment"; Turkish capitals ("İade") and links like
  /shipping_policy, #versandkosten, /reembolso count.
- The type rules check carries each rule's aim and how the page reads now
  (shared with Fix open rules: aimAndNow), so Hand off tells the agent
  what to meet; a table of facts gets only the facts given, placeholders
  for the rest.
- Fit questions are read in English only: another language's page isn't
  scored on them (the Rules tab says so, as for the definition rule).
- The product and category lines name what they count.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test(content-editor): name the product line's new checks in Quality's test (CE-052)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): ask a comparison to show when it was last checked, with Add line (CE-052, part c)

Spec §11 wants a comparison's check date visible. E-E-A-T reads one on the
page (a "checked/tested/updated" word with a year from the last two, in
the nine languages the disclosure has) as its own check, weighed on
comparisons (20). Only the person knows when they checked, so it's a
to-do: "Show when you last checked", whose Add line (in Quality and the
nudge) puts "Last checked: {Month YYYY}." in the page's language under
the opening paragraph, where the disclosure goes (addLineUnderAnswer). A
language without a line asks the person to write it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): read a check date as a label too, and replace a stale one (CE-052)

- The check date is read as a verb or a label ("Last update", "Son
  güncelleme", "Letzte Aktualisierung", "Dernière mise à jour"), each word
  at a word's start ("areas of", "untested" aren't one), Turkish capitals
  too; in a block longer than a label, the year must be near the word.
- Add line replaces a check date the page has already (an old one) rather
  than adding a second, and isn't offered while the HTML view is open.
- The line has no full stop, so Answer first reads past it as a date.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): confirm a customer case may be published, not just link it (00279, CE-052, part d)

Spec §11: what Quality can't verify becomes a confirm step, never a pass;
customer logos and cases need the customer's permission to publish, which
only the person knows.

- 00279 content_draft_confirmations: what a member confirmed that only
  they can (a customer case; category intro facts next, CE-054), by kind
  and key, with who and when; members read their drafts' and insert as
  themselves, now; 50 a draft; no update or delete.
- In Phase 3, a proof ask of a customer case is that confirm ("Confirm you
  may publish the customer case …", Confirm in Quality and the nudge),
  done once confirmed, linked or not.
- E-E-A-T counts the share of the page's customer cases confirmed
  (customerCase), weighed on feature pages (25); E-E-A-T waits for the
  confirms' read in Phase 3.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): key a customer case's confirm by its claim, and keep its sentence the person's (CE-052)

- A confirm is keyed by the case's claim alone (caseKey), so fixing a typo
  in its paragraph keeps it, and re-confirms don't fill the 50.
- A customer case's sentence, confirmed or not, stays out of Trust's
  agent-fixable suggestions: Hand off never sources or removes a case the
  person confirms (QualityRead.caseSentences).
- A case's to-do waits for the confirms' read (casesRead), so one
  confirmed before doesn't show open; E-E-A-T waits for it too, and a
  failed read counts the confirms made so far.
- The feature line names the customer cases it counts.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): give a product page its Product schema with the price it states (CE-053, part a)

Spec §11 (Phase 3): a product page's schema is Product + Offer. Before you
publish gives it on product pages, from the page as written:

- name from the title (left out while it has a placeholder), description
  from the opening paragraph (past a byline, up to 500 characters), the
  person's own images (CE-049) else the first, the brand;
- the price the page states (pageOffer): one price is an Offer, several in
  one currency an AggregateOffer; an old price, a saving, an add-on, a
  shipping threshold or a minimum order isn't one.
- A page that states no price (or prices in more than one currency) gets
  no code: the row asks for the price, or a product feed. Availability,
  SKU, GTIN and reviews wait for a connected feed and reviews; none is
  made up.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): read a product's price by the words around each amount, and give no Product without its name (CE-053)

- Product needs a name: no code or Copy without one, and a row saying so.
- Each amount is judged by the words just before and after it, not the
  whole sentence: a sale keeps its price ("$129 (was $159)"), a threshold,
  shipping, financing, a unit price, a bundle or an add-on drop only their
  own amount, and a tax-inclusive price or "Extra large" stays a price.
- A range ("$119–$139", "119–139 €") gives low and high (priceRanges);
  no offerCount, as a price can stand for several offers.
- A placeholder in the opening paragraph leaves the description out.
- Export's Before you publish line names the Product schema; the note
  says a "$" reads as US dollars.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): give a product's price only where the page states one, and ask which where prices differ (CE-053)

A price in the Product schema is pasted as the product's, so nothing is
guessed:
- Prices that differ (sizes, or an amount the reading missed) are no
  range: Before you publish lists them and asks for the price once, or
  as a range written as one ("$119–$139").
- An old price ("Regular price", "Original price", "reg.") counts only
  where the page gives no other; "au lieu de", "antes", "bisher",
  "eski fiyat" are old prices too.
- An amount added to the price ("+ $9.95 shipping", "zzgl. 4,95 €
  Versand", "$4 tax"), a saving, a worth or a reward ("save up to",
  "worth", "$30 value", "in rewards", "trade-in") and a threshold
  ("Versand ab 50 €", "Min. order") aren't the price.
- Free shipping is no bill ("with free shipping costs $129").
- "Ridge 28 $129" is $129, not 28 $; "Ridge 28 – $129" is a price.
- A range with one currency needs a dash and no space ("$119–139"), and
  no word joined to its end ("$19 - 100% cotton", "$25-30-day").
- A range by the month ("10–20 € pro Monat", "monthly") is a plan's.
- Export names the Product schema only where Before you publish has its
  code.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): read a price's currency where it's written, and ask about "from" prices and loose ranges (CE-053)

- A currency after an amount stays with it unless a digit follows at
  once: "129,00 € 159,00 €", "999 TL 3 taksit" and "Pro 49 € 10 Nutzer"
  read the right amount (Trust's brand facts too).
- "$129.00 CAD": a code after a sign says whose dollar it is.
- A range with one currency and a spaced dash or a word ("119 – 139 €",
  "$119 to 139") is no longer read as one of its ends: it, "From $119"
  and other prices the page gives are listed for the person to settle.
  "$129 – 150 reviews" and "€20 – 30 Tage" stay one price.
- "Regular" or "Original" alone is a size; "Regular price" is an old
  price only beside a lower one in its block.
- "S24+: $999.99" keeps its price; "3 min. $129" isn't a minimum order.
- Thresholds and savings in more languages ("über", "superiores a",
  "supérieure à", "orders $50+", "Sie sparen", "Économisez", "3 Raten à",
  "3 plazos de").
- Prices that differ are listed once each ("$129" and "$129.00"), five
  at most.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): ask about a price a number may be written onto, and show the price read for the person to check (CE-053)

- A space between digits ("PlayStation 5 549,99 €") or a sign after a
  whole amount with a number next ("Ridge 28 € 129") may be another
  number's: the price is listed for the person, not guessed. Cents tie a
  sign to its amount ("129,00 € 2 Jahre Garantie" is 129 €).
- "CAD $129", "MX$1,299": a code before a dollar sign says whose;
  "CHF 1'299.–": an apostrophe groups thousands.
- "From just", "As low as", "begins at", "A partir de", "A partire da",
  "Vanaf", "Ab nur", "'den başlıyor" are from-prices: asked about.
- An old price is dropped only beside one lower price in its block, at
  least 40% of it ("Regular price $129 Unit price $12.90" keeps $129).
- A member's, a subscriber's or a code's price, a unit price ("Grundpreis",
  "/ per 100g"), PayPal's Pay in 4, a balance and an "indirim" amount
  aren't the price.
- A price beside a range must be one of its ends: another product's range
  isn't the product's.
- Before you publish names the price it read ("Price read from the page:
  $129. Check it's the product's.").

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): score a product or category page's Trust from a compared price, and wait for the site before a category's E-E-A-T (CE-052)

Review on #1491:
- Where brand facts weigh as much as sourced claims (product and
  category pages), a price compared with them scores Trust: a page with
  every price wrong no longer reads "Not scored yet" and passes Before you
  publish's gate. weighedTrust scores by the weighed checks (trust()
  leaves it unscored by its own). The article (10 to 30) is as it was.
- A category page's E-E-A-T waits for the site's trust, its 40 points of
  the brand's own information (waitsForSiteTrust), so it doesn't jump.
- Copy: a page type under the brand "goes out under {byline}" (Ansvisor
  gives no schema for it); the category line names the brand's own
  information and no longer promises an intro check.
- QUALITY_WEIGHTS_VERSION is gone until calibration reads it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): read a buying FAQ and a product's shipping and returns in the page's language, and ask for fit only where there are sizes (CE-052)

Review on #1494:
- The buying FAQ (and the FAQ rule) is found under its heading in German,
  French, Spanish, Turkish (lowercased the Turkish way), Italian,
  Portuguese and Dutch; another language's page isn't told its FAQ is
  missing (English only), so Hand off never adds one it has.
- shippingOnPage reads the ways shops state their terms: a heading that
  names the policy with text under it ("Delivery & Returns", "Returns &
  Exchanges"), delivery with a time or a cost ("Standard delivery 3–5
  working days", "Free UK delivery on orders over £50"), "Returns are
  accepted", "Expédition sous 24h", "Entrega en 24/48 horas", "Reembolso",
  "Retoure", "Umtausch", "satisfait ou remboursé", "teslim edilir",
  "değişim". Not a bare "shipping" ("Shipping weight"), a product's link
  ("/collections/delivery-bags") or a product named for it ("kargo
  pantolon"). A page in a language the words aren't written for is read
  by its links, and isn't asked without one.
- Answer fit and sizing questions counts only where the page has sizes or
  asks about them ("No sizes" for a coffee grinder).
- Hand off: an answer the page and the data don't give (fit, sizes,
  shipping, returns, prices) is a placeholder, never made up.
- Product Trust weighs brand facts 30 and sourced claims 25 (was 25 and
  30), so a compared price scores a product page's Trust as #1491 makes it.
- The feature and comparison lines name their type rules.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): replace only Add line's own old check date, and read a check date in the words that mean it (CE-052)

Review on #1495:
- Add line replaces only its own line from before: a top-level paragraph
  that is one of the nine labels, a month and a year, and nothing else
  (isCheckDateLine). A byline ("By Jane Doe · Updated March 2023"), the
  answer ("We tested 9 CRMs in 2024; …"), a body paragraph or a list item
  stay the person's; the line goes under the answer instead.
- The check date's words in the forms that mean checked: "verification",
  "updates" and "kontrolü" aren't one; "Letzte Prüfung", "Actualisé le",
  "Testato", "Last modified", "Verificado" are.
- The to-do says when the page's date is over a year old ("Update when
  you last checked"), and whether Add line replaces it or the person's
  old date needs updating too (checkDateOnPage).
- The nudge says to check the products first ("show when you last
  checked, once you've checked the products").
- The comparison line names the check date.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): match a customer case's confirm by its words, keep its Trust share in sight, and hand off around it; move the migration to 00280 (CE-052)

Review on #1496:
- 00279 is #1493's (the catalog's sources): the confirmations migration is
  00280 now (file, header, table comment, schema.sql, comments). Its header
  says the key is the claim's words.
- A confirm counts for its case by its words, not the exact slice the page
  read picked (caseConfirmed): a confirmed claim's words in the case's
  sentence, or the case's claim in a confirmed one's (12 letters at least,
  so a name alone isn't a case). Used by the to-dos and the editor's count
  and open cases alike: a second read picking a longer slice keeps the
  confirm, and spends no other row of the 50.
- A case's to-do says when linking the published case still raises Trust
  (+N Trust), confirmed or not: its sentence is an unsourced claim until
  it's linked.
- Hand off sends the cases' paragraphs as locked passages: the server
  already drops any suggestion that changes one (keepSuggestions), so the
  agent never sources, softens or removes a case the person vouches for.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Cihan <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: Gökhan Geyik <[email protected]>
gkhngyk pushed a commit that referenced this pull request Oct 25, 2026
…ainst its product feed (00281, CE-053, part b) (#1498)

* feat(content): read what kind of source each link is, and underline the weak ones (CE-046, part a)

Quality phase 2 (NEXT_PUBLIC_CONTENT_QUALITY_PHASE=2), by rules only:

- sourceClass(): primary (official, research, standards), secondary (news,
  reviews, Wikipedia), weak (forums, social posts, uploaded papers), a
  competitor's page (primary on a comparison) or the brand's own; an
  address the rules can't place is left out (an AI read comes in part b)
- Trust's primarySources (15) and noWeakSources (10); two placed sources
  score Trust on their own
- Quality suggests replacing weak sources (Show, Keep) and adding a
  primary one, once Trust is scored; the editor underlines weak sources
  in amber (a decoration: never exported)
- 00263: content_drafts.kept_sources (≤ 50) and content_draft_keep_source()
- byUrl keeps a link's first place, so Show goes there

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content): read the kind of a source's site the rules can't place with AI (CE-046, part b)

Quality phase 2 (web NEXT_PUBLIC_CONTENT_QUALITY_PHASE and server
CONTENT_QUALITY_PHASE at 2):

- POST /api/content-pages/source-classes reads the sites a draft links
  (as saved) that the editor's rules can't place: the model sees each
  site's address alone and answers primary, secondary or weak; each read
  is kept for every workspace 90 days (00264 content_source_classes); 20
  sites a read, 30 reads a draft a day, its own rate limit
- the reads draw on the AI budget as their own feature, "quality" (00264
  widens prompt_improve_usage.feature): a small hold (holdUsd), left out
  of the median that sizes other calls' holds and the Improve tab's
  estimate; a read cut off by its timeout keeps its hold; Billing lists it
- the editor asks 3 s after a save (useSourceClasses), Trust takes the
  reads for sites the rules can't place, the weak-sources suggestion is
  tagged "AI check", and a spent budget pauses the reads with a note

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): ask only about public site names, keep an unknown read a day, and skip kept sources (CE-046, part b review)

- SITE_NAME (LDH, a dot, a letter TLD; no IP, no single label) in
  keptSite/linkedSites, the editor's unplacedSites and 00264's check; a
  label that reads as words isn't asked about either
- the model may answer unknown, which Trust leaves out; it, and a site
  the model left out, is kept a day, so it isn't asked again (and
  charged) after every save
- a site whose every link the person kept isn't asked about (route and
  editor); a kept link counts in Trust with or without a read
- a failed classifyDraftSources call lets its sites go (.catch/.finally)
- .env.example: phase 2 turns the AI source reads on, from the AI budget

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test(content): size Quality's checks against Starter's $5 AI budget after #1435

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content): read the claims in a draft's own paragraphs with AI, kept by the paragraph (CE-045, part a)

Quality phase 2 (CONTENT_QUALITY_PHASE at 2), server side:

- POST /api/content-pages/claims reads the draft as saved: each paragraph
  and list item long enough to hold a claim; the model finds what a reader
  would want a source for (number, stat, superlative, fact), each claim in
  the paragraph's own words or dropped, five a paragraph at most
- 00266 content_quality_claims keeps the reads by draft and paragraph
  hash: an unchanged paragraph isn't read again, a removed one's row goes;
  the paragraph being written (skip) waits; 12 paragraphs a call, 2 calls
  an ask, one after the other
- the calls draw on the AI budget as "quality" (holdUsd 0.004), and share
  one day's cap per draft with the source kinds' reads
  (content-quality-calls.js, QUALITY_CALLS_PER_DAY 60)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): read the claims by the editor's blocks, short list items too, and keep a missed answer as read (CE-045, part a review)

- draftParagraphs reads p, li, blockquote, td and th as trustBlocks does,
  with ownText's spacing (a line break, sibling paragraphs): the answer is
  { paragraphs: [{ text, claims }] }, so the editor knows each claim's block
- blocks from 12 characters ("Award-winning support"); a call takes 12
  paragraphs or 6,000 characters, whichever comes first
- an answer billed that missed the schema is charged and its paragraphs
  read with none (not sent, and charged, on every save); a kind the editor
  doesn't know drops that claim only; a paragraph answered twice keeps both
- claims leave 10 of the day's Quality calls to the sources' kinds, and the
  route has its own limiter; the reading's version is in the hash; logs
  carry no page words

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content): count the claims in the page's own words in Trust and underline the unsourced ones (CE-045, part b)

The editor asks the API for the claims a few seconds after a save (never
with changes to save), leaving the block being written until the person
leaves it. Trust counts each claim in its own block as a figure, the
draft underlines the unsourced ones in their blocks, and Quality's
suggestion gets Add source (link dialog on the claim's words) and Remove.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): read each source site in its own call, held and counted per site (CE-046, part b review)

One generateObject per site the rules can't place, run together with
Promise.allSettled: no site's name reaches another's read, and a failed
site keeps the others' reads. Each read holds $0.0005; the day's cap
counts sites (SOURCE_READS_PER_DAY = 40). An answer off the schema is
charged and kept as unknown for a day. The route logs an error's name
and message only.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): read a missed answer's paragraphs again after a day, match claims across curly quotes, log no page words (CE-045, part a review)

- 00266 gets a `missed` column: an answer that missed the schema (cut
  short, or blocked by the provider's filter) keeps its paragraphs as read
  with no claims, and they're read again after MISSED_DAYS (1).
- keptClaims compares folded copies (’ ‘ → ', “ ” → ", ‐ ‑ – — → -),
  one character for one, and keeps the paragraph's own span.
- The claims route logs an error's name and message only: a provider's
  error carries the request, the page's paragraphs.
- QUALITY_CALLS_PER_DAY = 90, the claims leaving the sources'
  SOURCE_READS_PER_DAY (40) now that each site is a call: the claims keep
  their 50 calls a day.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): say a spent budget first, read five sites at a time, and log no whole error (CE-046, part b review)

When no site is read, the error thrown is a spent budget's if any (429,
the editor pauses) rather than the first site's. An ask reads its sites
five at a time, so 20 holds and their queries don't go out at once. A
site's hold is $0.001 (the model's thinking is billed as output). The
route's error log keeps the stack, not the provider's request.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): read a missed answer's paragraphs again one a call, after the new ones, and fold more quote and dash forms (CE-045, part a review)

A paragraph whose answer missed the schema is read again after a day in
a call of its own, after the paragraphs not read yet: one the provider's
filter blocks no longer keeps its neighbours unread every day. The fold
also covers low quotes, primes, figure and horizontal-bar dashes and the
minus sign. The claims route keeps the error's stack in its log. Tests
pin the select's columns, both fold directions and the route's log.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content): read a brand's facts from its own pricing, About and product pages, kept for approval (00269, CE-047, part a)

Quality phase 2, CE-047: the brand's prices and plans, trial, founding
year and claims, read from its own site for Trust's "consistent with
brand facts" check. The model finds the facts and copies each one's
words; a fact is kept only when its words are on the page as written,
and its value (amount, currency, period, days, year) is read from them
by rule. A person approves each one.

- 00269: brand_facts (members read, and change only the status, as
  themselves) and brand_fact_pages (server-only: a hash of each page's
  text, so an unchanged page isn't read by the model again; no text
  kept).
- brand-facts.js: findFactPages (page list, Site trust's About page,
  else probes on the main domain; never Scrape.do), factText, keptFacts,
  refreshBrandFacts (new values pending, approved ones gone from the
  site marked gone, pending ones dropped), readBrandFacts (first ask
  reads, asking again every 10 minutes at most), setFactStatus.
- GET /api/brand-facts, POST /fetch, PATCH /:id behind phase 2, with
  their own limiter; logs carry no page text.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content): review and approve brand facts in Brand settings (CE-047, part c)

Brand settings › Brand facts, with Quality's phase 2: the facts the API
read from the brand's own pricing, About and product pages, each with
its words on the page, where it was read and the approved value it would
replace ("Was $59"). A member approves or rejects each one (no approve
all: the spec has each approved); approved facts no longer on the site
say so. Each page's read is listed (read, not found, turned our reader
away, didn't answer); Read again reads the site again once the API
allows it, and a spent AI budget says so. `?tab=facts` opens the tab,
for the editor's to-do to link to.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): read brand facts' text in one walk, keep facts any page still has, and store no wrong price (CE-047, part a review)

- factText walks the page once and stops near MAX_TEXT_CHARS: a page of
  100k blocks reads in well under a second (was quadratic). Struck-through
  old prices (del, s, strike) are left out.
- A fact still on any page read (its words, a price's with its plan near
  them; across a card's lines too) stays; only facts whose page was read
  and has them no more are marked gone or dropped, written once.
- A plan's name is found on the folded text without lowering it (a
  Turkish "İ" lowers to two characters), and a quote only where it
  doesn't run into a number ("$49" in "$499", "$1,2").
- parsePrice reads one price only, no saving, discount or old price, a
  dollar named by its code after it ("$49 CAD"), and the period in the
  words right after it, the first named ("Lifetime access, monthly
  updates" is once). Magnitudes in any case; a trial needs a trial word,
  "started in" is no founding year.
- A page read after a wall or a failure says "ok" again; a missed
  answer's hash isn't kept past a failed read. A changed page goes to the
  model once an hour at most (MODEL_EVERY_MS). A page that failed (or a
  spent budget) is read again at the next ask after RECHECK_MS.
- Facts are written before the pages' hashes; source_url is cut to 2048.
- A listed page that no longer answers falls back to the usual
  addresses; a probe that is the home page again isn't read as one.
- readPage maps not-HTML, refused and redirect-loop reads to not_found;
  401/403/429 to blocked, 5xx to failed. setFactStatus answers 404 for a
  fact removed meanwhile.
- GET has no bucket of its own (the editor reads it as its tab comes
  back); POST /fetch keeps brandFactsLimiter.
- 00269: each kind's value checked (amount ≥ 0, currency, days, year),
  source_url http(s) only, a member's reviewed_at within a minute of now.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content): check a page's prices against approved brand facts in Trust, with an Approve to-do (CE-047, part d)

Trust's "consistent with brand facts" (10 points, phase 2): the page's
prices, trial and founding year against the brand's approved facts still
on its site, read so as not to cry wolf: a price in its own currency
only, against a plan's prices (any of them: monthly and annual billing
both count) when the sentence names the plan, else only when it names
the brand (or "we") with a period; "from $29" against the lowest price;
no sentence naming a competitor; discounts, scales and ranges aren't
prices. Like a working link, it doesn't score Trust on its own.

- A mismatch is Quality's suggestion, "Price differs from brand facts ·
  Page $39 · pricing page $49", with Show on its sentence.
- "Approve {n} brand facts" is the person's to-do while facts wait, with
  Review linking to Brand settings › Brand facts (the to-do row and the
  next-step nudge, not Settings › Authors).
- useBrandFacts reads them once with phase 2 and again when the tab
  comes back from Brand settings; the next-step reads wait for it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): give Brand facts' reads their time, keep the list right after a review, and do one thing at a time (CE-047, part c review)

- settings/layout.tsx sets maxDuration 300: the first read and Read
  again wait while the API reads the site (pages, then the model).
- A review updates the list in place (no read that could read the whole
  site again); a failed one reads the list as kept, a fact a read
  removed meanwhile gone from it. Approve, Reject and Read again don't
  run at once; the row being saved says so (aria-busy).
- An API with brand facts off says they aren't available yet; a thrown
  action shows the failure instead of loading for ever.
- Page links read as the page's name; sections are labelled by their
  heading; the quote marks and the page status separator are messages;
  "missed" and the paused note say when the read comes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): leave a short page's facts alone, read a code or scale after a price, and read brand facts once at a time (CE-047, part a review 2)

- A page under 200 characters (one its scripts write, a wall not told
  apart) leaves its facts as they are on every read, not only the first.
- A currency code or a scale right after a quote is read ("$49" then
  "CAD per month" is CAD; "$2" then "million" is no price); only "off"
  right after a price drops it (the next card's "Save 20%" doesn't). A
  period is named within 24 characters of the price, the first one
  named; "per active user" is per seat.
- A plan's name matches as whole words ("Pro" isn't in "Product"); a
  quote isn't taken inside another mark's dollar ("C$49") or a
  space-grouped number ("299 €" in "1 299 €").
- factText counts words toward its length, not indentation.
- A page whose model read failed waits MODEL_EVERY_MS like any other;
  a GET reads a failed page again behind its answer, not before it.
- New facts get the room the removed ones leave; a page whose new facts
  didn't fit keeps its old hash, to be read again. A kind no longer read
  (a shop's product page) loses its row.
- refreshOnce: one read per brand at a time, for the tab and the weekly
  read alike.
- 00269: a missing key is a check violation, and numbers compare as
  numeric (no cast error).

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): cry no wolf on brand facts: plans named as written beside the price, the brand's own trial and founding year only (CE-047, part d review)

- A price is compared with the plan named nearest it, its name as the
  page writes it (case too); a plan that is an everyday word ("Pro",
  "Team", "Free", "Growth") only beside "plan"/"tier" or with the brand
  named. With no plan, only a sentence naming the brand and saying what
  it costs; no "we/our" path. Free ($0) is never compared; "from $19"
  matches any approved price.
- A sentence with an old price, a saving, a discount, credits, tax or a
  team's bill ("was $49", "incl. VAT", "5 users pay") isn't read for
  prices; "billed monthly/annually" narrows to that billing.
- Ranges need a number before the dash or word (French "à", Turkish
  "ile", "between … and"), so "Pro – $49" is a price again; an amount
  doesn't start inside a number.
- A trial is compared where it is the brand's ("your free trial",
  "every plan", its name), its days right beside the trial; a founding
  year right after "founded", with the brand named or "we were founded".
- Each sentence once. The to-do is last (the brand's, no points of the
  page's), "Review your brand facts" at 0 and "reviewed" when done.
- useBrandFacts fails instead of loading for ever when the action throws.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content): read a page's visual proof spots and proof asks in one AI pass, kept by its hash (00270, CE-049, part a)

Quality phase 2, CE-049 (spec §4b), the server: one model read of the
whole page, with its page type, the brand's business type (B2B, B2C,
e-commerce) and the brand's approved claims about itself (CE-047):

- spots: where one specific image the business can take itself would
  prove a paragraph ("A photo of this backpack on a real hike"); kept
  only on a paragraph, list item or quote, in its own words, plain text,
  not generic (EN/TR/DE blocklist), naming the page's own thing (a word
  shared with its passage or headings), one an H2 section, three a page;
- proofs: the business's own claims whose proof only it has (award,
  certification, research, rating, ranking, number, test, customer case,
  else unknown), in the paragraph's words, not where it already links
  out; a customer case on a B2C or shop page only when the claim names
  one;
- regulated (health, finance, legal) on a B2C page.

00270: content_quality_pages (server-only, by page hash; items name
their paragraph by its 00266 hash, so a changed one drops out; missed
answers read again after a day) and content_draft_own_images (a member's
"this is my own image", as themself, 50 a draft; for part d).

POST /api/content-pages/page-read behind phase 2 with its own limiter: a
changed page read once a minute at most, 20 a day per draft (the shared
cap rises to 110: claims 50, page reads 20, sources at least 40), held
$0.01 as "quality"; a spent budget answers the kept read, paused. Logs
carry no page words.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): ask for the proof of the page's own claims as to-dos (CE-049b)

The page read (CE-049a) names the claims only the brand can prove: an
award, a certification, its own test, a rating, a ranking, a figure, a
named customer. Quality lists each as a to-do while its paragraph has no
link, worded by the kind of proof and the business type (spec §4b), five
open at once in the page's order, checked once linked; Add proof link
selects the claim and opens the link dialog, as Add source does. A link
to the brand's own site sources its own claim in Trust, and a sentence a
proof to-do covers leaves Trust's source suggestion.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): cap a draft's page reads at 20 a day and keep generic image spots out (CE-049, part a)

Review fixes before the PR:
- count the day's page reads on the row (day_reads, day_started_at):
  20 a draft, within its shared Quality calls;
- an image naming only words every business page has (product, team,
  customer, dashboard) anchors nothing; generic patterns read with the
  Turkish "İ" folded; logo and illustration patterns narrowed;
- keep proofs in a block that links out (the editor checks them off), so
  removing the link brings the ask back;
- a customer case on a shop or consumer page needs case words or a named
  customer; a count asks for its source; kinds and regulated normalised;
  one claim inside another of its block is dropped;
- a kept read is re-mapped for the business type as it is now;
- two asks at once are each mapped to their own page, the older pending;
- the hash covers what the model reads (headings cut at 300, the 16k
  cut, the brand's facts in any order, no addresses); facts ordered by
  first_seen_at, id;
- each block keeps its H2's words (an empty H2 shifted the lookup);
- own-images cap trigger: advisory lock, a re-confirm passes ON CONFLICT;
  spots and proofs up to 8 KB.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): keep a proof to-do when its link adds a space, and let Next step wait for the page read (CE-049b)

Pre-push review fixes:
- match proof asks and Trust's own-site proof by their words without
  spaces (a link put on a claim adds one at its edge), so the row is
  checked, not lost; a block's claims in their order;
- an own-site link sources only the proof claim's sentence, not the
  block's other figures;
- usePageRead says when its first answer is in (settled): Next step
  drops a stale skip only after it; a failed ask clears pending;
- Next step reads each proof to-do by its key; proofKey names the block
  by a short hash; had holds only the to-dos shown open;
- Before you publish names the claims a proof to-do covers again;
- "license".

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): hash a page's blocks by their words without spaces, so a link on a claim reads nothing new (CE-049, part a)

A link put on a claim adds a space at its edge ("roll -top"): the page
and its block were read as changed, a paid read within the minute's
pending dropped the block's items. Blocks and the page are now hashed
without spaces; the kept read maps to the block as the page has it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): show visual proof spots in the draft's margin, with Add image (CE-049, part c)

The page read's visual proof spots (#1467) stand beside their passages:
from 1120 px a card with the image to take, "For: “{passage}”" and Add
image; narrower a 20 px marker in the page's padding. A widget
decoration, never the page's (no save, export, copy or CMS push has
it), placed again only when the spots or the page change; hidden while
the agent changes the page. A spot goes once an image follows its block.

Add image takes the image by its https address, the alt text drafted
from the passage (required) and an optional caption (an italic
paragraph), put in right after the passage's block; a passage gone
meanwhile says so.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): confirm the page's own images, E-E-A-T's visual proof (CE-049, part d)

Only the person can tell their own screenshot or photo from stock: a
confirm step, never a pass (spec §2.1, 10 points in phase 2).

- eeat({visual}): an image confirmed own scores 10/10; images or an open
  visual proof spot with none confirmed 0/10; neither leaves it out. In
  phase 2 E-E-A-T waits for it, so the score doesn't move once it lands.
- To-do "Show your own image": Confirm (the page's images, thumbnails
  with no referrer, "Our own image, not stock") or, with no image and a
  spot open, that spot's Add image; the nudge offers it too.
- Add image gets "This is our own image…, not stock".
- getOwnImages (fails soft) and confirmOwnImage (as the member, the
  database's now, once; full at 50) on 00270's content_draft_own_images;
  a confirm shows at once and only it is taken back on failure.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): ask regulated pages for a qualified reviewer, from Authors (00273, CE-049, part e)

A consumer page that advises on health, finance or law (the page read's
regulated) asks for a qualified reviewer, from Authors only (spec §4b).

- 00273: content_drafts.reviewer_id → content_authors (set null), a
  trigger checking they are the brand's organization's (as 00257's).
- Header: "Reviewed by {name} ▾" beside the author (amber "Add
  reviewer" while none), shown when regulated or set; the title is the
  credential. A failed save rolls back only the latest pick.
- Quality to-do "Add a qualified reviewer" (what the page advises on,
  Pick reviewer / add one in Settings › Authors), after the proofs, once
  the authors are read; the nudge offers it.
- Page info strip: "Reviewed by {name}, {title}".

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): tie a brand fact's figure to the brand, one price per plan

Review fixes on the brand-facts check (CE-047):
- a price with no plan named is read only right after the brand's name
  and a pricing verb; "was founded" needs the brand, "we" or "our
  company" right before it; a sentence with two trial lengths is skipped
- each named plan takes the one price nearest it, skipped when another
  price sits between; add-on words ("extra", "additional", "add-on")
  aren't prices
- the next step no longer waits for the brand's first site read; the
  brand facts' to-do joins when it lands

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): keep a linked proof to-do checked, ask the page read past the API's minute

Review fixes on the proof to-dos (CE-049, part b):
- a proof ask's key hashes its block's words without spaces, so a link's
  edge space on the next read keeps the to-do checked and the nudge quiet
- the page read asks a few seconds past the API's minute, which counts
  from when the last ask reached it, so it isn't answered "pending"
- the hook's constants are PROOF_READ_*, apart from the panel's
  PAGE_READ_DELAY_MS

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): take only https image addresses up to 2,048 characters in the proof image dialog

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): pair plan prices closest first, keep a trial to the brand's part of a sentence

Pre-push review fixes on the brand-facts check:
- each plan takes its nearest price, the closest pairs first; a sentence
  with more prices than plans named isn't read for prices
- setup, onboarding and one-time fees aren't a plan's price; with no plan
  named, only the plan or pricing may sit between the name and the verb
- a trial is read in the part of the sentence that is the brand's, and a
  length said of another ("Ledgerly's runs for 14 days") makes two
- "was founded" needs who at the start of its clause, and "we" outside
  quoted speech
- stale Next step skips wait for the brand facts again: only the dropping
  waits, and a proof skip's Trust can move when they land

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): key a proof to-do by its claim's words without spaces too

The API cuts a claim from its block as the page has it, so a link's edge
space changes the claim as well as the block.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): read a sentence's prices only when they match its plans one to one, a partner's trial apart

- prices are read only when the sentence has as many as plans named (one
  with none named): a plan beside another's price, or a monthly and an
  annual price with no plan, are unsure
- ", which/who/whose" turns to another subject: a partner's trial isn't
  the brand's
- "Ledgerly's trial runs for 30 days" is read as the brand's trial

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test(content-editor): let the page read land before the stale-skip check in phase 2

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): score the page read's AI checks: who/how/why, balance, disclosure, answer first (CE-050, part b)

The page read's checks (#1478) count in Quality, each tagged "AI check":
- E-E-A-T's who / how / why on pages a reader trusts more for it, as a
  to-do ("Say how you made this page", Add input)
- Trust's balance and disclosure where they apply, as suggestions with
  Show on the passage that puts the brand forward; neither scores Trust
  alone
- Readability's answer first takes the model's verdict while its
  paragraph is still the first, 60 words or fewer to pass
Left out before the first read, while the budget or the day's reads are
used up, not found on a page read in part, or read for another page type;
a type change asks again; an edited find holds while the page is read.
Answer first reads past a byline or a date under the H1, as the API does.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): word the disclosure suggestion plainly

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): ask for a disclosure in Before you publish, with Add line (CE-050, part c)

Where the page puts the brand forward (the page read's disclosure check),
Before you publish has a Disclosure row: what the page says, or Add line,
a line in the page's language (disclosureText) the person adds; Export's
Before you publish line names a missing one. Export doesn't add it on its
own: whether the page recommends the brand is an AI read.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): put the disclosure line under the opening paragraph, once, in neutral words

Pre-push review fixes:
- the line goes under the page's opening paragraph (past a byline), so
  the answer the H1 gets first stays first for Answer first
- not offered twice: a page that has the line already shows it added
- not while the HTML view holds the page, whose source is what goes out
- the H1 is the page's first one with words, not only its first node
- the lines say the product is offered by the brand (a service or
  software too), with no gendered article; "without a disclosure"

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content): hand a draft's open Quality checks to the Content Agent in one run (00275, CE-051, part 1)

POST /api/content-drafts/:draftId/handoff (Quality phase 2): the editor
sends the page's fixable checks by key, with what each names on the page;
the server says what each asks and runs Fix open rules as one run of kind
'handoff', its suggestions left for review. The editor's details are no
fact the agent may write, and a placeholder stays the person's.

00275: content_agent_runs.kind 'handoff' and origin (person | auto), an
automatic hand-off once a draft; brands.content_quality_handoff (off by
default) and content_drafts.quality_handoff, the brand's setting copied
when the draft is made. An automatic run on a draft its brand doesn't
hand off is 409 not_due, a second one 409 already; one the AI budget stops
before it begins is taken back, to run once the budget renews.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(settings): add Settings › Content with Hand off quality fixes automatically, per brand (CE-051, part 2)

With Content Editor Quality's phase 2, Settings has a Content section: per
brand, Hand off quality fixes automatically (brands.content_quality_handoff,
00275, off by default). Admins and managers change it; anyone else sees it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): let a hand-off link the draft's sources and write the brand's approved facts

Pre-push review fixes:
- the source checks (claims, fresh, weak, primary, broken) read the
  draft's sources as link targets, so the agent can link one
- trust:brandFacts writes the brand's approved facts, read on the server
- a placeholder is read in the passage before and after the change: a
  "before" that cuts into its brackets doesn't fill it
- the person's own rules are no fact a hand-off may write either
- not_due first; a person's run writes no origin (the column's default),
  so a database before 00275 takes it; a run not taken back is failed

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): skip an automatic hand-off once its brand turned the setting off

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(settings): show a saved hand-off at once, end the wait with no workspace, say what turning it off does

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): hand the page off to Content Agent from Quality, in one run (CE-051, part 3)

Quality has a Hand it off to Content Agent card under its scores: it sends
every open suggestion (#1481's fixable checks), each with what it names on
the page, and the agent leaves its fixes as one batch to review, on the
same card, steps and Stop as Fix open rules; the to-dos stay the person's.
The disclosure goes only with its line in the page's language.

Fix open rules and Hand off share what they send besides their items
(agentContext) and how their answer is told (runAgentFix).

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): hand off only what the agent's checks ask, each card on its own run (CE-051)

- A suggestion that asks the other way to its check (sentences too short,
  a page too simple) stays the person's: the agent is told shorter and
  easier.
- Fix open rules and Hand off each show their own run; the other card
  waits, saying the agent is at work.
- The disclosure isn't sent once its line is on the page; Hand off waits
  for the page's read after a save when it sends what AI read
  (usePageRead's behind), and while claims are read.
- The passage is cut to fit, never the disclosure line.
- A full hand-off says to hand it off again; the API's 'off' is said.
- The blocked reason is the button's description.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): count each placeholder a hand-off would drop, and run one fix at a time (CE-051)

- dropsPlaceholder counts each placeholder before and after the change,
  read in what is kept (the new words and the blocks after them): filling
  one of two "[figure, source]" in a passage is dropped too. In a heading
  only the agent's own forms count, as the editor reads them.
- A hand-off's prompt says to leave every [placeholder] as it is.
- Fix open rules and a hand-off are refused with 409 `running` while
  another fix or hand-off on the draft is under way (fixUnderWay).

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): read a plan's price only right after its name, and a trial only after the brand's (CE-047)

- A named plan's price is read as the brand's is: right after its name
  (with its plan or tier word), with nothing, "is", a colon, a dash, "("
  or a pricing verb between. A price compared within a few words after it
  ("$30 more than", "$20 less … than") is read for no one, and "saves",
  "saved", "saving" are a saving.
- In a part of the sentence that is the brand's, only a trial length after
  its name or "your trial", "every plan" is its own; "free for N days" is a
  trial only after "try"/"use" and the brand, or in a sentence that says
  "trial".
- "We were founded" starts its clause only at the sentence's start or after
  since/when/after/and, not after a colon (quoted speech).
- In phase 2, the Quality score also waits for the brand's facts.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): hold the Quality score until the page as saved is read for proof (CE-049)

usePageRead counts a save it hasn't asked about yet as reading, as
useClaims does, and waits only for changes on their way (the editor's
narrower `saving`), so a failed save, a conflict or a page too large
doesn't hold it. In phase 2, qualitySettled waits for the page's read.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): hold the Quality score for the visual proof, and score when the own images can't be read (CE-049)

- qualitySettled waits for E-E-A-T's visual proof in phase 2 (the page's
  read and the own images), so the chip doesn't settle on Trust and
  Readability and move when the read lands. The page read already waits
  only for changes on their way (#1468's `saving`).
- A failed own-images call counts the confirms made so far, so E-E-A-T
  scores and Confirm opens.
- The visual proof to-do is listed when Your input can't be read too, in
  its place.
- E-E-A-T takes both the visual proof and the author confirmations.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): hold what the page read found until the edited page is read again (CE-050)

- aiChecksOnPage holds a find whose paragraph changed while the page as it
  is now is still to be read: changes not saved yet, a save not asked
  about (usePageRead's reading, #1468) or an ask out. The passage that puts
  the brand forward still applies then, and Answer first's verdict is held
  (`held`, which readability takes over the block match).
- The editor, a save and a restore detect the page type with the existing
  page's address, as Start did, so the read's type and the editor's agree
  from the start.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): put the disclosure line past a hero image, and count it before the next read (CE-050)

- Add line looks for the opening paragraph past what has no words (an
  image, an empty paragraph), as Readability and the page read do, and a
  byline or a date: the answer stays first for Answer first.
- While the page has the line Add line put in, the disclosure counts as
  found (Trust, Quality's suggestion, Export's line); Before you publish
  still says it was added until the page is read again.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): wait on the page's read only where it moves what Hand off sends, and say `running` (CE-051)

- usePageRead's reading now counts a save not asked about yet (#1468), so
  the hand-off's own `behind` flag goes. Hand off waits for the page's
  read before its first answer, or after a save while it sends what AI
  read of the page (Answer first, the disclosure, balance); not after
  every save.
- The API's 409 `running` (another fix or hand-off on the draft, #1481)
  is said, for Fix open rules too.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): hand a brand's imported and agent-written pages off on their own, and list hand-offs in History (CE-051, part 4)

- A draft its brand hands off (Settings › Content, copied at creation,
  quality_handoff) whose page came from elsewhere (imported to optimize,
  or the agent's) goes to Hand off on its own, once: when Quality is
  settled and nothing holds Hand off (open suggestions, the agent at work,
  a spent AI budget, the reads, the HTML view). The editor reads whether
  the draft had its automatic run (readAutoHandOff); the server's row is
  the claim, and its `already` / `not_due` aren't said.
- History lists the draft's hand-offs of the last 90 days among the
  versions by time, who started each, how it ended and its checks, with
  nothing to restore (getDraftHandoffs).

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): keep the automatic hand-off quiet and off published pages, and read History's hand-offs as they ended (CE-051)

- The automatic run says nothing when it doesn't run or finds nothing
  (only logged); a published draft, or a brand that stopped handing off
  (readAutoHandOff reads its setting too), doesn't run it at all.
- History: a run stopped before its outcome was written reads as
  stopped, one left past RUN_STALE_MS as failed; a done run with no
  change says so; rows sort by time, not by the timestamp's text.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): weigh Quality's checks by the page type, and say which (CE-052, part a)

Phase 3 of the Quality spec (§11): the three scores keep their names, but
what each counts, and how much, follows the page's type.

- quality-profiles.ts: each page type reads as an article, product,
  category, feature or comparison profile (an article before Phase 3 and
  for the types §11 doesn't name), each with E-E-A-T, Trust and
  Readability weights; the article's are the blog defaults. `weighed`
  re-weighs a score's checks (each keeps its share of its points; a weight
  of 0 leaves the check out and rescales the rest).
- The editor weighs Readability, E-E-A-T and Trust for the page's type;
  Trust's unscored gains count out of the type's Phase 1 points.
- To-dos for checks the type leaves out aren't listed: a product, category
  or feature page goes out under the brand's byline, so no author to-dos,
  Export's "No author yet" or Before you publish's missing author.
- Quality says "Checks and weights for {type} (detected): …", with Change
  opening the header's page type menu.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): score Trust and ask for a disclosure only as the page type counts them (CE-052)

- Trust is scored after weighing, as trust() scores it: a type that
  leaves freshness out isn't scored by its links and site alone
  (weighedTrust).
- An unscored Trust gain for a check outside Phase 1's (brand facts)
  counts out of its own points too.
- A category page's E-E-A-T weighs the brand's own information (its site's
  trust, `brandInfo`) beside its own images, not all or nothing.
- Where the type leaves the disclosure out (product, category, feature),
  Before you publish and Export don't ask for one.
- Change has an accessible name.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): count the page type's own rules and a product page's shipping and returns in Quality (CE-052, part b)

- Readability gains one check on the types that weigh it: the page
  type's own rules as the Rules tab reads them from the page (a specs
  table, a side-by-side table, an intro, a buying FAQ, how-to steps), their
  share met; ones read by AI or a feed, or turned off in Rules, aren't
  counted (withTypeRules). Its suggestion names the rules not met; Hand off
  takes it too (readability:typeRules, on both sides).
- Trust reads whether a product page says how shipping and returns work,
  or links where they're told (shippingOnPage: en, tr, de, fr, es), as its
  own check there. Only the person knows them: a to-do, not a suggestion.
- The profiles' Readability and Trust weights make room for both.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): read shipping and returns in a policy's terms, and tell the agent each type rule's aim (CE-052)

- shippingOnPage reads the page's HTML, headings too, for a policy's
  terms ("free shipping", "delivery in 2 days", "30-day returns",
  "iade"), not "ships with a cable", "in return" or "return on
  investment"; Turkish capitals ("İade") and links like
  /shipping_policy, #versandkosten, /reembolso count.
- The type rules check carries each rule's aim and how the page reads now
  (shared with Fix open rules: aimAndNow), so Hand off tells the agent
  what to meet; a table of facts gets only the facts given, placeholders
  for the rest.
- Fit questions are read in English only: another language's page isn't
  scored on them (the Rules tab says so, as for the definition rule).
- The product and category lines name what they count.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test(content-editor): name the product line's new checks in Quality's test (CE-052)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): ask a comparison to show when it was last checked, with Add line (CE-052, part c)

Spec §11 wants a comparison's check date visible. E-E-A-T reads one on the
page (a "checked/tested/updated" word with a year from the last two, in
the nine languages the disclosure has) as its own check, weighed on
comparisons (20). Only the person knows when they checked, so it's a
to-do: "Show when you last checked", whose Add line (in Quality and the
nudge) puts "Last checked: {Month YYYY}." in the page's language under
the opening paragraph, where the disclosure goes (addLineUnderAnswer). A
language without a line asks the person to write it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): read a check date as a label too, and replace a stale one (CE-052)

- The check date is read as a verb or a label ("Last update", "Son
  güncelleme", "Letzte Aktualisierung", "Dernière mise à jour"), each word
  at a word's start ("areas of", "untested" aren't one), Turkish capitals
  too; in a block longer than a label, the year must be near the word.
- Add line replaces a check date the page has already (an old one) rather
  than adding a second, and isn't offered while the HTML view is open.
- The line has no full stop, so Answer first reads past it as a date.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): confirm a customer case may be published, not just link it (00279, CE-052, part d)

Spec §11: what Quality can't verify becomes a confirm step, never a pass;
customer logos and cases need the customer's permission to publish, which
only the person knows.

- 00279 content_draft_confirmations: what a member confirmed that only
  they can (a customer case; category intro facts next, CE-054), by kind
  and key, with who and when; members read their drafts' and insert as
  themselves, now; 50 a draft; no update or delete.
- In Phase 3, a proof ask of a customer case is that confirm ("Confirm you
  may publish the customer case …", Confirm in Quality and the nudge),
  done once confirmed, linked or not.
- E-E-A-T counts the share of the page's customer cases confirmed
  (customerCase), weighed on feature pages (25); E-E-A-T waits for the
  confirms' read in Phase 3.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): key a customer case's confirm by its claim, and keep its sentence the person's (CE-052)

- A confirm is keyed by the case's claim alone (caseKey), so fixing a typo
  in its paragraph keeps it, and re-confirms don't fill the 50.
- A customer case's sentence, confirmed or not, stays out of Trust's
  agent-fixable suggestions: Hand off never sources or removes a case the
  person confirms (QualityRead.caseSentences).
- A case's to-do waits for the confirms' read (casesRead), so one
  confirmed before doesn't show open; E-E-A-T waits for it too, and a
  failed read counts the confirms made so far.
- The feature line names the customer cases it counts.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): give a product page its Product schema with the price it states (CE-053, part a)

Spec §11 (Phase 3): a product page's schema is Product + Offer. Before you
publish gives it on product pages, from the page as written:

- name from the title (left out while it has a placeholder), description
  from the opening paragraph (past a byline, up to 500 characters), the
  person's own images (CE-049) else the first, the brand;
- the price the page states (pageOffer): one price is an Offer, several in
  one currency an AggregateOffer; an old price, a saving, an add-on, a
  shipping threshold or a minimum order isn't one.
- A page that states no price (or prices in more than one currency) gets
  no code: the row asks for the price, or a product feed. Availability,
  SKU, GTIN and reviews wait for a connected feed and reviews; none is
  made up.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): read a product's price by the words around each amount, and give no Product without its name (CE-053)

- Product needs a name: no code or Copy without one, and a row saying so.
- Each amount is judged by the words just before and after it, not the
  whole sentence: a sale keeps its price ("$129 (was $159)"), a threshold,
  shipping, financing, a unit price, a bundle or an add-on drop only their
  own amount, and a tax-inclusive price or "Extra large" stays a price.
- A range ("$119–$139", "119–139 €") gives low and high (priceRanges);
  no offerCount, as a price can stand for several offers.
- A placeholder in the opening paragraph leaves the description out.
- Export's Before you publish line names the Product schema; the note
  says a "$" reads as US dollars.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): give a product's price only where the page states one, and ask which where prices differ (CE-053)

A price in the Product schema is pasted as the product's, so nothing is
guessed:
- Prices that differ (sizes, or an amount the reading missed) are no
  range: Before you publish lists them and asks for the price once, or
  as a range written as one ("$119–$139").
- An old price ("Regular price", "Original price", "reg.") counts only
  where the page gives no other; "au lieu de", "antes", "bisher",
  "eski fiyat" are old prices too.
- An amount added to the price ("+ $9.95 shipping", "zzgl. 4,95 €
  Versand", "$4 tax"), a saving, a worth or a reward ("save up to",
  "worth", "$30 value", "in rewards", "trade-in") and a threshold
  ("Versand ab 50 €", "Min. order") aren't the price.
- Free shipping is no bill ("with free shipping costs $129").
- "Ridge 28 $129" is $129, not 28 $; "Ridge 28 – $129" is a price.
- A range with one currency needs a dash and no space ("$119–139"), and
  no word joined to its end ("$19 - 100% cotton", "$25-30-day").
- A range by the month ("10–20 € pro Monat", "monthly") is a plan's.
- Export names the Product schema only where Before you publish has its
  code.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): read a price's currency where it's written, and ask about "from" prices and loose ranges (CE-053)

- A currency after an amount stays with it unless a digit follows at
  once: "129,00 € 159,00 €", "999 TL 3 taksit" and "Pro 49 € 10 Nutzer"
  read the right amount (Trust's brand facts too).
- "$129.00 CAD": a code after a sign says whose dollar it is.
- A range with one currency and a spaced dash or a word ("119 – 139 €",
  "$119 to 139") is no longer read as one of its ends: it, "From $119"
  and other prices the page gives are listed for the person to settle.
  "$129 – 150 reviews" and "€20 – 30 Tage" stay one price.
- "Regular" or "Original" alone is a size; "Regular price" is an old
  price only beside a lower one in its block.
- "S24+: $999.99" keeps its price; "3 min. $129" isn't a minimum order.
- Thresholds and savings in more languages ("über", "superiores a",
  "supérieure à", "orders $50+", "Sie sparen", "Économisez", "3 Raten à",
  "3 plazos de").
- Prices that differ are listed once each ("$129" and "$129.00"), five
  at most.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): check a product page's price, GTIN and stock against its product feed (CE-053, part b)

Spec §11: a product page's Trust counts "Price and stock match the feed /
Merchant Center". The feed is the brand's catalog (00278, #1263): the
page's product is found by its URL (an optimize draft's, as feeds write
it: no www, trailing slash or query), else by its title when one product
has it (getCatalogMatch; members read the catalog under its RLS).

- feedCheck compares only what both state: the page's price (one, or a
  range's low and high, a sale price counting as the price now, in the
  feed's currency), a GTIN the page gives (EAN, UPC; leading zeros don't
  count), and its stock ("In stock", "sold out", "Stokta yok"…).
- Trust: new feedMatch check, the share that matches, weighed 30 on
  product pages (the most there: claims 25, brand facts 10, links 5, site
  10, shipping 10) and 0 elsewhere; left out, the rest rescaled, where the
  feed doesn't have the page's product.
- Quality names what differs ("Price differs from your product feed ·
  Page $129 · Feed $119") with Show on its sentence; the person checks
  which is right, so Hand off leaves it. With no feed, or no product in
  it for the page, a line says the price and stock aren't checked.
- Rules: "Price, GTIN and stock match the feed" reads the same check (met,
  differs, not in feed, nothing to compare) instead of always "Needs feed",
  and isn't sent to the agent.
- types/supabase.ts: catalog_products and catalog_variants.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): ask about a price a number may be written onto, and show the price read for the person to check (CE-053)

- A space between digits ("PlayStation 5 549,99 €") or a sign after a
  whole amount with a number next ("Ridge 28 € 129") may be another
  number's: the price is listed for the person, not guessed. Cents tie a
  sign to its amount ("129,00 € 2 Jahre Garantie" is 129 €).
- "CAD $129", "MX$1,299": a code before a dollar sign says whose;
  "CHF 1'299.–": an apostrophe groups thousands.
- "From just", "As low as", "begins at", "A partir de", "A partire da",
  "Vanaf", "Ab nur", "'den başlıyor" are from-prices: asked about.
- An old price is dropped only beside one lower price in its block, at
  least 40% of it ("Regular price $129 Unit price $12.90" keeps $129).
- A member's, a subscriber's or a code's price, a unit price ("Grundpreis",
  "/ per 100g"), PayPal's Pay in 4, a balance and an "indirim" amount
  aren't the price.
- A price beside a range must be one of its ends: another product's range
  isn't the product's.
- Before you publish names the price it read ("Price read from the page:
  $129. Check it's the product's.").

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): read a product's stock and GTIN as the page means them, and look its product up by the catalog's index (CE-053)

Pre-push review of part b:
- Stock: "back in stock", "not / no longer in stock", "stokta değil",
  "Stokta kalmadı", "plus en stock", "nicht mehr vorrätig" are out of
  stock; a shipping policy ("items in stock ship in 24 hours") and "ships
  today" say nothing of this product's.
- GTIN: the code alone, hyphens allowed but never across a space, and only
  one with a GTIN's length and check digit ("UPC 012345678905 12 months"
  is the UPC).
- A page at the feed's regular price matches while the feed still has a
  sale price: the sale may be over.
- The URL lookup reads the brand's live products only (their index), the
  path as written and as an address encodes it ("/ürün"); a removed
  product isn't matched; variants come by price; a "*" (PostgREST's
  wildcard) isn't looked up.
- A product found by its name is used only while the title is that name.
- Rules: "Reading feed" while the catalog is read; the agent's message for
  the feed rule says to check the page or the feed, not the extra H1s'.
- Trust is scored from a product page's feed check too.
- "no product feed is connected for this brand yet": there's no screen to
  connect one yet.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): score a product or category page's Trust from a compared price, and wait for the site before a category's E-E-A-T (CE-052)

Review on #1491:
- Where brand facts weigh as much as sourced claims (product and
  category pages), a price compared with them scores Trust: a page with
  every price wrong no longer reads "Not scored yet" and passes Before you
  publish's gate. weighedTrust scores by the weighed checks (trust()
  leaves it unscored by its own). The article (10 to 30) is as it was.
- A category page's E-E-A-T waits for the site's trust, its 40 points of
  the brand's own information (waitsForSiteTrust), so it doesn't jump.
- Copy: a page type under the brand "goes out under {byline}" (Ansvisor
  gives no schema for it); the category line names the brand's own
  information and no longer promises an intro check.
- QUALITY_WEIGHTS_VERSION is gone until calibration reads it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): read a buying FAQ and a product's shipping and returns in the page's language, and ask for fit only where there are sizes (CE-052)

Review on #1494:
- The buying FAQ (and the FAQ rule) is found under its heading in German,
  French, Spanish, Turkish (lowercased the Turkish way), Italian,
  Portuguese and Dutch; another language's page isn't told its FAQ is
  missing (English only), so Hand off never adds one it has.
- shippingOnPage reads the ways shops state their terms: a heading that
  names the policy with text under it ("Delivery & Returns", "Returns &
  Exchanges"), delivery with a time or a cost ("Standard delivery 3–5
  working days", "Free UK delivery on orders over £50"), "Returns are
  accepted", "Expédition sous 24h", "Entrega en 24/48 horas", "Reembolso",
  "Retoure", "Umtausch", "satisfait ou remboursé", "teslim edilir",
  "değişim". Not a bare "shipping" ("Shipping weight"), a product's link
  ("/collections/delivery-bags") or a product named for it ("kargo
  pantolon"). A page in a language the words aren't written for is read
  by its links, and isn't asked without one.
- Answer fit and sizing questions counts only where the page has sizes or
  asks about them ("No sizes" for a coffee grinder).
- Hand off: an answer the page and the data don't give (fit, sizes,
  shipping, returns, prices) is a placeholder, never made up.
- Product Trust weighs brand facts 30 and sourced claims 25 (was 25 and
  30), so a compared price scores a product page's Trust as #1491 makes it.
- The feature and comparison lines name their type rules.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): replace only Add line's own old check date, and read a check date in the words that mean it (CE-052)

Review on #1495:
- Add line replaces only its own line from before: a top-level paragraph
  that is one of the nine labels, a month and a year, and nothing else
  (isCheckDateLine). A byline ("By Jane Doe · Updated March 2023"), the
  answer ("We tested 9 CRMs in 2024; …"), a body paragraph or a list item
  stay the person's; the line goes under the answer instead.
- The check date's words in the forms that mean checked: "verification",
  "updates" and "kontrolü" aren't one; "Letzte Prüfung", "Actualisé le",
  "Testato", "Last modified", "Verificado" are.
- The to-do says when the page's date is over a year old ("Update when
  you last checked"), and whether Add line replaces it or the person's
  old date needs updating too (checkDateOnPage).
- The nudge says to check the products first ("show when you last
  checked, once you've checked the products").
- The comparison line names the check date.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): match a customer case's confirm by its words, keep its Trust share in sight, and hand off around it; move the migration to 00280 (CE-052)

Review on #1496:
- 00279 is #1493's (the catalog's sources): the confirmations migration is
  00280 now (file, header, table comment, schema.sql, comments). Its header
  says the key is the claim's words.
- A confirm counts for its case by its words, not the exact slice the page
  read picked (caseConfirmed): a confirmed claim's words in the case's
  sentence, or the case's claim in a confirmed one's (12 letters at least,
  so a name alone isn't a case). Used by the to-dos and the editor's count
  and open cases alike: a second read picking a longer slice keeps the
  confirm, and spends no other row of the 50.
- A case's to-do says when linking the published case still raises Trust
  (+N Trust), confirmed or not: its sentence is an unsourced claim until
  it's linked.
- Hand off sends the cases' paragraphs as locked passages: the server
  already drops any suggestion that changes one (keepSuggestions), so the
  agent never sources, softens or removes a case the person vouches for.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): read "back in stock" and Turkish stock as meant, find a variant's own page, and link where a feed is connected (CE-053)

Verifying part b's review fixes:
- "Back in stock!" is in stock; only "email/notify me when it's back in
  stock" is out. Turkish forms with endings ("stokta yoktur", "stokta
  bulunmamaktadır", "stokta mevcut değil") are out, and no longer read as
  in. A shipping policy ("items not in stock ship in 3 weeks") says
  nothing, read before the rest.
- The URL lookup reads the path in its own case ("/Über"), then, when no
  product's URL is the page's, its variants': a product's URL is its first
  item's link (#1493's sync), so a variant with its own page is found by
  its own. 00281 indexes a brand's live variants for that read.
- A page range at the regular prices matches while the feed keeps an old
  sale; "EAN-8" is a label; all zeros is no GTIN.
- "No product feed is connected" links to Settings › Integrations, where
  #1493's product catalog card connects one.
- Product Trust: sourced claims 20, brand facts 20, the feed 25 (links 5,
  site 10, shipping 10, primary 5, weak 5): brand facts weigh as much as
  claims, so a compared price still scores Trust (#1491's review) while
  the feed weighs most.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Cihan <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
gkhngyk added a commit that referenced this pull request Oct 25, 2026
…ts it links (CE-054, part a) (#1499)

* feat(content): read what kind of source each link is, and underline the weak ones (CE-046, part a)

Quality phase 2 (NEXT_PUBLIC_CONTENT_QUALITY_PHASE=2), by rules only:

- sourceClass(): primary (official, research, standards), secondary (news,
  reviews, Wikipedia), weak (forums, social posts, uploaded papers), a
  competitor's page (primary on a comparison) or the brand's own; an
  address the rules can't place is left out (an AI read comes in part b)
- Trust's primarySources (15) and noWeakSources (10); two placed sources
  score Trust on their own
- Quality suggests replacing weak sources (Show, Keep) and adding a
  primary one, once Trust is scored; the editor underlines weak sources
  in amber (a decoration: never exported)
- 00263: content_drafts.kept_sources (≤ 50) and content_draft_keep_source()
- byUrl keeps a link's first place, so Show goes there

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content): read the kind of a source's site the rules can't place with AI (CE-046, part b)

Quality phase 2 (web NEXT_PUBLIC_CONTENT_QUALITY_PHASE and server
CONTENT_QUALITY_PHASE at 2):

- POST /api/content-pages/source-classes reads the sites a draft links
  (as saved) that the editor's rules can't place: the model sees each
  site's address alone and answers primary, secondary or weak; each read
  is kept for every workspace 90 days (00264 content_source_classes); 20
  sites a read, 30 reads a draft a day, its own rate limit
- the reads draw on the AI budget as their own feature, "quality" (00264
  widens prompt_improve_usage.feature): a small hold (holdUsd), left out
  of the median that sizes other calls' holds and the Improve tab's
  estimate; a read cut off by its timeout keeps its hold; Billing lists it
- the editor asks 3 s after a save (useSourceClasses), Trust takes the
  reads for sites the rules can't place, the weak-sources suggestion is
  tagged "AI check", and a spent budget pauses the reads with a note

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): ask only about public site names, keep an unknown read a day, and skip kept sources (CE-046, part b review)

- SITE_NAME (LDH, a dot, a letter TLD; no IP, no single label) in
  keptSite/linkedSites, the editor's unplacedSites and 00264's check; a
  label that reads as words isn't asked about either
- the model may answer unknown, which Trust leaves out; it, and a site
  the model left out, is kept a day, so it isn't asked again (and
  charged) after every save
- a site whose every link the person kept isn't asked about (route and
  editor); a kept link counts in Trust with or without a read
- a failed classifyDraftSources call lets its sites go (.catch/.finally)
- .env.example: phase 2 turns the AI source reads on, from the AI budget

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test(content): size Quality's checks against Starter's $5 AI budget after #1435

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content): read the claims in a draft's own paragraphs with AI, kept by the paragraph (CE-045, part a)

Quality phase 2 (CONTENT_QUALITY_PHASE at 2), server side:

- POST /api/content-pages/claims reads the draft as saved: each paragraph
  and list item long enough to hold a claim; the model finds what a reader
  would want a source for (number, stat, superlative, fact), each claim in
  the paragraph's own words or dropped, five a paragraph at most
- 00266 content_quality_claims keeps the reads by draft and paragraph
  hash: an unchanged paragraph isn't read again, a removed one's row goes;
  the paragraph being written (skip) waits; 12 paragraphs a call, 2 calls
  an ask, one after the other
- the calls draw on the AI budget as "quality" (holdUsd 0.004), and share
  one day's cap per draft with the source kinds' reads
  (content-quality-calls.js, QUALITY_CALLS_PER_DAY 60)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): read the claims by the editor's blocks, short list items too, and keep a missed answer as read (CE-045, part a review)

- draftParagraphs reads p, li, blockquote, td and th as trustBlocks does,
  with ownText's spacing (a line break, sibling paragraphs): the answer is
  { paragraphs: [{ text, claims }] }, so the editor knows each claim's block
- blocks from 12 characters ("Award-winning support"); a call takes 12
  paragraphs or 6,000 characters, whichever comes first
- an answer billed that missed the schema is charged and its paragraphs
  read with none (not sent, and charged, on every save); a kind the editor
  doesn't know drops that claim only; a paragraph answered twice keeps both
- claims leave 10 of the day's Quality calls to the sources' kinds, and the
  route has its own limiter; the reading's version is in the hash; logs
  carry no page words

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content): count the claims in the page's own words in Trust and underline the unsourced ones (CE-045, part b)

The editor asks the API for the claims a few seconds after a save (never
with changes to save), leaving the block being written until the person
leaves it. Trust counts each claim in its own block as a figure, the
draft underlines the unsourced ones in their blocks, and Quality's
suggestion gets Add source (link dialog on the claim's words) and Remove.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): read each source site in its own call, held and counted per site (CE-046, part b review)

One generateObject per site the rules can't place, run together with
Promise.allSettled: no site's name reaches another's read, and a failed
site keeps the others' reads. Each read holds $0.0005; the day's cap
counts sites (SOURCE_READS_PER_DAY = 40). An answer off the schema is
charged and kept as unknown for a day. The route logs an error's name
and message only.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): read a missed answer's paragraphs again after a day, match claims across curly quotes, log no page words (CE-045, part a review)

- 00266 gets a `missed` column: an answer that missed the schema (cut
  short, or blocked by the provider's filter) keeps its paragraphs as read
  with no claims, and they're read again after MISSED_DAYS (1).
- keptClaims compares folded copies (’ ‘ → ', “ ” → ", ‐ ‑ – — → -),
  one character for one, and keeps the paragraph's own span.
- The claims route logs an error's name and message only: a provider's
  error carries the request, the page's paragraphs.
- QUALITY_CALLS_PER_DAY = 90, the claims leaving the sources'
  SOURCE_READS_PER_DAY (40) now that each site is a call: the claims keep
  their 50 calls a day.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): say a spent budget first, read five sites at a time, and log no whole error (CE-046, part b review)

When no site is read, the error thrown is a spent budget's if any (429,
the editor pauses) rather than the first site's. An ask reads its sites
five at a time, so 20 holds and their queries don't go out at once. A
site's hold is $0.001 (the model's thinking is billed as output). The
route's error log keeps the stack, not the provider's request.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): read a missed answer's paragraphs again one a call, after the new ones, and fold more quote and dash forms (CE-045, part a review)

A paragraph whose answer missed the schema is read again after a day in
a call of its own, after the paragraphs not read yet: one the provider's
filter blocks no longer keeps its neighbours unread every day. The fold
also covers low quotes, primes, figure and horizontal-bar dashes and the
minus sign. The claims route keeps the error's stack in its log. Tests
pin the select's columns, both fold directions and the route's log.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content): read a brand's facts from its own pricing, About and product pages, kept for approval (00269, CE-047, part a)

Quality phase 2, CE-047: the brand's prices and plans, trial, founding
year and claims, read from its own site for Trust's "consistent with
brand facts" check. The model finds the facts and copies each one's
words; a fact is kept only when its words are on the page as written,
and its value (amount, currency, period, days, year) is read from them
by rule. A person approves each one.

- 00269: brand_facts (members read, and change only the status, as
  themselves) and brand_fact_pages (server-only: a hash of each page's
  text, so an unchanged page isn't read by the model again; no text
  kept).
- brand-facts.js: findFactPages (page list, Site trust's About page,
  else probes on the main domain; never Scrape.do), factText, keptFacts,
  refreshBrandFacts (new values pending, approved ones gone from the
  site marked gone, pending ones dropped), readBrandFacts (first ask
  reads, asking again every 10 minutes at most), setFactStatus.
- GET /api/brand-facts, POST /fetch, PATCH /:id behind phase 2, with
  their own limiter; logs carry no page text.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content): review and approve brand facts in Brand settings (CE-047, part c)

Brand settings › Brand facts, with Quality's phase 2: the facts the API
read from the brand's own pricing, About and product pages, each with
its words on the page, where it was read and the approved value it would
replace ("Was $59"). A member approves or rejects each one (no approve
all: the spec has each approved); approved facts no longer on the site
say so. Each page's read is listed (read, not found, turned our reader
away, didn't answer); Read again reads the site again once the API
allows it, and a spent AI budget says so. `?tab=facts` opens the tab,
for the editor's to-do to link to.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): read brand facts' text in one walk, keep facts any page still has, and store no wrong price (CE-047, part a review)

- factText walks the page once and stops near MAX_TEXT_CHARS: a page of
  100k blocks reads in well under a second (was quadratic). Struck-through
  old prices (del, s, strike) are left out.
- A fact still on any page read (its words, a price's with its plan near
  them; across a card's lines too) stays; only facts whose page was read
  and has them no more are marked gone or dropped, written once.
- A plan's name is found on the folded text without lowering it (a
  Turkish "İ" lowers to two characters), and a quote only where it
  doesn't run into a number ("$49" in "$499", "$1,2").
- parsePrice reads one price only, no saving, discount or old price, a
  dollar named by its code after it ("$49 CAD"), and the period in the
  words right after it, the first named ("Lifetime access, monthly
  updates" is once). Magnitudes in any case; a trial needs a trial word,
  "started in" is no founding year.
- A page read after a wall or a failure says "ok" again; a missed
  answer's hash isn't kept past a failed read. A changed page goes to the
  model once an hour at most (MODEL_EVERY_MS). A page that failed (or a
  spent budget) is read again at the next ask after RECHECK_MS.
- Facts are written before the pages' hashes; source_url is cut to 2048.
- A listed page that no longer answers falls back to the usual
  addresses; a probe that is the home page again isn't read as one.
- readPage maps not-HTML, refused and redirect-loop reads to not_found;
  401/403/429 to blocked, 5xx to failed. setFactStatus answers 404 for a
  fact removed meanwhile.
- GET has no bucket of its own (the editor reads it as its tab comes
  back); POST /fetch keeps brandFactsLimiter.
- 00269: each kind's value checked (amount ≥ 0, currency, days, year),
  source_url http(s) only, a member's reviewed_at within a minute of now.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content): check a page's prices against approved brand facts in Trust, with an Approve to-do (CE-047, part d)

Trust's "consistent with brand facts" (10 points, phase 2): the page's
prices, trial and founding year against the brand's approved facts still
on its site, read so as not to cry wolf: a price in its own currency
only, against a plan's prices (any of them: monthly and annual billing
both count) when the sentence names the plan, else only when it names
the brand (or "we") with a period; "from $29" against the lowest price;
no sentence naming a competitor; discounts, scales and ranges aren't
prices. Like a working link, it doesn't score Trust on its own.

- A mismatch is Quality's suggestion, "Price differs from brand facts ·
  Page $39 · pricing page $49", with Show on its sentence.
- "Approve {n} brand facts" is the person's to-do while facts wait, with
  Review linking to Brand settings › Brand facts (the to-do row and the
  next-step nudge, not Settings › Authors).
- useBrandFacts reads them once with phase 2 and again when the tab
  comes back from Brand settings; the next-step reads wait for it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): give Brand facts' reads their time, keep the list right after a review, and do one thing at a time (CE-047, part c review)

- settings/layout.tsx sets maxDuration 300: the first read and Read
  again wait while the API reads the site (pages, then the model).
- A review updates the list in place (no read that could read the whole
  site again); a failed one reads the list as kept, a fact a read
  removed meanwhile gone from it. Approve, Reject and Read again don't
  run at once; the row being saved says so (aria-busy).
- An API with brand facts off says they aren't available yet; a thrown
  action shows the failure instead of loading for ever.
- Page links read as the page's name; sections are labelled by their
  heading; the quote marks and the page status separator are messages;
  "missed" and the paused note say when the read comes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): leave a short page's facts alone, read a code or scale after a price, and read brand facts once at a time (CE-047, part a review 2)

- A page under 200 characters (one its scripts write, a wall not told
  apart) leaves its facts as they are on every read, not only the first.
- A currency code or a scale right after a quote is read ("$49" then
  "CAD per month" is CAD; "$2" then "million" is no price); only "off"
  right after a price drops it (the next card's "Save 20%" doesn't). A
  period is named within 24 characters of the price, the first one
  named; "per active user" is per seat.
- A plan's name matches as whole words ("Pro" isn't in "Product"); a
  quote isn't taken inside another mark's dollar ("C$49") or a
  space-grouped number ("299 €" in "1 299 €").
- factText counts words toward its length, not indentation.
- A page whose model read failed waits MODEL_EVERY_MS like any other;
  a GET reads a failed page again behind its answer, not before it.
- New facts get the room the removed ones leave; a page whose new facts
  didn't fit keeps its old hash, to be read again. A kind no longer read
  (a shop's product page) loses its row.
- refreshOnce: one read per brand at a time, for the tab and the weekly
  read alike.
- 00269: a missing key is a check violation, and numbers compare as
  numeric (no cast error).

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): cry no wolf on brand facts: plans named as written beside the price, the brand's own trial and founding year only (CE-047, part d review)

- A price is compared with the plan named nearest it, its name as the
  page writes it (case too); a plan that is an everyday word ("Pro",
  "Team", "Free", "Growth") only beside "plan"/"tier" or with the brand
  named. With no plan, only a sentence naming the brand and saying what
  it costs; no "we/our" path. Free ($0) is never compared; "from $19"
  matches any approved price.
- A sentence with an old price, a saving, a discount, credits, tax or a
  team's bill ("was $49", "incl. VAT", "5 users pay") isn't read for
  prices; "billed monthly/annually" narrows to that billing.
- Ranges need a number before the dash or word (French "à", Turkish
  "ile", "between … and"), so "Pro – $49" is a price again; an amount
  doesn't start inside a number.
- A trial is compared where it is the brand's ("your free trial",
  "every plan", its name), its days right beside the trial; a founding
  year right after "founded", with the brand named or "we were founded".
- Each sentence once. The to-do is last (the brand's, no points of the
  page's), "Review your brand facts" at 0 and "reviewed" when done.
- useBrandFacts fails instead of loading for ever when the action throws.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content): read a page's visual proof spots and proof asks in one AI pass, kept by its hash (00270, CE-049, part a)

Quality phase 2, CE-049 (spec §4b), the server: one model read of the
whole page, with its page type, the brand's business type (B2B, B2C,
e-commerce) and the brand's approved claims about itself (CE-047):

- spots: where one specific image the business can take itself would
  prove a paragraph ("A photo of this backpack on a real hike"); kept
  only on a paragraph, list item or quote, in its own words, plain text,
  not generic (EN/TR/DE blocklist), naming the page's own thing (a word
  shared with its passage or headings), one an H2 section, three a page;
- proofs: the business's own claims whose proof only it has (award,
  certification, research, rating, ranking, number, test, customer case,
  else unknown), in the paragraph's words, not where it already links
  out; a customer case on a B2C or shop page only when the claim names
  one;
- regulated (health, finance, legal) on a B2C page.

00270: content_quality_pages (server-only, by page hash; items name
their paragraph by its 00266 hash, so a changed one drops out; missed
answers read again after a day) and content_draft_own_images (a member's
"this is my own image", as themself, 50 a draft; for part d).

POST /api/content-pages/page-read behind phase 2 with its own limiter: a
changed page read once a minute at most, 20 a day per draft (the shared
cap rises to 110: claims 50, page reads 20, sources at least 40), held
$0.01 as "quality"; a spent budget answers the kept read, paused. Logs
carry no page words.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): ask for the proof of the page's own claims as to-dos (CE-049b)

The page read (CE-049a) names the claims only the brand can prove: an
award, a certification, its own test, a rating, a ranking, a figure, a
named customer. Quality lists each as a to-do while its paragraph has no
link, worded by the kind of proof and the business type (spec §4b), five
open at once in the page's order, checked once linked; Add proof link
selects the claim and opens the link dialog, as Add source does. A link
to the brand's own site sources its own claim in Trust, and a sentence a
proof to-do covers leaves Trust's source suggestion.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): cap a draft's page reads at 20 a day and keep generic image spots out (CE-049, part a)

Review fixes before the PR:
- count the day's page reads on the row (day_reads, day_started_at):
  20 a draft, within its shared Quality calls;
- an image naming only words every business page has (product, team,
  customer, dashboard) anchors nothing; generic patterns read with the
  Turkish "İ" folded; logo and illustration patterns narrowed;
- keep proofs in a block that links out (the editor checks them off), so
  removing the link brings the ask back;
- a customer case on a shop or consumer page needs case words or a named
  customer; a count asks for its source; kinds and regulated normalised;
  one claim inside another of its block is dropped;
- a kept read is re-mapped for the business type as it is now;
- two asks at once are each mapped to their own page, the older pending;
- the hash covers what the model reads (headings cut at 300, the 16k
  cut, the brand's facts in any order, no addresses); facts ordered by
  first_seen_at, id;
- each block keeps its H2's words (an empty H2 shifted the lookup);
- own-images cap trigger: advisory lock, a re-confirm passes ON CONFLICT;
  spots and proofs up to 8 KB.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): keep a proof to-do when its link adds a space, and let Next step wait for the page read (CE-049b)

Pre-push review fixes:
- match proof asks and Trust's own-site proof by their words without
  spaces (a link put on a claim adds one at its edge), so the row is
  checked, not lost; a block's claims in their order;
- an own-site link sources only the proof claim's sentence, not the
  block's other figures;
- usePageRead says when its first answer is in (settled): Next step
  drops a stale skip only after it; a failed ask clears pending;
- Next step reads each proof to-do by its key; proofKey names the block
  by a short hash; had holds only the to-dos shown open;
- Before you publish names the claims a proof to-do covers again;
- "license".

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): hash a page's blocks by their words without spaces, so a link on a claim reads nothing new (CE-049, part a)

A link put on a claim adds a space at its edge ("roll -top"): the page
and its block were read as changed, a paid read within the minute's
pending dropped the block's items. Blocks and the page are now hashed
without spaces; the kept read maps to the block as the page has it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): show visual proof spots in the draft's margin, with Add image (CE-049, part c)

The page read's visual proof spots (#1467) stand beside their passages:
from 1120 px a card with the image to take, "For: “{passage}”" and Add
image; narrower a 20 px marker in the page's padding. A widget
decoration, never the page's (no save, export, copy or CMS push has
it), placed again only when the spots or the page change; hidden while
the agent changes the page. A spot goes once an image follows its block.

Add image takes the image by its https address, the alt text drafted
from the passage (required) and an optional caption (an italic
paragraph), put in right after the passage's block; a passage gone
meanwhile says so.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): confirm the page's own images, E-E-A-T's visual proof (CE-049, part d)

Only the person can tell their own screenshot or photo from stock: a
confirm step, never a pass (spec §2.1, 10 points in phase 2).

- eeat({visual}): an image confirmed own scores 10/10; images or an open
  visual proof spot with none confirmed 0/10; neither leaves it out. In
  phase 2 E-E-A-T waits for it, so the score doesn't move once it lands.
- To-do "Show your own image": Confirm (the page's images, thumbnails
  with no referrer, "Our own image, not stock") or, with no image and a
  spot open, that spot's Add image; the nudge offers it too.
- Add image gets "This is our own image…, not stock".
- getOwnImages (fails soft) and confirmOwnImage (as the member, the
  database's now, once; full at 50) on 00270's content_draft_own_images;
  a confirm shows at once and only it is taken back on failure.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): ask regulated pages for a qualified reviewer, from Authors (00273, CE-049, part e)

A consumer page that advises on health, finance or law (the page read's
regulated) asks for a qualified reviewer, from Authors only (spec §4b).

- 00273: content_drafts.reviewer_id → content_authors (set null), a
  trigger checking they are the brand's organization's (as 00257's).
- Header: "Reviewed by {name} ▾" beside the author (amber "Add
  reviewer" while none), shown when regulated or set; the title is the
  credential. A failed save rolls back only the latest pick.
- Quality to-do "Add a qualified reviewer" (what the page advises on,
  Pick reviewer / add one in Settings › Authors), after the proofs, once
  the authors are read; the nudge offers it.
- Page info strip: "Reviewed by {name}, {title}".

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): tie a brand fact's figure to the brand, one price per plan

Review fixes on the brand-facts check (CE-047):
- a price with no plan named is read only right after the brand's name
  and a pricing verb; "was founded" needs the brand, "we" or "our
  company" right before it; a sentence with two trial lengths is skipped
- each named plan takes the one price nearest it, skipped when another
  price sits between; add-on words ("extra", "additional", "add-on")
  aren't prices
- the next step no longer waits for the brand's first site read; the
  brand facts' to-do joins when it lands

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): keep a linked proof to-do checked, ask the page read past the API's minute

Review fixes on the proof to-dos (CE-049, part b):
- a proof ask's key hashes its block's words without spaces, so a link's
  edge space on the next read keeps the to-do checked and the nudge quiet
- the page read asks a few seconds past the API's minute, which counts
  from when the last ask reached it, so it isn't answered "pending"
- the hook's constants are PROOF_READ_*, apart from the panel's
  PAGE_READ_DELAY_MS

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): take only https image addresses up to 2,048 characters in the proof image dialog

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): pair plan prices closest first, keep a trial to the brand's part of a sentence

Pre-push review fixes on the brand-facts check:
- each plan takes its nearest price, the closest pairs first; a sentence
  with more prices than plans named isn't read for prices
- setup, onboarding and one-time fees aren't a plan's price; with no plan
  named, only the plan or pricing may sit between the name and the verb
- a trial is read in the part of the sentence that is the brand's, and a
  length said of another ("Ledgerly's runs for 14 days") makes two
- "was founded" needs who at the start of its clause, and "we" outside
  quoted speech
- stale Next step skips wait for the brand facts again: only the dropping
  waits, and a proof skip's Trust can move when they land

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): key a proof to-do by its claim's words without spaces too

The API cuts a claim from its block as the page has it, so a link's edge
space changes the claim as well as the block.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): read a sentence's prices only when they match its plans one to one, a partner's trial apart

- prices are read only when the sentence has as many as plans named (one
  with none named): a plan beside another's price, or a monthly and an
  annual price with no plan, are unsure
- ", which/who/whose" turns to another subject: a partner's trial isn't
  the brand's
- "Ledgerly's trial runs for 30 days" is read as the brand's trial

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test(content-editor): let the page read land before the stale-skip check in phase 2

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): score the page read's AI checks: who/how/why, balance, disclosure, answer first (CE-050, part b)

The page read's checks (#1478) count in Quality, each tagged "AI check":
- E-E-A-T's who / how / why on pages a reader trusts more for it, as a
  to-do ("Say how you made this page", Add input)
- Trust's balance and disclosure where they apply, as suggestions with
  Show on the passage that puts the brand forward; neither scores Trust
  alone
- Readability's answer first takes the model's verdict while its
  paragraph is still the first, 60 words or fewer to pass
Left out before the first read, while the budget or the day's reads are
used up, not found on a page read in part, or read for another page type;
a type change asks again; an edited find holds while the page is read.
Answer first reads past a byline or a date under the H1, as the API does.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): word the disclosure suggestion plainly

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): ask for a disclosure in Before you publish, with Add line (CE-050, part c)

Where the page puts the brand forward (the page read's disclosure check),
Before you publish has a Disclosure row: what the page says, or Add line,
a line in the page's language (disclosureText) the person adds; Export's
Before you publish line names a missing one. Export doesn't add it on its
own: whether the page recommends the brand is an AI read.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): put the disclosure line under the opening paragraph, once, in neutral words

Pre-push review fixes:
- the line goes under the page's opening paragraph (past a byline), so
  the answer the H1 gets first stays first for Answer first
- not offered twice: a page that has the line already shows it added
- not while the HTML view holds the page, whose source is what goes out
- the H1 is the page's first one with words, not only its first node
- the lines say the product is offered by the brand (a service or
  software too), with no gendered article; "without a disclosure"

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content): hand a draft's open Quality checks to the Content Agent in one run (00275, CE-051, part 1)

POST /api/content-drafts/:draftId/handoff (Quality phase 2): the editor
sends the page's fixable checks by key, with what each names on the page;
the server says what each asks and runs Fix open rules as one run of kind
'handoff', its suggestions left for review. The editor's details are no
fact the agent may write, and a placeholder stays the person's.

00275: content_agent_runs.kind 'handoff' and origin (person | auto), an
automatic hand-off once a draft; brands.content_quality_handoff (off by
default) and content_drafts.quality_handoff, the brand's setting copied
when the draft is made. An automatic run on a draft its brand doesn't
hand off is 409 not_due, a second one 409 already; one the AI budget stops
before it begins is taken back, to run once the budget renews.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(settings): add Settings › Content with Hand off quality fixes automatically, per brand (CE-051, part 2)

With Content Editor Quality's phase 2, Settings has a Content section: per
brand, Hand off quality fixes automatically (brands.content_quality_handoff,
00275, off by default). Admins and managers change it; anyone else sees it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): let a hand-off link the draft's sources and write the brand's approved facts

Pre-push review fixes:
- the source checks (claims, fresh, weak, primary, broken) read the
  draft's sources as link targets, so the agent can link one
- trust:brandFacts writes the brand's approved facts, read on the server
- a placeholder is read in the passage before and after the change: a
  "before" that cuts into its brackets doesn't fill it
- the person's own rules are no fact a hand-off may write either
- not_due first; a person's run writes no origin (the column's default),
  so a database before 00275 takes it; a run not taken back is failed

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): skip an automatic hand-off once its brand turned the setting off

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(settings): show a saved hand-off at once, end the wait with no workspace, say what turning it off does

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): hand the page off to Content Agent from Quality, in one run (CE-051, part 3)

Quality has a Hand it off to Content Agent card under its scores: it sends
every open suggestion (#1481's fixable checks), each with what it names on
the page, and the agent leaves its fixes as one batch to review, on the
same card, steps and Stop as Fix open rules; the to-dos stay the person's.
The disclosure goes only with its line in the page's language.

Fix open rules and Hand off share what they send besides their items
(agentContext) and how their answer is told (runAgentFix).

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): hand off only what the agent's checks ask, each card on its own run (CE-051)

- A suggestion that asks the other way to its check (sentences too short,
  a page too simple) stays the person's: the agent is told shorter and
  easier.
- Fix open rules and Hand off each show their own run; the other card
  waits, saying the agent is at work.
- The disclosure isn't sent once its line is on the page; Hand off waits
  for the page's read after a save when it sends what AI read
  (usePageRead's behind), and while claims are read.
- The passage is cut to fit, never the disclosure line.
- A full hand-off says to hand it off again; the API's 'off' is said.
- The blocked reason is the button's description.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): count each placeholder a hand-off would drop, and run one fix at a time (CE-051)

- dropsPlaceholder counts each placeholder before and after the change,
  read in what is kept (the new words and the blocks after them): filling
  one of two "[figure, source]" in a passage is dropped too. In a heading
  only the agent's own forms count, as the editor reads them.
- A hand-off's prompt says to leave every [placeholder] as it is.
- Fix open rules and a hand-off are refused with 409 `running` while
  another fix or hand-off on the draft is under way (fixUnderWay).

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): read a plan's price only right after its name, and a trial only after the brand's (CE-047)

- A named plan's price is read as the brand's is: right after its name
  (with its plan or tier word), with nothing, "is", a colon, a dash, "("
  or a pricing verb between. A price compared within a few words after it
  ("$30 more than", "$20 less … than") is read for no one, and "saves",
  "saved", "saving" are a saving.
- In a part of the sentence that is the brand's, only a trial length after
  its name or "your trial", "every plan" is its own; "free for N days" is a
  trial only after "try"/"use" and the brand, or in a sentence that says
  "trial".
- "We were founded" starts its clause only at the sentence's start or after
  since/when/after/and, not after a colon (quoted speech).
- In phase 2, the Quality score also waits for the brand's facts.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): hold the Quality score until the page as saved is read for proof (CE-049)

usePageRead counts a save it hasn't asked about yet as reading, as
useClaims does, and waits only for changes on their way (the editor's
narrower `saving`), so a failed save, a conflict or a page too large
doesn't hold it. In phase 2, qualitySettled waits for the page's read.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): hold the Quality score for the visual proof, and score when the own images can't be read (CE-049)

- qualitySettled waits for E-E-A-T's visual proof in phase 2 (the page's
  read and the own images), so the chip doesn't settle on Trust and
  Readability and move when the read lands. The page read already waits
  only for changes on their way (#1468's `saving`).
- A failed own-images call counts the confirms made so far, so E-E-A-T
  scores and Confirm opens.
- The visual proof to-do is listed when Your input can't be read too, in
  its place.
- E-E-A-T takes both the visual proof and the author confirmations.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): hold what the page read found until the edited page is read again (CE-050)

- aiChecksOnPage holds a find whose paragraph changed while the page as it
  is now is still to be read: changes not saved yet, a save not asked
  about (usePageRead's reading, #1468) or an ask out. The passage that puts
  the brand forward still applies then, and Answer first's verdict is held
  (`held`, which readability takes over the block match).
- The editor, a save and a restore detect the page type with the existing
  page's address, as Start did, so the read's type and the editor's agree
  from the start.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): put the disclosure line past a hero image, and count it before the next read (CE-050)

- Add line looks for the opening paragraph past what has no words (an
  image, an empty paragraph), as Readability and the page read do, and a
  byline or a date: the answer stays first for Answer first.
- While the page has the line Add line put in, the disclosure counts as
  found (Trust, Quality's suggestion, Export's line); Before you publish
  still says it was added until the page is read again.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): wait on the page's read only where it moves what Hand off sends, and say `running` (CE-051)

- usePageRead's reading now counts a save not asked about yet (#1468), so
  the hand-off's own `behind` flag goes. Hand off waits for the page's
  read before its first answer, or after a save while it sends what AI
  read of the page (Answer first, the disclosure, balance); not after
  every save.
- The API's 409 `running` (another fix or hand-off on the draft, #1481)
  is said, for Fix open rules too.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): hand a brand's imported and agent-written pages off on their own, and list hand-offs in History (CE-051, part 4)

- A draft its brand hands off (Settings › Content, copied at creation,
  quality_handoff) whose page came from elsewhere (imported to optimize,
  or the agent's) goes to Hand off on its own, once: when Quality is
  settled and nothing holds Hand off (open suggestions, the agent at work,
  a spent AI budget, the reads, the HTML view). The editor reads whether
  the draft had its automatic run (readAutoHandOff); the server's row is
  the claim, and its `already` / `not_due` aren't said.
- History lists the draft's hand-offs of the last 90 days among the
  versions by time, who started each, how it ended and its checks, with
  nothing to restore (getDraftHandoffs).

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): keep the automatic hand-off quiet and off published pages, and read History's hand-offs as they ended (CE-051)

- The automatic run says nothing when it doesn't run or finds nothing
  (only logged); a published draft, or a brand that stopped handing off
  (readAutoHandOff reads its setting too), doesn't run it at all.
- History: a run stopped before its outcome was written reads as
  stopped, one left past RUN_STALE_MS as failed; a done run with no
  change says so; rows sort by time, not by the timestamp's text.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): weigh Quality's checks by the page type, and say which (CE-052, part a)

Phase 3 of the Quality spec (§11): the three scores keep their names, but
what each counts, and how much, follows the page's type.

- quality-profiles.ts: each page type reads as an article, product,
  category, feature or comparison profile (an article before Phase 3 and
  for the types §11 doesn't name), each with E-E-A-T, Trust and
  Readability weights; the article's are the blog defaults. `weighed`
  re-weighs a score's checks (each keeps its share of its points; a weight
  of 0 leaves the check out and rescales the rest).
- The editor weighs Readability, E-E-A-T and Trust for the page's type;
  Trust's unscored gains count out of the type's Phase 1 points.
- To-dos for checks the type leaves out aren't listed: a product, category
  or feature page goes out under the brand's byline, so no author to-dos,
  Export's "No author yet" or Before you publish's missing author.
- Quality says "Checks and weights for {type} (detected): …", with Change
  opening the header's page type menu.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): score Trust and ask for a disclosure only as the page type counts them (CE-052)

- Trust is scored after weighing, as trust() scores it: a type that
  leaves freshness out isn't scored by its links and site alone
  (weighedTrust).
- An unscored Trust gain for a check outside Phase 1's (brand facts)
  counts out of its own points too.
- A category page's E-E-A-T weighs the brand's own information (its site's
  trust, `brandInfo`) beside its own images, not all or nothing.
- Where the type leaves the disclosure out (product, category, feature),
  Before you publish and Export don't ask for one.
- Change has an accessible name.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): count the page type's own rules and a product page's shipping and returns in Quality (CE-052, part b)

- Readability gains one check on the types that weigh it: the page
  type's own rules as the Rules tab reads them from the page (a specs
  table, a side-by-side table, an intro, a buying FAQ, how-to steps), their
  share met; ones read by AI or a feed, or turned off in Rules, aren't
  counted (withTypeRules). Its suggestion names the rules not met; Hand off
  takes it too (readability:typeRules, on both sides).
- Trust reads whether a product page says how shipping and returns work,
  or links where they're told (shippingOnPage: en, tr, de, fr, es), as its
  own check there. Only the person knows them: a to-do, not a suggestion.
- The profiles' Readability and Trust weights make room for both.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): read shipping and returns in a policy's terms, and tell the agent each type rule's aim (CE-052)

- shippingOnPage reads the page's HTML, headings too, for a policy's
  terms ("free shipping", "delivery in 2 days", "30-day returns",
  "iade"), not "ships with a cable", "in return" or "return on
  investment"; Turkish capitals ("İade") and links like
  /shipping_policy, #versandkosten, /reembolso count.
- The type rules check carries each rule's aim and how the page reads now
  (shared with Fix open rules: aimAndNow), so Hand off tells the agent
  what to meet; a table of facts gets only the facts given, placeholders
  for the rest.
- Fit questions are read in English only: another language's page isn't
  scored on them (the Rules tab says so, as for the definition rule).
- The product and category lines name what they count.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test(content-editor): name the product line's new checks in Quality's test (CE-052)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): ask a comparison to show when it was last checked, with Add line (CE-052, part c)

Spec §11 wants a comparison's check date visible. E-E-A-T reads one on the
page (a "checked/tested/updated" word with a year from the last two, in
the nine languages the disclosure has) as its own check, weighed on
comparisons (20). Only the person knows when they checked, so it's a
to-do: "Show when you last checked", whose Add line (in Quality and the
nudge) puts "Last checked: {Month YYYY}." in the page's language under
the opening paragraph, where the disclosure goes (addLineUnderAnswer). A
language without a line asks the person to write it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): read a check date as a label too, and replace a stale one (CE-052)

- The check date is read as a verb or a label ("Last update", "Son
  güncelleme", "Letzte Aktualisierung", "Dernière mise à jour"), each word
  at a word's start ("areas of", "untested" aren't one), Turkish capitals
  too; in a block longer than a label, the year must be near the word.
- Add line replaces a check date the page has already (an old one) rather
  than adding a second, and isn't offered while the HTML view is open.
- The line has no full stop, so Answer first reads past it as a date.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): confirm a customer case may be published, not just link it (00279, CE-052, part d)

Spec §11: what Quality can't verify becomes a confirm step, never a pass;
customer logos and cases need the customer's permission to publish, which
only the person knows.

- 00279 content_draft_confirmations: what a member confirmed that only
  they can (a customer case; category intro facts next, CE-054), by kind
  and key, with who and when; members read their drafts' and insert as
  themselves, now; 50 a draft; no update or delete.
- In Phase 3, a proof ask of a customer case is that confirm ("Confirm you
  may publish the customer case …", Confirm in Quality and the nudge),
  done once confirmed, linked or not.
- E-E-A-T counts the share of the page's customer cases confirmed
  (customerCase), weighed on feature pages (25); E-E-A-T waits for the
  confirms' read in Phase 3.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): key a customer case's confirm by its claim, and keep its sentence the person's (CE-052)

- A confirm is keyed by the case's claim alone (caseKey), so fixing a typo
  in its paragraph keeps it, and re-confirms don't fill the 50.
- A customer case's sentence, confirmed or not, stays out of Trust's
  agent-fixable suggestions: Hand off never sources or removes a case the
  person confirms (QualityRead.caseSentences).
- A case's to-do waits for the confirms' read (casesRead), so one
  confirmed before doesn't show open; E-E-A-T waits for it too, and a
  failed read counts the confirms made so far.
- The feature line names the customer cases it counts.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): give a product page its Product schema with the price it states (CE-053, part a)

Spec §11 (Phase 3): a product page's schema is Product + Offer. Before you
publish gives it on product pages, from the page as written:

- name from the title (left out while it has a placeholder), description
  from the opening paragraph (past a byline, up to 500 characters), the
  person's own images (CE-049) else the first, the brand;
- the price the page states (pageOffer): one price is an Offer, several in
  one currency an AggregateOffer; an old price, a saving, an add-on, a
  shipping threshold or a minimum order isn't one.
- A page that states no price (or prices in more than one currency) gets
  no code: the row asks for the price, or a product feed. Availability,
  SKU, GTIN and reviews wait for a connected feed and reviews; none is
  made up.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): read a product's price by the words around each amount, and give no Product without its name (CE-053)

- Product needs a name: no code or Copy without one, and a row saying so.
- Each amount is judged by the words just before and after it, not the
  whole sentence: a sale keeps its price ("$129 (was $159)"), a threshold,
  shipping, financing, a unit price, a bundle or an add-on drop only their
  own amount, and a tax-inclusive price or "Extra large" stays a price.
- A range ("$119–$139", "119–139 €") gives low and high (priceRanges);
  no offerCount, as a price can stand for several offers.
- A placeholder in the opening paragraph leaves the description out.
- Export's Before you publish line names the Product schema; the note
  says a "$" reads as US dollars.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): give a product's price only where the page states one, and ask which where prices differ (CE-053)

A price in the Product schema is pasted as the product's, so nothing is
guessed:
- Prices that differ (sizes, or an amount the reading missed) are no
  range: Before you publish lists them and asks for the price once, or
  as a range written as one ("$119–$139").
- An old price ("Regular price", "Original price", "reg.") counts only
  where the page gives no other; "au lieu de", "antes", "bisher",
  "eski fiyat" are old prices too.
- An amount added to the price ("+ $9.95 shipping", "zzgl. 4,95 €
  Versand", "$4 tax"), a saving, a worth or a reward ("save up to",
  "worth", "$30 value", "in rewards", "trade-in") and a threshold
  ("Versand ab 50 €", "Min. order") aren't the price.
- Free shipping is no bill ("with free shipping costs $129").
- "Ridge 28 $129" is $129, not 28 $; "Ridge 28 – $129" is a price.
- A range with one currency needs a dash and no space ("$119–139"), and
  no word joined to its end ("$19 - 100% cotton", "$25-30-day").
- A range by the month ("10–20 € pro Monat", "monthly") is a plan's.
- Export names the Product schema only where Before you publish has its
  code.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): read a price's currency where it's written, and ask about "from" prices and loose ranges (CE-053)

- A currency after an amount stays with it unless a digit follows at
  once: "129,00 € 159,00 €", "999 TL 3 taksit" and "Pro 49 € 10 Nutzer"
  read the right amount (Trust's brand facts too).
- "$129.00 CAD": a code after a sign says whose dollar it is.
- A range with one currency and a spaced dash or a word ("119 – 139 €",
  "$119 to 139") is no longer read as one of its ends: it, "From $119"
  and other prices the page gives are listed for the person to settle.
  "$129 – 150 reviews" and "€20 – 30 Tage" stay one price.
- "Regular" or "Original" alone is a size; "Regular price" is an old
  price only beside a lower one in its block.
- "S24+: $999.99" keeps its price; "3 min. $129" isn't a minimum order.
- Thresholds and savings in more languages ("über", "superiores a",
  "supérieure à", "orders $50+", "Sie sparen", "Économisez", "3 Raten à",
  "3 plazos de").
- Prices that differ are listed once each ("$129" and "$129.00"), five
  at most.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): check a product page's price, GTIN and stock against its product feed (CE-053, part b)

Spec §11: a product page's Trust counts "Price and stock match the feed /
Merchant Center". The feed is the brand's catalog (00278, #1263): the
page's product is found by its URL (an optimize draft's, as feeds write
it: no www, trailing slash or query), else by its title when one product
has it (getCatalogMatch; members read the catalog under its RLS).

- feedCheck compares only what both state: the page's price (one, or a
  range's low and high, a sale price counting as the price now, in the
  feed's currency), a GTIN the page gives (EAN, UPC; leading zeros don't
  count), and its stock ("In stock", "sold out", "Stokta yok"…).
- Trust: new feedMatch check, the share that matches, weighed 30 on
  product pages (the most there: claims 25, brand facts 10, links 5, site
  10, shipping 10) and 0 elsewhere; left out, the rest rescaled, where the
  feed doesn't have the page's product.
- Quality names what differs ("Price differs from your product feed ·
  Page $129 · Feed $119") with Show on its sentence; the person checks
  which is right, so Hand off leaves it. With no feed, or no product in
  it for the page, a line says the price and stock aren't checked.
- Rules: "Price, GTIN and stock match the feed" reads the same check (met,
  differs, not in feed, nothing to compare) instead of always "Needs feed",
  and isn't sent to the agent.
- types/supabase.ts: catalog_products and catalog_variants.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): ask about a price a number may be written onto, and show the price read for the person to check (CE-053)

- A space between digits ("PlayStation 5 549,99 €") or a sign after a
  whole amount with a number next ("Ridge 28 € 129") may be another
  number's: the price is listed for the person, not guessed. Cents tie a
  sign to its amount ("129,00 € 2 Jahre Garantie" is 129 €).
- "CAD $129", "MX$1,299": a code before a dollar sign says whose;
  "CHF 1'299.–": an apostrophe groups thousands.
- "From just", "As low as", "begins at", "A partir de", "A partire da",
  "Vanaf", "Ab nur", "'den başlıyor" are from-prices: asked about.
- An old price is dropped only beside one lower price in its block, at
  least 40% of it ("Regular price $129 Unit price $12.90" keeps $129).
- A member's, a subscriber's or a code's price, a unit price ("Grundpreis",
  "/ per 100g"), PayPal's Pay in 4, a balance and an "indirim" amount
  aren't the price.
- A price beside a range must be one of its ends: another product's range
  isn't the product's.
- Before you publish names the price it read ("Price read from the page:
  $129. Check it's the product's.").

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): read a product's stock and GTIN as the page means them, and look its product up by the catalog's index (CE-053)

Pre-push review of part b:
- Stock: "back in stock", "not / no longer in stock", "stokta değil",
  "Stokta kalmadı", "plus en stock", "nicht mehr vorrätig" are out of
  stock; a shipping policy ("items in stock ship in 24 hours") and "ships
  today" say nothing of this product's.
- GTIN: the code alone, hyphens allowed but never across a space, and only
  one with a GTIN's length and check digit ("UPC 012345678905 12 months"
  is the UPC).
- A page at the feed's regular price matches while the feed still has a
  sale price: the sale may be over.
- The URL lookup reads the brand's live products only (their index), the
  path as written and as an address encodes it ("/ürün"); a removed
  product isn't matched; variants come by price; a "*" (PostgREST's
  wildcard) isn't looked up.
- A product found by its name is used only while the title is that name.
- Rules: "Reading feed" while the catalog is read; the agent's message for
  the feed rule says to check the page or the feed, not the extra H1s'.
- Trust is scored from a product page's feed check too.
- "no product feed is connected for this brand yet": there's no screen to
  connect one yet.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): score a product or category page's Trust from a compared price, and wait for the site before a category's E-E-A-T (CE-052)

Review on #1491:
- Where brand facts weigh as much as sourced claims (product and
  category pages), a price compared with them scores Trust: a page with
  every price wrong no longer reads "Not scored yet" and passes Before you
  publish's gate. weighedTrust scores by the weighed checks (trust()
  leaves it unscored by its own). The article (10 to 30) is as it was.
- A category page's E-E-A-T waits for the site's trust, its 40 points of
  the brand's own information (waitsForSiteTrust), so it doesn't jump.
- Copy: a page type under the brand "goes out under {byline}" (Ansvisor
  gives no schema for it); the category line names the brand's own
  information and no longer promises an intro check.
- QUALITY_WEIGHTS_VERSION is gone until calibration reads it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): read a buying FAQ and a product's shipping and returns in the page's language, and ask for fit only where there are sizes (CE-052)

Review on #1494:
- The buying FAQ (and the FAQ rule) is found under its heading in German,
  French, Spanish, Turkish (lowercased the Turkish way), Italian,
  Portuguese and Dutch; another language's page isn't told its FAQ is
  missing (English only), so Hand off never adds one it has.
- shippingOnPage reads the ways shops state their terms: a heading that
  names the policy with text under it ("Delivery & Returns", "Returns &
  Exchanges"), delivery with a time or a cost ("Standard delivery 3–5
  working days", "Free UK delivery on orders over £50"), "Returns are
  accepted", "Expédition sous 24h", "Entrega en 24/48 horas", "Reembolso",
  "Retoure", "Umtausch", "satisfait ou remboursé", "teslim edilir",
  "değişim". Not a bare "shipping" ("Shipping weight"), a product's link
  ("/collections/delivery-bags") or a product named for it ("kargo
  pantolon"). A page in a language the words aren't written for is read
  by its links, and isn't asked without one.
- Answer fit and sizing questions counts only where the page has sizes or
  asks about them ("No sizes" for a coffee grinder).
- Hand off: an answer the page and the data don't give (fit, sizes,
  shipping, returns, prices) is a placeholder, never made up.
- Product Trust weighs brand facts 30 and sourced claims 25 (was 25 and
  30), so a compared price scores a product page's Trust as #1491 makes it.
- The feature and comparison lines name their type rules.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): replace only Add line's own old check date, and read a check date in the words that mean it (CE-052)

Review on #1495:
- Add line replaces only its own line from before: a top-level paragraph
  that is one of the nine labels, a month and a year, and nothing else
  (isCheckDateLine). A byline ("By Jane Doe · Updated March 2023"), the
  answer ("We tested 9 CRMs in 2024; …"), a body paragraph or a list item
  stay the person's; the line goes under the answer instead.
- The check date's words in the forms that mean checked: "verification",
  "updates" and "kontrolü" aren't one; "Letzte Prüfung", "Actualisé le",
  "Testato", "Last modified", "Verificado" are.
- The to-do says when the page's date is over a year old ("Update when
  you last checked"), and whether Add line replaces it or the person's
  old date needs updating too (checkDateOnPage).
- The nudge says to check the products first ("show when you last
  checked, once you've checked the products").
- The comparison line names the check date.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): match a customer case's confirm by its words, keep its Trust share in sight, and hand off around it; move the migration to 00280 (CE-052)

Review on #1496:
- 00279 is #1493's (the catalog's sources): the confirmations migration is
  00280 now (file, header, table comment, schema.sql, comments). Its header
  says the key is the claim's words.
- A confirm counts for its case by its words, not the exact slice the page
  read picked (caseConfirmed): a confirmed claim's words in the case's
  sentence, or the case's claim in a confirmed one's (12 letters at least,
  so a name alone isn't a case). Used by the to-dos and the editor's count
  and open cases alike: a second read picking a longer slice keeps the
  confirm, and spends no other row of the 50.
- A case's to-do says when linking the published case still raises Trust
  (+N Trust), confirmed or not: its sentence is an unsourced claim until
  it's linked.
- Hand off sends the cases' paragraphs as locked passages: the server
  already drops any suggestion that changes one (keepSuggestions), so the
  agent never sources, softens or removes a case the person vouches for.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): read "back in stock" and Turkish stock as meant, find a variant's own page, and link where a feed is connected (CE-053)

Verifying part b's review fixes:
- "Back in stock!" is in stock; only "email/notify me when it's back in
  stock" is out. Turkish forms with endings ("stokta yoktur", "stokta
  bulunmamaktadır", "stokta mevcut değil") are out, and no longer read as
  in. A shipping policy ("items not in stock ship in 3 weeks") says
  nothing, read before the rest.
- The URL lookup reads the path in its own case ("/Über"), then, when no
  product's URL is the page's, its variants': a product's URL is its first
  item's link (#1493's sync), so a variant with its own page is found by
  its own. 00281 indexes a brand's live variants for that read.
- A page range at the regular prices matches while the feed keeps an old
  sale; "EAN-8" is a label; all zeros is no GTIN.
- "No product feed is connected" links to Settings › Integrations, where
  #1493's product catalog card connects one.
- Product Trust: sourced claims 20, brand facts 20, the feed 25 (links 5,
  site 10, shipping 10, primary 5, weak 5): brand facts weigh as much as
  claims, so a compared price still scores Trust (#1491's review) while
  the feed weighs most.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): give a category page its ItemList of the products it links (CE-054, part a)

Spec §11, category pages: Trust counts an "ItemList schema". Before you
publish gave articles their Article and product pages their Product; a
category page now gets its ItemList to paste.

- listedProducts reads the page's links to the brand's own product pages
  (a product path: /products/, /p/, /urun/, /produkt/, /produit/,
  /producto/, /prodotto/, /artikel/…; the brand's domains, its
  subdomains too), in the page's order, each once ("www.", a trailing
  slash, a query and a hash alike). A relative link is read against the
  brand's site; the link's text, else its image's alt text, is the name.
- itemListJsonLd: ItemList under the page's name (none while a
  placeholder's in it), numberOfItems, each ListItem's position, URL and
  name (a placeholder name left out). Prices and stock stay each
  product's own page's Product.
- Before you publish, on a category page: "ItemList schema with N
  products" and its code, from two links on; else "ItemList schema needs
  links to your products", saying how many it links. Export's Before you
  publish line names it. The other types' row says Ansvisor's code is for
  articles, product and category pages.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): list only a category's product pages, an HTML block's too, and wait for the brand's domains before saying none (CE-054)

Pre-push review of part a:
- The product path must end at the product's own segment ("/products/
  ridge-28", not "/products/ridge-28/reviews"); a file ("/cdn/shop/
  products/ridge.jpg") isn't a page; "/p/" (a post's path on Substack-like
  blogs), "/artikel/", "/items/" and "/dp/" are out, Wix's
  "/product-page/" in. A Shopify collection's "/collections/x/products/y"
  is "/products/y".
- An HTML block's links count (a product grid is often one).
- A name is the card's words joined apart ("Ridge 28", not "Ridge 28$129.00"),
  its prices out, not a button's word ("Shop now"); a later link's name
  fills one the first didn't give. 100 products at most.
- While the brand's domains are read, the row says so instead of "no
  links"; if they can't be read, the site's own domain (Site trust) is
  used, else the row says to check the CMS's ItemList. Export names the
  ItemList only once its code is there.
- "No links" says what Ansvisor looks for (/products/…, /product/…), with
  a count for every number; a placeholder in the title says the list's
  name is left out. Below Phase 3 the other types' row keeps its copy.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Cihan <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: Gökhan Geyik <[email protected]>
gkhngyk added a commit that referenced this pull request Oct 25, 2026
…rust's intro facts (CE-054, part b) (#1500)

* feat(content): read what kind of source each link is, and underline the weak ones (CE-046, part a)

Quality phase 2 (NEXT_PUBLIC_CONTENT_QUALITY_PHASE=2), by rules only:

- sourceClass(): primary (official, research, standards), secondary (news,
  reviews, Wikipedia), weak (forums, social posts, uploaded papers), a
  competitor's page (primary on a comparison) or the brand's own; an
  address the rules can't place is left out (an AI read comes in part b)
- Trust's primarySources (15) and noWeakSources (10); two placed sources
  score Trust on their own
- Quality suggests replacing weak sources (Show, Keep) and adding a
  primary one, once Trust is scored; the editor underlines weak sources
  in amber (a decoration: never exported)
- 00263: content_drafts.kept_sources (≤ 50) and content_draft_keep_source()
- byUrl keeps a link's first place, so Show goes there

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content): read the kind of a source's site the rules can't place with AI (CE-046, part b)

Quality phase 2 (web NEXT_PUBLIC_CONTENT_QUALITY_PHASE and server
CONTENT_QUALITY_PHASE at 2):

- POST /api/content-pages/source-classes reads the sites a draft links
  (as saved) that the editor's rules can't place: the model sees each
  site's address alone and answers primary, secondary or weak; each read
  is kept for every workspace 90 days (00264 content_source_classes); 20
  sites a read, 30 reads a draft a day, its own rate limit
- the reads draw on the AI budget as their own feature, "quality" (00264
  widens prompt_improve_usage.feature): a small hold (holdUsd), left out
  of the median that sizes other calls' holds and the Improve tab's
  estimate; a read cut off by its timeout keeps its hold; Billing lists it
- the editor asks 3 s after a save (useSourceClasses), Trust takes the
  reads for sites the rules can't place, the weak-sources suggestion is
  tagged "AI check", and a spent budget pauses the reads with a note

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): ask only about public site names, keep an unknown read a day, and skip kept sources (CE-046, part b review)

- SITE_NAME (LDH, a dot, a letter TLD; no IP, no single label) in
  keptSite/linkedSites, the editor's unplacedSites and 00264's check; a
  label that reads as words isn't asked about either
- the model may answer unknown, which Trust leaves out; it, and a site
  the model left out, is kept a day, so it isn't asked again (and
  charged) after every save
- a site whose every link the person kept isn't asked about (route and
  editor); a kept link counts in Trust with or without a read
- a failed classifyDraftSources call lets its sites go (.catch/.finally)
- .env.example: phase 2 turns the AI source reads on, from the AI budget

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test(content): size Quality's checks against Starter's $5 AI budget after #1435

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content): read the claims in a draft's own paragraphs with AI, kept by the paragraph (CE-045, part a)

Quality phase 2 (CONTENT_QUALITY_PHASE at 2), server side:

- POST /api/content-pages/claims reads the draft as saved: each paragraph
  and list item long enough to hold a claim; the model finds what a reader
  would want a source for (number, stat, superlative, fact), each claim in
  the paragraph's own words or dropped, five a paragraph at most
- 00266 content_quality_claims keeps the reads by draft and paragraph
  hash: an unchanged paragraph isn't read again, a removed one's row goes;
  the paragraph being written (skip) waits; 12 paragraphs a call, 2 calls
  an ask, one after the other
- the calls draw on the AI budget as "quality" (holdUsd 0.004), and share
  one day's cap per draft with the source kinds' reads
  (content-quality-calls.js, QUALITY_CALLS_PER_DAY 60)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): read the claims by the editor's blocks, short list items too, and keep a missed answer as read (CE-045, part a review)

- draftParagraphs reads p, li, blockquote, td and th as trustBlocks does,
  with ownText's spacing (a line break, sibling paragraphs): the answer is
  { paragraphs: [{ text, claims }] }, so the editor knows each claim's block
- blocks from 12 characters ("Award-winning support"); a call takes 12
  paragraphs or 6,000 characters, whichever comes first
- an answer billed that missed the schema is charged and its paragraphs
  read with none (not sent, and charged, on every save); a kind the editor
  doesn't know drops that claim only; a paragraph answered twice keeps both
- claims leave 10 of the day's Quality calls to the sources' kinds, and the
  route has its own limiter; the reading's version is in the hash; logs
  carry no page words

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content): count the claims in the page's own words in Trust and underline the unsourced ones (CE-045, part b)

The editor asks the API for the claims a few seconds after a save (never
with changes to save), leaving the block being written until the person
leaves it. Trust counts each claim in its own block as a figure, the
draft underlines the unsourced ones in their blocks, and Quality's
suggestion gets Add source (link dialog on the claim's words) and Remove.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): read each source site in its own call, held and counted per site (CE-046, part b review)

One generateObject per site the rules can't place, run together with
Promise.allSettled: no site's name reaches another's read, and a failed
site keeps the others' reads. Each read holds $0.0005; the day's cap
counts sites (SOURCE_READS_PER_DAY = 40). An answer off the schema is
charged and kept as unknown for a day. The route logs an error's name
and message only.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): read a missed answer's paragraphs again after a day, match claims across curly quotes, log no page words (CE-045, part a review)

- 00266 gets a `missed` column: an answer that missed the schema (cut
  short, or blocked by the provider's filter) keeps its paragraphs as read
  with no claims, and they're read again after MISSED_DAYS (1).
- keptClaims compares folded copies (’ ‘ → ', “ ” → ", ‐ ‑ – — → -),
  one character for one, and keeps the paragraph's own span.
- The claims route logs an error's name and message only: a provider's
  error carries the request, the page's paragraphs.
- QUALITY_CALLS_PER_DAY = 90, the claims leaving the sources'
  SOURCE_READS_PER_DAY (40) now that each site is a call: the claims keep
  their 50 calls a day.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): say a spent budget first, read five sites at a time, and log no whole error (CE-046, part b review)

When no site is read, the error thrown is a spent budget's if any (429,
the editor pauses) rather than the first site's. An ask reads its sites
five at a time, so 20 holds and their queries don't go out at once. A
site's hold is $0.001 (the model's thinking is billed as output). The
route's error log keeps the stack, not the provider's request.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): read a missed answer's paragraphs again one a call, after the new ones, and fold more quote and dash forms (CE-045, part a review)

A paragraph whose answer missed the schema is read again after a day in
a call of its own, after the paragraphs not read yet: one the provider's
filter blocks no longer keeps its neighbours unread every day. The fold
also covers low quotes, primes, figure and horizontal-bar dashes and the
minus sign. The claims route keeps the error's stack in its log. Tests
pin the select's columns, both fold directions and the route's log.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content): read a brand's facts from its own pricing, About and product pages, kept for approval (00269, CE-047, part a)

Quality phase 2, CE-047: the brand's prices and plans, trial, founding
year and claims, read from its own site for Trust's "consistent with
brand facts" check. The model finds the facts and copies each one's
words; a fact is kept only when its words are on the page as written,
and its value (amount, currency, period, days, year) is read from them
by rule. A person approves each one.

- 00269: brand_facts (members read, and change only the status, as
  themselves) and brand_fact_pages (server-only: a hash of each page's
  text, so an unchanged page isn't read by the model again; no text
  kept).
- brand-facts.js: findFactPages (page list, Site trust's About page,
  else probes on the main domain; never Scrape.do), factText, keptFacts,
  refreshBrandFacts (new values pending, approved ones gone from the
  site marked gone, pending ones dropped), readBrandFacts (first ask
  reads, asking again every 10 minutes at most), setFactStatus.
- GET /api/brand-facts, POST /fetch, PATCH /:id behind phase 2, with
  their own limiter; logs carry no page text.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content): review and approve brand facts in Brand settings (CE-047, part c)

Brand settings › Brand facts, with Quality's phase 2: the facts the API
read from the brand's own pricing, About and product pages, each with
its words on the page, where it was read and the approved value it would
replace ("Was $59"). A member approves or rejects each one (no approve
all: the spec has each approved); approved facts no longer on the site
say so. Each page's read is listed (read, not found, turned our reader
away, didn't answer); Read again reads the site again once the API
allows it, and a spent AI budget says so. `?tab=facts` opens the tab,
for the editor's to-do to link to.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): read brand facts' text in one walk, keep facts any page still has, and store no wrong price (CE-047, part a review)

- factText walks the page once and stops near MAX_TEXT_CHARS: a page of
  100k blocks reads in well under a second (was quadratic). Struck-through
  old prices (del, s, strike) are left out.
- A fact still on any page read (its words, a price's with its plan near
  them; across a card's lines too) stays; only facts whose page was read
  and has them no more are marked gone or dropped, written once.
- A plan's name is found on the folded text without lowering it (a
  Turkish "İ" lowers to two characters), and a quote only where it
  doesn't run into a number ("$49" in "$499", "$1,2").
- parsePrice reads one price only, no saving, discount or old price, a
  dollar named by its code after it ("$49 CAD"), and the period in the
  words right after it, the first named ("Lifetime access, monthly
  updates" is once). Magnitudes in any case; a trial needs a trial word,
  "started in" is no founding year.
- A page read after a wall or a failure says "ok" again; a missed
  answer's hash isn't kept past a failed read. A changed page goes to the
  model once an hour at most (MODEL_EVERY_MS). A page that failed (or a
  spent budget) is read again at the next ask after RECHECK_MS.
- Facts are written before the pages' hashes; source_url is cut to 2048.
- A listed page that no longer answers falls back to the usual
  addresses; a probe that is the home page again isn't read as one.
- readPage maps not-HTML, refused and redirect-loop reads to not_found;
  401/403/429 to blocked, 5xx to failed. setFactStatus answers 404 for a
  fact removed meanwhile.
- GET has no bucket of its own (the editor reads it as its tab comes
  back); POST /fetch keeps brandFactsLimiter.
- 00269: each kind's value checked (amount ≥ 0, currency, days, year),
  source_url http(s) only, a member's reviewed_at within a minute of now.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content): check a page's prices against approved brand facts in Trust, with an Approve to-do (CE-047, part d)

Trust's "consistent with brand facts" (10 points, phase 2): the page's
prices, trial and founding year against the brand's approved facts still
on its site, read so as not to cry wolf: a price in its own currency
only, against a plan's prices (any of them: monthly and annual billing
both count) when the sentence names the plan, else only when it names
the brand (or "we") with a period; "from $29" against the lowest price;
no sentence naming a competitor; discounts, scales and ranges aren't
prices. Like a working link, it doesn't score Trust on its own.

- A mismatch is Quality's suggestion, "Price differs from brand facts ·
  Page $39 · pricing page $49", with Show on its sentence.
- "Approve {n} brand facts" is the person's to-do while facts wait, with
  Review linking to Brand settings › Brand facts (the to-do row and the
  next-step nudge, not Settings › Authors).
- useBrandFacts reads them once with phase 2 and again when the tab
  comes back from Brand settings; the next-step reads wait for it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): give Brand facts' reads their time, keep the list right after a review, and do one thing at a time (CE-047, part c review)

- settings/layout.tsx sets maxDuration 300: the first read and Read
  again wait while the API reads the site (pages, then the model).
- A review updates the list in place (no read that could read the whole
  site again); a failed one reads the list as kept, a fact a read
  removed meanwhile gone from it. Approve, Reject and Read again don't
  run at once; the row being saved says so (aria-busy).
- An API with brand facts off says they aren't available yet; a thrown
  action shows the failure instead of loading for ever.
- Page links read as the page's name; sections are labelled by their
  heading; the quote marks and the page status separator are messages;
  "missed" and the paused note say when the read comes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): leave a short page's facts alone, read a code or scale after a price, and read brand facts once at a time (CE-047, part a review 2)

- A page under 200 characters (one its scripts write, a wall not told
  apart) leaves its facts as they are on every read, not only the first.
- A currency code or a scale right after a quote is read ("$49" then
  "CAD per month" is CAD; "$2" then "million" is no price); only "off"
  right after a price drops it (the next card's "Save 20%" doesn't). A
  period is named within 24 characters of the price, the first one
  named; "per active user" is per seat.
- A plan's name matches as whole words ("Pro" isn't in "Product"); a
  quote isn't taken inside another mark's dollar ("C$49") or a
  space-grouped number ("299 €" in "1 299 €").
- factText counts words toward its length, not indentation.
- A page whose model read failed waits MODEL_EVERY_MS like any other;
  a GET reads a failed page again behind its answer, not before it.
- New facts get the room the removed ones leave; a page whose new facts
  didn't fit keeps its old hash, to be read again. A kind no longer read
  (a shop's product page) loses its row.
- refreshOnce: one read per brand at a time, for the tab and the weekly
  read alike.
- 00269: a missing key is a check violation, and numbers compare as
  numeric (no cast error).

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): cry no wolf on brand facts: plans named as written beside the price, the brand's own trial and founding year only (CE-047, part d review)

- A price is compared with the plan named nearest it, its name as the
  page writes it (case too); a plan that is an everyday word ("Pro",
  "Team", "Free", "Growth") only beside "plan"/"tier" or with the brand
  named. With no plan, only a sentence naming the brand and saying what
  it costs; no "we/our" path. Free ($0) is never compared; "from $19"
  matches any approved price.
- A sentence with an old price, a saving, a discount, credits, tax or a
  team's bill ("was $49", "incl. VAT", "5 users pay") isn't read for
  prices; "billed monthly/annually" narrows to that billing.
- Ranges need a number before the dash or word (French "à", Turkish
  "ile", "between … and"), so "Pro – $49" is a price again; an amount
  doesn't start inside a number.
- A trial is compared where it is the brand's ("your free trial",
  "every plan", its name), its days right beside the trial; a founding
  year right after "founded", with the brand named or "we were founded".
- Each sentence once. The to-do is last (the brand's, no points of the
  page's), "Review your brand facts" at 0 and "reviewed" when done.
- useBrandFacts fails instead of loading for ever when the action throws.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content): read a page's visual proof spots and proof asks in one AI pass, kept by its hash (00270, CE-049, part a)

Quality phase 2, CE-049 (spec §4b), the server: one model read of the
whole page, with its page type, the brand's business type (B2B, B2C,
e-commerce) and the brand's approved claims about itself (CE-047):

- spots: where one specific image the business can take itself would
  prove a paragraph ("A photo of this backpack on a real hike"); kept
  only on a paragraph, list item or quote, in its own words, plain text,
  not generic (EN/TR/DE blocklist), naming the page's own thing (a word
  shared with its passage or headings), one an H2 section, three a page;
- proofs: the business's own claims whose proof only it has (award,
  certification, research, rating, ranking, number, test, customer case,
  else unknown), in the paragraph's words, not where it already links
  out; a customer case on a B2C or shop page only when the claim names
  one;
- regulated (health, finance, legal) on a B2C page.

00270: content_quality_pages (server-only, by page hash; items name
their paragraph by its 00266 hash, so a changed one drops out; missed
answers read again after a day) and content_draft_own_images (a member's
"this is my own image", as themself, 50 a draft; for part d).

POST /api/content-pages/page-read behind phase 2 with its own limiter: a
changed page read once a minute at most, 20 a day per draft (the shared
cap rises to 110: claims 50, page reads 20, sources at least 40), held
$0.01 as "quality"; a spent budget answers the kept read, paused. Logs
carry no page words.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): ask for the proof of the page's own claims as to-dos (CE-049b)

The page read (CE-049a) names the claims only the brand can prove: an
award, a certification, its own test, a rating, a ranking, a figure, a
named customer. Quality lists each as a to-do while its paragraph has no
link, worded by the kind of proof and the business type (spec §4b), five
open at once in the page's order, checked once linked; Add proof link
selects the claim and opens the link dialog, as Add source does. A link
to the brand's own site sources its own claim in Trust, and a sentence a
proof to-do covers leaves Trust's source suggestion.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): cap a draft's page reads at 20 a day and keep generic image spots out (CE-049, part a)

Review fixes before the PR:
- count the day's page reads on the row (day_reads, day_started_at):
  20 a draft, within its shared Quality calls;
- an image naming only words every business page has (product, team,
  customer, dashboard) anchors nothing; generic patterns read with the
  Turkish "İ" folded; logo and illustration patterns narrowed;
- keep proofs in a block that links out (the editor checks them off), so
  removing the link brings the ask back;
- a customer case on a shop or consumer page needs case words or a named
  customer; a count asks for its source; kinds and regulated normalised;
  one claim inside another of its block is dropped;
- a kept read is re-mapped for the business type as it is now;
- two asks at once are each mapped to their own page, the older pending;
- the hash covers what the model reads (headings cut at 300, the 16k
  cut, the brand's facts in any order, no addresses); facts ordered by
  first_seen_at, id;
- each block keeps its H2's words (an empty H2 shifted the lookup);
- own-images cap trigger: advisory lock, a re-confirm passes ON CONFLICT;
  spots and proofs up to 8 KB.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): keep a proof to-do when its link adds a space, and let Next step wait for the page read (CE-049b)

Pre-push review fixes:
- match proof asks and Trust's own-site proof by their words without
  spaces (a link put on a claim adds one at its edge), so the row is
  checked, not lost; a block's claims in their order;
- an own-site link sources only the proof claim's sentence, not the
  block's other figures;
- usePageRead says when its first answer is in (settled): Next step
  drops a stale skip only after it; a failed ask clears pending;
- Next step reads each proof to-do by its key; proofKey names the block
  by a short hash; had holds only the to-dos shown open;
- Before you publish names the claims a proof to-do covers again;
- "license".

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): hash a page's blocks by their words without spaces, so a link on a claim reads nothing new (CE-049, part a)

A link put on a claim adds a space at its edge ("roll -top"): the page
and its block were read as changed, a paid read within the minute's
pending dropped the block's items. Blocks and the page are now hashed
without spaces; the kept read maps to the block as the page has it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): show visual proof spots in the draft's margin, with Add image (CE-049, part c)

The page read's visual proof spots (#1467) stand beside their passages:
from 1120 px a card with the image to take, "For: “{passage}”" and Add
image; narrower a 20 px marker in the page's padding. A widget
decoration, never the page's (no save, export, copy or CMS push has
it), placed again only when the spots or the page change; hidden while
the agent changes the page. A spot goes once an image follows its block.

Add image takes the image by its https address, the alt text drafted
from the passage (required) and an optional caption (an italic
paragraph), put in right after the passage's block; a passage gone
meanwhile says so.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): confirm the page's own images, E-E-A-T's visual proof (CE-049, part d)

Only the person can tell their own screenshot or photo from stock: a
confirm step, never a pass (spec §2.1, 10 points in phase 2).

- eeat({visual}): an image confirmed own scores 10/10; images or an open
  visual proof spot with none confirmed 0/10; neither leaves it out. In
  phase 2 E-E-A-T waits for it, so the score doesn't move once it lands.
- To-do "Show your own image": Confirm (the page's images, thumbnails
  with no referrer, "Our own image, not stock") or, with no image and a
  spot open, that spot's Add image; the nudge offers it too.
- Add image gets "This is our own image…, not stock".
- getOwnImages (fails soft) and confirmOwnImage (as the member, the
  database's now, once; full at 50) on 00270's content_draft_own_images;
  a confirm shows at once and only it is taken back on failure.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): ask regulated pages for a qualified reviewer, from Authors (00273, CE-049, part e)

A consumer page that advises on health, finance or law (the page read's
regulated) asks for a qualified reviewer, from Authors only (spec §4b).

- 00273: content_drafts.reviewer_id → content_authors (set null), a
  trigger checking they are the brand's organization's (as 00257's).
- Header: "Reviewed by {name} ▾" beside the author (amber "Add
  reviewer" while none), shown when regulated or set; the title is the
  credential. A failed save rolls back only the latest pick.
- Quality to-do "Add a qualified reviewer" (what the page advises on,
  Pick reviewer / add one in Settings › Authors), after the proofs, once
  the authors are read; the nudge offers it.
- Page info strip: "Reviewed by {name}, {title}".

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): tie a brand fact's figure to the brand, one price per plan

Review fixes on the brand-facts check (CE-047):
- a price with no plan named is read only right after the brand's name
  and a pricing verb; "was founded" needs the brand, "we" or "our
  company" right before it; a sentence with two trial lengths is skipped
- each named plan takes the one price nearest it, skipped when another
  price sits between; add-on words ("extra", "additional", "add-on")
  aren't prices
- the next step no longer waits for the brand's first site read; the
  brand facts' to-do joins when it lands

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): keep a linked proof to-do checked, ask the page read past the API's minute

Review fixes on the proof to-dos (CE-049, part b):
- a proof ask's key hashes its block's words without spaces, so a link's
  edge space on the next read keeps the to-do checked and the nudge quiet
- the page read asks a few seconds past the API's minute, which counts
  from when the last ask reached it, so it isn't answered "pending"
- the hook's constants are PROOF_READ_*, apart from the panel's
  PAGE_READ_DELAY_MS

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): take only https image addresses up to 2,048 characters in the proof image dialog

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): pair plan prices closest first, keep a trial to the brand's part of a sentence

Pre-push review fixes on the brand-facts check:
- each plan takes its nearest price, the closest pairs first; a sentence
  with more prices than plans named isn't read for prices
- setup, onboarding and one-time fees aren't a plan's price; with no plan
  named, only the plan or pricing may sit between the name and the verb
- a trial is read in the part of the sentence that is the brand's, and a
  length said of another ("Ledgerly's runs for 14 days") makes two
- "was founded" needs who at the start of its clause, and "we" outside
  quoted speech
- stale Next step skips wait for the brand facts again: only the dropping
  waits, and a proof skip's Trust can move when they land

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): key a proof to-do by its claim's words without spaces too

The API cuts a claim from its block as the page has it, so a link's edge
space changes the claim as well as the block.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): read a sentence's prices only when they match its plans one to one, a partner's trial apart

- prices are read only when the sentence has as many as plans named (one
  with none named): a plan beside another's price, or a monthly and an
  annual price with no plan, are unsure
- ", which/who/whose" turns to another subject: a partner's trial isn't
  the brand's
- "Ledgerly's trial runs for 30 days" is read as the brand's trial

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test(content-editor): let the page read land before the stale-skip check in phase 2

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): score the page read's AI checks: who/how/why, balance, disclosure, answer first (CE-050, part b)

The page read's checks (#1478) count in Quality, each tagged "AI check":
- E-E-A-T's who / how / why on pages a reader trusts more for it, as a
  to-do ("Say how you made this page", Add input)
- Trust's balance and disclosure where they apply, as suggestions with
  Show on the passage that puts the brand forward; neither scores Trust
  alone
- Readability's answer first takes the model's verdict while its
  paragraph is still the first, 60 words or fewer to pass
Left out before the first read, while the budget or the day's reads are
used up, not found on a page read in part, or read for another page type;
a type change asks again; an edited find holds while the page is read.
Answer first reads past a byline or a date under the H1, as the API does.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): word the disclosure suggestion plainly

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): ask for a disclosure in Before you publish, with Add line (CE-050, part c)

Where the page puts the brand forward (the page read's disclosure check),
Before you publish has a Disclosure row: what the page says, or Add line,
a line in the page's language (disclosureText) the person adds; Export's
Before you publish line names a missing one. Export doesn't add it on its
own: whether the page recommends the brand is an AI read.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): put the disclosure line under the opening paragraph, once, in neutral words

Pre-push review fixes:
- the line goes under the page's opening paragraph (past a byline), so
  the answer the H1 gets first stays first for Answer first
- not offered twice: a page that has the line already shows it added
- not while the HTML view holds the page, whose source is what goes out
- the H1 is the page's first one with words, not only its first node
- the lines say the product is offered by the brand (a service or
  software too), with no gendered article; "without a disclosure"

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content): hand a draft's open Quality checks to the Content Agent in one run (00275, CE-051, part 1)

POST /api/content-drafts/:draftId/handoff (Quality phase 2): the editor
sends the page's fixable checks by key, with what each names on the page;
the server says what each asks and runs Fix open rules as one run of kind
'handoff', its suggestions left for review. The editor's details are no
fact the agent may write, and a placeholder stays the person's.

00275: content_agent_runs.kind 'handoff' and origin (person | auto), an
automatic hand-off once a draft; brands.content_quality_handoff (off by
default) and content_drafts.quality_handoff, the brand's setting copied
when the draft is made. An automatic run on a draft its brand doesn't
hand off is 409 not_due, a second one 409 already; one the AI budget stops
before it begins is taken back, to run once the budget renews.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(settings): add Settings › Content with Hand off quality fixes automatically, per brand (CE-051, part 2)

With Content Editor Quality's phase 2, Settings has a Content section: per
brand, Hand off quality fixes automatically (brands.content_quality_handoff,
00275, off by default). Admins and managers change it; anyone else sees it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): let a hand-off link the draft's sources and write the brand's approved facts

Pre-push review fixes:
- the source checks (claims, fresh, weak, primary, broken) read the
  draft's sources as link targets, so the agent can link one
- trust:brandFacts writes the brand's approved facts, read on the server
- a placeholder is read in the passage before and after the change: a
  "before" that cuts into its brackets doesn't fill it
- the person's own rules are no fact a hand-off may write either
- not_due first; a person's run writes no origin (the column's default),
  so a database before 00275 takes it; a run not taken back is failed

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): skip an automatic hand-off once its brand turned the setting off

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(settings): show a saved hand-off at once, end the wait with no workspace, say what turning it off does

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): hand the page off to Content Agent from Quality, in one run (CE-051, part 3)

Quality has a Hand it off to Content Agent card under its scores: it sends
every open suggestion (#1481's fixable checks), each with what it names on
the page, and the agent leaves its fixes as one batch to review, on the
same card, steps and Stop as Fix open rules; the to-dos stay the person's.
The disclosure goes only with its line in the page's language.

Fix open rules and Hand off share what they send besides their items
(agentContext) and how their answer is told (runAgentFix).

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): hand off only what the agent's checks ask, each card on its own run (CE-051)

- A suggestion that asks the other way to its check (sentences too short,
  a page too simple) stays the person's: the agent is told shorter and
  easier.
- Fix open rules and Hand off each show their own run; the other card
  waits, saying the agent is at work.
- The disclosure isn't sent once its line is on the page; Hand off waits
  for the page's read after a save when it sends what AI read
  (usePageRead's behind), and while claims are read.
- The passage is cut to fit, never the disclosure line.
- A full hand-off says to hand it off again; the API's 'off' is said.
- The blocked reason is the button's description.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): count each placeholder a hand-off would drop, and run one fix at a time (CE-051)

- dropsPlaceholder counts each placeholder before and after the change,
  read in what is kept (the new words and the blocks after them): filling
  one of two "[figure, source]" in a passage is dropped too. In a heading
  only the agent's own forms count, as the editor reads them.
- A hand-off's prompt says to leave every [placeholder] as it is.
- Fix open rules and a hand-off are refused with 409 `running` while
  another fix or hand-off on the draft is under way (fixUnderWay).

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): read a plan's price only right after its name, and a trial only after the brand's (CE-047)

- A named plan's price is read as the brand's is: right after its name
  (with its plan or tier word), with nothing, "is", a colon, a dash, "("
  or a pricing verb between. A price compared within a few words after it
  ("$30 more than", "$20 less … than") is read for no one, and "saves",
  "saved", "saving" are a saving.
- In a part of the sentence that is the brand's, only a trial length after
  its name or "your trial", "every plan" is its own; "free for N days" is a
  trial only after "try"/"use" and the brand, or in a sentence that says
  "trial".
- "We were founded" starts its clause only at the sentence's start or after
  since/when/after/and, not after a colon (quoted speech).
- In phase 2, the Quality score also waits for the brand's facts.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): hold the Quality score until the page as saved is read for proof (CE-049)

usePageRead counts a save it hasn't asked about yet as reading, as
useClaims does, and waits only for changes on their way (the editor's
narrower `saving`), so a failed save, a conflict or a page too large
doesn't hold it. In phase 2, qualitySettled waits for the page's read.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): hold the Quality score for the visual proof, and score when the own images can't be read (CE-049)

- qualitySettled waits for E-E-A-T's visual proof in phase 2 (the page's
  read and the own images), so the chip doesn't settle on Trust and
  Readability and move when the read lands. The page read already waits
  only for changes on their way (#1468's `saving`).
- A failed own-images call counts the confirms made so far, so E-E-A-T
  scores and Confirm opens.
- The visual proof to-do is listed when Your input can't be read too, in
  its place.
- E-E-A-T takes both the visual proof and the author confirmations.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): hold what the page read found until the edited page is read again (CE-050)

- aiChecksOnPage holds a find whose paragraph changed while the page as it
  is now is still to be read: changes not saved yet, a save not asked
  about (usePageRead's reading, #1468) or an ask out. The passage that puts
  the brand forward still applies then, and Answer first's verdict is held
  (`held`, which readability takes over the block match).
- The editor, a save and a restore detect the page type with the existing
  page's address, as Start did, so the read's type and the editor's agree
  from the start.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): put the disclosure line past a hero image, and count it before the next read (CE-050)

- Add line looks for the opening paragraph past what has no words (an
  image, an empty paragraph), as Readability and the page read do, and a
  byline or a date: the answer stays first for Answer first.
- While the page has the line Add line put in, the disclosure counts as
  found (Trust, Quality's suggestion, Export's line); Before you publish
  still says it was added until the page is read again.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): wait on the page's read only where it moves what Hand off sends, and say `running` (CE-051)

- usePageRead's reading now counts a save not asked about yet (#1468), so
  the hand-off's own `behind` flag goes. Hand off waits for the page's
  read before its first answer, or after a save while it sends what AI
  read of the page (Answer first, the disclosure, balance); not after
  every save.
- The API's 409 `running` (another fix or hand-off on the draft, #1481)
  is said, for Fix open rules too.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): hand a brand's imported and agent-written pages off on their own, and list hand-offs in History (CE-051, part 4)

- A draft its brand hands off (Settings › Content, copied at creation,
  quality_handoff) whose page came from elsewhere (imported to optimize,
  or the agent's) goes to Hand off on its own, once: when Quality is
  settled and nothing holds Hand off (open suggestions, the agent at work,
  a spent AI budget, the reads, the HTML view). The editor reads whether
  the draft had its automatic run (readAutoHandOff); the server's row is
  the claim, and its `already` / `not_due` aren't said.
- History lists the draft's hand-offs of the last 90 days among the
  versions by time, who started each, how it ended and its checks, with
  nothing to restore (getDraftHandoffs).

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): keep the automatic hand-off quiet and off published pages, and read History's hand-offs as they ended (CE-051)

- The automatic run says nothing when it doesn't run or finds nothing
  (only logged); a published draft, or a brand that stopped handing off
  (readAutoHandOff reads its setting too), doesn't run it at all.
- History: a run stopped before its outcome was written reads as
  stopped, one left past RUN_STALE_MS as failed; a done run with no
  change says so; rows sort by time, not by the timestamp's text.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): weigh Quality's checks by the page type, and say which (CE-052, part a)

Phase 3 of the Quality spec (§11): the three scores keep their names, but
what each counts, and how much, follows the page's type.

- quality-profiles.ts: each page type reads as an article, product,
  category, feature or comparison profile (an article before Phase 3 and
  for the types §11 doesn't name), each with E-E-A-T, Trust and
  Readability weights; the article's are the blog defaults. `weighed`
  re-weighs a score's checks (each keeps its share of its points; a weight
  of 0 leaves the check out and rescales the rest).
- The editor weighs Readability, E-E-A-T and Trust for the page's type;
  Trust's unscored gains count out of the type's Phase 1 points.
- To-dos for checks the type leaves out aren't listed: a product, category
  or feature page goes out under the brand's byline, so no author to-dos,
  Export's "No author yet" or Before you publish's missing author.
- Quality says "Checks and weights for {type} (detected): …", with Change
  opening the header's page type menu.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): score Trust and ask for a disclosure only as the page type counts them (CE-052)

- Trust is scored after weighing, as trust() scores it: a type that
  leaves freshness out isn't scored by its links and site alone
  (weighedTrust).
- An unscored Trust gain for a check outside Phase 1's (brand facts)
  counts out of its own points too.
- A category page's E-E-A-T weighs the brand's own information (its site's
  trust, `brandInfo`) beside its own images, not all or nothing.
- Where the type leaves the disclosure out (product, category, feature),
  Before you publish and Export don't ask for one.
- Change has an accessible name.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): count the page type's own rules and a product page's shipping and returns in Quality (CE-052, part b)

- Readability gains one check on the types that weigh it: the page
  type's own rules as the Rules tab reads them from the page (a specs
  table, a side-by-side table, an intro, a buying FAQ, how-to steps), their
  share met; ones read by AI or a feed, or turned off in Rules, aren't
  counted (withTypeRules). Its suggestion names the rules not met; Hand off
  takes it too (readability:typeRules, on both sides).
- Trust reads whether a product page says how shipping and returns work,
  or links where they're told (shippingOnPage: en, tr, de, fr, es), as its
  own check there. Only the person knows them: a to-do, not a suggestion.
- The profiles' Readability and Trust weights make room for both.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): read shipping and returns in a policy's terms, and tell the agent each type rule's aim (CE-052)

- shippingOnPage reads the page's HTML, headings too, for a policy's
  terms ("free shipping", "delivery in 2 days", "30-day returns",
  "iade"), not "ships with a cable", "in return" or "return on
  investment"; Turkish capitals ("İade") and links like
  /shipping_policy, #versandkosten, /reembolso count.
- The type rules check carries each rule's aim and how the page reads now
  (shared with Fix open rules: aimAndNow), so Hand off tells the agent
  what to meet; a table of facts gets only the facts given, placeholders
  for the rest.
- Fit questions are read in English only: another language's page isn't
  scored on them (the Rules tab says so, as for the definition rule).
- The product and category lines name what they count.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test(content-editor): name the product line's new checks in Quality's test (CE-052)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): ask a comparison to show when it was last checked, with Add line (CE-052, part c)

Spec §11 wants a comparison's check date visible. E-E-A-T reads one on the
page (a "checked/tested/updated" word with a year from the last two, in
the nine languages the disclosure has) as its own check, weighed on
comparisons (20). Only the person knows when they checked, so it's a
to-do: "Show when you last checked", whose Add line (in Quality and the
nudge) puts "Last checked: {Month YYYY}." in the page's language under
the opening paragraph, where the disclosure goes (addLineUnderAnswer). A
language without a line asks the person to write it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): read a check date as a label too, and replace a stale one (CE-052)

- The check date is read as a verb or a label ("Last update", "Son
  güncelleme", "Letzte Aktualisierung", "Dernière mise à jour"), each word
  at a word's start ("areas of", "untested" aren't one), Turkish capitals
  too; in a block longer than a label, the year must be near the word.
- Add line replaces a check date the page has already (an old one) rather
  than adding a second, and isn't offered while the HTML view is open.
- The line has no full stop, so Answer first reads past it as a date.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): confirm a customer case may be published, not just link it (00279, CE-052, part d)

Spec §11: what Quality can't verify becomes a confirm step, never a pass;
customer logos and cases need the customer's permission to publish, which
only the person knows.

- 00279 content_draft_confirmations: what a member confirmed that only
  they can (a customer case; category intro facts next, CE-054), by kind
  and key, with who and when; members read their drafts' and insert as
  themselves, now; 50 a draft; no update or delete.
- In Phase 3, a proof ask of a customer case is that confirm ("Confirm you
  may publish the customer case …", Confirm in Quality and the nudge),
  done once confirmed, linked or not.
- E-E-A-T counts the share of the page's customer cases confirmed
  (customerCase), weighed on feature pages (25); E-E-A-T waits for the
  confirms' read in Phase 3.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): key a customer case's confirm by its claim, and keep its sentence the person's (CE-052)

- A confirm is keyed by the case's claim alone (caseKey), so fixing a typo
  in its paragraph keeps it, and re-confirms don't fill the 50.
- A customer case's sentence, confirmed or not, stays out of Trust's
  agent-fixable suggestions: Hand off never sources or removes a case the
  person confirms (QualityRead.caseSentences).
- A case's to-do waits for the confirms' read (casesRead), so one
  confirmed before doesn't show open; E-E-A-T waits for it too, and a
  failed read counts the confirms made so far.
- The feature line names the customer cases it counts.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): give a product page its Product schema with the price it states (CE-053, part a)

Spec §11 (Phase 3): a product page's schema is Product + Offer. Before you
publish gives it on product pages, from the page as written:

- name from the title (left out while it has a placeholder), description
  from the opening paragraph (past a byline, up to 500 characters), the
  person's own images (CE-049) else the first, the brand;
- the price the page states (pageOffer): one price is an Offer, several in
  one currency an AggregateOffer; an old price, a saving, an add-on, a
  shipping threshold or a minimum order isn't one.
- A page that states no price (or prices in more than one currency) gets
  no code: the row asks for the price, or a product feed. Availability,
  SKU, GTIN and reviews wait for a connected feed and reviews; none is
  made up.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): read a product's price by the words around each amount, and give no Product without its name (CE-053)

- Product needs a name: no code or Copy without one, and a row saying so.
- Each amount is judged by the words just before and after it, not the
  whole sentence: a sale keeps its price ("$129 (was $159)"), a threshold,
  shipping, financing, a unit price, a bundle or an add-on drop only their
  own amount, and a tax-inclusive price or "Extra large" stays a price.
- A range ("$119–$139", "119–139 €") gives low and high (priceRanges);
  no offerCount, as a price can stand for several offers.
- A placeholder in the opening paragraph leaves the description out.
- Export's Before you publish line names the Product schema; the note
  says a "$" reads as US dollars.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): give a product's price only where the page states one, and ask which where prices differ (CE-053)

A price in the Product schema is pasted as the product's, so nothing is
guessed:
- Prices that differ (sizes, or an amount the reading missed) are no
  range: Before you publish lists them and asks for the price once, or
  as a range written as one ("$119–$139").
- An old price ("Regular price", "Original price", "reg.") counts only
  where the page gives no other; "au lieu de", "antes", "bisher",
  "eski fiyat" are old prices too.
- An amount added to the price ("+ $9.95 shipping", "zzgl. 4,95 €
  Versand", "$4 tax"), a saving, a worth or a reward ("save up to",
  "worth", "$30 value", "in rewards", "trade-in") and a threshold
  ("Versand ab 50 €", "Min. order") aren't the price.
- Free shipping is no bill ("with free shipping costs $129").
- "Ridge 28 $129" is $129, not 28 $; "Ridge 28 – $129" is a price.
- A range with one currency needs a dash and no space ("$119–139"), and
  no word joined to its end ("$19 - 100% cotton", "$25-30-day").
- A range by the month ("10–20 € pro Monat", "monthly") is a plan's.
- Export names the Product schema only where Before you publish has its
  code.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): read a price's currency where it's written, and ask about "from" prices and loose ranges (CE-053)

- A currency after an amount stays with it unless a digit follows at
  once: "129,00 € 159,00 €", "999 TL 3 taksit" and "Pro 49 € 10 Nutzer"
  read the right amount (Trust's brand facts too).
- "$129.00 CAD": a code after a sign says whose dollar it is.
- A range with one currency and a spaced dash or a word ("119 – 139 €",
  "$119 to 139") is no longer read as one of its ends: it, "From $119"
  and other prices the page gives are listed for the person to settle.
  "$129 – 150 reviews" and "€20 – 30 Tage" stay one price.
- "Regular" or "Original" alone is a size; "Regular price" is an old
  price only beside a lower one in its block.
- "S24+: $999.99" keeps its price; "3 min. $129" isn't a minimum order.
- Thresholds and savings in more languages ("über", "superiores a",
  "supérieure à", "orders $50+", "Sie sparen", "Économisez", "3 Raten à",
  "3 plazos de").
- Prices that differ are listed once each ("$129" and "$129.00"), five
  at most.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): check a product page's price, GTIN and stock against its product feed (CE-053, part b)

Spec §11: a product page's Trust counts "Price and stock match the feed /
Merchant Center". The feed is the brand's catalog (00278, #1263): the
page's product is found by its URL (an optimize draft's, as feeds write
it: no www, trailing slash or query), else by its title when one product
has it (getCatalogMatch; members read the catalog under its RLS).

- feedCheck compares only what both state: the page's price (one, or a
  range's low and high, a sale price counting as the price now, in the
  feed's currency), a GTIN the page gives (EAN, UPC; leading zeros don't
  count), and its stock ("In stock", "sold out", "Stokta yok"…).
- Trust: new feedMatch check, the share that matches, weighed 30 on
  product pages (the most there: claims 25, brand facts 10, links 5, site
  10, shipping 10) and 0 elsewhere; left out, the rest rescaled, where the
  feed doesn't have the page's product.
- Quality names what differs ("Price differs from your product feed ·
  Page $129 · Feed $119") with Show on its sentence; the person checks
  which is right, so Hand off leaves it. With no feed, or no product in
  it for the page, a line says the price and stock aren't checked.
- Rules: "Price, GTIN and stock match the feed" reads the same check (met,
  differs, not in feed, nothing to compare) instead of always "Needs feed",
  and isn't sent to the agent.
- types/supabase.ts: catalog_products and catalog_variants.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): ask about a price a number may be written onto, and show the price read for the person to check (CE-053)

- A space between digits ("PlayStation 5 549,99 €") or a sign after a
  whole amount with a number next ("Ridge 28 € 129") may be another
  number's: the price is listed for the person, not guessed. Cents tie a
  sign to its amount ("129,00 € 2 Jahre Garantie" is 129 €).
- "CAD $129", "MX$1,299": a code before a dollar sign says whose;
  "CHF 1'299.–": an apostrophe groups thousands.
- "From just", "As low as", "begins at", "A partir de", "A partire da",
  "Vanaf", "Ab nur", "'den başlıyor" are from-prices: asked about.
- An old price is dropped only beside one lower price in its block, at
  least 40% of it ("Regular price $129 Unit price $12.90" keeps $129).
- A member's, a subscriber's or a code's price, a unit price ("Grundpreis",
  "/ per 100g"), PayPal's Pay in 4, a balance and an "indirim" amount
  aren't the price.
- A price beside a range must be one of its ends: another product's range
  isn't the product's.
- Before you publish names the price it read ("Price read from the page:
  $129. Check it's the product's.").

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): read a product's stock and GTIN as the page means them, and look its product up by the catalog's index (CE-053)

Pre-push review of part b:
- Stock: "back in stock", "not / no longer in stock", "stokta değil",
  "Stokta kalmadı", "plus en stock", "nicht mehr vorrätig" are out of
  stock; a shipping policy ("items in stock ship in 24 hours") and "ships
  today" say nothing of this product's.
- GTIN: the code alone, hyphens allowed but never across a space, and only
  one with a GTIN's length and check digit ("UPC 012345678905 12 months"
  is the UPC).
- A page at the feed's regular price matches while the feed still has a
  sale price: the sale may be over.
- The URL lookup reads the brand's live products only (their index), the
  path as written and as an address encodes it ("/ürün"); a removed
  product isn't matched; variants come by price; a "*" (PostgREST's
  wildcard) isn't looked up.
- A product found by its name is used only while the title is that name.
- Rules: "Reading feed" while the catalog is read; the agent's message for
  the feed rule says to check the page or the feed, not the extra H1s'.
- Trust is scored from a product page's feed check too.
- "no product feed is connected for this brand yet": there's no screen to
  connect one yet.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): score a product or category page's Trust from a compared price, and wait for the site before a category's E-E-A-T (CE-052)

Review on #1491:
- Where brand facts weigh as much as sourced claims (product and
  category pages), a price compared with them scores Trust: a page with
  every price wrong no longer reads "Not scored yet" and passes Before you
  publish's gate. weighedTrust scores by the weighed checks (trust()
  leaves it unscored by its own). The article (10 to 30) is as it was.
- A category page's E-E-A-T waits for the site's trust, its 40 points of
  the brand's own information (waitsForSiteTrust), so it doesn't jump.
- Copy: a page type under the brand "goes out under {byline}" (Ansvisor
  gives no schema for it); the category line names the brand's own
  information and no longer promises an intro check.
- QUALITY_WEIGHTS_VERSION is gone until calibration reads it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): read a buying FAQ and a product's shipping and returns in the page's language, and ask for fit only where there are sizes (CE-052)

Review on #1494:
- The buying FAQ (and the FAQ rule) is found under its heading in German,
  French, Spanish, Turkish (lowercased the Turkish way), Italian,
  Portuguese and Dutch; another language's page isn't told its FAQ is
  missing (English only), so Hand off never adds one it has.
- shippingOnPage reads the ways shops state their terms: a heading that
  names the policy with text under it ("Delivery & Returns", "Returns &
  Exchanges"), delivery with a time or a cost ("Standard delivery 3–5
  working days", "Free UK delivery on orders over £50"), "Returns are
  accepted", "Expédition sous 24h", "Entrega en 24/48 horas", "Reembolso",
  "Retoure", "Umtausch", "satisfait ou remboursé", "teslim edilir",
  "değişim". Not a bare "shipping" ("Shipping weight"), a product's link
  ("/collections/delivery-bags") or a product named for it ("kargo
  pantolon"). A page in a language the words aren't written for is read
  by its links, and isn't asked without one.
- Answer fit and sizing questions counts only where the page has sizes or
  asks about them ("No sizes" for a coffee grinder).
- Hand off: an answer the page and the data don't give (fit, sizes,
  shipping, returns, prices) is a placeholder, never made up.
- Product Trust weighs brand facts 30 and sourced claims 25 (was 25 and
  30), so a compared price scores a product page's Trust as #1491 makes it.
- The feature and comparison lines name their type rules.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): replace only Add line's own old check date, and read a check date in the words that mean it (CE-052)

Review on #1495:
- Add line replaces only its own line from before: a top-level paragraph
  that is one of the nine labels, a month and a year, and nothing else
  (isCheckDateLine). A byline ("By Jane Doe · Updated March 2023"), the
  answer ("We tested 9 CRMs in 2024; …"), a body paragraph or a list item
  stay the person's; the line goes under the answer instead.
- The check date's words in the forms that mean checked: "verification",
  "updates" and "kontrolü" aren't one; "Letzte Prüfung", "Actualisé le",
  "Testato", "Last modified", "Verificado" are.
- The to-do says when the page's date is over a year old ("Update when
  you last checked"), and whether Add line replaces it or the person's
  old date needs updating too (checkDateOnPage).
- The nudge says to check the products first ("show when you last
  checked, once you've checked the products").
- The comparison line names the check date.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): match a customer case's confirm by its words, keep its Trust share in sight, and hand off around it; move the migration to 00280 (CE-052)

Review on #1496:
- 00279 is #1493's (the catalog's sources): the confirmations migration is
  00280 now (file, header, table comment, schema.sql, comments). Its header
  says the key is the claim's words.
- A confirm counts for its case by its words, not the exact slice the page
  read picked (caseConfirmed): a confirmed claim's words in the case's
  sentence, or the case's claim in a confirmed one's (12 letters at least,
  so a name alone isn't a case). Used by the to-dos and the editor's count
  and open cases alike: a second read picking a longer slice keeps the
  confirm, and spends no other row of the 50.
- A case's to-do says when linking the published case still raises Trust
  (+N Trust), confirmed or not: its sentence is an unsourced claim until
  it's linked.
- Hand off sends the cases' paragraphs as locked passages: the server
  already drops any suggestion that changes one (keepSuggestions), so the
  agent never sources, softens or removes a case the person vouches for.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): read "back in stock" and Turkish stock as meant, find a variant's own page, and link where a feed is connected (CE-053)

Verifying part b's review fixes:
- "Back in stock!" is in stock; only "email/notify me when it's back in
  stock" is out. Turkish forms with endings ("stokta yoktur", "stokta
  bulunmamaktadır", "stokta mevcut değil") are out, and no longer read as
  in. A shipping policy ("items not in stock ship in 3 weeks") says
  nothing, read before the rest.
- The URL lookup reads the path in its own case ("/Über"), then, when no
  product's URL is the page's, its variants': a product's URL is its first
  item's link (#1493's sync), so a variant with its own page is found by
  its own. 00281 indexes a brand's live variants for that read.
- A page range at the regular prices matches while the feed keeps an old
  sale; "EAN-8" is a label; all zeros is no GTIN.
- "No product feed is connected" links to Settings › Integrations, where
  #1493's product catalog card connects one.
- Product Trust: sourced claims 20, brand facts 20, the feed 25 (links 5,
  site 10, shipping 10, primary 5, weak 5): brand facts weigh as much as
  claims, so a compared price still scores Trust (#1491's review) while
  the feed weighs most.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): give a category page its ItemList of the products it links (CE-054, part a)

Spec §11, category pages: Trust counts an "ItemList schema". Before you
publish gave articles their Article and product pages their Product; a
category page now gets its ItemList to paste.

- listedProducts reads the page's links to the brand's own product pages
  (a product path: /products/, /p/, /urun/, /produkt/, /produit/,
  /producto/, /prodotto/, /artikel/…; the brand's domains, its
  subdomains too), in the page's order, each once ("www.", a trailing
  slash, a query and a hash alike). A relative link is read against the
  brand's site; the link's text, else its image's alt text, is the name.
- itemListJsonLd: ItemList under the page's name (none while a
  placeholder's in it), numberOfItems, each ListItem's position, URL and
  name (a placeholder name left out). Prices and stock stay each
  product's own page's Product.
- Before you publish, on a category page: "ItemList schema with N
  products" and its code, from two links on; else "ItemList schema needs
  links to your products", saying how many it links. Export's Before you
  publish line names it. The other types' row says Ansvisor's code is for
  articles, product and category pages.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): list only a category's product pages, an HTML block's too, and wait for the brand's domains before saying none (CE-054)

Pre-push review of part a:
- The product path must end at the product's own segment ("/products/
  ridge-28", not "/products/ridge-28/reviews"); a file ("/cdn/shop/
  products/ridge.jpg") isn't a page; "/p/" (a post's path on Substack-like
  blogs), "/artikel/", "/items/" and "/dp/" are out, Wix's
  "/product-page/" in. A Shopify collection's "/collections/x/products/y"
  is "/products/y".
- An HTML block's links count (a product grid is often one).
- A name is the card's words joined apart ("Ridge 28", not "Ridge 28$129.00"),
  its prices out, not a button's word ("Shop now"); a later link's name
  fills one the first didn't give. 100 products at most.
- While the brand's domains are read, the row says so instead of "no
  links"; if they can't be read, the site's own domain (Site trust) is
  used, else the row says to check the CMS's ItemList. Export names the
  ItemList only once its code is there.
- "No links" says what Ansvisor looks for (/products/…, /product/…), with
  a count for every number; a placeholder in the title says the list's
  name is left out. Below Phase 3 the other types' row keeps its copy.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content-editor): confirm a category intro's counts and prices, Trust's intro facts (CE-054, part b)

Spec §11, category pages: Trust counts "correct counts and price range",
and the typical to-do is "Confirm intro facts". How many products a
category has and what they cost are the brand's own: no source says them,
so only the person can confirm them, as a customer case (CE-052).

- introFacts reads the intro (between the H1 and the first H2, as the
  Rules tab's intro is) sentence by sentence: a count ("120+ daypacks",
  "over 50 styles", "choose from 24 colours", "50'den fazla model",
  "über 30 Modelle", "plus de 20 modèles", "más de 30 modelos") or a price
  with its currency ("from €49", "under $100", "$49–$199"); not a year,
  a size or a step. Each keyed by its words: a changed fact asks again.
- One to-do, "Confirm the intro's counts and prices", quoting the ones not
  confirmed yet; Confirm (in Quality and the nudge) saves each as an
  intro_fact confirmation (00280), shown at once and taken back if it
  can't be saved.
- Trust: new introFacts check, the share confirmed, weighed 20 on category
  pages (claims 20, weak 5, brand facts 25, links 10, site 20; brand facts
  still weigh as much as claims) and 0 elsewhere; it scores Trust as a
  feed check does, and is left out where the intro states no fact.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content-editor): keep an intro confirm by its facts, read only what counts products, and leave other cate…
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.

2 participants