# Changelog

> Release history of the SEO Suite and every module in it, merged into one timeline.

Current version: **2.10.1**

This timeline merges the release history of the suite (the SEO Suite metapackage) and of every module in it. Modules are versioned independently, so a version heading lists every package that shipped that version number, each with its own notes and, where it differs from the heading, its own release date.

## 2.10.1 — 2026-11-23

### SEO Suite metapackage

A patch release for findings of the 2.10.0 review. Run `bin/magento setup:upgrade`, clear `generated/` (on Mage-OS
including `generated/staticcache`, where compiled interceptors keep each area's plugin list) and flush the caches.
On an ElasticSuite store, require the bridge in the same command:
`composer require qoliber/seo-suite-metapackage:2.10.1 "qoliber/seo-pretty-filters-elasticsuite:^2.3" -W`.

#### Fixed
- **`seo-advanced-sitemaps` 2.4.0**: a failure late in publication could leave the live index listing children of
  two generations. Each run now publishes its children under names of its own and switches the index in one rename;
  a failed run leaves the previous sitemap byte for byte. Child filenames now carry the run id: submit the index.
- **`attribute-seo-path` 1.1.1**: removing a store view's translated option label no longer erases its SEO path, and
  REST, GraphQL and the search indexers read the default label for a store view that has a path but no label.
- **`seo-pretty-filters` 2.5.1**: conflicts with `seo-pretty-filters-elasticsuite` below 2.3.0, whose multi-value
  filter URLs answer 404 with 2.5.x, instead of letting Composer keep it.
- **`seo-advisor-ai` 2.3.1**: Claude and Gemini retries are limited to HTTP 429 and 529 responses and
  DNS or connection failures. Read timeouts and other server errors end the request without a retry.
- **`seo-dynamic-tags` 2.2.1**, **`seo-dynamic-descriptions` 2.4.1**: one Varnish purge per change instead of two.

#### Changed
- **`seo-index-now` 2.5.0**: notifications go directly to the endpoint; the server's proxy settings are not used
  (through a proxy the checked addresses no longer applied). A server that reaches the internet only through a proxy
  cannot deliver to IndexNow.

#### Tests
- **`seo-rich-snippets` 2.7.1**: the integration suite keeps the shipped snippets (a fixture rollback deleted them).
- The OpenSearch integration run passed with six ElasticSuite-only cases skipped. The full ElasticSuite 2.12
  run exercised those cases and reported two IndexNow fixture failures. All 86 IndexNow tests passed on a fresh
  ElasticSuite install after the fixture fixes.

## 2.10.0 — 2026-11-21

### SEO Suite metapackage

This release addresses the audit findings listed below and adds regression
coverage. After updating, run `bin/magento setup:upgrade` and flush the caches.
SEO Images adds an index column. Rich Snippets backs up and updates unedited
shipped templates.

#### Security
- **`seo-canonical` 1.4.0**: the canonical URL is escaped for its HTML
  attribute and built on the store's configured base URL, not the request;
  campaign and click-tracking parameters no longer reach it.
- **`seo-index-now` 2.4.0**: the endpoint policy restricts submissions to
  approved HTTPS hosts with public DNS results and disables redirects. A server
  that can connect only through a proxy still needs to resolve those hosts.
- **`seo-advisor-ai` 2.3.0**: the Enabled switch and a verified provider are
  required before any advice request. Verification results from a replaced key
  are discarded.
- **`seo-dynamic-descriptions` 2.4.0**: category templates are rendered once,
  inside loop, range and output limits.
- **`seo-rich-snippets` 2.7.0**, **`seo-dynamic-tags` 2.2.0**, **`seo-redirects`
  1.1.0**: admin writes accept POST only and only their own fields; UI data
  follows the module's ACL.

#### Fixed
- Re-pinned **`seo-advanced-sitemaps` 2.3.0** (one run per sitemap index at a
  time, with staged files checked before publishing), **`seo-friendly-product-urls` 2.3.0** (rewrites only for the
  product's own website), **`seo-platform` 1.2.0**, **`seo-pretty-filters`
  2.5.0** (whole-token parsing), **`attribute-seo-path` 1.1.0** (native option saves
  preserve paths on retained labels and existing path-only entries),
  **`seo-href-lang` 2.4.0**
  (Magento's own robots setting), **`seo-opengraph-tags` 2.2.0**,
  **`seo-images-friendly-url` 2.3.0**, **`seo-ai-discoverability` 2.2.0**,
  **`seo-inspector` 1.1.0** and **`seo-common` 2.1.4**.
- **`seo-rich-snippets` 2.7.0**: the WebPage template publishes the page's
  title, description and URL instead of `null` (GitLab seo-rich-snippets#4);
  an invalid template no longer interrupts the page; included templates
  follow their store views.

#### Changed
- Hreflang alternates stay on tracking-only visits (`utm_*`, `gclid`, …).
- Generic pages share `og:url` without the query string; a configurable
  child shares its canonical.
- Malformed pretty-filter URLs answer 404; generated URLs are unchanged.
- Store-view image file names are available per store view, off by default.

`seo-pretty-filters-elasticsuite` 2.3.0 (not pinned here) requires
`seo-pretty-filters` ^2.5.

## 2.9.3 — 2026-10-29

### SEO Suite metapackage

The product compare page no longer answers 500 when a comparable Yes/No
attribute has a value.

#### Fixed
- Re-pinned **`seo-dynamic-descriptions` to 2.1.5**: its plugins on the core
  catalog output helper declared a `string` return type, but the helper
  returns the `__('Yes')` / `__('No')` Phrase for Yes/No attributes and `null`
  for an empty category attribute. The TypeError broke the compare page on
  Luma and Hyvä, even with the module switched off in the configuration. An
  attribute value of `0` also shows again instead of an empty cell.

## 2.9.2 — 2026-10-19

### SEO Suite metapackage

Every module now installs its own tagged code from Git, and deep listing pages
no longer answer 500 on Magento 2.4.9.

#### Fixed
- Re-pinned **`seo-pretty-filters` to 2.3.2**: a listing page past the last
  page (`?p=999999`) answered 500 on Magento 2.4.9 with OpenSearch; it now
  answers the documented 404 (200 with an empty listing when that option is
  off, or on a grid/list or page-size switch).
- Re-pinned **`attribute-seo-path` to 1.0.13**, **`seo-advanced-sitemaps` to
  2.2.2**, **`seo-advisor-ai` to 2.2.4**, **`seo-dynamic-descriptions` to
  2.1.4**, **`seo-dynamic-tags` to 2.1.6**, **`seo-friendly-product-urls` to
  2.2.4**, **`seo-href-lang` to 2.2.2**, **`seo-images-friendly-url` to
  2.2.10**, **`seo-opengraph-tags` to 2.1.7**, **`seo-pretty-filters` to
  2.3.2** and **`seo-rich-snippets` to 2.6.2**: their `composer.json` no
  longer hard-codes a `source` block pointing at `master`. Composer keeps a
  package's own `source` over the repository's, so an install from Git
  checked out `master` instead of the pinned version and `composer.lock`
  recorded `master` instead of the tag's commit.
  `seo-pretty-filters-elasticsuite` 2.2.4 carries the same fix; it is not
  pinned here.

## 2.9.1 — 2026-10-19

### SEO Suite metapackage

Fixes from a code review of the 2.9.0 modules.

#### Fixed
- Re-pinned **`seo-advanced-sitemaps` to 2.2.1**: a sitemap at the store root
  (`/`) no longer fails after publishing (`".htaccess" is not a valid file
  path`), the index no longer lists children with a double slash, and
  renaming or deleting a sitemap removes the child files it published.
- Re-pinned **`seo-pretty-filters` to 2.3.1**: with ElasticSuite, category
  filter links point at the subcategory again instead of the current page;
  pager links keep multi-value filters; ElasticSuite's "Show more" options
  keep their listing URL; switching grid/list or the page size on a late page
  no longer answers 404.
- Re-pinned **`seo-rich-snippets` to 2.6.1**: a configurable product set out
  of stock publishes `OutOfStock`; deleting or switching snippets off in the
  admin accepts only POST.
- Re-pinned **`seo-index-now` to 2.3.1**: outbox rows are written after the
  save commits, so a deadlock can no longer leave a save half-written; large
  batches are no longer misread as HTTP 100; the retention purge and mass
  actions work in chunks.
- Re-pinned **`seo-canonical` to 1.2.1** and **`seo-href-lang` to 2.2.1**: an
  `identifier|page_id` home page setting is read the way Magento serves it,
  `/home` announces no hreflang alternates of its own, and hreflang picks the
  same rewrite as the canonical.

## 2.9.0 — 2026-10-18

### SEO Suite metapackage

Fixes from an external SEO review: the modules now agree on what is indexable
and canonical, and crawl traps answer 404. Install order for these pins:
`seo-canonical`, then `seo-href-lang`, then `seo-advanced-sitemaps`.

#### Changed
- Re-pinned **`seo-canonical` to 1.2.0**: category, CMS and home page aliases
  (`catalog/category/view/id/4`, `cms/page/view/page_id/3`, `/home`, the store
  root) canonicalise to the entity's own URL, and a configurable child
  canonicalises to its parent only when that parent is live in the store. New
  `ParentCanonicalResolverInterface` gives sitemaps and hreflang the same
  child → parent decision.
- Re-pinned **`seo-href-lang` to 2.2.0**: configurable children keep their
  alternates unless the canonical policy really points them at a live parent
  (the shipped defaults used to strip them); CMS pages with different URL keys
  per store view are linked through a new "Hreflang Translation Group" field.
- Re-pinned **`seo-advanced-sitemaps` to 2.2.0**: child sitemap files are
  named after their index (`sitemap-products.xml`, `sitemap_en-products.xml`),
  so sitemaps sharing a directory no longer overwrite each other; every
  sitemap lists only indexable, self-canonical URLs; products and images are
  generated in batches; `lastmod` dates are real or omitted; the contact page
  follows Magento's Contact Us switch.
- Re-pinned **`seo-rich-snippets` to 2.6.0**: a configurable product page
  always publishes an offer: its ProductGroup with an Offer per variant, or,
  when the ProductGroup is inactive or no variant attribute is mapped, one
  Offer at the "As low as" price (never an AggregateOffer, which Google
  advises against for variants). Bundles publish an Offer for their cheapest
  purchasable configuration; grouped products get no invented combined offer,
  and a Product with no offer, review or rating is no longer published.
- Re-pinned **`seo-pretty-filters` to 2.3.0**: repeated filters, out-of-range
  or malformed page numbers and empty filter combinations answer 404 (new
  option, default Yes); Complex-mode price links use the resolvable
  `price~from-to` form; search pages keep native query-string filter URLs.
- Re-pinned **`seo-index-now` to 2.3.0**: notifications go through a durable
  outbox delivered by Magento cron, with accurate delivery status, retries
  and backoff; deletes, stock changes, mass updates and the parents of
  changed variants are now notified. **Requires Magento cron.**

## 2.8.1 — 2026-10-16

### SEO Suite metapackage

_Never tagged: these changes first shipped in 2.9.0._

#### Changed
- Re-pinned **`seo-rich-snippets` to 2.5.2**: a nested `{{snippet.x}}` whose
  snippet is missing or inactive is now omitted instead of being published as
  `""` (or, unquoted, silently dropping the whole parent snippet as invalid
  JSON). The admin refuses to delete or rename a snippet that active snippets
  still include, and to save a template that includes an unknown snippet.
  Also fixes Mass Delete / Mass Enable-Disable on selected grid rows. A
  configurable product page no longer publishes the product a second time as
  a Product without offers next to its ProductGroup; that node's shared
  properties (description, image, brand, reviews, rating) move to the group.
- Re-pinned **`seo-pretty-filters` to 2.2.7**: 2.2.6 falls back to Magento's
  swatch URL builder when the option ID is null, preventing category-page 500s
  when Tweakwise cannot resolve an option label; 2.2.7 corrects the Mode
  explanation in the admin, which announced 2 modes above the three it lists.
- Re-pinned **`seo-advanced-sitemaps` to 2.1.5**: a CMS page switched off
  with *Use In Sitemap* now leaves its store view's hreflang sitemap
  (`sitemap_hreflang.xml`) as well as the CMS sitemap.
- Re-pinned **`seo-images-friendly-url` to 2.2.9**: the gallery's *Image SEO
  Friendly name* is saved again when Magento_ProductVideo is enabled (the
  field name was double-escaped and posted under a key Magento ignored), and
  a saved name now becomes the image's storefront file name instead of the
  name template.
- Re-pinned **`seo-opengraph-tags` to 2.1.6**: a category page's `og:url` is
  the category's own URL instead of repeating the visitor's sorting, paging,
  filter or tracking query string.
- Re-pinned **`seo-dynamic-tags` to 2.1.5**: saving a tag without a request
  path is refused with a message instead of failing, and the duplicate-path
  error message is spelled correctly.

## 2.8.0 — 2026-10-04

### SEO Suite metapackage

#### Added
- Include `qoliber/seo-inspector` 1.0.0: store-specific cross-module inspection, provenance, conflict evidence, native admin reports and resumable CLI exports.
- Upgrade platform/canonical to 1.1.0 for optional provider evidence and a real canonical policy adapter.

#### Changed
- Pin the locally reviewed remediation versions of the existing SEO modules.
- UCP is a separate `qoliber/ucp` package and is not included in the SEO metapackage.

## 2.7.1 — 2026-11-23

### SEO Suite metapackage

_Released 2026-08-12._

#### Changed
- Re-pinned **`seo-pretty-filters` to 2.2.3** — hotfix: search-results pages
  500'd with layered navigation while the module was enabled (the layer-item
  plugin treated core's "attribute model is not defined" throw as an error
  instead of the category-filter signal). Found by live soak the same day.
- Re-pinned **`seo-redirects` to 1.0.1** — the Manage Redirects grid 500'd in
  developer mode (invalid `<editable>` element in the listing XML; production
  was unaffected).

### SeoRichSnippets

#### Tests
- **The integration suite no longer leaves the store without its shipped snippets.** The `all_tier_snippets` fixture
  replaces every snippet with its own set and its rollback emptied the snippet tables, so the shipped templates were
  gone once the suite had run. The fixture now keeps the snippets it replaces and the rollback puts them back. No
  change to the module's code.

## 2.7.0 — 2026-11-20

### SEO Suite metapackage

_Released 2026-08-12._

#### Added
- **The foundation modules graduate into the bundle at 1.0.0** — the platform
  API is frozen (stable reason codes + field-level provenance), so
  `qoliber/seo-canonical` (1.0.0) and `qoliber/seo-redirects` (1.0.0) move
  from `suggest` into the exact-pinned set, alongside `qoliber/seo-platform`
  1.0.0. Defaults are deliberate: **Redirects ships ENABLED** (without rules
  it only logs 404s and auto-creates redirects on URL-key renames — includes
  the new 404 admin grid, one-click convert-to-redirect, retention cron and
  hot-path caching); **Canonical ships DISABLED** (enabling it replaces every
  canonical on the storefront — merchants opt in).

#### Changed
- Re-pinned **`seo-friendly-product-urls` to 2.2.1** (platform constraint
  widened to `^0.9 || ^1.0`) and **`seo-advisor-ai` to 2.2.1**
  (`openai-php/client` widened to `^0.10.3 || ^0.20.0` — no more forced
  downgrade on stacks already shipping the 0.20 line).

### SeoRichSnippets

#### Security
- The template editor showed the JSON parser's error message as HTML, and that message can quote the template. It is now inserted as text, so a template containing markup can never inject it into the admin page.
- The module no longer allows `https://cdnjs.cloudflare.com` in the Content Security Policy (`etc/csp_whitelist.xml` is removed): the editor's CodeMirror is bundled with the module and served from the admin's own static files.
- Save and grid inline editing accept POST only. Save writes only the form's own fields (name, identifier, active, template, store views, page types, CMS pages, custom URL, custom handle, product conditions) to the snippet named by the request; posted ids, timestamps and unknown keys are ignored, a posted id that differs from the edited snippet is refused, and a field of the wrong shape (a list where text is expected, or the reverse) is refused with a message instead of failing with an error. Inline editing writes only a row's text columns (name, identifier, active, template, custom URL, custom handle) and refuses malformed rows.

#### Fixed
- A matching active snippet without a template (a NULL `json_schema`, e.g. a legacy row or one saved through the API) failed the whole storefront page with a TypeError. A snippet that cannot be rendered (no template, invalid JSON, a DJSON runtime error) is now left out and logged with its identifier and the reason, and the page and its other snippets render normally. The admin form refuses to save an empty template.
- A snippet included with `{{snippet.x}}` ignored its own store assignment: a template for All Store Views published a fragment assigned to another store view (another store's address or policies). Included snippets now follow the same rule as page-level ones: assigned to All Store Views or to the store being rendered. A fragment without any store assignment (only possible outside the admin form, which requires one) is still included everywhere.
- Activating a template, or changing the store views, page types, CMS pages, custom URL or custom handle of an active one, did not refresh pages already in the full-page cache, because a page cached before a template applied to it carried none of its tags. Every page with the JSON-LD block now also carries page-eligibility tags (`qoliber_richsnippets_page` and `qoliber_richsnippets_page_<route>`), and such a save cleans those of the pages the template now targets (all pages for a custom URL pattern). Saving or deleting a snippet now also purges, in the full-page cache and Varnish, the pages of every snippet that includes it, so activating an included snippet refreshes its parents' pages.
- `{{page.title}}`, `{{page.description}}` and `{{page.url}}`, used by the shipped WebPage template, had no value and rendered `null`. A new `page` variable provider (listed in the editor's Variables & Snippets panel as "Current Page") supplies the page's own meta title, its meta description (or the store's Default Description) and its canonical URL (or the current URL without its query string).
- The shipped LocalBusiness, Store, WebPage and Organization Address templates published placeholders: `"description": null` (`{{store.description}}` has no value), a fixed `"priceRange": "$$"` and `"openingHours": "Mo-Fr 10:00-18:00"`, New York coordinates, a placeholder storefront image, and in Store an `openingHoursSpecification` loop over `storeHours`, which nothing supplies (`[]`). They now publish the store's real data or leave the property out: name, phone, address, Store Hours of Operation (`openingHours`) and Price Range from Store Information, the general contact email, the store's Default Description, the uploaded header logo, and the page's title, description and URL; every value is guarded with `@djson if`, so an unset one is never published as `null`. The new `UpdateStoreInformationTemplates` patch rewrites only templates still exactly as distributed, after a private backup; edited templates, activation and store assignments are untouched. Fresh installs get the new templates directly.
- `@djson for productGallery as image` always rendered an empty list: the gallery was handed to DJSON as a Collection object, and DJSON loops over arrays only. `productGallery` is now one row per enabled gallery image with `url` (storefront image URL, the same image type as `{{product.image}}`), `label` and `position` (1, 2, ...).
- Review `datePublished` (`{{review.createdAt}}`) was Magento's `YYYY-MM-DD HH:MM:SS` in UTC without a zone. It is now ISO 8601 in the store's timezone (`2026-01-16T00:30:00+01:00`), as schema.org expects, for every template that uses it; no template changes.
- Product pages loaded the whole root-category product listing (every visible product, with URLs) whenever a template used reviews, gallery or tier prices, to fill a `products` list that only listing pages use. `products` is no longer built on product pages.

#### Changed
- DJSON pipe expressions such as `{{product.name | upper}}` render empty: qoliber/djson 1.5 does not apply pipes (it looks the whole expression up as a variable name), and this module resolves plain variables only. Rather than add a second template dialect, the editor now flags pipe expressions and saving a template that contains one shows a warning naming them, with the function form that works (`"@djson upper {{product.name}}"`, `"@djson default {{product.brand}} 'n/a'"`).
- `Api\RichSnippetsServiceInterface` is marked deprecated (it has no implementation and nothing uses it; removal in 3.0), and the reserved `product_conditions` field is documented as stored but not evaluated.
- `README-VARIABLES.md` and `Setup/Patch/Data/README.md` are rewritten to match the shipped templates, variables and patches, with backup restore steps; they link the published templates with their rendered output (https://github.com/qoliber/seo-richsnippets-djson-examples) and the DJSON documentation (https://djson.dev). `Test/README.md` now gives the current unit and integration commands; the stale Warden setup script and the broken module-local integration configuration are removed, and `Test/phpunit.xml` uses the PHPUnit 10 format.

#### Tests
- Integration: a NULL or blank template beside a valid one on a whole page, and as an included snippet; an included snippet assigned to one of two store views; full-page cache entries cached before activation, retargeting and child activation, against the built-in cache; Save and InlineEdit over GET, with extra fields, a mismatched posted id, malformed shapes and an empty template, and the pipe warning; the store-information templates on a fresh install, their migration (edited templates kept, backup written, activation and store views kept) and their rendering with and without Store Information; WebPage from the page's title, description and canonical URL; the product gallery loop and ISO 8601 review dates.
- Unit: store scope of included snippets, page-eligibility tags, the template guard and the new migration, the pipe inspector (and that DJSON leaves pipes unapplied), `CollectionVariables` rows and dates, `PageVariables`, and static checks that the admin editor inserts no markup and needs no external CSP origin.

## 2.6.2 — 2026-10-19

### SeoRichSnippets

#### Fixed
- `composer.json` no longer hard-codes a `source` block pointing at the `master` branch. Composer keeps a package's own `source` over the repository's, so installing any version from the Git repository checked out `master` instead of that version, and `composer.lock` recorded `master` instead of the tag's commit. The source now comes from the repository, so every version installs its own tagged code.

## 2.6.1 — 2026-10-19

### SeoRichSnippets

#### Fixed
- A configurable product the merchant set out of stock publishes `OutOfStock` even while some variants have stock: Magento treats the parent as unsalable and its page says so, but the 2.6.0 fallback Offer only looked at the variants. Availability now also follows the parent's website-scoped (MSI-aware) stock status.
- Deleting a snippet, Mass Delete and Mass Enable/Disable accept only POST, and the grid's row Delete submits as a POST. With "Add Secret Key to URLs" switched off, a plain GET link or a cross-site request could previously delete or switch off snippets.

#### Tests
- Unit coverage of a parent set out of stock with variants in stock; integration coverage of Delete, Mass Delete and Mass Status refusing GET (they ran on 2.6.0).

## 2.6.0 — 2026-10-18

### SEO Suite metapackage

_Released 2026-08-11._

#### Changed
- **`seo-friendly-product-urls` 2.1.2 → 2.2.0** — all of the module's `url_rewrite` writes now go through the SEO Platform's single savepoint-atomic writer (per-PK updates, partial columns, per-group failure reporting); behaviour and collision-retry semantics unchanged and re-verified by its full suite.
- **`seo-images-friendly-url` 2.2.5 → 2.2.6** — release-gate fix (arity-aware core `resizeFromImageName()` delegation, PHPStan-clean against pre-2.4.9 and 2.4.9+ core) and the disabled-mode gallery `alt` attribute made byte-identical to core.

#### Added
- **`qoliber/seo-platform` (0.9.0) joins the exact-pinned set** — it is now a hard dependency of `seo-friendly-product-urls` 2.2.0 (the single `url_rewrite` writer lives there), so the metapackage pins it explicitly like every other bundled package. It is a headless control-plane module: no UI, no behaviour change on its own.
- **`qoliber/seo-canonical` and `qoliber/seo-redirects` (0.9.0) listed in `suggest`** — opt-in betas, ship disabled by default, still intentionally OUTSIDE the stable bundle until 1.0. This supersedes the 2.5.0 note that said all three new modules stay out: `seo-platform` had to join as a dependency; the two feature betas remain optional.

### SeoRichSnippets

#### Added
- Bundle products publish an `Offer` for their cheapest purchasable configuration, at the bundle's minimal price: the "As low as" / "From" (or only) price every bundle page leads with. Magento's bundle price-info API builds it from the cheapest in-stock selection of each required option at its default quantity (for a dynamic bundle without required options, the cheapest single selection; for fixed price, plus the cheapest required custom-option values), for dynamic and fixed price alike, and its `Amount` carries the store's tax display (no custom tax math). Default selections are deliberately not used: they are optional and only pre-fill the customisation form, while the minimal price is what the page shows. Availability is the bundle's stock on the website. There is no offer when nothing can be bought on the website: a required option without an enabled, in-stock selection, a bundle without options, or a fixed-price bundle without a required option (its minimal price is the bare base price, which Magento does not sell without a selection). The shipped offer template renders it through its existing `Offer` branch, so no template is migrated; customised templates are untouched.

#### Changed
- Grouped products still get no offer, now by design: a grouped page sells several products, so no combined offer is invented, and the associated products are not published as Product nodes of their own either, because Google's product rich results only support pages that focus on a single product (or variants of one). Each associated product's own page carries its offer.
- A product page no longer publishes a top-level `Product` that has none of `offers`, `review` and `aggregateRating`, which Google rejects for Product snippets and merchant listings, for example a grouped product without reviews or a bundle that cannot be bought. A reviewed grouped product keeps its `review` and `aggregateRating`. Rendering one snippet on its own (`JsonLd::renderSnippet()`) is unchanged.

#### Fixed
- A configurable product page could publish a Product with neither offers nor ratings after the 2.5.1 merchant-template migration: the migrated offer template gave configurables no offer of their own, so wherever the ProductGroup did not publish the variants (the `product-group` snippet inactive for the store, no variant attribute mapped, or no variant with an offer) Google reported the Product as missing offers. A configurable's `commerce.offer` is now one `Offer` at the price its page leads with: the lowest one-unit price of its enabled variants on the website that are in stock (of all of them when none is), through the same price-info Amounts as the variant Offers, which is Magento's configurable final price ("As low as" when the variants differ). It is `InStock` when any variant is, with the store currency and the parent's selectable URL. Where the ProductGroup really publishes variants that all carry offers, the Product node still folds into it and its Offer is dropped, so that page keeps exactly one ProductGroup; a Product is never folded away with the page's only offer.
- Every product type publishes a single `Offer`, never an `AggregateOffer`: merchant listings require an `Offer`, and Google advises against an `AggregateOffer` for a set of variants, so this one Offer serves both Product snippets and merchant listings. For configurables the ProductGroup with an `Offer` per variant remains the recommended, richer markup (map a variant attribute and enable the `product-group` snippet); the admin (Configurable Variant Attributes) and `README-VARIABLES.md` now say so.
- No template is migrated: the offer template 2.5.1 installed or migrated renders every type's offer as it is, and customised templates are untouched.

#### Tests
- Whole-page regressions through `JsonLd::toHtml()` on the migrated distributed templates, compared as whole JSON documents. Configurable: ProductGroup inactive, and active without a mapped variant attribute, publish the Product with its Offer at the leading price; an active ProductGroup with variants still replaces the Product (and its Offer) with exactly one ProductGroup; the installed template offers the lowest enabled in-stock variant (29.99, with the 19.99 variant disabled and the 24.99 one sold out), matching Magento's configurable final price; an edited offer template is preserved and keeps its additions. Bundle: dynamic and fixed price at the minimal configuration (not the default selections), a 23% VAT store displaying prices including tax, and a bundle that cannot be bought (nothing published). Grouped: nothing published without reviews; with a review, the Product with `review` and `aggregateRating` and no offer. The pages index their fixtures' stock and prices first, so they pass whatever indexer mode the test database runs.
- Unit coverage of the fold and publication decisions (folds when every variant carries offers, never with the page's only offer; a Product with none of offers, review and aggregateRating is not published), of the configurable and bundle Offers (stock buckets, website-scoped stock, every unpurchasable bundle shape), and that the distributed offer template is the 2.5.1 one and publishes only an Offer.

## 2.5.2 — 2026-10-16

### SEO Suite metapackage

_Released 2026-08-10._

#### Changed
- Re-pinned **`seo-images-friendly-url` to 2.2.5** (was 2.2.4) — fixes category listing images silently rendering the Magento placeholder while the module is enabled. The listing plugin injected `filePath`/`imageFriendlySeoName` into the asset's miscParams without flagging the asset as a SEO image, so the core URL branch hashed the injected params into a cache path nothing generates. Listing images now emit the intended keyword-rich 4-segment SEO URLs. All other module pins are unchanged from 2.5.1.

### SeoRichSnippets

_Never tagged: these changes first shipped in 2.6.0._

#### Fixed
- A nested `{{snippet.x}}` whose snippet is missing, inactive, circular or nested too deeply is now omitted from the parent's JSON-LD instead of being published as `""` (gitlab issue #3); a list filled only by such references (a loop over an inactive snippet, e.g. product reviews) omits the whole property instead of publishing `[]`. An unquoted reference no longer produces invalid JSON that silently dropped the whole parent snippet. This also stops the shipped Organization template from publishing `"address": ""` and `"sameAs": ""` while its address and social-links snippets are inactive.
- The admin refuses to delete or rename a snippet that an active snippet still includes, and refuses to save a template that includes a snippet that does not exist. Mass Delete checks the whole selection first and deletes nothing if any member is still included; a parent selected together with its child is allowed. Deactivating an included snippet (Save or Mass Disable) is allowed and names the active snippets whose property is now omitted.
- Mass Delete and Mass Enable/Disable on rows selected in the snippet grid failed with an ambiguous `snippet_id` SQL error; the grid collection now maps the column to the main table.
- A configurable product page published the product twice: the ProductGroup with its variant offers, and the Product snippet's node for the same product with no `offers`, which Google reports as missing offers. The offer-less Product node is now folded into its ProductGroup (matched by SKU = `productGroupID`): its shared properties (description, image, brand, review, aggregateRating) move to the group, as Google's product variant guidance places them, and the duplicate is no longer published. Applies to customized templates too; a Product that carries its own offers, and pages without a ProductGroup, are unchanged.

#### Tests
- Full-document JSON-LD regression for issue #3 through `JsonLd::renderSnippet()` (inactive quoted and unquoted references, missing reference, active control, shipped Organization defaults) and dispatch coverage for every admin write path (delete, mass delete, rename, unknown include, deactivation warnings, ACL).
- Whole-page configurable regression through `JsonLd::toHtml()` (one ProductGroup, carrying the parent's description, no offer-less Product), unit coverage of the fold (offers, other SKUs, list and `@graph` documents, script-safe re-encoding), and the Playwright structured-data spec asserts it on a live configurable page.

## 2.5.1 — 2026-11-23

### SEO Suite metapackage

_Released 2026-08-06._

#### Changed
- Re-pinned **`seo-images-friendly-url` to 2.2.4** (was 2.2.3) — fixes a `bin/magento setup:di:compile` fatal on **Magento 2.4.9**. Core 2.4.9 widened `Magento\MediaStorage\Service\ImageResize::resizeFromImageName()` to `(string $originalImageName, bool $skipHiddenImages = false)`; the module's `<preference>` override now matches that signature. The added parameter is optional, so the fix stays compatible with pre-2.4.9 core too — no minimum-Magento change. All other module pins are unchanged from 2.5.0.

### SeoPrettyFilters

#### Fixed
- **Composer could keep an ElasticSuite bridge older than 2.3.0 next to 2.5.0**, whose multi-value filter URLs
  (`/women/tops-women/gray,black.html`) then answered 404 under ElasticSuite: bridge 2.2.x accepts any 2.x of this
  module, and upgrading the metapackage does not update a separately required bridge. This package now conflicts with
  `qoliber/seo-pretty-filters-elasticsuite` below 2.3.0, so Composer updates the bridge with it or stops with the
  reason instead of installing a pair that breaks those URLs.

#### Upgrade
- On an ElasticSuite store, update the bridge together with the suite:
  `composer require qoliber/seo-suite-metapackage:2.10.1 "qoliber/seo-pretty-filters-elasticsuite:^2.3" -W`.

### SeoRichSnippets

_Released 2026-10-03._

#### Fixed
- Keep enabled, assigned sold-out children in ProductGroups and resolve availability through the website-scoped inventory contract, including MSI stock channels.
- Make tier installers repeat-safe without swallowed duplicate-save errors; refresh block/full-page output after scoped configuration saves through native cache events.
- Back up recognized schemas outside the public directory before migrations; preserve merchant edits, activation and store scope.
- Require explicit store-scoped shipping and return policy values; emit integer merchantReturnDays and omit inactive or incomplete policies.
- Use one-unit storefront Offers for default merchant templates; omit invented sale expiry, condition, and unselected bundle/grouped offers.
- Supply real configurable ProductGroups, mapped attributes and child Offers with selectable parent URLs; vary configurable block cache keys by selection and tag child dependencies.
- Preserve customized schemas in all seven existing update patches. Only exact recognized distributed templates are eligible for automatic migration.
- Map Magento review percentages to the actual five-star scale; omit invalid/unrated summaries.
- Scope rating/count caches to the store and product. Reuse the value resolver for product variable-provider review output.

## 2.5.0 — 2026-11-23

### SEO Suite metapackage

_Released 2026-07-31._

#### Changed
- **Pinned the exact tested module set.** Every bundled module is now pinned to an exact version (was `^2.1` / `^2.3`), so installing the metapackage resolves the precise combination validated together — not any compatible 2.x. Advancing the suite now means updating the metapackage.
- Bumped the bundled set to current releases: `seo-rich-snippets` 2.4.2, `seo-images-friendly-url` 2.2.3, `seo-pretty-filters` 2.2.2, `seo-advisor-ai` 2.2.0, `seo-index-now` 2.2.0, `seo-dynamic-tags` 2.1.3, `seo-common` / `seo-advanced-sitemaps` / `seo-friendly-product-urls` / `seo-href-lang` / `seo-opengraph-tags` 2.1.2, `seo-ai-discoverability` / `seo-dynamic-descriptions` 2.1.1.

#### Added
- **`qoliber/attribute-seo-path` (1.0.11)** declared explicitly in `require` — previously pulled transitively via `seo-pretty-filters`; pinning it locks the full tested set.
- **PHP 8.5 support** declared on the metapackage (`~8.1.0||~8.2.0||~8.3.0||~8.4.0||~8.5.0`), matching every bundled module.

#### Notes
- The three new modules (`qoliber/seo-platform`, `qoliber/seo-canonical`, `qoliber/seo-redirects`) are `0.9.0` betas and intentionally **not** bundled yet — they join once they reach 1.0.
- Supersedes the `2.2.0` composer bump, which shipped without a matching CHANGELOG entry.

### SeoIndexNow

#### Changed
- **Delivery goes directly to the endpoint; proxies are not used.** The request pinned the endpoint host to the
  addresses the endpoint policy had checked, but libcurl still honoured `https_proxy` / `ALL_PROXY` of the PHP process:
  through a proxy the proxy resolves the host itself, so the pin and the private-address checks no longer applied,
  and the proxy's own answers (407, a gateway's error page) were classified as the engine's. Delivery now disables
  proxies explicitly (an empty `CURLOPT_PROXY`, which also overrides the environment). A server that reaches the
  internet only through a proxy cannot deliver to IndexNow: submissions fail with a logged transport error and stay
  queued for retry. The Endpoint URL comment in the admin says so.

#### Tests
- Unit: `NotifierTest` asserts the request disables proxies. Checked against PHP's curl: with `https_proxy` set to a
  dead proxy, a request without the option goes through the proxy and fails; with it, it connects directly.
- Integration: the tests no longer assume the fixture product's URL is `simple-product.html`. The test database can
  hold sample data, whose product ID 1 (reused by core's product fixture) keeps its own store view URL key until the
  fixture's rollback deletes it; `TransactionBoundaryTest` failed on the first run after an install for that reason
  (the module had queued the product's real URL). `OutboxTestCase::fixtureProductPath()` reads it instead.

### SeoPrettyFilters

_Released 2026-11-20._

#### Fixed
- **A filter option path that repeated the category's URL path did not route.** The category was removed from the
  request path wherever its text appeared, so under the category `men` the option path `women` (or `men-shirts`) lost
  those characters and `men/women.html` answered 404. The category is now consumed once, from the front of the path.
  Its lookup is one query per candidate path and joins the `url_path` value to its category through the catalog's link
  field (`entity_id`, or `row_id` where the catalog is staged) instead of assuming the Open Source table layout.
- **Short mode accepted option paths inside longer tokens.** Options were found by counting substrings, so
  `redlarge.html`, `reddish.html` or `bored.html` (options `red`, `large`, `bo`) served a filtered listing under one
  more URL, and an option path holding the separator (`dark-red`) was split into its parts when its attribute was read
  first, so its own link answered 404. The filter part is now read as whole tokens from left to right, the longest
  option path made of whole tokens winning; a token no option path covers stays in the path and the URL answers 404.
- **Complex mode removed a consumed segment's text from the other segments** (`color:red/color:redcolor:red` served
  `color:red`). Segments are now consumed whole, by position.
- **The category URL suffix was removed wherever it appeared.** With the suffix `/` every slash of the path went (no
  pretty URL routed), and `gear.html/red.html` served `gear/red`. Only the suffix that ends the path is removed; URLs
  without the suffix still route, as before.
- **A path that does not start with a category of the store** was dispatched to the category page with id 0 (a 404)
  instead of being left to the routers after this one (CMS pages, other modules).
- **The option map (`Service\AttributeFetcher`) depended on the store read last.** `getAttributeCodesFromOptions()`
  called before any read hit an undefined array key, `transformArrayForFilters()` for another store returned the map
  of the store read last, and the `Select` converter checked the attribute codes of that store. Each now answers for
  the current (or given) store, and the converter reads that store's map once.

#### Changed
- **Less work per uncached listing request.** The option query reads only the options of attributes set to "Use for
  Pretty Filter" (it read every product option and filtered them in PHP), and a store without any is read once
  instead of on every call. Options come in the attribute's option order (sort order, then ID), so a path or label two
  options share always resolves to the same option.
- Admin: the Enabled and Mode settings say which filters get a path segment, that every segment must be a whole option
  path, and that changing the mode or a separator makes the previous filtered URLs answer 404 (plan redirects).
- `Plugin\SearchEngineDeepPageGuard` documents why it guards every caller of core's search request (listings, GraphQL,
  REST) whatever the listing status option: the 2.4.9 error hits them all. Behaviour unchanged.

#### Added
- `Resolver\Attribute\ShortAttributeResolver::getValueDelimiters()`: the characters that separate option paths in a
  short filter part (the configured separator). The ElasticSuite companion 2.3.0 adds its comma through it.

#### Tests
- Unit: `ShortAttributeResolverTest` (whole tokens, multi-token paths, empty tokens), `ComplexAttributeResolverTest`,
  new `SuffixResolverTest`, `AttributeFetcherTest` (store-keyed maps, one read for an empty store, pretty-only ordered
  query), `SelectRoundTripTest`. Integration: `CategoryPathResolverTest` (category consumed once, longest prefix, no
  leading category), `RouterTest` (no category, no route) and, in every mode, the round trip
  `testAnOptionPathRepeatingTheCategoryPathRoundTrips`. The touched tests call stubs statically and assert their
  nullable results, so the PHPStan test job reports nothing for them.

### SeoRichSnippets

_Dated 2026-09-05. Never tagged: these changes first shipped in 2.5.1._

#### Fixed
- **Published prices now follow the store's tax DISPLAY configuration.**
  Confirmed numerically on a store entering catalog prices net with VAT-
  inclusive display: the JSON-LD carried the net price while the page (and
  the shopping feed) showed gross — a Merchant Center mismatch. Every price
  path (`price`, `finalPrice`, AggregateOffer low/high across simple,
  configurable and grouped children) now reads the framework's price-info
  `Amount`, which carries the store's own tax and FPT adjustments: a
  net-catalog VAT-display store publishes gross, a net-display store stays
  net, an inclusive-catalog store is unchanged. Still no custom tax math.
  Locked by integration tests running a 23% VAT rule over net catalog
  prices (29.99 → 36.89, tier 19.99 → 24.59, configurable child tier
  9.99 → 12.29).

#### Added
- **Tier (volume) prices now render as `AggregateOffer`** (SNPFD-92). Merchants
  advertising their lowest volume price in shopping feeds were getting Google
  Merchant Center price-mismatch disapprovals: the PDP JSON-LD only carried the
  1-unit base price. A simple/virtual product with tier prices now emits
  `AggregateOffer` with `lowPrice` = the lowest applicable tier (never above
  the 1-unit final price), `highPrice` = the 1-unit final price, and
  `offerCount` = tier levels + the base offer. Tier values come from the
  price-info API (`Catalog\Pricing\Price\TierPrice`), so customer-group
  scoping, percentage tiers, and website scope follow core pricing — no custom
  price or tax math; prices are VAT-inclusive exactly when catalog prices are
  stored inclusive.
- **Configurable/grouped price ranges are tier-aware.** A tier price on any
  child now widens the parent's `AggregateOffer.lowPrice` (e.g. child at
  19.99 with a 10+ → 9.99 tier ⇒ `lowPrice: 9.99`); `highPrice` stays the
  highest 1-unit child price and `offerCount` the child count.
- New resolver paths: `product.hasTierPrices` and `product.offer.isAggregate`
  (complex product OR tier prices present). The default `offer` snippet's
  condition switches from `product.isComplexProduct` to
  `product.offer.isAggregate` via the `UpdateOfferTierPriceAggregate` data
  patch — the plain-Offer else-branch (price, seller, shipping, return
  policy) is unchanged, so tier-less simple products render exactly as
  before.
- **Admin switch for diagnostic logging** — Stores → Configuration →
  Qoliber SEO → Rich Snippets → *Debug Logging* (default **off**). The
  snippet-rendering debug output fires on every page view and was
  previously unconditional, growing `debug.log` on real stores; it now
  routes through `Model\DebugLogger`, which stays silent unless the switch
  is on for the store.
- **Percentage-based volume discounts are covered** — a tier stored as
  `percentage_value` (raw `value` = 0) resolves through core pricing to the
  computed amount, never 0; locked by an integration test (29.99 with
  10+ → −20% publishes lowPrice 23.99).
- **The volume price ladder is itemized** (ported upstream from the SNPFD-92
  project work): a tier-priced product's `AggregateOffer` now carries an
  `offers` array — one `Offer` per price level (the 1-unit base offer plus
  every tier) with non-overlapping `eligibleQuantity` intervals (UN/CEFACT
  `C62` = piece) and an open-ended last rung, via the new
  `Model\TierPriceLadder` and the `productTierPrices` collection variable
  (`@djson for productTierPrices as tier`, usable in the snippet editor).
  Schema.org self-consistency is enforced: the 1-unit rung is always row 0
  (so `highPrice` has its counterpart), `offerCount` equals the array length
  whenever a ladder exists, and a configurable only gets a merged ladder
  when every variant shares one unit price — with mixed variant prices the
  bare AggregateOffer remains. The `UpdateOfferTierPriceLadder` data patch
  ships the template (also adding `url` + `itemCondition` to the aggregate
  branch; deliberately NOT `seller`/`shippingDetails`, which reference
  seeded sample snippets with placeholder data). Locked end to end: ladder
  model tests, byte-identical patch↔fixture deployment-consistency test,
  full-document JSON comparisons, and Playwright assertions on live tiered
  PDPs. Two djson capabilities this relies on are now test-locked:
  `@djson if` on a loop variable and on a collection's non-emptiness.

#### Fixed
- **Snippet edits now reach the FULL-PAGE cache.** `Block\JsonLd` computed
  cache identities but never implemented `IdentityInterface`, so PageCache's
  LayoutPlugin ignored it and `X-Magento-Tags` never carried snippet tags;
  `Model\Snippet` didn't either, so saving a snippet purged nothing. Both now
  implement the interface: rendered pages are tagged with every embedded
  snippet, and an admin save/delete purges exactly those pages (locked by an
  end-to-end purge test through the real `clean_cache_by_tags` chain).
  NOTE for upgrades: pages cached BEFORE this version carry no snippet tags —
  flush the page cache once after deploying.
- **Configurable availability is real salability.** The resolver read the
  parent's legacy `stock_item` row (never MSI-adapted, blind to child
  state); an all-children-out-of-stock configurable was published InStock.
  Availability now uses `isSalable()`.
- **Disabled and out-of-stock variants no longer shape the offer.** Child
  status and the index-backed stock status now filter the AggregateOffer
  range, offerCount, tier detection and the ladder — a disabled cheapest
  child (even one carrying a tier) can no longer set `lowPrice`. When no
  child is sellable the range falls back to all children so AggregateOffer
  keeps its required prices while availability reports OutOfStock.
- **Inclusive catalog with tax-EXCLUDING display now publishes net.** The
  fourth tax quadrant: prices entered gross but displayed net published
  gross (page 24.38, JSON-LD 29.99). All price paths and ladder rows now
  follow the catalog price display type (`Magento\Tax\Model\Config`) — new
  `magento/module-tax` dependency, still zero custom tax math.
- **Reviews without rating votes no longer emit `"ratingValue": null`.**
  The `UpdateRatingGates` data patch gates `aggregateRating` on a rating
  existing (`product.ratingValue`) and the review's `reviewRating` block on
  the loop variable (`@djson if review.rating`) — imported/vote-less reviews
  render with author and body only, valid for rich results.
- **The category `ItemList` snippet renders again.** `CollectionVariables`
  handed DJson the product Collection object (djson loops arrays only →
  `itemListElement: []` on every category page, and `product.position` had
  no getter). The collection is now flattened to rows with sequential
  positions, name and URL.
- **Inactive referenced snippets no longer flood system.log** — the
  expander logged `Snippet not found or not active` at ERROR level on every
  page view for a legitimate state (the module itself seeds `organization`
  referencing the inactive `organization-social-links`). The reference now
  degrades to an empty value quietly, with the diagnostic behind the Debug
  Logging switch; circular references keep their error-level log.

#### Changed
- Release-gate metadata: declared the missing `magento/module-theme`
  dependency (the breadcrumbs variable provider type-checks
  `Magento\Theme\Block\Html\Breadcrumbs`), canonical authors/php-constraint
  formatting, and the `support.security` advisory-feed pointer.
- Test hardening alongside the feature: tier-priced fixtures (simple +
  configurable child + percentage tier + a 23% VAT rule), resolver and
  full-JSON-output integration coverage — including the full djson render
  of a configurable whose child carries the tier — a data-patch lock
  (`UpdateOfferTierPriceAggregateTest`), and three Playwright smoke tests
  (`MAGENTO_CONFIGURABLE_URL`, `MAGENTO_TIER_PRICED_URL`,
  `MAGENTO_TIERED_CONFIGURABLE_URL`) asserting `AggregateOffer` on a
  configurable PDP, the volume price surfacing as `lowPrice` on a
  tier-priced PDP, and a tiered variant widening the configurable's range.
  PHPStan baselines shrank (production 531 → 525, tests 2357 → 2281) —
  the child-product lookups are now typed accessors instead of baselined
  `AbstractType` calls.

## 2.4.2 — 2026-07-13

### SeoRichSnippets

#### Fixed
- Declared PHP 8.5 support (`~8.5.0` added to the `php` constraint); verified 8.5-clean — php8.5 `-l` and the unit suite both pass. Removed deprecated `Reflection::setAccessible()` calls (no effect since PHP 8.1, deprecated in 8.5).
- **Editing a child snippet now invalidates the cached parent JSON-LD.** Parent snippets render nested fragments via `{{snippet.identifier}}`, but the page cache only carried the page-matching parent's tag, and saving a child fragment (e.g. an Offer) cleaned only its own — unused — tag. The already-cached Product JSON-LD therefore stayed stale. A new `Model\SnippetCacheTags` service now (a) adds every nested child's tag to the block's render identities (`Block\JsonLd::getIdentities()`), and (b) on repository save/delete cleans the saved snippet's tag plus the tags of every ancestor snippet that embeds it (`Model\SnippetRepository`). Both walks are depth-guarded (max 5, mirroring `SnippetExpander`) and cycle-safe. The `qoliber_richsnippets_<id>` tag scheme is unchanged, so existing cache entries invalidate as before.
- **Custom URL wildcard patterns now quote regex metacharacters.** `Block\JsonLd::matchesUrlPattern()` builds a regex from a snippet's admin-configured `custom_url` wildcard pattern, but only escaped `/` and expanded `*` — any other regex metacharacter in the pattern (`.`, `+`, `(`, etc.) was interpolated raw. A literal `.` silently matched any character, a literal `+` either false-matched or (compared literally against itself) failed to match at all, and an unbalanced `(` broke regex compilation outright and always failed the match. Each literal segment between `*` wildcards is now passed through `preg_quote(..., '/')` before being joined back with `.*`, so `*` remains the only special token and every other character in the pattern is matched literally.
- **PHP 8.4 `setup:upgrade` failure (implicitly-nullable parameter).** `Model\ResourceModel\Snippet\Grid\Collection::setItems()` declared `array $items = null` — an implicitly-nullable parameter that PHP 8.4 deprecates (`E_DEPRECATED` at compile time), failing `setup:upgrade` on 8.4. It is now explicitly typed `?array`. (gitlab qoliber/seo-rich-snippets#2)

#### Changed
- Declared the direct `qoliber/core` (`^1.0`) dependency — the admin menu/ACL are defined under `Qoliber_Core` resources; previously only the root metapackage provided it.

## 2.4.1 — 2026-11-23

### SeoDynamicDescriptions

#### Fixed
- **Saving the module's configuration purged Varnish twice.** Cleaning the full-page cache already purges an external
  page cache (Magento's cache type dispatches the refresh event); the module dispatched the event a second time. It
  now cleans the block and page caches and the purge happens once.

#### Tests
- Integration: new `RefreshConfiguredOutputTest` (a configuration save refreshes cached blocks and pages and sends
  one Varnish purge request).

### SeoRichSnippets

_Dated 2026-07-13. Never tagged: these changes first shipped in 2.4.2._

#### Changed
- Declared direct Magento module dependencies with bounded version constraints.
- Standardised composer metadata (license and `magento/framework` version constraint).
- PSR-12 code-style cleanup; no functional change.

## 2.4.0 — 2026-11-23

### SeoAdvancedSitemaps

#### Fixed
- **A failure late in publication could leave the live sitemap index listing children of two generations.** The run
  renamed its children over their fixed public names one at a time, then the index: when a later rename failed, the
  children renamed before it were already live under the old index, and even a successful run showed a mixed set
  between the first rename and the last. Each run now writes its children under names of its own and switches the
  index in one rename. A failure anywhere before that switch removes the run's files and leaves the previous index
  and every child it lists byte for byte as they were; the previous generation is deleted once the new index is live.

#### Changed
- **Child sitemap filenames carry the id of the run that wrote them** (`sitemap-products_1.0123456789abcdef.xml`
  instead of `sitemap-products_1.xml`) and change with every run. The index filename and URL are unchanged, and
  robots.txt keeps announcing the index. If child files were submitted to a search engine one by one, submit the index
  instead. The first run after the upgrade replaces the children without a run id.

#### Tests
- Unit `PublicationTest`: a failure injected into every step of the final publication (each child move, the index
  move, the switch) keeps the published files byte for byte; the live index never lists children of two generations
  at any step of a run (fails on 2.3.0); only the new generation is left after a run; the first run after the upgrade
  removes children without a run id. `StaleChunkSelectionTest`: run-id names are selected for their own prefix only.
- Integration `FailedPublicationTest`: the same faults injected into a sitemap record regenerated through Magento's
  model, service, lock and pub directory leave the previous generation live and the record's generation time unchanged.
- Tests that opened children by their fixed names find them through the index (`PublishedSitemapFiles`).

### SeoDynamicDescriptions

_Released 2026-11-20._

#### Security
- **A category template is rendered once.** The storefront's category description reached Twig twice: the getter
  rendered it, then the plugin on Magento's catalog output helper rendered that output again. Whatever the first
  render printed (a category value, a filter value from the URL) was evaluated as template code, and the core helper's
  escaping and directive processing were skipped. The output helper now receives the rendered description unchanged
  and processes it like any attribute; a meta title falling back to the rendered SEO H1 (and a meta description
  falling back to the rendered description) is no longer rendered again either. Curly braces are removed from filter
  values taken from the URL, so they can form neither a Twig marker nor a Magento directive.
- **Template work is bounded.** One render may build sequences (`range()`, `..`) of at most 1,000 items, walk at most
  10,000 sequence items across all its `for` loops, compile at most 1 MiB of template and produce at most 1 MiB. A
  template over a limit renders empty and is logged, like a template the sandbox rejects, instead of exhausting CPU
  or memory. Templates within the limits render as before; the sandbox allow-list is unchanged.

#### Fixed
- Selected filter options show their labels. The labels were read from the options' per-store label list, which the
  attribute source leaves empty, so `{{ filters.color }}` printed the option id ("Shop 49 shirts"). It now prints the
  store view's label, or the admin label when the store has none. A value that is no option of the attribute is
  left out.
- A request parameter holding a nested array (`?color[a][]=x`) no longer raises "Array to string conversion" on the
  category page; nested values, and parameters whose name cannot be an attribute code, are not filters.
- Descriptions with Magento directives (`{{media url="..."}}` from the WYSIWYG editor, `{{widget}}`, Page Builder
  background images) rendered empty: Twig rejected the directive syntax. Directives now pass through the template
  untouched and are processed by Magento afterwards. Text without Twig syntax is no longer compiled at all.
- A value changed on the same category or product within a request (`setDescription()` after a first read) rendered
  the old text: the memo key ignored the stored value. The memo is now keyed by it too, keeps at most 1,000 values,
  and no longer serialises the whole request on every read.
- `Plugin\ModifyDataPlugin::aroundProductAttribute()` returned a filled product meta title/description without the
  core helper's escaping; it now fills the value and lets the helper process it. Both around plugins still return
  whatever the helper returns (`mixed`).
- The SEO Dynamic Description field note named a `filter` variable; the variable is `filters`.

#### Changed
- `composer.json` declares the modules and packages the code uses directly: `qoliber/core` (configuration tab),
  `magento/module-backend`, `magento/module-config` and `magento/module-ui`.
- New `README.md`: settings and scope, rendered fields and fallbacks, template syntax and variables, HTML policy,
  limits, extension points and rollback. `Model\ProductAttributeOptionsStoreLabels::resolve()` is new;
  `get()` keeps its contract.

#### Tests
- `SingleRenderTest` (integration): a description runs through the real getter and catalog output helper once, with a
  literal Twig marker kept literal and a `{{media}}` directive processed; the meta title fallback renders once; a
  changed value renders again. `FilterLabelTest` (integration): store and admin labels, unknown and nested values.
- `TemplateBudgetTest`, `ProductAttributeOptionsStoreLabelsTest` and new `DescriptionModifierTest` /
  `ModifyDataPluginTest` cases (unit). `HotPathBailOutTest` counts modifier-pool calls instead of measuring time.

### SeoHrefLang

_Released 2026-11-20._

#### Fixed
- A store view that tells search engines NOINDEX through Magento's own robots setting (Content > Design >
  Configuration > Search Engine Robots, `design/search_engine_robots/default_robots`) is no longer a hreflang
  alternate. Eligibility read `design/head/default_robots`, a path Magento does not emit, so such a store view stayed
  in every cluster, in the HTML tags and in the XML sitemap alternates, although its pages said NOINDEX. Clusters
  that included a NOINDEX store view change; that is the intended correction.
- A SEO Dynamic Tags NOINDEX rule spelled in another letter case than the page's URL (`/About-Us` for `about-us`) no
  longer breaks hreflang. The database matched the rule (its collation is case-insensitive, as is the storefront's
  own Dynamic Tags lookup), but the row was then looked up by its exact spelling, which warned and threw a TypeError,
  taking down the page's hreflang tags and the sitemap generation. The rule now removes that store view's URL from
  the cluster, as the exact spelling always did.

#### Changed
- A visit carrying only campaign-tracking parameters (`utm_*`, `mc_*`, `gclid`, `dclid`, `fbclid`, `msclkid`,
  `gbraid`, `wbraid`, `gad_source`, `gclsrc`, `srsltid`, `_ga`, `_gl`) keeps its hreflang tags: the page is the same
  and its canonical is the clean URL. Filter, sort and pagination parameters still suppress the tags.

#### Added
- `README.md`: which store views and pages are alternates (robots, exclusions, duplicate locales, CMS translation
  groups, Dynamic Tags rules), when a page has no tags and what to refresh after a change. Skip Store View explains
  which store views are left out automatically.

#### Tests
- Unit and integration coverage of a store view NOINDEX through Magento's robots setting (left out of the map the
  HTML and the XML share, and of the rendered tags); the unit double now answers only the native path.
- Unit and integration coverage (installed collation) of a Dynamic Tags rule in another letter case.
- Unit coverage of tracking-only visits and of tracking next to pagination.

### SeoIndexNow

_Released 2026-11-20._

#### Security
- **The IndexNow endpoint can no longer point the server at an arbitrary
  destination.** The *Endpoint URL* setting was handed to the cron's HTTP client
  as entered, and Magento's client accepts http, https, ftp and ftps: an admin
  value could make the server POST to an internal address (a metadata service,
  an intranet host) and read the answer into the outbox and the log.
  - Only `https://` endpoints of the documented IndexNow engines are contacted
    (api.indexnow.org, Bing, Yandex, Seznam, Naver, Yep, Internet Archive,
    Amazonbot) on the default port and without credentials in the URL. Saving
    any other value in the admin is refused with an explanation; an empty value
    still means the default `https://api.indexnow.org/indexnow`.
  - Right before each request the endpoint host is resolved and every address
    must be public (private, loopback, link-local, carrier-grade NAT, multicast,
    documentation and other reserved IPv4/IPv6 ranges are refused), and the
    connection is pinned to those addresses. Redirects are not followed and the
    answer is read up to 1 MiB.
  - A refused endpoint receives no request at all: the rows stay queued with
    *Endpoint refused: …* and are retried like an invalid key, so they go out
    once the setting is fixed.
  - Upgrade note: a store that sent through its own IndexNow relay must allow
    the relay host in a di.xml (`additionalHosts` argument of
    `Qoliber\SeoIndexNow\Model\Delivery\EndpointPolicy`, see `etc/di.xml`); it must
    use https on port 443 and resolve to public addresses.
- The answer excerpt kept in `last_error` and in the log is cut before it is
  normalised and loses control characters and invalid UTF-8, so a remote answer
  cannot write terminal escapes or extra log lines.

#### Fixed
- **A store view with IndexNow switched off no longer serves its key file.** `/{key}.txt` (and the key
  controller's own route) answered with the key even while *Enabled* was No for that store view. Nothing is
  notified from such a store view, so it now answers 404 like any other unknown file.
- **One URL on an old domain no longer fails the whole batch.** A URL queued
  before the store's base URL changed was sent with the others, the engine
  answered 422 for the entire POST, and up to 10,000 valid URLs were marked
  failed with it. Such a row is now failed on its own, unsent ("Not sent: the
  URL is not on the current host of its store view"), and the rest is delivered.
  `Notifier::deliver()`/`submit()` likewise send only the URLs on the store host
  and report a failure naming how many were left out.
- **A slow endpoint can no longer keep the cron busy.** The every-minute cron
  pass used to send every due batch in one go, however long the endpoints took.
  It now starts no new POST after 45 seconds; the rows it did not reach are
  left untouched (still due, oldest first) for the next run and logged as "left
  for the next run". The budget is the `timeBudget` argument of the cron's
  `Qoliber\SeoIndexNow\Model\Outbox\CronOutboxProcessor` virtual type (etc/di.xml);
  `bin/magento qoliber:indexnow:flush` still drains the queue without a time
  limit, and `OutboxProcessor::process()` keeps its signature.
- A failed outbox write after a committed save is now logged as an error that
  lists the URLs that were not queued (the first 20, with the total), so the
  loss is visible and the pages can be re-saved.

#### Changed
- The storefront router checks the request path shape before reading the key
  from config, so ordinary pages no longer pay for a config lookup.
- Admin help for *Endpoint URL* and *Delivery* describes the allowed endpoints,
  the cron time budget and what happens to failed rows.

#### Tests
- `Model\Delivery\EndpointPolicyTest` (unit): documented endpoints are approved
  and pinned; http/ftp/file, credentials, custom ports, other hosts and IP
  literals are refused without a lookup; hosts resolving to any private or
  reserved IPv4/IPv6 address (also IPv4-mapped and NAT64) are refused.
- `Service\NotifierTest`: refused endpoints receive no request; the request is
  https-only, pinned, redirect-free and size-capped; URLs off the store host are
  not sent.
- `Model\Outbox\OutboxProcessorTest` (unit and integration): the time budget
  leaves rows due for the next pass; an old-domain row fails alone; a refused
  endpoint gets nothing and the rows go out once the setting is fixed.
- `Model\Config\Backend\EndpointTest`, `Cron\DeliverOutboxTest`,
  `Model\ChangeRecorderTest`, `Controller\RouterTest` and the excerpt case in
  `ResponseClassifierTest`. Integration tests resolve endpoints through
  `StaticHostResolver`, so no test queries DNS or reaches the network.

### SeoPrettyFilters

_Released 2026-11-10._

GitLab's 2.3.2 with qoliber Catalog Pro's local patches P2, P4, P8, P9, P15, P22 (to be upstreamed).

#### Added
- **Public listing status ownership hook** (`Api\ListingStatusOwnershipInterface`, `@api`; local patch P22 of qoliber
  Catalog Pro, to be upstreamed). Where another module decides a listing's HTTP status (a store that keeps an empty
  filter combination at 200 under NOINDEX, its own rule for a page past the last or a malformed page number), it
  registers an owner in di.xml (argument `statusOwners` of `Plugin\Frontend\CatalogBlockProductListProduct` and of
  `Plugin\Frontend\ListingPageParamGuard`), and the "Return 404 for out-of-range pages and empty filter combinations"
  rule steps aside on those listings. Without it the rule set 404 over the other module's answer. Backwards compatible:
  the constructor arguments are optional and nothing changes without a registered owner.

#### Tests
- PHP 8.5 (local patch P15 of qoliber Catalog Pro, local tuple harness on the frozen Catalog Pro 1.0.0-rc6): the
  integration `RouterTest` runs in the `frontend` area (`#[AppArea('frontend')]`). In the global area Magento's
  `Route\Config` reads a scope without a default router with a null array offset, which PHP 8.5 reports as "Using
  null as an array offset is deprecated" and the integration framework fails (`testRouterSetsRequestParamsOnResolvedPath`,
  `testRouterSetsHybridPrettyAndQueryParams`). Test-only; runs on PHPUnit 10.5 (Magento 2.4.8) too.
- PHPUnit 12 (local patch P9 of qoliber Catalog Pro, test-pipeline audit TP5): the integration `RouterTest`'s
  collaborators without expectations are stubs (`createStub()`, 7 PHPUnit notices). Test-only; runs on PHPUnit 10.5
  (Magento 2.4.8) too.
- PHPUnit 12 (local patch P8 of qoliber Catalog Pro, readiness review 5 R3): collaborators without expectations are
  stubs (`createStub()`), so the unit suite runs without PHPUnit notices; a few shared doubles assert their calls
  explicitly instead. `RouterEarlyExitTest` (integration) declares its data provider as a static
  `#[DataProvider]` attribute (PHPUnit 12 ignores `@dataProvider` annotations). Test-only; runs on PHPUnit 10.5
  (Magento 2.4.8) too.

#### Added
- **Public robots ownership hook** (`Api\RobotsOwnershipInterface`, `@api`; local patch P4 of qoliber Catalog Pro, to
  be upstreamed). Where another module owns the current page's robots meta tag (registered in di.xml:
  `Plugin\Frontend\ModifyMetaRobots` argument `robotsOwners`), the "robots after N active filters" rule steps aside —
  one robots writer per page. Backwards compatible: the constructor argument is optional and nothing changes without a
  registered owner. Replaces plugins other modules put on the internal `ModifyMetaRobots` class.

#### Fixed
- **Saving an attribute in the admin switched its pretty URLs off.** The "Use for Pretty Filter" select of the
  attribute form (`Block\Adminhtml\Attribute\Edit\Options\SeoConfig`) had no value bound, so it rendered "No"
  selected and every save posted `is_pretty_filter = 0`. The select now shows the attribute's own flag ("Yes" for a
  new attribute, the column default). (Found by qoliber Catalog Pro, which carried it as local patch P2.)
  Data note: an attribute saved in the admin since `is_pretty_filter` is read (2.x) may hold 0 unintentionally;
  check `catalog_eav_attribute.is_pretty_filter` after upgrading.

### SeoRichSnippets

_Dated 2026-07-03. Never tagged: these changes first shipped in 2.4.2._

#### Added
- **Category variables for product-listing / category pages** — new `CategoryValueResolver` exposes `{{category.*}}` in snippet templates: `id`, `name`, `url`, `urlKey`, `image`, `description` (HTML-stripped), `metaTitle`, `metaDescription`, `productCount`, plus a camelCase→snake_case fallback for any other category attribute. The category is read as-is from the request context, falling back to the `current_category` registry entry Magento sets on category pages — the same self-contained pattern as `StoreValueResolver` — so `{{category.name}}` resolves on category pages with no block wiring. Registered under `VariableExtractor` with prefix `category`.
- **`CategoryVariables` provider** — a first-class variable provider registered in both the admin schema-builder pool (`SchemaVariables`) and the `JsonLd` render pool. Category variables now appear in the snippet-builder's variable picker and populate at render time. Implements `KeyedVariableProviderInterface` (`getProvidedKeys()` returns `['category']`), sort order 12.
- Dedicated **brown** color for the `category` variable group in the admin variables panel (`.category` block in the schema-editor styles).

#### Tests
- `Test/Integration/Model/ValueResolver/CategoryValueResolverTest` (14 cases) and `Test/Integration/Model/VariableProvider/CategoryVariablesTest` (8 cases), plus the `category_simple` fixture and rollback. Suite total: 212 tests, 863 assertions.

## 2.3.2 — 2026-11-10

### SeoIndexNow

GitLab's 2.3.1 with qoliber Catalog Pro's local patches P12 (to be upstreamed).

#### Changed
- Tests only (Catalog Pro local patch P12, T42): the unit and integration suites run on PHPUnit 12 —
  `@dataProvider` annotations are `#[DataProvider]` attributes with static providers, `getMockForAbstractClass()`
  (removed in PHPUnit 12) is `createMock()`, and the classes whose shared doubles only some cases assert on carry
  `#[AllowMockObjectsWithoutExpectations]` (PHPUnit 10.5 skips the unknown attribute). No shipped code changes.

### SeoPrettyFilters

_Released 2026-10-19._

#### Fixed
- `composer.json` no longer hard-codes a `source` block pointing at the `master` branch. Composer keeps a package's own `source` over the repository's, so installing any version from the Git repository checked out `master` instead of that version, and `composer.lock` recorded `master` instead of the tag's commit. The source now comes from the repository, so every version installs its own tagged code.
- **A listing page past the last page answered 500 on Magento 2.4.9 with OpenSearch instead of the documented 404.** Example: `/gear/bags.html?p=999999`. Past the engine's result window (10,000), core's OpenSearch adapter pages forward with `search_after` from the last hit of each batch; past the last result that batch is empty, and 2.4.9 turns the resulting error into a 500 (2.4.8 swallowed it).
  - Such a deep request (category or search listing) now first asks for the total without the offset: one cheap query, run only when `p` reaches past the window. When the results end before the offset, that answer (total and facets, no products) is used, so core never pages forward.
  - The page then answers as documented: 404 with **Return 404 for out-of-range pages and empty filter combinations** on. With the option off, or on a grid/list or per-page switch, it answers 200 with an empty listing, as on 2.4.8.
  - Deep pages that have results, normal pages and ElasticSuite (its own request type and adapter) are unchanged.

#### Tests
- Unit: the deep-page guard leaves requests inside the window, deep pages that have results, engines without a window and other request types unchanged. A page past the last result is answered from one count request (no offset, no size) and never reaches deep paging.

## 2.3.1 — 2026-11-23

### SeoAdvisorAi

#### Fixed
- **A Claude or Gemini generation could be paid for up to three times.** The retry policy retried any 5xx answer and
  any error mentioning a timeout, although a read timeout or a 500/502/503/504 can follow an answer the provider
  generated and billed. One paid attempt now: a call is retried only when the provider certainly generated nothing,
  i.e. it refused the request (429 rate limited, 529 overloaded) or the request never reached it (the host did not
  resolve, the connection was not made). Every other failure is reported at once; the admin can ask again.

#### Tests
- Unit: `RetryHelperTest` covers each refused status and each never-sent cURL error (retried), and 500, 502, 503,
  504, a read timeout and a receive failure (one attempt).
- Integration: `ConfigSectionRenderTest` names the section's ACL resource (`Qoliber_SeoAdvisorAi::config`), so
  Magento's inherited ACL tests run instead of being skipped: a role without it is sent back to the configuration
  index (302).

### SeoIndexNow

_Released 2026-10-19._

#### Fixed
- **An outbox failure can no longer leave a save half-written.** The outbox
  write used to run inside the transaction of the change that caused it
  (product, category and CMS saves, the legacy stock item save, MSI's shipment
  deduction), and any error was only logged. After a deadlock InnoDB has
  already rolled that transaction back, so Magento carried on, the remaining
  statements autocommitted and the final commit failed with "There is no active
  transaction".
  - URLs are still collected where the change happens. The rows are now written
    by the transaction's commit callback, or at once when no transaction is
    open, so the save never holds outbox row locks, and a rolled-back save
    leaves no row.
  - A failed write (retried on deadlock or lock-wait timeout) is logged and
    cannot affect the committed save.
  - A deadlock or lock-wait timeout while collecting inside a transaction is now
    rethrown instead of swallowed, so the save fails cleanly. The same applies
    to the MSI and legacy-stock status reads.
- **Large batches are no longer recorded as HTTP 100.** For request bodies over
  1 MiB, about a full 10,000-URL batch, libcurl sends `Expect: 100-continue`.
  Magento's HTTP client keeps the first status line, so the batch was recorded as
  status 100 and retried until it failed. The request now sends an empty
  `Expect` header. The timeout carried over from the synchronous version is
  raised to 30 s (connect: 10 s), since delivery runs in cron.
- **Retention cleanup no longer holds long row locks.** It deletes old rows about
  1,000 at a time by primary key instead of in one unbounded `DELETE`, so a save
  re-queuing one of those URLs no longer waits up to `innodb_lock_wait_timeout`.
  A row re-queued meanwhile is kept.
- **Mass actions no longer build every row in memory.** URLs are collected and
  written per store view and per 1,000 entity ids, instead of for the whole
  selection at once. For example, a mass status change over 50,000 products in
  10 store views used to build about 700 MB before the first insert.

#### Tests
- `Model\TransactionBoundaryTest` (real transactions):
  - rows appear only after the save commits;
  - a rolled-back save leaves none;
  - an outbox write that keeps deadlocking does not break the save;
  - a deadlock while collecting fails the caller inside a transaction and is
    only logged outside one.
- `Service\NotifierTest` asserts the empty `Expect` header and the timeouts.
- `OutboxProcessorTest` purges a 2,500-row backlog in chunks and keeps the
  pending row.
- The observer, stock, mass-action and configurable integration tests now run
  with real commits (DB isolation off, cleaned by the fixtures' rollbacks), so
  every save path is checked through Magento's own commit callbacks.

### SeoPrettyFilters

_Released 2026-10-19._

#### Fixed
- **ElasticSuite category filter links pointed at the current page (regression in 2.3.0).** ElasticSuite links its category filter straight to the subcategory URL (its "use URL rewrites" default), and 2.3.0 moved every such link onto the current listing path. Only links core builds on the internal route (`catalog/category/view/…`) on a category page are now given the listing's pretty path; every other URL (a subcategory's own URL, a link built on a base URL) is returned as it is.
- **The pager and toolbar dropped values of a multi-value filter.** A non-pretty multi-select filter (ElasticSuite's `size[0]=S&size[1]=M`) was written as `size=S&size=M`, which PHP reads as `size=M` only. Page 2 then listed a different set, or answered 404 when that set had a single page. Array values now keep their brackets.
- **ElasticSuite "Show more" on search.** The extra filter items load from ElasticSuite's own endpoint (`catalog/navigation_filter/ajax`), which was not treated as a search request, so on a search the items could get pretty paths. That request now counts as a search when it carries the query. Links outside a category page are never moved onto the request's path, so its non-pretty items keep the listing URL ElasticSuite builds them on.
- **Switching grid/list or products per page could answer 404.** Some themes (Hyvä) keep `p` when the shopper switches the view mode or the limit; on a late page that lands past the last page. Requests carrying `product_list_mode` or `product_list_limit` no longer get the out-of-range 404 (core answers 200). A plain `?p=999999` still answers 404.

#### Tests
- Unit: a public URL and links outside a category page are not rebased; multi-value params round-trip through the provider (request values and overrides); the "Show more" search detection; view switches past the last page keep the status.
- Integration, in Short, Complex and Flat mode:
  - The category filter link is read from the layered navigation only (not the menu). It is `?cat=N` on the pretty path with Magento, and the subcategory URL with ElasticSuite.
  - With ElasticSuite, a multi-value non-pretty filter keeps both values on the pager links, and page 2 lists page 2 of that set.
  - With ElasticSuite, "Show more" items keep the pretty listing URL on a category, and stay query strings on a search.
  - A limit or mode switch past the last page answers 200.

## 2.3.0 — 2026-11-20

### SeoAdvancedSitemaps

#### Fixed
- A sitemap run publishes its whole set or leaves the published one as it was. Short writes and a full disk went
  unnoticed (the write and close results were ignored, and PHP reports a gzip stream that could not be finished as
  closed), so truncated child files could be published and served as the current sitemap. Every staged file is now
  checked complete after it is closed (all bytes written; for `.xml.gz` the gzip trailer's length and CRC-32), and a
  file that is not fails the run before any public file changes.
- Publishing no longer exposes partly copied files or mixes two runs. Files were staged under the same path for every
  run in the system temporary directory and moved one by one onto their public names: when that directory is on
  another filesystem (the usual case) each move is a copy, so crawlers could read a half-written child or index, and an
  admin run overlapping the cron run (or a second click) wrote over the other run's staged files. Each run now stages
  in a directory of its own, moves its files into the sitemap directory under temporary names
  (`{file}.{run id}.tmp`) and only then renames them over the public names, children first and the index last; a
  failed move removes the moved files and leaves the published set untouched, and the next run removes temporary
  files an interrupted run left behind.
- One run per sitemap index at a time: a run holds Magento's lock (the database lock by default, shared by every
  node) and a second run of the same index is refused with "The sitemap … is already being generated by another
  process". Deleting, renaming or moving a sitemap record no longer deletes the child files of an index that is being
  generated at that moment (the cleanup is skipped and logged).
- A sitemap index can no longer exceed the protocol's 50,000 entries or 50 MB: a run that would need more child files
  (a very small "URLs per Sitemap File" on a large catalogue) is refused before anything is published, with a message
  naming the setting, instead of publishing an index crawlers truncate or reject.
- The default-sitemap setup patch can run again (reinstall, cleared patch list) without creating a second record for
  a store view's sitemap file, keeps a record a merchant already has for that file, and logs which store view it
  could not create a record for. The locale emulation is always reverted.

#### Changed
- "Use In Sitemap" is applied as a filter on Magento's own CMS sitemap collection instead of an around plugin that
  rebuilt core's query: core's eligibility (active pages, store views, utility pages) and other plugins on that
  collection now keep applying. The listed pages are unchanged.
- "URLs per Sitemap File" accepts 1 to 50,000 in the admin (values outside were already clamped) and says what
  happens when an index would need more than 50,000 files.
- `composer.json` declares the `ext-zlib` (gzip output) and `ext-mbstring` (video descriptions) PHP extensions the
  module calls directly.

#### Added
- `README.md`: install, settings, how a run publishes, shared directories, gzip serving, failure and rollback.

#### Tests
- Unit: an injected full disk (`/dev/full`) on a plain child, on a gzip child whose failure only shows at close and on
  the index; a failed move into the sitemap directory; a second run of the same index starting mid-way through the
  first; a busy lock; the lock held for the whole run and released on failure; child cleanup skipped while the index
  is generated; leftover temporary files; more than 50,000 children; the index limits at, below and above both bounds.
  Each keeps the previously published files byte for byte (all fail on 2.2.3).
- Integration: Magento builds the service with the store's lock manager; with a real (file) lock held by another
  holder a run is refused without writing anything, and a run holds the lock throughout and releases it after success
  and failure; "Use In Sitemap" filtering on the core CMS collection with core eligibility (inactive pages, all store
  views, utility pages) and with the module disabled; the setup patch run twice next to an existing record.

### SeoAdvisorAi

#### Security
- The **Enabled** setting is now enforced on the server. While the module is disabled, or while the selected provider is not verified (including right after its API key changed), the advice action refuses the request before a prompt is built: no product data is sent to the AI provider. The product page "Check SEO" button is hidden while the module is disabled and stays disabled until the provider is verified. Previously the switch only hid the settings, and an authorized admin could still trigger paid requests.
- "Verify connection" accepts POST requests with the admin form key only (it writes configuration and calls the provider); a GET to a signed admin URL is rejected.
- A failed verification stores and shows a safe message only. The text of unexpected transport, SDK or provider errors (which can echo request details) is no longer saved to the configuration or shown in the admin; it is logged by exception type.

#### Fixed
- The **Check SEO** button is hidden for admin roles without the *Qoliber: SeoAdvisorAi check SEO* permission (`Qoliber_SeoAdvisorAi::advise`). Before, such a user saw the button and clicking it was refused.
- Verification and API-key rotation no longer race. The result is stored only if the API key is unchanged since the verification started (the key row is locked while writing), status, error and model list are written in one transaction, and the configuration cache is refreshed so the product page sees the new state immediately. A result obtained with a replaced key is discarded and the admin is asked to verify again; a failed write is never reported as verified.
- Provider responses are no longer entity-decoded and tag-stripped as one JSON document before validation: valid advice containing `&quot;` was rejected, and the 16 KB size limit was checked after the cleanup. The raw response is now size-checked first, a surrounding markdown fence is removed, the JSON is decoded once, and each suggestion is then entity-decoded and stripped of markup.
- Opening Stores > Configuration > SEO: Advisor AI no longer calls the AI providers. The model selects show the list stored by the last successful verification, otherwise the cached or built-in list; a corrupt stored or cached list falls back instead of breaking the select. Refresh the list with "Verify connection" or `bin/magento qoliber:ai:list-models`.
- Claude and Gemini advice retries share a 30-second budget and no retry starts after it: two timed-out attempts end the request (about 30 seconds, inside the browser's 60-second wait) instead of three, so a third chargeable generation is not paid for. Quick 429/5xx failures still get all three attempts.
- `bin/magento qoliber:ai:list-models --flush-cache` now also clears the OpenAI model cache (it removed the pre-2.2.3 cache key).

#### Added
- For developers: `Model\Config::canRequestAdvice()`, `isProviderVerified()` and `getProviderVerificationStatus()` (the single advice policy), `getKnownModels()` on the provider services (cached or built-in list, never a network call), `Model\VerificationState` (consistent verification persistence) and `Service\GenerativeAi\VerificationException` (verification failure whose message is safe to display). `RetryHelper` has overridable `nowMs()` / `pause()` time seams.
- `README.md`: operator guide covering the data sent to the provider, verification, key rotation, disabling, model lists, timeouts, ACL, CLI and custom providers.

#### Changed
- The verify-connection field renders its inline style and script through Magento's secure HTML renderer, so a strict admin Content Security Policy allows them.
- Admin comments explain what **Enabled** and **Verify connection** do.
- `composer.json`: removed the unused `erusev/parsedown`; declared the directly used `magento/module-ui`, `laminas/laminas-json` and `psr/log`.
- Constructor changes (DI resolves them; update only code that instantiates these classes itself): `Controller\Adminhtml\Verify\Models` takes `VerificationState` and a logger instead of the config writer; `Block\Adminhtml\Product\Edit\Button\CheckSeo` no longer takes `ScopeConfigInterface`; the four model source models extend `AbstractModels` and take `ScopeConfigInterface` plus their provider service.

#### Tests
- Unit: disabled/unverified advice never calls the provider, entity round trip and raw-size-first cleanup (`PopupTest`); POST-only action, rotated-key result discarded, failed write not verified, unexpected error text neither shown nor stored (`ModelsTest`); fake-clock retry budget (`RetryHelperTest`); network-free model lists and corrupt caches (`KnownModelsTest`, `ModelsSourceTest`); button policy (`CheckSeoTest`); cache flush keys (`ListModelsCommandTest`).
- Integration, through Magento's admin routing with an in-process fake provider: `PopupDispatchTest` (disabled/unverified → zero provider calls, verified → validated advice in one call, GET rejected, ACL allowed/denied) and `ModelsDispatchTest` (GET rejected without call or write, result stored and visible on the next config read, rotated key discarded, sentinel error text redacted, ACL allowed/denied); `ConfigSectionRenderTest` (the configuration section renders the stored model list and the secure-rendered verify field). Tests restore the configuration and config cache they change.

### SeoDynamicDescriptions

_Released 2026-11-10._

GitLab's 2.1.5 with qoliber Catalog Pro's local patches P6, P8 (to be upstreamed).

#### Added
- **Public page-heading ownership hook** (`Api\PageHeadingOwnershipInterface`, `@api`; local patch P6 of qoliber
  Catalog Pro, to be upstreamed). Where another module owns the current page's H1 (registered in di.xml:
  `Plugin\GetPageHeading` argument `headingOwners`), the category's "SEO Header" no longer replaces it — one heading
  writer per page. Backwards compatible: the constructor argument is optional and nothing changes without a
  registered owner.

#### Tests
- PHPUnit 12 (local patch P8 of qoliber Catalog Pro, readiness review 5 R3): collaborators without expectations are
  stubs (`createStub()`), so the unit suite runs without PHPUnit notices; a few shared doubles assert their calls
  explicitly instead. Test-only; runs on PHPUnit 10.5 (Magento 2.4.8) too.

### SeoFriendlyProductUrls

#### Fixed
- **Regeneration for a store view only touches products of that store's website.** The product range was read with the
  store's attribute values but without website membership, so a run for one website created canonical rewrites and
  store-level URL keys for products that exist only on another website. Single-website stores behave as before; rows
  an earlier run created outside a product's website are not removed automatically. `CurrentProductValuesTest`,
  `Test/Integration/Service/WebsiteScopedRegenerationTest`.
- **A failed rename no longer deletes the product's URL history.** The module's own 301s sitting on the new target paths
  were deleted for the whole batch before any product was renamed; when a product then failed, or fell back to a
  "-N" key, the batch still committed without that redirect. The delete now runs in the same atomic write as the
  rename that takes the path, so both commit or roll back together.
  `TransactionalRollbackTest::testFailedRenameKeepsTheOwnedRedirectOnItsTargetPath`,
  `testOwnedRedirectOnTheTargetIsReplacedWhenTheRenameSucceeds`.
- **A value that yields no usable URL key no longer becomes a ".html" rewrite or aborts the run.** A name made only of
  punctuation or symbols transliterated to an empty key; an empty value threw out of the whole bulk run. Such a product
  is now skipped and logged; "0" is accepted as a key. `UrlKeyFilterTest`, `UrlKeyGeneratorTest`.
- **A URL longer than the url_rewrite path column is skipped instead of truncated.** Magento runs MySQL without strict
  mode, so a request path over 255 characters was silently cut into a broken URL. Products whose new path (with room
  for a collision suffix) would not fit are skipped and logged. `RegeneratorTest::testOverlongPathIsSkippedInsteadOfTruncated`.
- **The "Generate URL" preview uses the values in the form.** For a saved product it read only the saved attributes, so
  an unsaved name change had no effect; for a new product a select attribute was filled with its numeric option ID.
  Both now take the form's values (an explicitly emptied field stays empty), turn option IDs into their store labels,
  and fall back to the saved values for attributes the form does not send. `Test/Integration/Controller/Adminhtml/Generate/UrlKeyTest`.

#### Security
- **The preview endpoint validates its input and no longer echoes internal errors.** Product and store IDs must be
  non-negative integers and the form data a JSON object of scalar values; anything else gets a fixed message. The
  disabled-feature check now applies to new products too. An unexpected error is logged and answered with a generic
  message instead of the exception text. `UrlKeyTest`.

#### Changed
- `bin/magento qoliber:seo-friendly-product-urls:regenerate-urls` reports each finished store, names the store that
  failed and how to resume, and stops there (exit code 1, as before). Its help documents the options, the website
  scope, batching, history and recovery. A failing batch and a post-commit reindex failure are logged with the store,
  the batch range and the command to repair the index. `RegenerateUrlsTest`.
- `composer.json` declares the packages the module imports directly: `laminas/laminas-filter` and `symfony/console`.

### SeoHrefLang

_Released 2026-11-10._

GitLab's 2.2.2 with qoliber Catalog Pro's local patches P3, P8 (to be upstreamed).

#### Added
- **Public hreflang veto hook** (`Api\HrefLangVetoInterface`, `@api`; local patch P3 of Qoliber Catalog Pro, to be
  upstreamed). Modules register vetoes in di.xml (`ViewModel\HrefLang` argument `vetoes`); one veto suppresses the
  whole cluster before any alternate URL is resolved. For states the query-string check cannot recognize: filters in
  the URL path (pretty filter URLs), NOINDEX, error and non-canonical pages. Backwards compatible: the constructor
  argument is optional and nothing changes without a registered veto.

#### Tests
- PHPUnit 12 (local patch P8 of qoliber Catalog Pro, readiness review 5 R3): collaborators without expectations are
  stubs (`createStub()`), so the unit suite runs without PHPUnit notices; a few shared doubles assert their calls
  explicitly instead. Test-only; runs on PHPUnit 10.5 (Magento 2.4.8) too.

### SeoImagesFriendlyUrl

#### Added
* **Store-View Image File Names** (`qoliber_seo_friendly_images/settings/store_view_image_names`, per store view, default **No**). With **Yes**, the SEO image index gives that store view its own file names from its store-view values: the image's store-view *Image SEO Friendly name* if set, otherwise the name template applied to the store-view product values (translated name, option labels, store-view template). Before, the indexer only ever wrote the default (store 0) name: a store-view gallery name, a store-view template or a translated product name never reached the storefront, although the template's admin comment showed Spanish and German examples, and a store view only got its own file name from rows inserted into the index by hand. A store-view name equal to the default name is not stored twice, and a generated store-view name disappears when its source is cleared or the setting is switched off. Saving the setting invalidates the SEO image index. Published image URLs keep resolving after a rename, because the media URL still carries the original file name. With the default **No**, file names do not change.
* Index column `is_generated` marks rows the indexer wrote. Store-view rows written outside the indexer (imports, SQL) are still carried across full reindexes while their image exists; a store-view name the indexer generates for the same image and store view replaces them.
* Module `README.md`: install, indexer mode, how names are built and scoped, URL format, image/symlink modes and disk use, cold-cache delivery, rollback and upgrade notes.

#### Fixed
* **Adobe Commerce content staging (`row_id`).** The indexer joined attribute values on `row_id = entity_id` and compared row ids with the product ids the scheduled index delivers, so on Commerce an image could be named after another product's attributes, or a changed product could be skipped. Attribute values are now joined on the link field on both sides, gallery entries reach their product through the gallery-to-product table and the product row (on Commerce, its active version), and partial reindexes select products by entity id. On Magento Open Source and Mage-OS the link field is `entity_id`, so the result there is unchanged. Not yet run on Adobe Commerce.
* **Files shared by several products got an arbitrary name.** A gallery file used by several products (imports reuse one gallery entry) was named after whichever product the database returned first, or the one reindexed last, so full and partial reindexes could disagree; the grouped gallery query was also invalid under `ONLY_FULL_GROUP_BY`. The file now takes the name of its owner on every reindex: the lowest gallery entry, then the lowest product id.
* **Saving a shared image's *Image SEO Friendly name* wrote it into every product that shares the image**, and on Commerce into every staged version of the product. The gallery value update now targets the saved product's row only.
* **`setup:db:status` reported the schema as out of date after every full reindex.** The full reindex built its replica table with `createTableByDdl()`, which generates column comments from the column names ("Seo Friendly Name") and renames the indexes; once the replica was swapped in, the table no longer matched `db_schema.xml`. Deployments that run `setup:upgrade` only when `setup:db:status` asks for it therefore upgraded, with maintenance mode, on every deploy, and the next full reindex undid the upgrade. The replica is now an exact copy of the live table (`CREATE TABLE … LIKE`), so its comments and index names survive the swap. The next `setup:upgrade` restores the declared comments once.
* **Full reindex memory.** The full reindex loaded every gallery row before processing. It now reads the gallery in pages of 1,000 entries (the indexer `batchSize`), and reads attribute metadata once per run.

#### Changed
* Admin comments: the image name template says names are built from default values unless *Store-View Image File Names* is on; the *Mode* comment says what each mode writes (and loses a typo); the *Generate SEO Image Friendly URLs* comment names the gallery field it refers to.
* `composer.json` requires `magento/module-config` and `magento/module-indexer`, which the module's configuration and indexer use directly.
* The gallery read plugin (`Plugin\CatalogModelResourceModelProductGallery`) no longer calls `ObjectManager::getInstance()` to fill a media-config dependency it never used.

#### Tests
* Integration: a full reindex leaves the table definition (column comments, index names) exactly as it was.
* Integration: store-view names come from the store-view gallery name and from a translated product name on partial and full reindexes without seeding the index; nothing changes with the setting off; a generated store-view row disappears when its source is cleared or the setting is switched off; a file shared by two products keeps its owner's name whichever product is reindexed.
* Unit: link-field joins with `row_id`, partial reindex by product entity id through the gallery-to-product table, owner selection independent of row order, store-view rows only for enabled store views and only when they differ from the default name, keyset paging of the full reindex, carry-forward of rows written outside the indexer with `INSERT IGNORE`, and the gallery SEO-name update scoped to the saved product on Open Source and Commerce link fields.

### SeoIndexNow

_Released 2026-10-18._

**Delivery now needs Magento cron.** Changes are queued and sent by the
`qoliber_seo_index_now_deliver_outbox` job (every minute, `default` group). On a
store without cron, run `bin/magento qoliber:indexnow:flush`.

#### Fixed
- **A rejected submission is no longer reported as delivered.** `Service\Notifier`
  used to log a 429, 5xx or transport error and still return success. Now only
  200/202 count as delivered. 400 and 422 are permanent failures; 403, 429, other
  non-2xx answers, no answer and transport errors can be retried, and a 429/503
  `Retry-After` (seconds or HTTP date) is honoured. Each outcome carries the HTTP
  status and reason (`Model\Delivery\DeliveryResult`). `submit()` returns false
  for every failure, including when one 10,000-URL batch out of several fails.
- **Notifications are no longer lost when the engine is down or throttling.**
  Failed URLs are kept and retried (see the outbox below) instead of dropped
  after one attempt.
- **No HTTP call in the admin save path.** Product, category and CMS saves used to
  POST to IndexNow synchronously (up to 5 s per store view). They now only write
  to the outbox.
- URLs and `keyLocation` use the store's secure base URL whenever the frontend is
  served over HTTPS (`Model\StoreBaseUrl`), whatever the request context.
  Previously the scheme depended on the current request, so cron and CLI runs
  would have produced `http://` URLs that did not match those captured in admin.

#### Added
- **Durable outbox** (`qoliber_seo_index_now_outbox`): one row per store view and
  absolute URL, deduplicated on a SHA-256 of the URL. Each row records the change
  type (`added` / `updated` / `deleted`), status (`pending` / `delivered` /
  `failed`), attempts, `next_attempt_at`, `last_status`, `last_error` and
  timestamps. If a URL changes again while it is waiting, the row is updated in
  place and keeps its backoff. If the URL was already delivered or failed, the
  row goes back to pending with a new attempt budget.
- **No change is lost while its URL is in flight.** Every enqueue bumps the
  row's `revision`, and a delivery outcome is only written to the revision that
  was fetched and sent. A change queued during the POST (for example a delete
  right after an update) stays pending and goes out on the next run, as its own
  change type:
  - after a successful POST it is due at once;
  - after a retryable failure it keeps its own attempt count but waits out the
    target's backoff or `Retry-After`;
  - after a rejection, or the last allowed attempt, it is not marked failed with
    the older change.
- **Cron delivery** (`Cron\DeliverOutbox`, every minute). Due rows are grouped by
  endpoint + host + key + `keyLocation` and sent in POSTs of up to 10,000 URLs.
  Retries use exponential backoff (1 minute, doubling, capped at 6 hours, or
  longer when `Retry-After` asks for it). After **Maximum delivery attempts**
  (default 10) a row is marked `failed` and kept. When a target throttles or
  fails, its remaining batches are deferred instead of sent. Rows of a store view
  disabled after queueing are marked failed without being sent. A lock keeps the
  cron and the flush command from running at the same time.
- **Retention cleanup** (`Cron\CleanupOutbox`, daily at 02:40): removes delivered
  and failed rows older than **Keep delivered/failed rows (days)** (default 14).
  Pending rows are never removed.
- **`bin/magento qoliber:indexnow:flush`** delivers due rows now. It prints the
  delivered, failed and scheduled-for-retry counts and the outbox totals, and
  exits non-zero unless every due row was delivered (any failure, retry or
  deferral). `--all` also sends rows that are waiting
  out a backoff (one pass); `--limit` sets the rows per pass.
- **Broader change detection.** Every trigger only queues URLs, and only URLs
  that are public (enabled, visible in catalog/search, in the store's website,
  active store view) are queued as added/updated:
  - Product delete: the URLs are captured before Magento removes the
    url_rewrite rows (plugin on the product resource model's `delete()`) and
    queued as deleted.
  - Category delete: the category and its descendants are queued as deleted
    (`catalog_category_delete_before`).
  - CMS page delete is queued as deleted (`cms_page_delete_before`).
  - Disabling or hiding a product, or changing its url key, queues the URLs that
    were live as deleted. They are captured on `catalog_product_save_before`,
    while the url_rewrite rows still describe them; if the product is still
    public under the same URL after the save, the save re-queues it as updated.
    A hidden variant has no URL and is never queued itself. Deactivating a
    category, and deactivating a CMS page or removing it from a store view, also
    queue the old URL as deleted.
  - **Composite parents.** A variant's change shows on its parent's page, so
    every product change path (save, delete, status/visibility change, mass
    attribute and website updates, legacy and MSI stock flips) also queues the
    public configurable, grouped and bundle parents as updated
    (`Model\Change\ParentProductResolver`, via each installed composite type's
    `getParentIdsByChild()`). Grouped parent ids are link-field values, so they
    are mapped back to entity ids (`row_id` on Adobe Commerce). Parents go
    through the same public-URL filter.
  - Stock status: a legacy stock item going in or out of stock (the stored
    `is_in_stock` is read on `cataloginventory_stock_item_save_before` and
    compared on `_save_after`, because stock items from `StockRegistry` carry
    no original data). With MSI, an existing source item whose status flips,
    whether saved (plugin on `SourceItemsSaveInterface`) or emptied by a
    shipment deduction (plugin on `DecrementSourceItemQty`, which MSI uses
    instead of the save).
    Quantity-only changes and new source assignments are ignored. Both are
    optional integrations: nothing depends on the inventory modules being
    installed. Out-of-stock products are still reported, because the product
    lookup opts out of the frontend "hide out of stock" collection filter.
  - Mass actions through `Product\Action`, which skip the save events: grid
    "Change status" and "Update attributes" (also when run by the async
    consumer), and website assignment (add queues added). An update that
    disables or hides products, and a website removal, queue the live URLs as
    deleted, captured before the change.
- Config: **Notify on stock status change** (store view scope, default Yes) and a
  **Delivery** group (default scope) with **Maximum delivery attempts** and
  **Keep delivered/failed rows (days)**. The existing enable, key, endpoint and
  per-entity toggles keep their paths and meaning. The toggles are now labelled
  "Notify on product/category/CMS page changes" and also gate deletes and the
  other new triggers.

#### Changed
- The synchronous "notify on save" mode is gone; every trigger goes through the
  outbox. A synchronous option would bring back the HTTP call in the admin save
  path and would lose any notification that failed during that request, and
  production Magento already needs cron (indexers, emails, sitemaps).
- `Service\Notifier` constructor: takes `Model\StoreBaseUrl` and
  `Model\Delivery\ResponseClassifier` instead of `StoreManagerInterface`. It adds
  `deliver()`, `resolveTarget()` and `post()`, which return a `DeliveryResult`.
  `submit()` and `submitOne()` stay, with truthful return values.
  `Model\CanonicalUrlResolver` takes `Model\StoreBaseUrl` and adds a batched
  `resolveMany()`, so mass updates run one url_rewrite query per store view, not
  one per product.
- `ResourceModel\Outbox::markDelivered()`, `markRetry()` and `markFailed()`
  take the rows returned by `fetchDue()` (id and revision), not bare ids.
- The category fallback URL (used when no url_rewrite row exists) is now
  `url_path` plus the category URL suffix, not `Category::getUrl()`.

#### Tests
- Unit: `Model\Delivery\ResponseClassifierTest` covers the status mapping for
  200/202/204/301/400/403/404/422/429/500/503/no response, `Retry-After` as
  seconds, as an HTTP date, header name in any case, capping and garbage values,
  plus transport errors. `Model\Outbox\BackoffTest` covers the schedule, the cap
  and `Retry-After` precedence. `Service\NotifierTest` now asserts that 429,
  5xx, 4xx and transport errors are failures, including the reviewer's 429
  reproduction, and that a later batch failing in a 10,001-URL submission fails
  the whole submission. `Model\Change\ParentProductResolverTest` covers the
  composite-type lookup and the Adobe Commerce `row_id` mapping of grouped
  parents.
- Integration (stubbed HTTP client, no network):
  - Observer tests assert outbox rows and no HTTP call: product save/disable/
    hide/delete (the delete test uses a request path that only the url_rewrite
    table knows, which proves the URL was captured before the delete), category
    save/deactivate/delete, and CMS save/deactivate/delete with store-0
    expansion.
  - `StockChangeTest` covers legacy stock flips, MSI source-item saves and
    shipment deductions, and quantity-only changes that queue nothing.
    `Plugin\ProductActionTest` covers mass status, attribute and website
    changes.
  - `ConfigurableParentTest` uses a real configurable product. A hidden variant
    going out of stock (legacy and MSI), being saved, mass-disabled or deleted
    queues only its parent. A visible variant going out of stock queues itself
    and its parent.
  - `Model\Outbox\OutboxProcessorTest` covers batch delivery and recorded
    status, dedupe, re-queue after delivery, `Retry-After`, backoff kept on
    re-queue, give-up after the attempt budget, permanent 422, transport retry,
    disabled store, deferral of the remaining batches, the delivery cron and the
    retention cleanup. It also covers changes queued while a URL is in flight:
    the reviewer's exact sequence (fetch, queue a deletion, acknowledge the
    fetch: the deletion stays pending and due), and the same race during a
    successful, throttled (429 with `Retry-After`), rejected (422) and
    last-attempt delivery.
  - `Console\FlushOutboxCommandTest` covers the printed counts, the exit code on
    failure and `--all`.
- The integration tests share `Test\Integration\OutboxTestCase`. It swaps the HTTP
  client and drops the shared `Notifier`, `OutboxProcessor` and its proxy before
  and after each test, so a spy cannot leak from one test to the next.

### SeoPrettyFilters

_Released 2026-10-18._

#### Fixed
- **A filter named twice in the URL served a 200 duplicate of the clean filter URL.** In every mode, a repeated filter (`color:red/color:red`, the same attribute in two Complex segments `color:red/color:blue`, `color:red,red`, `red-red` in Short mode, a boolean such as `new/new` or `new/!new`, a second `price~` range) now routes nowhere and answers 404. The check runs on what the mode resolver actually consumed, so it holds with the ElasticSuite companion too. Multi-select URLs keep working (Short `red-blue`; Complex `color:red,blue` with the ElasticSuite companion); Flat mode already rejected repeats and is now covered by tests.
- **Complex-mode price links didn't resolve.** Complex mode generated `price:10-20`, while every mode resolves `price~10-20`, so following a price link answered 404. It now generates `price~10-20`, the form Short and Flat mode and the ElasticSuite companion already use. `price:10-20` is not accepted as an alias: it never resolved, so no live URL depends on it, and accepting it would only add a second URL for the same listing.
- **Price paths resolve the values Magento's price filter actually uses.** An open last or first range (`price~40-`, `price~-20`) and decimal bounds now resolve, and a drill-down price link keeps only its own range. `price~` is parsed only when the price attribute is marked **Use for Pretty Filter**, like every other filter; otherwise price stays a query parameter and its path form does not resolve. Forms the module never generates (`price~10`, `price~-`, two price tokens) don't resolve either.
- **Pretty filter links on search result pages never applied.** On a search the module generated `catalogsearch/result/index/color:red?q=…`, but the path could not resolve because the search route stayed in it, so the filter was silently ignored in every mode. Search pages now keep Magento's own query-string links (`?q=…&color=5&price=10-20`) for filter items, swatches, the pager and *Clear All*. Following one applies the filter, and the pager keeps it. A search is not a landing page and its canonical is the search itself, so pretty filter paths are now generated and resolved only on category listings.
- **Pagination links on a pretty category page used the internal route.** Page numbers and previous/next came from core's pager, which builds `catalog/category/view/id/5/color/12/?p=2`. That is a crawlable 200 twin of every filtered page, and the category canonical is the only thing covering it. The product-list pager now links the listing's own pretty path plus `?p=N`, with no `p` on page 1. Other pagers (reviews, customer account, widgets) and search pages keep core's URLs.
- **The sort, limit and mode links of a listing could point at the internal route or a trailing-slash twin.** Their base URL was built from the request's internal path. On a category reached through its URL rewrite that path is `catalog/category/view/id/5`, and on a pretty path it gained a trailing slash (`color:red.html/`). The toolbar and the pager now share one listing URL: the path the shopper requested (pretty path or category rewrite) with the listing's query parameters.
- **Category, non-pretty and swatch filter links on a pretty listing used the internal route.** Core builds these links (and their remove links) on the current route, so on a pretty page the resolved pretty filter became path params, as in `catalog/category/view/id/21/color/49/?cat=23`. They now keep the listing's own path with core's query (`…/women/tops-women/black.html?cat=23`), including ElasticSuite's multi-value queries. ElasticSuite's default category filter links straight to the subcategory URL and is left as is.
- **A pretty listing with the category filter applied could not render.** With `?cat=…` applied, building any pretty filter link asked the category filter for an attribute model. Core throws for that, so the listing failed (in both engines). Filters without an attribute model are now skipped as path segments and stay query parameters.

#### Added
- **404 for out-of-range listing pages and empty filter combinations** — new store-scoped option **Stores › Configuration › Qoliber › SEO: Pretty Filters › Module Settings › Return 404 for out-of-range pages and empty filter combinations** (default *Yes*; independent of the pretty-URL switch, so it also covers stores that keep plain query-string filters). A category or search listing requested past its last page (`?p=999999`) answers 404 instead of showing the last page at 200; a page number that is not a positive whole number (`?p=0`, `?p=-1`, `?p=abc`) answers with the store's 404 page; a category listing whose layered-navigation filters (pretty or query-string) match no products answers 404. Page 1, valid later pages, an empty category without filters and a search without results stay 200. Out-of-range and empty-combination pages keep their listing body (the decision needs the rendered listing's size and page size) and carry the 404 status.

#### Removed
- `Plugin\Frontend\CatalogSearchControllerResultIndex`, the search-page path resolver. It could never resolve a path (see *Fixed*), and search pages no longer link to pretty paths; a pretty search path now simply applies no filter.

#### Tests
- Unit: duplicate rejection per mode (Complex, Short, Flat) through the real path-resolver chain, including a stand-in for a replacement resolver that keys options by value; boolean and price repeats; the page-number guard; the listing status plugin.
- Integration: storefront dispatches answering 404 for a duplicated segment, the same attribute in two segments, Short and Flat repeats, out-of-range and malformed `p`, an empty pretty and query-string filter combination and an out-of-range search page; 200 for a filtered listing with results, a valid page 2 (category and search), an empty category without filters, and both 404 cases with the option switched off.
- Unit: price paths per mode, generated by the real Price converter (alone, with an applied colour, and a colour link with an applied price) and resolved through the real chain; price token parsing (open bounds, decimals, separators, rejected forms, the opt-in flag); search pages keep core URLs in the filter item, swatch, pager and clear-all plugins. The product-list pager plugin (page 1 without `p`, fragment kept, other pagers and search untouched) and the listing URL (rewrite path over the internal route, no trailing slash, rebasing core links with their query); category, non-pretty and swatch links rebased; an applied category filter no longer breaks pretty link generation.
- Integration (`FilterLinkRoundTripTest`), in Short, Complex and Flat mode, follows links rendered by the real layered navigation as fresh requests: Magento's anchors, or ElasticSuite's filter items and price-slider URL template, filled with a real range. Price links apply their range and list exactly the products in it, including on a colour-filtered listing and with a colour link on a price-filtered listing. A repeated price and the old `price:` form answer 404. On search, filter links stay query strings and narrow the results, the pager keeps the filter, and a pretty search path applies no filter. On a pretty listing, pager links keep the pretty path; following page 2 lists page 2 of the filtered set; no listing link uses the internal route or a trailing-slash path; and a requested internal-route filter URL canonicalises to the plain category. The fixture gains a subcategory and a filterable attribute that is not a pretty filter. Their links (and the size filter's remove link) keep the pretty path, and following them stacks the filter on the pretty one; under ElasticSuite the category filter links the subcategory page.

### SeoPrettyFiltersElasticSuite

#### Fixed
- **Complex mode served a segment with an unknown value as the listing of its known values** (`color:red,nonsense`
  answered as `color:red`, a choice made in 2.2.1). A segment is now consumed only when every value is an option, an
  empty value included, as in the base module; anything else answers 404. Generated URLs are unchanged.
- **Flat mode did not route two values of one attribute.** The generator joins them with a comma (`red,blue--large`)
  and the resolver looked `red,blue` up as one option, so the generated link answered 404. Each value of a segment is
  now looked up, and all of them must be options of the same attribute.
- **Short mode accepted option paths inside longer tokens** (`redblue-large`). The base module's whole-token reading
  (2.5.0) now applies under ElasticSuite, with the comma as a second value delimiter; the plugin no longer erases the
  commas and separators left in the path.
- **A filter link could miss its segment depending on the store whose options were read before**
  (`Plugin\ConverterSelect` checked that store's attribute codes). The plugin now reads the current store's option map
  once and answers from it.

#### Changed
- Requires `qoliber/seo-pretty-filters: ^2.5` (its short-mode value delimiter seam and store-keyed option map).
- Two options sharing a label in a store view are one value to ElasticSuite, which filters by label: the first of them
  in the attribute's option order (sort order, then ID, as the base module reads them since 2.5.0) gives that value
  its SEO path, every time. Documented on `Plugin\AttributeFetcher`.

#### Tests
- Unit: `ComplexAttributeResolverTest` (mixed and empty values rejected whole, segments consumed by position),
  `FlatAttributeResolverTest` (comma-joined values), `ShortAttributeResolverTest` (delimiter seam, through the base
  resolver), new `ConverterSelectTest`, `AttributeFetcherTest` (shared label). The ElasticSuite-mode round trip
  through a real ElasticSuite engine still needs an ElasticSuite instance.

### SeoRichSnippets

_Released 2026-04-20._

First release cutting from 2.2.1. Combines correctness fixes, a breaking-default
change, a performance rework of the variable-provider pipeline, and Google's
2025 Merchant Listings compliance additions.

#### Added
- **Google 2025 Merchant Listings compliance for `MerchantReturnPolicy`** — the default `merchant-return-policy` snippet now emits `applicableCountry` (ISO 3166-1 alpha-2, sourced from `{{config.general.country.default}}` so each store's configured country flows through automatically) and `itemCondition` (defaults to `https://schema.org/NewCondition`). `applicableCountry` is **required by Google** as of 2025 — without it the whole return policy is dropped from Product rich results, not just the missing field.
- New data patch `UpdateMerchantReturnPolicy2025Fields` rewrites the existing snippet on upgrade. Follows the same overwrite-unconditionally pattern as `UpdateOfferStockAvailability` and `UpdateOfferAggregateOffer`. Since the snippet ships inactive by default (see Changed below), merchants who activated + customised it locally will see their edits clobbered on upgrade — consistent with how the suite handles default-template migrations.
- `InstallTier1Snippets` updated so fresh installs get the 2025-compliant snippet directly.
- `Qoliber\SeoRichSnippets\Api\KeyedVariableProviderInterface` with `getProvidedKeys(): array` — variable providers now declare the top-level template keys they populate so the render pipeline can skip providers the active template doesn't reference.

#### Changed
- **BREAKING: Default snippets install as INACTIVE** — all 27 snippets across the 5 `InstallTier*` data patches now call `setActive(0)`. Previously these shipped as active on a fresh install and emitted hardcoded claims like "free shipping", "US destination", and "30-day returns" as structured data — which constituted false structured-data representations for most merchants. Merchants must now explicitly activate each snippet after reviewing its content. **Existing installs are unaffected** — only fresh `setup:upgrade` runs see the new default.

#### Fixed
- **Multistore cache poisoning** — `getCacheKeyInfo()` now includes `store_id` so stores sharing a URL don't share the same JSON-LD cache entry.
- **Enabled flag honored** — `JsonLd` block now checks `qoliber_seo_rich_snippets/settings/enabled` at runtime; layout also gates the block via `ifconfig`, so the block is never instantiated when disabled. Merchants can now actually turn JSON-LD output off.
- **Circular dependency validator wired to Save controller** — the existing `CircularDependencyValidator` is now invoked before persisting a snippet edit. Admin can no longer save a snippet that includes itself or creates a dependency loop.

#### Performance
- **`JsonLd` block skips unused variable providers.** Previously `getProviderContext()` invoked every registered `VariableProviderInterface` per snippet render, regardless of whether the snippet template referenced its output. On product pages that meant `BreadcrumbsVariableProvider` rendered the breadcrumbs block (iterating the product's category path) and `CollectionVariables` loaded the reviews collection with rate votes — even when no active snippet used `{{breadcrumbs}}`, `{{productReviews}}`, etc. `ProductVariables` also redundantly enumerated every product attribute and re-queried reviews already covered by `ProductValueResolver`.
- The block now extracts the keys referenced by the active snippet template (via `{{var}}`, `@djson if/unless/exists`, and the newly-captured `@djson for X as Y`) and skips any provider whose declared keys aren't used. Third-party providers that don't adopt `KeyedVariableProviderInterface` still run unconditionally — no breakage.
- `providerOutputCache` memoizes each provider's `renderVariables()` output per block instance instead of the previous merged cache, so multiple snippets on the same page share results without cross-contamination when they need different key subsets.

#### Tests
- `Test/Integration/Setup/Patch/Data/UpdateMerchantReturnPolicy2025FieldsTest` — 5 cases: `applicableCountry` wired to the Magento config placeholder, `itemCondition` default, existing policy fields preserved, resulting template is still valid JSON, patch is idempotent on re-run.
- `Test/Integration/Block/JsonLdProviderFilteringTest` and updates to `VariableExtractorTest` covering the provider-skip invariant and the new `@djson for X as Y` extraction pattern.

## 2.2.10 — 2026-10-19

### SeoImagesFriendlyUrl

#### Fixed
- `composer.json` no longer hard-codes a `source` block pointing at the `master` branch. Composer keeps a package's own `source` over the repository's, so installing any version from the Git repository checked out `master` instead of that version, and `composer.lock` recorded `master` instead of the tag's commit. The source now comes from the repository, so every version installs its own tagged code.

## 2.2.9 — 2026-10-16

### SeoImagesFriendlyUrl

#### Fixed

* The *Image SEO Friendly name* entered in the admin product gallery is saved again on installs with Magento_ProductVideo enabled (the default). The video gallery template escaped an already-escaped element name, so the field was posted as `product&#x5B;media_gallery&#x5D;[images][…][seo_name]` — a key PHP never maps to the gallery — and the name was silently dropped. The form-part attribute had the same double escaping.
* The SEO image index now uses that name: an image's default-scope *Image SEO Friendly name* wins over the name template (transliterated like a generated name), on partial and full reindexes, as the configuration's "Only works when image CUSTOM IMAGE NAME field is empty" note describes. Previously the indexer ignored it, so the field had no storefront effect even when saved; clearing it falls back to the template. The scheduled index already watches the gallery value table, so a saved name reaches the storefront at the next index run.

#### Tests

* Integration test rendering core's gallery element through the module's template observer, asserting every SEO name field posts under the same `product[media_gallery][images][…]` key as core's own fields; indexer integration tests for the custom name on partial and full reindex and the fallback when it is cleared; a Playwright admin flow sets the name and checks the storefront file name after the SEO image index updates.

## 2.2.8 — 2026-10-03

### SeoImagesFriendlyUrl

#### Fixed

* Follow Magento 2.4.9 gallery view-model media URLs, including its store selector, while preserving older-core output.
* Refresh warmed gallery/ALT output after native scoped admin saves and preserve authored localized filenames across full atomic index rebuilds.
* Preserve authored gallery captions and labels; respect independent ALT and filename settings.
* Generate ALT labels when filename indexing is absent or filename generation is disabled.
* Keep generated labels as plain text and escape at HTML/JSON output boundaries; remove generated markup and retain Unicode, quotes and ampersands.

## 2.2.7 — 2026-10-16

### SeoImagesFriendlyUrl

_Dated 2026-09-06. Never tagged: these changes first shipped in 2.2.8._

#### Changed
- Release metadata: `support.security` advisory-feed pointer
  (https://security.qoliber.com) and canonical composer formatting.

### SeoPrettyFilters

_Never tagged: these changes first shipped in 2.3.0._

#### Fixed
- The *Info* explanation under **Stores › Configuration › Qoliber › SEO: Pretty Filters › Mode** said "There are 2 modes" above the three modes it explains (Short, Complex, Flat). It now says 3, the Complex schema shows the URL suffix its examples carry, and an example path typo (`joga`) is corrected.

#### Tests
- Integration test keeping the explanation in step with the Mode dropdown: the stated count and one section per configured mode, in dropdown order.

## 2.2.6 — 2026-10-09

### SeoImagesFriendlyUrl

_Released 2026-08-11._

#### Fixed

* **Static-analysis failure against pre-2.4.9 core (release gate)** — the module-disabled passthrough in `Service\ImageResize::resizeFromImageName()` always called `parent::resizeFromImageName($name, $skipHiddenImages)` with two arguments. That is runtime-safe on every core (PHP ignores surplus args to userland methods) but fails PHPStan level 8 when the installed core is pre-2.4.9, whose parent declares the one-arg signature — breaking the suite's `phpstan-qoliber.neon` gate locally and in CI. The passthrough now resolves the installed parent's arity via reflection and forwards exactly the argument list that signature accepts (`resolveParentResizeArgs()`): 2.4.9+ still receives `$skipHiddenImages` so core's website filtering applies, older cores receive only the image name. Behaviour is unchanged on both core lines; the gate reports `[OK] No errors` again. Locked by `Test/Unit/Service/ImageResizeParentSignatureCompatTest` (4 cases, including one that derives the expected argument count from the real installed parent so a regression to a hardcoded two-arg call fails on either core line).

* **Disabled-mode gallery alt attribute now byte-identical to core** — the
  module template escaped the static fallback string through
  `escapeHtmlAttr()`, emitting `alt="main&#x20;product&#x20;photo"` where core's
  `gallery.phtml` hardcodes the literal `alt="main product photo"`. Harmless to
  browsers but a real deviation from the 2.2.3 "vanilla output when disabled"
  promise — and exactly what `GalleryFallbackTest`'s byte-compare exists to
  catch (the test itself was also repaired: it now supplies the
  `gallery_options` view model the PDP layout normally provides, which had
  masked this diff behind a null-call fatal, and the unique-constraint patch
  test now locates the index by column list — the live index is named
  `..._REPLICA_...` after the indexer's `ActiveTableSwitcher` swap, not by its
  canonical name). The enabled branch still escapes its dynamic alt/title
  values.

### SeoPrettyFilters

#### Fixed
- Fall back to Magento's swatch URL builder when the option ID is null, preventing category-page HTTP 500 errors when Tweakwise cannot resolve an option label.

#### Tests
- Add a regression test verifying that null swatch option IDs pass unchanged to Magento's URL builder without calling the pretty URL generator.

## 2.2.5 — 2026-11-10

### SeoAdvisorAi

GitLab's 2.2.4 with qoliber Catalog Pro's local patches P13 (to be upstreamed).

#### Changed
- Tests only (Catalog Pro local patch P13, T42): the unit and integration suites run on PHPUnit 12 —
  `@dataProvider` annotations are `#[DataProvider]` attributes with static providers, `getMockForAbstractClass()`
  (removed in PHPUnit 12) is `createMock()`, and the classes whose shared doubles only some cases assert on carry
  `#[AllowMockObjectsWithoutExpectations]` (PHPUnit 10.5 skips the unknown attribute). No shipped code changes.

### SeoImagesFriendlyUrl

_Released 2026-08-09._

#### Fixed

* **Category listing images rendered the Magento placeholder while the module was enabled** — `Plugin\CatalogBlockProductImageFactory::aroundCreate()` injected `filePath` and `imageFriendlySeoName` into the asset's miscParams (mirroring `CatalogUrlBuilder`) but never called `setIsSeoImage(true)`, so the asset took the core URL branch and the parent md5-hashed the two injected params into the cache path. That poisoned hash is a variant location nothing ever generates — `catalog:images:resize` hashes clean params and the module's own resize writes the 4-segment SEO paths — so the pub/media responder silently degraded **every** listing image to the placeholder. The plugin now flags the asset as a SEO image before reading its URL (same contract as `CatalogUrlBuilder::getUrl()`), and when the SEO index has no name for the image it delegates to core's block factory instead of rebuilding with poisoned params. Listing images now emit the intended keyword-rich 4-segment URLs (`…/cache/<hash>/m/b/mb04-black-0/strive-shoulder-pack-24-mb04.jpg`) and resolve to real photos. Regression-locked by `Test/Unit/Plugin/CatalogBlockProductImageFactoryTest` (2 cases, asserting against the real asset's URL building).

### SeoPrettyFilters

_Released 2026-10-03._

#### Fixed
- Qualify colliding short option paths with the attribute code and reject ambiguous unqualified paths. Unique short paths keep their existing URLs.
- Preserve qualified paths when applying, combining and removing native or ElasticSuite filters.

## 2.2.4 — 2026-10-19

### SeoAdvisorAi

#### Fixed
- `composer.json` no longer hard-codes a `source` block pointing at the `master` branch. Composer keeps a package's own `source` over the repository's, so installing any version from the Git repository checked out `master` instead of that version, and `composer.lock` recorded `master` instead of the tag's commit. The source now comes from the repository, so every version installs its own tagged code.

### SeoFriendlyProductUrls

#### Fixed
- `composer.json` no longer hard-codes a `source` block pointing at the `master` branch. Composer keeps a package's own `source` over the repository's, so installing any version from the Git repository checked out `master` instead of that version, and `composer.lock` recorded `master` instead of the tag's commit. The source now comes from the repository, so every version installs its own tagged code.

### SeoImagesFriendlyUrl

_Released 2026-08-06._

#### Fixed

* **Magento 2.4.9 `setup:di:compile` fatal (core signature change)** — Magento 2.4.9 widened core `Magento\MediaStorage\Service\ImageResize::resizeFromImageName()` from `(string $originalImageName)` to `(string $originalImageName, bool $skipHiddenImages = false)`, extending its existing `$skipHiddenImages` website-filter optimisation into this method. Our `<preference>` override still declared the one-arg signature, so on 2.4.9 PHP raised *"Declaration of `Qoliber\SeoImagesFriendlyUrl\Service\ImageResize::resizeFromImageName(string): void` must be compatible with `Magento\MediaStorage\Service\ImageResize::resizeFromImageName(string, bool $skipHiddenImages = false)`"* and `bin/magento setup:di:compile` fatalled. The override now declares the matching `resizeFromImageName(string $originalImageName, bool $skipHiddenImages = false): void` and forwards `$skipHiddenImages` to `parent::` in the module-disabled passthrough. Because the added parameter is optional, the override stays signature-compatible with pre-2.4.9 core as well (verified by linking against the real 2.4.8 core) — no minimum-Magento bump. The enabled SEO resize path is unchanged: it processes every view image exactly as before and does not apply the website filter, so no image output regresses.

### SeoPrettyFilters

_Dated 2026-09-06. Never tagged: these changes first shipped in 2.2.5._

#### Changed
- Release metadata: `support.security` advisory-feed pointer
  (https://security.qoliber.com) and canonical composer formatting.

### SeoPrettyFiltersElasticSuite

#### Fixed
- `composer.json` no longer hard-codes a `source` block pointing at the `master` branch. Composer keeps a package's own `source` over the repository's, so installing any version from the Git repository checked out `master` instead of that version, and `composer.lock` recorded `master` instead of the tag's commit. The source now comes from the repository, so every version installs its own tagged code.

## 2.2.3 — 2026-11-10

### SeoAdvancedSitemaps

GitLab's 2.2.2 with qoliber Catalog Pro's local patches P9 (to be upstreamed).

#### Tests
- PHPUnit 12 (local patch P9 of qoliber Catalog Pro, test-pipeline audit TP5): `VideoLocClassificationTest` declares
  its data provider as a `#[DataProvider]` attribute (PHPUnit 12 ignores `@dataProvider`, so the case failed with
  `ArgumentCountError`); the integration tests' collaborators without expectations are stubs (`createStub()`, 16
  PHPUnit notices). Test-only; runs on PHPUnit 10.5 (Magento 2.4.8) too.
- `VideoEligibilityTest` uses the module's own product fixture (`Test/Integration/_files/video_product.php`) instead of
  SEO Friendly Product URLs' `product_simple.php`, so it runs where that module is not installed.

### SeoAdvisorAi

_Released 2026-10-04._

#### Fixed
- Read and update the native product data provider when lazy admin field components have not initialized; retain authored values and one apply event.
- Maintain an explicit text/JSON Chat Completions model policy instead of broad obsolete prefixes. Current GPT-6.1 Sol and chat-latest are supported; audio/realtime/tool-only models are excluded.
- Remove Claude assistant prefill, which is rejected by current models. Preserve downstream JSON validation.
- Bound provider HTTP calls to 15 seconds, connection establishment to 5 seconds, and retries to three attempts. HTTP authentication/client failures do not become retryable because of numbers in error text.
- Keep raw provider errors/keys out of retry/model-discovery logs and admin responses. Handle empty cache results and invalidate the revised model cache when keys change.
- Bind Apply handlers once, ignore stale responses, cancel pending requests when closed, and show bounded-request/error feedback. Apply buttons do not submit the product form.

### SeoFriendlyProductUrls

_Released 2026-10-03._

#### Fixed
- Replace the terminal product URL segment without changing matching category segments, including collision retries.
- Resolve EAV link fields and current product link IDs separately from public rewrite entity IDs. Use native product collection scope in attribute reads.

### SeoImagesFriendlyUrl

_Released 2026-07-18._

- Declared PHP 8.5 support (`~8.5.0` added to the `php` constraint); verified 8.5-clean — php8.5 `-l` and the unit suite both pass. Removed deprecated `Reflection::setAccessible()` calls (no effect since PHP 8.1, deprecated in 8.5).

#### Fixed

* **Frontend gallery now honours the module-enabled flag (MF-3)** — two frontend spots still mutated the product gallery even when the module was disabled, so a merchant who turned the module off did not fall back to vanilla Magento output. Both are now gated on `Config::isModuleEnabled()`:
    * `ViewModel\Product\View\Gallery::getImageAltTag()` unconditionally ran the SEO alt-tag resolver. It now short-circuits when the module is disabled and returns the passed-in value untouched (the resolver's `getSeoFriendlyValue()` — unlike `resolveAltTagSeoValue()` — was never gated, so the alt tag was rewritten regardless of the flag). A new `isModuleEnabled()` accessor exposes the flag to the template.
    * `view/frontend/templates/product/view/gallery.phtml` called the SEO view model unconditionally. When the module is disabled it now emits Magento's default `alt="main product photo"` and omits the SEO `title` attribute, producing output byte-for-byte identical to the core `Magento_Catalog::product/view/gallery.phtml` template (the JSON-init `<script>` closing braces were also re-indented to match core; functionally unchanged). Enabled behaviour is unchanged.
* **Tests** — `Test/Unit/ViewModel/Product/View/GalleryTest` (4 cases: resolver runs when enabled, input returned untouched when disabled, empty input stays empty when disabled, `isModuleEnabled()` delegation) and `Test/Integration/Block/Product/View/GalleryFallbackTest` (renders the gallery block with the module disabled and asserts the output matches the vanilla core template).

### SeoPrettyFilters

_Released 2026-08-12._

#### Fixed
- **Search results 500'd with layered navigation while the module was
  enabled** — `Plugin\Frontend\CatalogModelLayerFilterItem` asked every
  filter item for its attribute model expecting `null` for attribute-less
  filters, but core's `AbstractFilter::getAttributeModel()` THROWS for them
  (`The attribute model is not defined.`) — and the category filter renders
  as exactly such an item on search-results pages. The throw is now treated
  as the "not an attribute filter" signal: those items fall through to
  core's URL builder (both `getUrl` and `getRemoveUrl`). The unit test that
  should have caught this had mocked the impossible `null` return; it now
  mocks the real throwing contract. Found by live soak; verified fixed on a
  real store (search 200 with layered navigation rendered).

### SeoPrettyFiltersElasticSuite

_Released 2026-10-03._

#### Fixed
- Carry attribute-qualified ambiguous short paths through ElasticSuite URL generation.
- Return an empty option array when no opted-in attributes match.
- Gate every bridge hook by the store search engine and delegate unchanged outside ElasticSuite.

## 2.2.2 — 2026-10-19

### SeoAdvancedSitemaps

#### Fixed
- `composer.json` no longer hard-codes a `source` block pointing at the `master` branch. Composer keeps a package's own `source` over the repository's, so installing any version from the Git repository checked out `master` instead of that version, and `composer.lock` recorded `master` instead of the tag's commit. The source now comes from the repository, so every version installs its own tagged code.

### SeoAdvisorAi

_Dated 2026-09-06. Never tagged: these changes first shipped in 2.2.3._

#### Changed
- Release metadata: `support.security` advisory-feed pointer
  (https://security.qoliber.com) and canonical composer formatting.

### SeoFriendlyProductUrls

_Dated 2026-09-06. Never tagged: these changes first shipped in 2.2.3._

#### Changed
- Release metadata: `support.security` advisory-feed pointer
  (https://security.qoliber.com) and canonical composer formatting.

### SeoHrefLang

#### Fixed
- `composer.json` no longer hard-codes a `source` block pointing at the `master` branch. Composer keeps a package's own `source` over the repository's, so installing any version from the Git repository checked out `master` instead of that version, and `composer.lock` recorded `master` instead of the tag's commit. The source now comes from the repository, so every version installs its own tagged code.

### SeoImagesFriendlyUrl

_Dated 2026-07-13. Never tagged: these changes first shipped in 2.2.3._

#### Fixed

* **Scheduled index stays fresh on name/SKU edits (indexer)** — the SEO image filename is derived from product attributes (name, SKU, ...), but the mview only subscribed to media-gallery changes, so editing a product name, SKU or the configured filename attribute never reindexed existing image names. The mview now subscribes to `catalog_product_entity` (SKU + static columns), `catalog_product_entity_varchar` (name and custom varchar filename attributes) and `catalog_product_entity_media_gallery_value` (new/removed images), all mapped to the product entity id. Partial reindex is now keyed on the product entity link field instead of the media `value_id`, so those edits trigger a reindex of the affected products' image names.
* **Deterministic SEO name under multi-store EAV (indexer)** — `loadProductDataBySql()` joined the EAV value tables without a store scope, so multiple localized values multiplied and an arbitrary store's value could be written as the `store_id = 0` SEO name. The value joins are now constrained to the default/admin scope (`store_id = 0`) — the same scope the index is written at — yielding exactly one deterministic value per product regardless of how many store-specific values exist.
* **Complete image-index invalidation across all reachable EAV value tables (mview)** — round-1 only subscribed the mview to `catalog_product_entity`, `catalog_product_entity_varchar` and the media-gallery value table, so editing a **select attribute** (e.g. `color`, whose value lives in `catalog_product_entity_int`) or a **multiselect attribute** (`catalog_product_entity_text`) never reindexed the affected product's image names. The mview now subscribes to every EAV backend value table the filename/alt template can read: `catalog_product_entity_int` (select/boolean) and `catalog_product_entity_text` (multiselect) are added, keyed by the product entity id. `decimal`/`datetime` value tables are deliberately **not** subscribed — the available-attributes source model only offers `select`/`multiselect`/`text` frontend inputs (→ `int`/`text`/`varchar` backend types), so they are unreachable.
* **Reindex when the filename template or available-attributes config changes** — the generated names depend on `image_names_template` and `available_attributes`, but changing them left the scheduled index stale until the next unrelated edit. A new `Model\Config\Backend\InvalidateSeoImageIndex` backend model on those two config fields marks the indexer **invalid** (via `IndexerRegistry`) whenever the saved value actually changed, so the next reindex regenerates all names.
* **Obsolete index rows removed when images are deleted (partial reindex)** — the reindex only upserted the product's *current* images, so an image the admin deleted kept a stale index row forever. Partial reindex now also **prunes** index rows whose `image` no longer exists in `catalog_product_entity_media_gallery` (a `deleteFromSelect` anti-join), reaping the rows for deleted images regardless of store scope.
* **Atomic full reindex (no more empty index on mid-run failure)** — `executeFull()` used to `truncateTable()` up-front and then repopulate, so any failure part-way through left the live index empty or partial. It now builds the index in a **replica table**, populates it fully, and swaps it into place atomically (`ActiveTableSwitcher` — `RENAME TABLE`) only on success; on failure the half-built replica is dropped and the live index is untouched. Partial reindex behaviour is unchanged (it still writes to the live table).

#### Dependencies

* **Declared the direct `qoliber/core` (`^1.0`) dependency** — the admin menu/ACL are defined under `Qoliber_Core` resources, so a standalone package needs it explicitly (previously only the root metapackage provided it).

### SeoPrettyFilters

_Released 2026-07-14._

#### Changed
- Declared PHP 8.5 support (`~8.5.0` added to the `php` constraint); verified 8.5-clean — php8.5 `-l` and the unit suite both pass. Removed deprecated `Reflection::setAccessible()` calls (no effect since PHP 8.1, deprecated in 8.5).
- Declared the direct `qoliber/core` (`^1.0`) dependency. The admin menu/ACL hang off `Qoliber_Core` resources, so a standalone package requires it explicitly; previously only the root metapackage provided it.

### SeoPrettyFiltersElasticSuite

_Dated 2026-09-06. Never tagged: these changes first shipped in 2.2.3._

#### Changed
- Release metadata: `support.security` advisory-feed pointer
  (https://security.qoliber.com) and canonical composer formatting.

## 2.2.1 — 2026-11-23

### SeoAdvancedSitemaps

_Released 2026-10-19._

#### Fixed
- Generating a sitemap whose path is the store root (`/`) failed with `".htaccess" is not a valid file path` after the files were already published: 2.2.0's stale-file cleanup listed the directory through Magento's filesystem API, which refuses protected entries such as `pub/.htaccess`. The cleanup now lists the directory through the filesystem driver and still only touches this sitemap's own files.
- Child sitemap URLs in the index no longer contain a double slash for a sitemap at the store root (`https://shop.test//sitemap-products.xml`); repeated slashes in the path are collapsed.
- Renaming, moving or deleting a sitemap in the admin removes the child files its old index name published; core only deletes the old index, so since 2.2.0 those namespaced children stayed public with outdated URLs. Files another sitemap of the directory still publishes under the same name are kept.
- A failing stale-file cleanup no longer fails a run whose new files are already published; it is logged instead.

#### Changed
- The sitemap listing policy no longer repeats SeoCanonical's child → parent lookup that SeoHrefLang's paths already applied (three queries less per store and batch).

#### Tests
- Integration test generating a sitemap at the store root next to a protected `.htaccess` (fails on 2.2.0, passes now); unit coverage of root-path child URLs with and without a store base path; integration coverage of removing an old index name's children and keeping those another sitemap still publishes.

### SeoAdvisorAi

_Released 2026-08-11._

#### Fixed
- **Widened the `openai-php/client` constraint to `^0.10.3 || ^0.20.0`** — the
  hard `^0.10.3` pin forced a client downgrade (or a `composer require -W`
  dance) on any installation whose platform stack already ships the 0.20 line,
  e.g. via `mage-os/module-automatic-translation` on newer Mage-OS. Every API
  touchpoint the module uses was verified present and signature-compatible in
  0.20.1: `OpenAI::client()`, `OpenAI::factory()->withBaseUri()->withApiKey()
  ->make()`, `chat()->create()`, and `CreateResponse::$choices[…]->message
  ->content` (nullable there — already handled by the existing string cast).
  Composer now picks whichever line coexists with the rest of the platform;
  no code change.

### SeoDynamicTags

#### Fixed
- **Every tag save and delete purged Varnish twice.** Cleaning the full-page cache already purges an external page
  cache: Magento's cache type dispatches the refresh event that Varnish purging listens to. The module dispatched that
  event a second time, so every change sent two full purges. It now cleans the cache once and the purge happens once.

#### Tests
- Integration: `RefreshPageCacheTest` counts the Varnish purge requests of a tag create, edit and delete (one each).
  `UiNamespaceAclTest` points Magento's inherited ACL tests at the grid's render call with
  `Qoliber_SeoDynamicTags::manage`, so they run instead of being skipped.

### SeoFriendlyProductUrls

_Released 2026-08-12._

#### Changed
- **`qoliber/seo-platform` constraint widened to `^0.9 || ^1.0`** — the
  platform froze its API at 1.0.0 (purely additive over 0.9.0); this lets the
  resolver pick the stable line without a code change here.

### SeoHrefLang

_Released 2026-10-19._

#### Fixed
- The home page cluster reads an `identifier|page_id` home page setting the way Magento does: the identifier is loaded in each store (only a purely numeric setting is a page id). 2.2.0 loaded the page by id, which dropped stores whose own `home` page is served there and could advertise a store whose page id was not assigned to it.
- The home page's own URL key (`/home`) no longer announces alternates: its canonical is the store root, which carries the home page cluster.
- Alternates and the hreflang and video sitemaps pick the system-generated rewrite before a merchant's custom non-redirecting alias, the same choice the canonical makes (SeoCanonical 1.2), so a page never announces an alias as its alternate while canonicalising to its own URL.

#### Tests
- Unit coverage of the home page setting forms, `isHomePage()`, and the home page's URL key announcing no alternates.

### SeoImagesFriendlyUrl

_Dated 2026-07-13. Never tagged: these changes first shipped in 2.2.3._

* **Dependencies** — declared direct Magento module dependencies with bounded version constraints.
* **Maintenance** — standardised composer metadata (license, `magento/framework` constraint); PSR-12 code-style cleanup (no functional change).

### SeoIndexNow

_Released 2026-09-06._

#### Changed
- Release metadata: `support.security` advisory-feed pointer
  (https://security.qoliber.com) and canonical composer formatting.
- Ships the August test-hardening pass (behavior-locking unit and
  integration tests only; no functional changes).

### SeoPrettyFilters

_Dated 2026-07-11. Never tagged: these changes first shipped in 2.2.2._

#### Fixed
- **Category pretty URLs 404 (critical).** `CategoryPathResolver` bound an array `[storeId, 0]` to a single named `store_id` placeholder; PDO does not expand array binds, so the lookup matched no category. Now expands the values into the SQL via `store_id IN (?)`.
- **Pagination / sort / limit links pointed back at the current page.** The `ProductListToolbar` pager plugin ignored the target `$params` it was handed; those now override the current request's values on the generated pretty URL. Implemented via an optional override argument on the concrete `RequestParamsProvider` — the `@api` `RequestParamsProviderInterface` is unchanged.
- **Complex-mode routing accepted invalid, non-opted-in, and arbitrary segments.** `ComplexAttributeResolver` accepted unknown attribute codes as raw params, resolved invalid option values to id `0`, and consumed any plain segment without an `attribute:value` form (so `/category/anything.html` resolved) — all creating arbitrary duplicate category URLs. Unknown codes, invalid values, and plain segments are now left unconsumed so the router rejects the route.
- **Flat-mode URLs could be generated but not resolved.** Generation ordered segments by layered-navigation position while parsing enforced `flat_filter_order`; a divergent order, an empty order, or a pretty attribute omitted from the order produced unresolvable URLs. Generation now orders by `flat_filter_order`; the resolver appends any omitted pretty attributes in position order; and both fall back to position order when no order is configured.
- **Boolean filters ignored the `is_pretty_filter` flag and matched substrings.** `BooleanAttributeResolver` parsed every filterable boolean attribute (regardless of the flag) and matched codes as substrings; it now respects `is_pretty_filter` and matches whole tokens only.

#### Removed
- **Dead `rel` attribute admin config.** The broken `rel` admin field (a `smallint` column that stored `nofollow`/`noindex` strings and was never read) and its source model have been removed. The underlying column is **retained** so the 2.x upgrade performs no destructive schema change; it is simply no longer written or read, and is slated for removal in 3.0.

#### Dependencies
- Declared direct Magento module dependencies with bounded version constraints.

### SeoPrettyFiltersElasticSuite

_Released 2026-07-11._

#### Fixed
- Declared PHP 8.5 support (`~8.5.0` added to the `php` constraint); verified 8.5-clean — php8.5 `-l` and the unit suite both pass.
- **Complex-mode routing accepted invalid, non-opted-in, and arbitrary segments.** The `ComplexAttributeResolver` plugin now rejects unknown attribute codes, invalid option values, and plain segments without an `attribute:value` form (mirrors the base module), and drops bogus values from multiselect pairs while keeping the valid ones.
- **Flat-mode URLs could be generated but not resolved.** The `FlatAttributeResolver` and `FlatPatternProcessor` plugins now order segments by `flat_filter_order`, append pretty attributes omitted from the order in position order, and fall back to position order when none is configured — so generated flat URLs round-trip (mirrors the base module).

#### Dependencies
- Declared direct Magento module dependencies with bounded version constraints.

### SeoRichSnippets

_Released 2026-03-06._

#### Fixed
- **JsonLd block cache key** — added product ID, category ID, and request URI to `getCacheKeyInfo()` to prevent different product/category pages from sharing the same cached schema output
- **JsonLd block cache invalidation** — added product and category cache tags to `getIdentities()` so full-page cache invalidates correctly when product/category data changes

## 2.2.0 — 2026-11-20

### SeoAdvancedSitemaps

_Released 2026-10-18._

#### Fixed
- The contact page was never listed: the static generator read `contacts/contacts/enabled`, which does not exist, instead of Magento's `contact/contact/enabled`. It now follows the store's Contact Us switch.
- Sitemaps of different stores configured for the same directory no longer overwrite each other. Child files used to carry neither store nor sitemap identity, so two sitemaps with different index filenames both wrote `sitemap_products.xml` and the first index ended up listing the second store's products. Child files are now namespaced by the index filename (`sitemap_en.xml` → `sitemap_en-products.xml`, `sitemap_en-products_2.xml`, …), and stale-chunk cleanup only ever deletes files of the sitemap being generated. The index filename, robots.txt announcement and admin link are unchanged.
- Sitemaps follow the suite's indexability decisions. One listing policy now applies to the product, image, category, CMS, static, video and hreflang sitemaps: a URL is listed only when it is reachable in the store, no SEO Dynamic Tags rule marks it noindex, and its effective canonical is itself. A visible configurable child whose canonical is its parent (SEO Canonical's child → parent option, master switch and parent validity in that store) is no longer listed; every sitemap lists the entity's preferred, store-scoped, category-free URL.
- `lastmod` values are verifiable. The homepage carries its CMS home page's last update (or no date when unknown) and the contact page none, instead of "today" on every run; the hreflang homepage entry no longer carries a generation-time date. Each `<sitemap>` in the index carries the newest `lastmod` of the entries in that child file, and none when its entries have none, instead of the generation time.
- Gallery images hidden in a store view no longer appear in that store's image entries.
- The hreflang sitemap lists each CMS alternate cluster exactly once per store view. With SEO Hreflang translation groups, a group spanning several URL keys (`about-us` / `o-nas`) was listed once per URL key, and ungrouped pages were missing when their URL key's lowest page id belonged to a grouped page. CMS utility pages (home page, 404, cookie notice) are no longer listed as CMS entries there, as in the CMS sitemap; the homepage stays listed as the store root.

#### Changed
- Product and image sitemaps stream the catalogue in 500-product batches instead of loading the whole catalogue through the core product item provider (which also queried the gallery once per product). Output is unchanged: `loc`, `lastmod` from `updated_at`, change frequency and priority from the core product sitemap settings, and image entries following the core "Add Images into Sitemap" setting. Category sitemaps page the same way.
- Upgrading from 2.1.x: the previous un-namespaced children (`sitemap_products.xml`, …) are removed on the next generation once no other sitemap configured for the directory still lists them in its index; a directory shared by several sitemaps is cleaned when the last of them is regenerated.
- Products without a URL rewrite in the store are no longer listed under the `catalog/product/view/id/…` fallback path.
- Requires `qoliber/seo-canonical` `^1.2` and `qoliber/seo-href-lang` `^2.2`; declares `magento/module-catalog` and `magento/module-eav`.

#### Tests
- Two stores, two sitemap records and one directory reproduce the overwrite; unit coverage of namespacing, neighbour-safe cleanup, the upgrade path and per-child index `lastmod`.
- Integration coverage of the listing policy across the product, image, video, hreflang, category, CMS and static sitemaps (configurable child canonicalised to its parent, child → parent option off, Dynamic Tags noindex), of the image include modes and core entry format, and of accurate homepage/contact dates.
- Two store views with an `about-us` / `o-nas` translation group and an ungrouped page sharing a URL key with a grouped draft: each hreflang URL is listed exactly once with its group alternates.
- The 100k-product benchmark now also covers the ordinary product and image sitemaps with the same bounded memory and query budget.

### SeoAdvisorAi

_Released 2026-07-13._

#### Added
- Declared PHP 8.5 support (`~8.5.0` added to the `php` constraint); verified 8.5-clean — php8.5 `-l` and the unit suite both pass. Removed deprecated `Reflection::setAccessible()` calls (no effect since PHP 8.1, deprecated in 8.5).
- **New `Service\GenerativeAi\VerifiableClientInterface`** (extends `ClientInterface`) declaring `verifyConnection()`. The four shipped services implement it and `Verify\Models` checks `instanceof` — a non-verifiable provider gets a clean "This provider does not support verification." response. Backward-compatible: `ClientInterface` keeps its original method set, so a third-party provider implementing only the base interface still loads.
- **Claude and xAI Grok are now usable in the "Check SEO" workflow** — added their `Verify connection` admin fields (`system.xml`), taught the verify block to resolve all four provider codes, and drove verification through the DI provider registry so every configured provider can reach verified status.
- **Credential-change verification invalidation** — the four API-key fields use a dedicated encrypted backend model (`Model\Config\Backend\EncryptedApiKey`) that clears a provider's verification status, error, stored model list and provider model cache when — and only when — the decrypted credential actually changes on save (re-saving the obscured placeholder or the identical key is a no-op).
- **Strict AI response schema** — the OpenAI-compatible providers (ChatGPT, Grok) now request native JSON output (`response_format: {"type":"json_object"}`), joining Gemini and Claude, and every response is validated by a new `Service\ResponseSchemaValidator` (size-capped before decode; must be a JSON object with exactly `meta_title`, `meta_description`, `meta_keywords` as strings; missing/mistyped/extra fields rejected).

#### Fixed
- **Invalid credentials could be marked "verified"** — verification previously accepted any returned model list, including the static fallback and globally cached lists independent of the API key. `verifyConnection()` now performs a fresh, cache-bypassing authenticated model-list call and never substitutes the fallback list, so only a genuine API success counts; on a missing key or API failure it throws and the controller records an error status.
- **Fragile structured responses** — `Advise\Popup` strips markdown code fences before `json_decode`; reconciled the meta-keywords field name (`meta_keyword` → `meta_keywords`) across the default prompt, JS and controller whitelist; corrected the `check-seo.js` description / short-description selectors to include Magento's `product[...]` field-name prefix.

### SeoAiDiscoverability

#### Fixed
- An X-Robots-Tag directive value containing a line break or another control character (for example imported, or set with `bin/magento config:set`) made every storefront response fail while Magento sent the headers. Such a value is now skipped at runtime, so the page and its other headers (including existing X-Robots-Tag restrictions) are still sent, and the admin refuses it on save: one line of printable ASCII, at most 1024 characters. All standard, multi-directive and crawler-scoped values (`googlebot: noimageindex`) remain valid.
- Crawler tokens are de-duplicated case-insensitively, as crawlers match robots.txt groups (RFC 9309): listing `gptbot` and enabling the training preset now produces one GPTBot group, spelled as first listed, instead of two. Digits and `.` stay accepted in tokens (e.g. `AI2Bot`, `img2dataset`) as a documented compatibility exception to the RFC 9309 alphabet.
- Upgrade patch `PreserveLegacyCrawlerDefaults` (stores upgrading from before 2.1.3 only): a crawler list set in `app/etc/config.php`, `app/etc/env.php` or a `CONFIG__…` environment variable now counts as the merchant's choice, so the legacy list is no longer pinned over it at store-view scope; the stored-value lookup is one query instead of one per store view. Stores that already ran the patch are not affected.

#### Changed
- The X-Robots-Tag plugin documentation now matches its behaviour: the configured value is appended as its own header field next to existing ones (it never replaces them), it is evaluated for every response Magento sends (including built-in full-page-cache hits), and Varnish/CDN caches store it with the page. The admin field comment says the same and lists the accepted characters.
- `composer.json` declares the directly used `laminas/laminas-http`.

#### Added
- `README.md`: setup, verification per store view, caching and rollback for llms.txt, robots.txt crawler rules and the X-Robots-Tag header.

#### Tests
- Unit: header-unsafe directives are not emitted and headers stay serializable (`XRobotsTagHeaderInjectorTest`); admin validation accepts standard/scoped values and rejects line breaks, control characters, non-ASCII and over-long values (`XRobotsTagDirectivesTest`); case-insensitive de-duplication with presets and the token alphabet (`ConfigTest`, replacing the test that locked in case-sensitive duplicates).
- Integration: invalid stored directives keep the existing header and serialize (`testInvalidHeaderConfigKeepsFrontendResponseAndExistingHeader`); directives follow the served store view (`testDirectivesFollowTheServedStoreView`); the upgrade patch keeps website-scope, file-managed and environment-variable choices (`PreserveLegacyCrawlerDefaultsTest`). Tests restore the configuration they change.

### SeoDynamicTags

#### Security
- **The tag grid and form data require "Manage SEO Tags".** The admin controllers checked the permission, but the
  grid and form data are also served by Magento's generic `mui/index/render` endpoint, which checks only the ACL
  resource a UI data provider names, and neither named one: an admin user without the permission could read every
  tag there. Both data providers now name `Qoliber_SeoDynamicTags::manage` (HTTP 403 without it).
- **Deleting a tag needs a form-key POST.** The delete action accepted GET, so a link opened in an admin session
  could delete a tag. It accepts POST only (Magento checks the form key), the grid's Delete action posts with the
  form key, and deleting a tag that no longer exists says so.

#### Fixed
- Saving a tag took every request parameter into the model: `entity_id`, `created_at` or `request_path_length` from
  a crafted POST were stored. Only the editable fields are taken now. The model refuses, with a readable message and
  on every save path, a request path with spaces or longer than 255 characters, an Indexable value other than the
  three options, and meta values longer than 255 characters or not text, instead of failing with a database error
  or storing a truncated value. Saving a tag that was deleted meanwhile reported success while nothing was stored; it
  is refused. Unexpected errors are logged and shown as "The tag could not be saved." without database details.
- Pages kept the old title, description, keywords and robots after a tag was created, edited or deleted, until the
  cache was flushed by hand. After the commit, the full-page cache is cleaned and `adminhtml_cache_refresh_type` is
  dispatched for Varnish (observer `Observer\RefreshPageCache` on `qoliber_seo_dynamic_tag_save_commit_after` /
  `_delete_commit_after`).
- A route whose controller returns a plain layout (an AJAX block) and matched a tag failed with "Call to undefined
  method getConfig()": tags now apply to page results only. The tag lookup is one `LIMIT 1` query instead of a
  `COUNT` followed by a second read.
- `?p=abc` appended " - Page 0" to the title and description; the suffix is added for page numbers only.

#### Changed
- `composer.json` declares `magento/module-cms`, `magento/module-config` and `magento/module-search`, whose classes
  the form and grid use.
- New `README.md` (path matching and precedence, fields, cache behaviour, rollback); the request path field note
  explains exact matching and store precedence.

#### Tests
- Integration: `UiNamespaceAclTest` (grid and form data with and without the permission), `DeleteTest` (GET and
  invalid form key keep the tag, POST deletes only the target, missing tag), `SaveTest` (allow-listed fields,
  invalid values, missing tag), `RefreshPageCacheTest` (a warm page is refreshed after create, edit and delete).
- Unit: `ModifyMetaTagsApplyTest` (plain layout result, non-numeric `p`), `SeoDynamicTagLoadByRequestTest` (one read),
  `SeoDynamicTagModelTest` (validation).

### SeoFriendlyProductUrls

_Released 2026-08-11._

#### Changed
- **All `url_rewrite` writes now go through the SEO Platform's single writer** —
  `Service\Regenerator` no longer touches the table with a raw connection. Its
  four write sites (stale own-301 cleanup, the per-product all-or-nothing
  request-path move, 301 history creation, brand-new rewrite inserts) build
  `UrlRewriteRequestInterface` objects and hand them to
  `Qoliber\SeoPlatform\Api\UrlRewriteWriterInterface`, honouring the suite's
  single-writer constraint. Every existing guarantee is preserved and still
  covered by the unchanged test suite (which now drives the REAL platform
  writer over the recording test connection): per-PK updates that fail the
  group when the row vanished, product-atomic savepoint groups (now the
  writer's `product:<id>` savepoints), `CollisionRetryPersister`'s bounded
  retry composed on top of the writer's per-group failure report, and the
  no-orphan url_key ordering. The request-path move uses the writer's partial
  updates (`request_path` column only), so category-context rows keep their
  `metadata`/`target_path` untouched. The stale-301 cleanup is now a select of
  our own rows' primary keys followed by PK-addressed delete requests (the
  writer deletes by PK only, by design).

#### Added
- New dependency: **`qoliber/seo-platform` (^0.9)** and `Qoliber_SeoPlatform`
  in the `module.xml` sequence — the module consumes the platform's
  `url_rewrite` writer contract.

### SeoHrefLang

_Released 2026-10-18._

#### Added
- **Hreflang translation group for CMS pages** — an optional "Hreflang Translation Group" key in the CMS page form (Search Engine Optimization section, `cms_page.qoliber_hreflang_group`, trimmed, empty = none, matched case-insensitively). Pages sharing a key are alternates of each other across store views even when their URL keys differ (`/about-us` ↔ `/o-nas`). Pages without a key keep matching by identical URL key. A page with a key is linked only through its group, so the clusters never overlap and every link is reciprocal.
- In each store a group uses the page Magento serves there: active, assigned to that store view or to all store views, and not hidden by a store view page with the same URL key. If several qualify, the page assigned to the store view wins over an all-store-views page, then the lowest page id; the others emit no tags of their own.

#### Fixed
- **Configurable children follow the effective canonical decision** — a child was dropped from the hreflang tags and the hreflang/video sitemaps whenever "Configurable child → parent" was on, even with the canonical policy itself disabled (the default) or with no live parent. Suppression now uses SeoCanonical's `ParentCanonicalResolverInterface` per store: a child loses its alternates (and stops being an alternate target) only in stores where the policy is enabled, the option is on and a parent is enabled, visible, in the store's website and has a URL there. A self-canonical child keeps its alternates.
- The home page alternate resolves an `identifier|page_id` home page setting (what the admin stores when several pages share a URL key) by its page id, as core's home page does; such stores were dropped from the home page cluster.

#### Changed
- CMS page tags and the CMS paths used by the hreflang sitemap now come from one resolver (`Service\CmsPagePaths` through `CanonicalEntityPaths`), so they always agree; `CmsPageUrlResolver` delegates to `CanonicalEntityPaths` and its `resolveByIdentifier()` method is removed (it had no callers).

#### Dependencies
- Requires `qoliber/seo-canonical` `^1.2`. Dropped the unused `magento/module-configurable-product` requirement.

#### Tests
- Unit coverage of the suppression decision (policy off, live parent, only disabled/invisible parents, per-store policy) and of translation-group resolution; unit coverage of both home page setting forms; integration coverage of `CanonicalEntityPaths` against a real configurable product and config, of grouped CMS pages with different URL keys in two store views, of the saved group key, and of the rendered page tags.

### SeoImagesFriendlyUrl

_Dated 2026-07-12. Never tagged: these changes first shipped in 2.2.3._

* **`{category.name}` template variable** — new `CategoryResolver` exposes `{category.name}` in the SEO image-name and alt-tag templates, resolving to the current category name from Magento's `current_category` registry. It is populated **only on category (PLP) pages**; when the registry is empty (product pages, indexing) nothing is loaded, so there is no performance cost. Registered on `TemplateProcessor` alongside the `product` and `store` resolvers. Because image filenames are generated at index time (no registry context), `{category.name}` is intended for the **alt-tag** template, where it reflects the browsing category on listing pages.
* **Tests** — `Test/Unit/Resolver/CategoryResolverTest` (5 cases: registry hit, empty registry, non-category value, id-less category, passed-model ignored) and `Test/Integration/Resolver/CategoryTemplateResolutionTest` (3 cases: end-to-end `{category.name}` resolution, empty when no current category, dangling-separator trimming).

### SeoIndexNow

_Released 2026-07-13._

#### Added
- Declared PHP 8.5 support (`~8.5.0` added to the `php` constraint); verified 8.5-clean — php8.5 `-l` and the unit suite both pass.
- **IndexNow ownership verification now works** — the key file resolves at the site root (`/{key}.txt`) via a dedicated `Controller\Router` registered ahead of the standard/CMS routers (previously only reachable through the Magento frontName route, which search engines cannot use, leaving ownership unverifiable). Submissions also carry `keyLocation` (the public key-file URL) so engines can locate the key when verifying.
- **Store-aware canonical URL resolution** — product, category and CMS notifications resolve the canonical URL from Magento's own `url_rewrite` table (`storeBaseUrl + request_path`) through a single `Model\CanonicalUrlResolver` (backed by a pure, unit-tested `Model\CanonicalRewriteSelector`), so localized per-store url keys, custom rewrites and non-default store paths produce the correct URL. Only the ROOT canonical is submitted (no `/category/{id}`-scoped duplicates), chosen deterministically; a suffix-aware build is the fallback when no rewrite row exists.

#### Fixed
- Product notifications now include the per-store product URL suffix (`catalog/seo/product_url_suffix`, e.g. `.html`) instead of `baseUrl + url_key`, which produced a non-canonical/nonexistent URL.
- CMS pages assigned to "All Store Views" (store id 0) are now expanded to every active store view and notified per store, instead of being skipped.
- Category saves no longer submit an admin-scope (store 0) URL. `Category::getStoreIds()` appends store 0 alongside the concrete stores; `StoreExpander::excludeAdminStore()` now drops it.

#### Changed
- Declared the direct dependency on `Magento_UrlRewrite` (`magento/module-url-rewrite`) in `composer.json` and `module.xml`.

### SeoOpengraphTags

#### Security
- `og:url` of pages without their own resolver (CMS pages, the home page, contact, search results and every other
  route) no longer repeats the visitor's query string or the host the request arrived with, so campaign parameters,
  tokens or e-mail addresses in a link are not published as social metadata. It is the page on the store view's
  configured URL (built by SEO Canonical's URL resolver), keeping only the allowlisted query parameters: the search
  term `q` by default, so a shared search still opens the same results (`keptQueryParams` of the new
  `Model\ShareUrl`, di.xml). A CMS page is shared as its own URL and the home page as the store root, the URLs SEO
  Canonical names. A resolver that extends `Model\ResolverDefault` without passing `ShareUrl` to it now shares the
  requested URL without its query string.

#### Fixed
- A product page's `og:url` names the page its canonical link names. While SEO Canonical's policy is enabled it is
  that policy's decision, so a visible configurable child canonicalised to its parent is shared as the parent; it
  used to be shared as itself. Price, image and availability still describe the product on the page. With the
  policy disabled, `og:url` stays the product's own URL.

#### Changed
- Requires `qoliber/seo-platform` `^1.1` directly: the module uses its `UrlIdentity` and `CanonicalPolicyInterface`,
  and only had it through `qoliber/seo-canonical`.
- Tag values are escaped as attribute values (`escapeHtmlAttr`; the output is byte for byte the same) and the
  attribute name is escaped too.
- Source comments name the image variant `og:image` really uses (`product_page_image_medium`) and the tax display
  rule of `product:price:amount`.

#### Added
- `README.md`: the setting, which module owns the OpenGraph output, where every tag comes from and how to check it.

#### Tests
- Unit coverage of `ShareUrl` (query dropped except `q`, malformed and blank terms, CMS page URL and its fallback),
  of the default resolver with and without it, and of product `og:url` with the policy enabled and disabled.
- Integration tests dispatching a CMS page alias and the contact page with tracking and personal parameters, and a
  configurable child with "child → parent" on, off and the policy disabled (`og:url` equals the canonical decision).

### SeoPrettyFilters

_Dated 2026-07-04. Never tagged: these changes first shipped in 2.2.2._

#### Changed
- **Selective SEO-friendly filters (opt-out, backward-compatible): `is_pretty_filter` now governs which attributes produce SEO-friendly path segments.** Previously the flag existed in the schema but was never read, so every filterable attribute produced pretty path segments unconditionally. The flag is now honoured, but **all filterable attributes remain SEO-friendly by default** (`is_pretty_filter` defaults to `1`), so existing storefronts are unchanged. Set **Use for Pretty Filter → No** on an attribute to keep it as a standard `?attr=value` query parameter instead. (Opt-in-by-default — `is_pretty_filter` defaulting to `0` — is deferred to 3.0 to avoid a backward-incompatible change in 2.x.)

#### Added
- `PrettyFilterChecker` (`Api/Service/PrettyFilterCheckerInterface`) — the single source of truth for whether an attribute produces pretty URLs (`is_pretty_filter = 1`), used at every build/parse seam.
- **Pretty and non-pretty filters now coexist.** A pretty filter link preserves the shopper's active non-pretty filters as query params (`RequestParamsProvider`), and a non-pretty filter link falls through to core (keeping the pretty path via `_current=true`). Verified across add / select / remove / clear / multiselect and hybrid `/(brand-1).html?color=5` routing.

#### Fixed
- `getActiveFilters` no longer fatals on an active filter whose frontend input has no converter (guarded array access).
- `RequestParamsProvider::addToUrl` no longer emits a doubled `?` when the URL already carries a query string.
- Parse resolvers only match pretty attributes' seo paths (option universe filtered in `AttributeFetcher`), reducing the substring collisions behind intermittent 404s when combining filter values.

#### Tests
- ~22 new unit + integration tests: `PrettyFilterChecker`, the `getActiveFilters` guard, the filter-item + swatch plugins, `RequestParamsProvider` preservation, the clear-all lock, `AttributeFetcher` pretty-only filtering, and the combine + hybrid-route behaviour matrix.

### SeoPrettyFiltersElasticSuite

_Dated 2026-07-04. Never tagged: these changes first shipped in 2.2.1._

#### Added
- The `AttributeFetcher` plugin now applies the same `is_pretty_filter` selectivity as the base module, so attributes flagged **Use for Pretty Filter → No** are excluded from the SEO path universe for ElasticSuite stores too (the plugin reimplements `transformArrayForFilters`, so it needs the filter independently). Backward-compatible: all filterable attributes remain SEO-friendly by default. All build-side selective behaviour is inherited from the base module via the pattern-processor delegation to `generateAttributeArray`.

#### Changed
- Requires `qoliber/seo-pretty-filters: ^2.2` (uses the new `PrettyFilterCheckerInterface`).

### SeoRichSnippets

_Released 2026-03-05._

#### Added
- **AggregateOffer support for complex product types** — configurable, bundle, and grouped products now render `AggregateOffer` schema with `lowPrice`, `highPrice`, and `offerCount` instead of a simple `Offer`
- Product type detection resolver paths: `product.typeId`, `product.isSimple`, `product.isConfigurable`, `product.isBundle`, `product.isGrouped`, `product.isComplexProduct`
- Offer pricing resolver paths: `product.offer.lowPrice`, `product.offer.highPrice`, `product.offer.offerCount` — returns `null` for simple/virtual products
- Public `isComplexProduct()` method on `ProductValueResolver` for plugin extensibility
- `UpdateOfferAggregateOffer` data patch — updates the `offer` snippet template with `@djson if/else` conditional rendering based on product type
- Test fixtures for configurable (3 children at $19.99/$24.99/$29.99), bundle (2 options, 4 selections), and grouped (3 children at $12.99/$17.50/$22.00) products
- 12 new integration tests across `ProductValueResolverTest`, `DjsonTemplateResolutionTest`, and `FullJsonOutputTest` (total: 172 tests, 789 assertions)

## 2.1.8 — 2026-11-10

### SeoOpengraphTags

GitLab's 2.1.7 with qoliber Catalog Pro's local patches P10 (to be upstreamed).

#### Changed
- Requires `qoliber/seo-canonical` `^1.2.1` (was `^1.0.2`): `Model\ResolverProduct` injects SEO Canonical's
  `ProductCanonicalUrlResolverInterface`, which earlier versions do not have (local patch P10 of qoliber Catalog Pro).

#### Tests
- PHPUnit 12 (local patch P10 of qoliber Catalog Pro, which ships this module for its social previews, T34): the
  unit tests created their interface doubles with `getMockForAbstractClass()`, which PHPUnit 12 removed (11 of 16 cases
  failed with an error); collaborators without expectations are `createStub()` doubles, and the two registry doubles
  answer their key through `willReturnMap()` instead of `with()` (deprecated on a stub). No PHPUnit notice or
  deprecation left; test-only, runs on PHPUnit 10.5 (Magento 2.4.8) too.

## 2.1.7 — 2026-11-10

### SeoDynamicTags

GitLab's 2.1.6 with qoliber Catalog Pro's local patches P7, P8 (to be upstreamed).

#### Fixed
- **Page cache: a page with a robots dynamic tag was never a hit for visitors without cookies** (Catalog Pro
  readiness review 4, N7; local patch P7). `Plugin\App\ModifyMetaTags` wrote a `skip_robots_check` value into the
  HTTP context, which nothing reads. A non-default HTTP context value changes the page-cache vary string, so the built-in
  page cache stored such a page under that vary while a cookieless visitor (a crawler, a first visit) looked it up under
  the default one, and every guest received an `X-Magento-Vary` cookie. The flag is request-scoped now:
  `Model\AppliedRobots` (`isApplied()`, `get()`; reset after each request), injected as the new optional constructor
  argument `appliedRobots` (etc/frontend/di.xml). The `$context` argument stays for subclasses and is no longer used.

#### Tests
- `ModifyMetaTagsApplyTest`: a matched robots rule never touches the HTTP context and notes the directive in
  `AppliedRobots`. Catalog Pro's `DynamicTagsPageCacheTest` (integration): the second cookieless request to a page with
  a robots dynamic tag is a page-cache hit.
- PHPUnit 12 (local patch P8 of qoliber Catalog Pro, readiness review 5 R3): the data providers are declared as
  `#[DataProvider]` attributes (PHPUnit 12 ignores `@dataProvider` annotations, so `SeoDynamicTagModelTest`,
  `SeoDynamicTagPathSanitizerTest`, `ModifyMetaTagsRobotsTest` and `MetaTagSanitizationTest` failed with
  `ArgumentCountError`; their providers are static), and collaborators without expectations are stubs (no PHPUnit
  notices). The page title is asserted where it must not change. Test-only; runs on PHPUnit 10.5 (Magento 2.4.8) too.

### SeoOpengraphTags

_Released 2026-10-19._

#### Fixed
- `composer.json` no longer hard-codes a `source` block pointing at the `master` branch. Composer keeps a package's own `source` over the repository's, so installing any version from the Git repository checked out `master` instead of that version, and `composer.lock` recorded `master` instead of the tag's commit. The source now comes from the repository, so every version installs its own tagged code.

## 2.1.6 — 2026-10-19

### SeoDynamicTags

#### Fixed
- `composer.json` no longer hard-codes a `source` block pointing at the `master` branch. Composer keeps a package's own `source` over the repository's, so installing any version from the Git repository checked out `master` instead of that version, and `composer.lock` recorded `master` instead of the tag's commit. The source now comes from the repository, so every version installs its own tagged code.

### SeoOpengraphTags

_Released 2026-10-16._

#### Fixed
- A category page's `og:url` repeated the visitor's query string, so every sorted, paged, filtered or tracked variant of a listing (`?product_list_order=price`, `?p=2`, `?utm_source=…`) was shared as a separate URL. It is now the category's own URL, the one Magento's category canonical names, matching how product pages already resolve `og:url`.

#### Tests
- Integration test dispatching a category with sorting, paging and tracking parameters, and a Playwright check that the plain and the parameterised listing share the same `og:url`.

## 2.1.5 — 2026-10-29

### SeoAdvancedSitemaps

_Dated 2026-10-16. Never tagged: these changes first shipped in 2.2.0._

#### Fixed
- A CMS page with *Use In Sitemap* switched off now leaves the store view's hreflang sitemap (`sitemap_hreflang.xml`) as well as the CMS sitemap. The hreflang generator listed every active translated CMS page regardless of the flag; it now applies the same rule as the CMS sitemap (active, assigned to the store view or all store views, *Use In Sitemap* on). Translations in other store views that stay in their sitemap are unaffected.

#### Tests
- Two-store integration coverage of the hreflang sitemap's CMS entries before and after switching *Use In Sitemap* off, and a Playwright admin flow that toggles it on a CMS page, regenerates the sitemap and checks every child sitemap file.

### SeoDynamicDescriptions

#### Fixed
- The product compare page no longer returns HTTP 500 when a comparable Yes/No attribute has a value (gitlab work item #1). The plugins on `Magento\Catalog\Helper\Output::productAttribute()` and `categoryAttribute()` declared `string|bool` and `string`, but the core helper is untyped: it returns the `__('Yes')` / `__('No')` Phrase when the attribute allows HTML on the storefront, and `null` for an empty category attribute. PHP threw a TypeError even with the module switched off in the configuration. Both plugins now return whatever the core helper returns.
- A product attribute whose value is `0` shows `0` again. The product plugin cast an empty-looking core result to `false`, so the storefront printed nothing.

### SeoDynamicTags

_Released 2026-10-16._

#### Fixed
- Saving a tag without a request path (a crafted or truncated POST) failed with an "Undefined array key" warning; it is now refused with "Enter the request path of the page the tag applies to."
- The duplicate request path error read "already exits!"; it now reads "already exists!".

#### Tests
- Controller integration coverage for the admin save: Save and Continue Edit stores the tag, queues "Item saved!" and returns to its edit page; the edit page renders that message; a duplicate path and store is refused; a missing request path is refused. The message was reported missing by a parallel browser run, but that run shares one admin session across workers, so another worker's page can take the flash message first. In one session the edit page shows it, which these tests now lock.

### SeoOpengraphTags

_Released 2026-10-03._

- Remove the known core OpenGraph block after layout generation while enabled; preserve core output when disabled.
- Resolve product og:url through the canonical resolver.
- Match Magento's converted storefront price and configured tax display.

## 2.1.4 — 2026-11-20

### SeoAdvancedSitemaps

_Released 2026-10-03._

#### Fixed
- Reuse canonical eligibility for video pages, omit incomplete/unsupported videos and store-hidden gallery entries, and enforce the Unicode 2,048-character description limit.
- Complete temporary children and the index before publication so provider interruptions preserve the previous public set; cover 50k/100k bounded-memory generation.
- Cap files at 50,000 URLs and 50 MB uncompressed, splitting by rendered XML bytes even for gzip output.
- Page video and hreflang catalogue queries in 200-entity batches; remove deprecated image title/caption tags and omit unknown entity timestamps.
- Use the physical web base for robots sitemap discovery and sitemap-index child files while retaining store-view bases for page URLs.

### SeoCommon

#### Fixed
- `Stripper::toPlainText()` no longer glues the words of adjacent blocks together. Removing the tags of
  `<p>Intro</p><p>Features</p>` or `<li>Fast</li><li>Quiet</li>` produced "IntroFeatures" / "FastQuiet" in
  rich-snippet descriptions. Line breaks and block-level boundaries (paragraphs, divs, list items, headings, table
  cells...) now become spaces before the remaining tags are removed; inline elements (`<b>Bo</b>ld`) still add
  nothing, and encoded markup is still neutralised.
- `Stripper::toPlainText()` returned an empty string for a whole value that contained one byte of invalid UTF-8 (an
  imported description, for example). Invalid bytes are now dropped and the valid text around them is kept.
- `PathParser::replaceBaseName()` turned a file at the root into a double slash (`/image.jpg` became
  `//renamed.jpg`); a rooted path keeps one leading slash.

#### Changed
- Package description and class docblocks describe the current helpers: the generative-AI abstractions live in
  `qoliber/seo-advisor-ai`, and the helpers' callers are told that their results must be escaped for the output
  context. New `README.md` with the helpers' contracts and examples.

#### Tests
- `StripperTest`: block boundaries, inline elements, encoded block markup and invalid UTF-8. `PathParserTest`: rooted
  paths. `StandaloneCompositionTest` (integration): the three helpers autowire and behave as documented with nothing
  but this module.

### SeoDynamicDescriptions

_Released 2026-10-19._

#### Fixed
- `composer.json` no longer hard-codes a `source` block pointing at the `master` branch. Composer keeps a package's own `source` over the repository's, so installing any version from the Git repository checked out `master` instead of that version, and `composer.lock` recorded `master` instead of the tag's commit. The source now comes from the repository, so every version installs its own tagged code.

### SeoDynamicTags

_Released 2026-09-06._

#### Changed
- Canonical `autoload.psr-4` mapping ("" instead of "./").
- Release metadata: `support.security` advisory-feed pointer
  (https://security.qoliber.com) and canonical composer formatting.
- Ships the August test-hardening pass (behavior-locking unit and
  integration tests only; no functional changes).

### SeoHrefLang

_Released 2026-10-04._

#### Fixed
- Batch configurable-parent lookups instead of issuing one query per eligible product; physical 100k-product SQL regression coverage enforces a bounded query budget.
- Enforce reciprocal exclusions and omit inactive/noindex stores and ambiguous locale groups.
- Resolve canonical, website-assigned, enabled, visible products and active categories within the store root; exclude inactive ancestors and configurable children canonicalized to a parent.
- Share bounded entity lookups between HTML and XML. Match translated CMS entities by identifier; omit missing/inactive homepages and pages, noncanonical aliases, and x-default targets outside the eligible group.
- Use conventional locale casing; Google accepts either case.

## 2.1.3 — 2026-10-03

### SeoAdvancedSitemaps

_Dated 2026-09-06. Never tagged: these changes first shipped in 2.1.4._

#### Changed
- Release metadata: `support.security` advisory-feed pointer
  (https://security.qoliber.com) and canonical composer formatting.

### SeoAiDiscoverability

#### Fixed
- Use the native store configuration schema for opt-in defaults.
- Separate OpenAI/Anthropic training and search crawler presets; preserve explicit custom crawler rules and reject malformed tokens.
- Leave additional crawler defaults empty on fresh installs; pin existing active inherited restrictions during upgrade without replacing explicit empty/custom values.
- Describe noai/noimageai support as provider dependent and clarify crawler-purpose guidance.
- Append configured X-Robots-Tag headers without removing existing global or crawler-specific indexing restrictions; make repeated emission idempotent.

### SeoCommon

_Released 2026-09-06._

#### Changed
- Release metadata: `support.security` advisory-feed pointer
  (https://security.qoliber.com) and canonical composer formatting.

### SeoDynamicDescriptions

#### Fixed
- Refresh native block/full-page caches and dispatch the standard external FPC event after scoped admin configuration saves.
- Honor title/description copy switches before reading fallback fields, preserve authored values, and normalize copied text with Unicode-safe title truncation.
- Preserve the core heading while disabled; isolate memoized output by store, object and request context.
- Require patched Twig ^3.30 and use a dedicated strict Twig Sandbox.
- Clear rejected template source from rendered output so embedded literal markup cannot execute through the error fallback.

### SeoDynamicTags

_Released 2026-07-18._

#### Fixed
- Declared PHP 8.5 support (`~8.5.0` added to the `php` constraint); verified 8.5-clean — php8.5 `-l` and the unit suite both pass. Removed deprecated `Reflection::setAccessible()` calls (no effect since PHP 8.1, deprecated in 8.5).
- **Robots directive whitelist too strict (MF-1)** — `ModifyMetaTags::sanitizeRobots()` only accepted the exact single-space canonical strings (`INDEX, FOLLOW`, ...), so admin-entered values with different whitespacing, casing, or token order (`INDEX,FOLLOW`, `index, follow`, `  INDEX,  FOLLOW  `, `FOLLOW, INDEX`) normalised to something outside the whitelist and were silently dropped, even though Google treats these as equivalent. The normalisation now tokenises on comma, trims/upper-cases each token, and reconstructs the canonical `"{INDEX|NOINDEX}, {FOLLOW|NOFOLLOW}"` form regardless of token order, while still rejecting unknown directives, a missing half, duplicate directives, or extra tokens (whitelist security intent unchanged).

#### Tests
- Added `Test/Unit/Plugin/App/ModifyMetaTagsRobotsTest` locking the fixed normalisation behaviour (accepts the whitespace/case/order variants, rejects unknown/duplicate/partial input).
- Extended `Test/Integration/Plugin/App/MetaTagSanitizationTest::robotsInputProvider()` with the same variants.

### SeoHrefLang

_Dated 2026-09-06. Never tagged: these changes first shipped in 2.1.4._

#### Changed
- Release metadata: `support.security` advisory-feed pointer
  (https://security.qoliber.com) and canonical composer formatting.
- Dead-code removal from the PHPMD sweep: unused private
  `Model\Config::allowedStoreUrls()` dropped (no behavior change).
- Ships the August test-hardening pass (behavior-locking unit and
  integration tests only; no functional changes).

### SeoOpengraphTags

_Dated 2026-09-06. Never tagged: these changes first shipped in 2.1.5._

#### Changed
- Release metadata: `support.security` advisory-feed pointer
  (https://security.qoliber.com) and canonical composer formatting.

## 2.1.2 — 2026-09-06

### SeoAdvancedSitemaps

_Released 2026-07-13._

#### Fixed
- Declared PHP 8.5 support (`~8.5.0` added to the `php` constraint); verified 8.5-clean — php8.5 `-l` and the unit suite both pass.
- **External video players emitted as media files** — `VideoSitemapGenerator` rendered every product video URL inside `<video:content_loc>`, which Google reserves for actual video-file bytes. Embedded/external player URLs (YouTube, Vimeo, Dailymotion, Wistia, …) are now classified and emitted as `<video:player_loc>`; only recognised direct video-file URLs use `<video:content_loc>`.
- **Store base path dropped from child sitemap URLs** — child sitemap URLs in the index rebuilt only scheme/host/port and discarded any store base path (e.g. `/shop/`), pointing crawlers at 404s. The base path is now preserved.
- **Stale sitemap chunk files never removed** — after catalogue shrinkage or a gzip-mode change (`.xml` ⇄ `.xml.gz`), obsolete child chunks lingered in the sitemap directory. Orphaned chunks for the active generator prefixes are now deleted after each generation run.
- **Sitemap-index `lastmod` not W3C Datetime** — the index `<lastmod>` used `Y-m-d H:i:s` instead of the W3C Datetime required by the sitemaps protocol; it now emits `Y-m-d\TH:i:sP` (e.g. `2026-07-13T08:09:10+00:00`).
- **Video sitemap: default (store 0) metadata could shadow the store-view value** — when a product video carried ProductVideo metadata at both the default (store 0) and the store-view scope, both rows were emitted. The store-specific row is now preferred at the sitemap's store scope, falling back to store 0 only when no override exists.
- **Video sitemap: category-scoped product URL could be chosen as `<loc>`** — the `url_rewrite` join accepted any non-redirect rewrite, so a category-scoped rewrite (`…/category/{id}` in `target_path`) could be emitted instead of the product's root canonical URL. The query now excludes category-scoped rewrites and the root canonical `request_path` is chosen deterministically.
- **Video sitemap: duplicate `<video:video>` entries per product** — a product with the same video registered under several gallery entries (or spanning store scopes) produced repeated `<video:video>` blocks. Videos are now de-duplicated per product by gallery entry and resolved video URL.

#### Changed
- Declared the direct dependency on `magento/module-product-video` (`^100.4`); the video sitemap generator reads ProductVideo gallery metadata.
- Declared the direct dependency on `qoliber/seo-href-lang` (`^2.1`); `HreflangSitemapGenerator` constructor-injects `Qoliber\SeoHrefLang\Model\Config`.
- Declared the direct dependency on `qoliber/core` (`^1.0`); the admin menu/ACL are defined under `Qoliber_Core` resources, so a standalone package needs it explicitly (previously only the root metapackage provided it).

### SeoAiDiscoverability

_Never tagged: these changes first shipped in 2.1.3._

#### Changed
- Release metadata: `support.security` advisory-feed pointer
  (https://security.qoliber.com) and canonical composer formatting.
- Ships the August test-hardening pass (behavior-locking unit and
  integration tests only; no functional changes).

### SeoCommon

_Released 2026-07-13._

#### Fixed
- Declared PHP 8.5 support (`~8.5.0` added to the `php` constraint); verified 8.5-clean — php8.5 `-l` and the unit suite both pass.
- `Service/Html/Stripper::toPlainText()` decoded HTML entities *after* stripping
  tags, so encoded markup such as `&lt;img src=x onerror=alert(1)&gt;` passed
  through `strip_tags()` unchanged (no literal tag present) and was only
  turned into a live `<img>` tag afterwards by `html_entity_decode()`. Entities
  are now decoded first — repeating the decode pass until the value
  stabilises, to also neutralise double-encoded markup like `&amp;lt;script&amp;gt;`
  — and tags are stripped from the fully decoded value, so encoded markup is
  neutralised instead of being recreated.

### SeoDynamicDescriptions

_Never tagged: these changes first shipped in 2.1.3._

#### Changed
- Declared the missing `magento/module-theme` dependency
  (the page-heading plugin targets the Theme title block).
- Release metadata: `support.security` advisory-feed pointer
  (https://security.qoliber.com) and canonical composer formatting.
- Ships the August test-hardening pass (behavior-locking unit and
  integration tests only; no functional changes).

### SeoDynamicTags

_Dated 2026-07-14. Never tagged: these changes first shipped in 2.1.3._

#### Changed
- Declared the direct `qoliber/core` (`^1.0`) dependency. The admin menu/ACL are defined under `Qoliber_Core` resources, so a standalone package requires it explicitly; previously only the root metapackage provided it.

### SeoFriendlyProductUrls

_Released 2026-07-13._

#### Fixed
- Declared PHP 8.5 support (`~8.5.0` added to the `php` constraint); verified 8.5-clean — php8.5 `-l` and the unit suite both pass. Removed deprecated `Reflection::setAccessible()` calls (no effect since PHP 8.1, deprecated in 8.5).
- **Batch collision resolution now checks suffixed candidates** — during batch regeneration the dedup query only loaded the *base* request paths, so when a collision forced a `-1`/`-2`/… suffix the resolver never verified that suffixed path was free. It could select an already-occupied rewrite (e.g. a foreign `cms_page` on `red-1.html`) and collide or overwrite it via `insertOnDuplicate` on persistence. Collision resolution now runs through a dedicated `Service\CollisionResolver` that checks every candidate — base and suffixed — against an in-memory taken-set seeded from all existing rewrites (base **and** suffixed variants) and grown as each choice is reserved, guaranteeing the chosen path is free before persistence.
- **Concurrent collision retry at persistence (tier-2)** — the preflight resolver prevents collisions *within* a run, but a **concurrent** regeneration process can seize a request path between preflight and the write, tripping the `url_rewrite (request_path, store_id)` unique key. Brand-new product rewrites are now inserted one entity at a time (plain `INSERT`, not `insertOnDuplicate`) through a dedicated `Service\CollisionRetryPersister`: on a duplicate-key / `AlreadyExistsException` / integrity violation it reloads the now-occupied paths, re-resolves the key to the next free suffix — keeping the `url_key` attribute in step — and retries, bounded by a configurable cap (`maxRetries`, default 3, via `di.xml`); if the path is still contended after the cap the individual product is logged and skipped so one hot key can never stall the whole batch.
- **Retry no longer orphans the `url_key` attribute** — inside the brand-new-rewrite persistence the `url_key` varchar was written *before* the (racy) `url_rewrite` insert, so when a concurrent race exhausted the retry cap the last attempted `url_key` stayed committed with no matching rewrite row (inconsistent state). The dependent `url_key` sync is now a separate step (`CollisionRetryPersister::persist()`'s new `$afterPersist` callback) that runs **only after** the `url_rewrite` write succeeds and with the key actually persisted — so a failed or retry-exhausted attempt can never leave a `url_key` pointing at a request path that was never created, and on success the persisted `url_key` always matches the persisted rewrite's `request_path`.
- **Existing-rewrite updates and 301 redirects no longer clobber foreign rows** — renaming an existing product rewrite and writing its 301 history redirect still used blind batch `insertOnDuplicate` on `url_rewrite`, which silently **overwrote a foreign entity's row** (CMS page, category, custom rewrite, or another product) whenever a concurrent writer had taken the target `(request_path, store_id)` — the same corruption vector the tier-2 fix closed for brand-new rewrites. Existing rewrites are now moved with a per-row `UPDATE … WHERE url_rewrite_id = ?` routed through `CollisionRetryPersister`: an UPDATE scoped to the row's own primary key can never modify a foreign row (a raced target surfaces as a duplicate-key violation that is re-resolved and retried, or skipped after the cap), and because it stays an UPDATE the row keeps its `url_rewrite_id` so `catalog_url_rewrite_product_category` links survive. 301 redirects are written on the freed old path through a new `CollisionRetryPersister::persistUnlessTaken()` guard — a plain `INSERT` that skips and logs, rather than overwrites, a foreign row on a race.
- **The initial bulk `url_key` write no longer orphans keys** — `partialRegenerate()` bulk-wrote *every* entity's `url_key` (`insertOnDuplicate` on `catalog_product_entity_varchar`) up front, inside the transaction, *before* the guarded rewrite persistence ran. So when a rewrite raced out and was skipped, that entity's `url_key` had already been committed with no matching rewrite — the very orphan the `$afterPersist` change only closed inside the brand-new-rewrite path. The bulk write is removed; `updateUrlRewrite()` now categorises every entity and writes its `url_key` in lockstep with its rewrite: **unchanged** existing rewrites (path untouched) get their key written directly; **changed** rewrites get it synced only after the per-PK `UPDATE` succeeds; **missing** rewrites get it only after the `INSERT` succeeds. Net invariant: no entity's `url_key` is ever committed unless its `url_rewrite` row was persisted in the same run.
- **A per-PK rewrite `UPDATE` affecting zero rows is now treated as failure** — a concurrent delete could leave the targeted `url_rewrite` row gone, making the `UPDATE … WHERE url_rewrite_id = ?` affect 0 rows; that previously fell through as success and synced an orphaned `url_key`. The update now throws when 0 rows are affected, so the persister does not run the `url_key` sync (the entity is retried, then skipped) — leaving no orphan. (`applyRewriteChanges` only processes rows whose `request_path` genuinely changes, so a benign "value already identical" 0-row update cannot occur here.)
- **Multi-rewrite products are now updated atomically under one shared key** — a product can own several `url_rewrite` rows (a root `key.html` plus category-context rows like `gear/key.html`). The changed-rewrite path previously retried and synced **each row independently**, so under a race the root could re-resolve to `new-1.html` (url_key `new-1`) while a category row persisted as `gear/new.html` (url_key `new`) — root path, category path, and `url_key` all disagreeing. `applyRewriteChanges()` now **groups the changed rows by `entity_id`** and persists the whole group under one shared resolved key inside a per-product `SAVEPOINT` (issued as raw `SAVEPOINT` / `ROLLBACK TO SAVEPOINT` / `RELEASE SAVEPOINT` statements, because Magento's `beginTransaction()` nesting only tracks depth and emits no real savepoint SQL). If any row in the group fails (duplicate-key collision or a 0-row UPDATE), the group is rolled back to the savepoint and retried under the next key; only once the entire group persists is the `url_key` synced once and the 301 redirects created. On exhausting the retries the whole product is skipped — every row keeps its old path, and no `url_key`, partial rewrite, or redirect is written. Rows stay UPDATEs (never delete+reinsert), so `url_rewrite_id`s — and the `catalog_url_rewrite_product_category` links keyed on them — are preserved.

#### Changed
- Declared the `qoliber/core` dependency (`^1.0`) in `composer.json` — the admin menu (`etc/adminhtml/menu.xml`) and ACL (`etc/acl.xml`) reference the `Qoliber_Core::menu` resource, and `etc/module.xml` already sequences after `Qoliber_Core`, but the Composer requirement was missing.

### SeoHrefLang

_Released 2026-07-13._

#### Fixed
- Declared PHP 8.5 support (`~8.5.0` added to the `php` constraint); verified 8.5-clean — php8.5 `-l` and the unit suite both pass.
- **Resolve localized CMS page alternates by URL key, not entity id** — `CmsPageUrlResolver` looked up the same CMS page `entity_id` in every target store, so translated pages (which are separate entities sharing an `identifier`) were never found and their stores emitted no hreflang alternate. The resolver now reads the current page's `identifier` and matches the page assigned to each target store by that identifier (via `GetPageByIdentifierInterface`), preserving behaviour when a store genuinely shares the same entity and dropping stores with no matching page — consistent with the module's broken-alternate filtering.

#### Dependencies
- Declared the direct `magento/module-cms` dependency (now used by `CmsPageUrlResolver`) and added `Magento_Cms` to the module load sequence.
- Declared the direct `qoliber/core` (`^1.0`) dependency — the admin ACL/menu are defined under `Qoliber_Core` resources; previously only the root metapackage provided it.

### SeoOpengraphTags

_Released 2026-07-13._

#### Fixed
- Place frontend blocks under the required layout body element.
- Declared PHP 8.5 support (`~8.5.0` added to the `php` constraint); verified 8.5-clean — php8.5 `-l` and the unit suite both pass.
- **Zero-price products no longer drop `product:price:amount`** — `ResolverProduct::getTags()` used to gate the price tags behind `if ($finalPrice > 0)`, so a genuine free product (final price `0`) silently emitted no price tags at all, indistinguishable from a product with no price info. Now checks `getFinalPrice() !== null`, so `0` correctly emits `product:price:amount` = `"0.00"` (with `product:price:currency`), while a truly absent price still emits neither tag.
- **`product:availability` now explicitly reflects out-of-stock** — previously the tag was only ever added when `$product->isAvailable()` was true, so out-of-stock products omitted the tag entirely (rather than telling crawlers/social previews the product is unavailable). `product:availability` is now always emitted: `"in stock"` or `"out of stock"`.

#### Added
- New `ResolverProductPriceAvailabilityTest` (5 unit cases) locking: zero price → `"0.00"` + currency; null/absent price → no price tags at all; a regular price is formatted to two decimals; in-stock → `"in stock"`; out-of-stock → `"out of stock"`.

## 2.1.1 — 2026-07-13

### SeoAdvancedSitemaps

_Never tagged: these changes first shipped in 2.1.2._

#### Changed
- Declared direct Magento module dependencies with bounded version constraints.
- Standardised composer metadata (license and `magento/framework` version constraint).

### SeoAdvisorAi

_Never tagged: these changes first shipped in 2.2.0._

#### Changed
- Declared direct Magento module dependencies with bounded version constraints.
- Standardised composer metadata (license and `magento/framework` version constraint).
- PSR-12 code-style cleanup; no functional change.

### SeoAiDiscoverability

#### Changed
- Declared PHP 8.5 support (`~8.5.0` added to the `php` constraint); verified 8.5-clean — php8.5 `-l` and the unit suite both pass.
- Declared direct Magento module dependencies with bounded version constraints.
- Standardised composer metadata (license and `magento/framework` version constraint).
- Declared PHP 8.4 support in the `php` constraint (`~8.4.0` added alongside 8.1–8.3); verified 8.4-clean (no implicitly-nullable parameters, `php -l` and PHPCompatibility pass), no code change required.

### SeoCommon

_Never tagged: these changes first shipped in 2.1.2._

#### Changed
- Standardised composer metadata (license and `magento/framework` version constraint).

### SeoDynamicDescriptions

#### Changed
- Declared PHP 8.5 support (`~8.5.0` added to the `php` constraint); verified 8.5-clean — php8.5 `-l` and the unit suite both pass. Removed deprecated `Reflection::setAccessible()` calls (no effect since PHP 8.1, deprecated in 8.5).
- Declared direct Magento module dependencies with bounded version constraints.
- Standardised composer metadata (license and `magento/framework` version constraint).
- PSR-12 code-style cleanup; no functional change.

### SeoDynamicTags

_Never tagged: these changes first shipped in 2.1.3._

#### Changed
- Declared direct Magento module dependencies with bounded version constraints.
- Standardised composer metadata (license and `magento/framework` version constraint).

### SeoFriendlyProductUrls

_Never tagged: these changes first shipped in 2.1.2._

#### Changed
- Declared direct Magento module dependencies with bounded version constraints.
- Standardised composer metadata (license and `magento/framework` version constraint).
- PSR-12 code-style cleanup; no functional change.

### SeoHrefLang

_Dated 2026-07-11. Never tagged: these changes first shipped in 2.1.2._

#### Fixed
- **Emit hreflang on all page types, not only the homepage** — `HrefLang::isNonCanonicalUrl()` now inspects the GET query string (`getQueryValue()`) instead of the merged param bag (`getParams()`). The merged bag also holds Magento's internal routing params (`id` on products/categories, `page_id` on CMS pages), which are not facet variants; treating them as such wrongly suppressed hreflang on every non-homepage URL.

#### Dependencies
- Declared direct Magento module dependencies with bounded version constraints.

### SeoIndexNow

_Never tagged: these changes first shipped in 2.2.0._

#### Changed
- Declared direct Magento module dependencies with bounded version constraints.
- Standardised composer metadata (license and `magento/framework` version constraint).

### SeoOpengraphTags

_Never tagged: these changes first shipped in 2.1.2._

#### Changed
- Declared direct Magento module dependencies with bounded version constraints.
- Standardised composer metadata (license and `magento/framework` version constraint).
- PSR-12 code-style cleanup; no functional change.

### SeoRichSnippets

_Released 2026-03-03._

#### Fixed
- `ratingSummary` now correctly returns 1–5 scale for schema.org instead of Magento's raw 0–100 percentage
- `ratingValue` deduplicated — now calls `getRatingSummary()` instead of reimplementing the same conversion logic
- Extracted `getRatingSummaryPercent()` private method for raw 0–100 value, keeping `getRatingSummary()` for the converted 1–5 value

#### Added
- Integration tests for rating scale: `testRatingSummaryReturnsOneToFiveScale`, `testRatingValueReturnsOneToFiveScale`, `testRatingSummaryAndRatingValueAreEqual`, `testRatingSummaryIsNullWithoutReviews`, `testReviewCountReturnsCorrectCount`

## 2.1.0 — 2026-04-21

### SEO Suite metapackage

_Dated 2026-04-12. Never tagged: these changes first shipped in 2.5.0._

#### Added
- **Qoliber_SeoCommon** (^1.0) — new shared-utility module: HTML stripper, placeholder replacer, image path parser. Removes duplication across the suite.
- **Qoliber_SeoIndexNow** (^1.0) — new module: IndexNow protocol support (Bing, Yandex, Naver, Seznam). Best-effort URL-change notifications on product / category / CMS save.

#### Security (bundled modules)
- **8 security fixes across 6 modules** — stored XSS in hreflang output, image alt attributes, Pretty Filters URLs, and Dynamic Tags meta output; prompt injection in AI Advisor; Twig sandbox for Dynamic Descriptions; atomic symlink creation in Images Friendly URL; url_rewrite collision prevention in Friendly Product URLs. See individual module CHANGELOGs for details.

#### Fixed
- **7 correctness fixes** — Rich Snippets enabled flag actually honored, store_id in FPC cache key, circular-dependency validator wired to Save; Open Graph gated by config; stateless `RequestPathResolver`; canonical URLs cleaned; hreflang suppressed on non-canonical URLs; AI Advisor DI registry now populated at runtime.

#### Performance
- **5 performance improvements** — Dynamic Descriptions hot-path bail-out (afterGetData now O(1) + request-scope memoization); Sitemap streaming + gzip (O(1) memory, 100k+ SKUs no longer OOM); Pretty Filters router early exit; SEO image name cache LRU-bounded; AI provider retry/backoff middleware.

#### Changed
- **BREAKING: All bundled modules bumped to ^2.1** (Rich Snippets to ^2.3).
- Rich Snippets: default snippets now install as inactive (previously emitted false structured-data claims like "free shipping", "US destination", "30-day returns" by default).
- Advanced Sitemaps: `SitemapGeneratorInterface::getItems()` now returns `iterable` instead of `array` (arrays are still iterable, so plain-array generators keep working).
- AI Advisor: Popup controller now requires POST + form_key (was GET).

### SeoAdvancedSitemaps

_Released 2026-04-12._

#### Performance
- **Streaming sitemap generation** — `SitemapGenerationService` no longer materializes each generator's full item list before chunking. Items are iterated and written to the output stream one at a time; new files open every `chunk_size` URLs. Memory footprint is now O(1) in catalog size, so stores with 100k+ SKUs no longer OOM.
- **BREAKING: `SitemapGeneratorInterface::getItems()` returns `iterable`** — generators can now yield items via `yield` instead of returning a full array. Plain-array returns still work (arrays are iterable), so existing custom generators need only change their return type hint.

#### Added
- **Gzip sitemap output** — new admin config field `qoliber_seo_advanced_sitemaps/settings/gzip_enabled` writes sitemaps as `.xml.gz`. Supported by all major search engines and cuts bandwidth for large sitemaps.
- **Robots.txt sitemap announcement** — new plugin `RobotsTxtInjector` appends `Sitemap: <url>` lines to Magento's core `robots.txt` output for every sitemap registered on the current store. Crawlers discover sitemaps without merchants manually editing `robots.txt`.

#### Fixed
- **Chunk filename always suffixed** — single-chunk files now also use the `_1` suffix in streaming mode since total chunk count isn't known up front; consistent naming.
- **DI hygiene: service extraction moved to `_construct`** — the `Sitemap` model previously overrode `setData()` to pull injected services from the data bag on every field mutation, which also risked leaking service objects into DB serialization. Extraction now happens once in Magento's init hook and the keys are unset from the data bag afterwards.

### SeoAdvisorAi

_Released 2026-04-12._

#### Added
- **Structured output (JSON mode)** — `GeminiClient::generateContent()` and `ClaudeClient::generateContent()` now accept a `$jsonMode` parameter. For Gemini it sets `generationConfig.responseMimeType = "application/json"`; for Claude it injects a strict system directive plus an assistant-turn prefix `{` so the model cannot wrap the response in markdown fences. Callers can now `json_decode` the response without regex-stripping tricks.

#### Performance / Reliability
- **Retry with exponential backoff** — new `Qoliber\SeoAdvisorAi\Service\GenerativeAi\RetryHelper` retries transient failures (HTTP 429, 5xx, connection errors) with jittered exponential backoff (up to 3 attempts, capped at 5s). Applied to `GeminiClient` and `ClaudeClient`; protects against brief upstream blips and 429 rate-limit spikes that would previously surface as user-facing errors.

#### Fixed
- **DI registry was empty at runtime** — `di.xml` configured the `generativeAi` array on `GenerativeAiInterface` but no preference was registered, and consumers (`Popup` controller, `ListModelsCommand`, `AiProvider` source model, `ProductDescriptionGenerator`) all injected the concrete `GenerativeAi` class — which got the empty-array default. AI features were silently broken. Added preference from interface to concrete and unified consumer injection on the interface.

#### Security
- **Prompt injection (HIGH): Input validation in Popup controller** — `type` whitelisted to `product`/`category`/`cms_page`; `attributes` now JSON-decoded, filtered to 7 whitelisted keys, values forced to strings, payload capped at 8KB
- **GET → POST with CSRF protection** — `check-seo.js` now posts with `form_key`; controller implements `HttpPostActionInterface`

#### Changed
- **BREAKING:** Popup controller now requires `POST` + `form_key`; any custom integrations calling it via `GET` will need to be updated

### SeoAiDiscoverability

_Released 2026-04-20._

First public release of Qoliber SEO AI Discoverability. Version aligned with
the rest of the Qoliber SEO suite for a coordinated release.

#### Added
Three independently-togglable surfaces, all gated behind a master switch that ships **OFF** — per-site decisions about which AI crawlers to block and which directives to emit are editorial, not technical, and merchants must opt in after reviewing defaults.

- **`robots.txt` per-bot Disallow blocks.** `RobotsTxtBotRulesInjector` plugs into `Magento\Robots\Model\Robots::afterGetData` and appends `User-agent: <bot>\nDisallow: /` blocks for each configured user-agent. Default list: `GPTBot`, `ChatGPT-User`, `OAI-SearchBot` (OpenAI); `ClaudeBot`, `anthropic-ai` (Anthropic); `CCBot` (Common Crawl — feeds most open LLMs); `PerplexityBot`; `Google-Extended` (Gemini/Vertex training opt-out that leaves Google Search unaffected); `FacebookBot` (Meta LLaMa); `Bytespider` (TikTok/Doubao); `Amazonbot` (Alexa/Rufus). Merchants can trim or extend in admin.
- **`X-Robots-Tag` HTTP header.** `XRobotsTagHeaderInjector` plugin on `Magento\Framework\App\Response\Http::beforeSendResponse` emits the configured directive string on every frontend response. Default `noai, noimageai` signals AI training opt-out without affecting traditional search indexing. Overwrites any header set earlier in the request so merchant config wins over core/third-party additions.
- **`/llms.txt` endpoint** per the [draft spec](https://llmstxt.org). A custom `Controller\Router` matches the literal path (standard Magento routing can't handle the dot segment without a URL rewrite entry) and dispatches to `Controller\Llms\Index` which serves the admin-configured body as `text/plain; charset=utf-8` with `X-Content-Type-Options: nosniff`. Returns 404 when disabled so crawlers treat the path as non-existent.
- **Admin configuration** under **Stores → Configuration → Qoliber → SEO: AI Discoverability**. Per-store scope, four groups: General (master switch), robots.txt, X-Robots-Tag, llms.txt. ACL resource `Qoliber_SeoAiDiscoverability::config`.

#### Tests
- 13 integration tests across three files:
  - `Test/Integration/Plugin/RobotsTxtBotRulesInjectorTest` (5 cases) — master/feature gating, one block per bot, empty list emits nothing, whitespace and duplicates deduped.
  - `Test/Integration/Plugin/XRobotsTagHeaderInjectorTest` (4 cases) — disabled paths, empty directives, header emission, overwrite behaviour.
  - `Test/Integration/Controller/LlmsIndexTest` (4 cases) — 404 on master-off, 404 on feature-off, 200 with configured body, `text/plain` + `nosniff` headers.

#### Notes
- The module does not block bot traffic at the request layer — it only publishes the opt-out signals. Bots that don't honour `robots.txt` / `X-Robots-Tag` (the "bad" ones) won't be affected. For active blocking, merchants still need a WAF rule set.
- `Google-Extended` is specifically the Gemini/Vertex training opt-out. It does **not** affect ranking in Google Search; the Googlebot that feeds Search is a separate user-agent. This is the single most important entry to keep in the default list — removing it inadvertently opts merchants back into training without affecting Search.
- After installing, merchants must run `bin/magento setup:upgrade` to register the module, then enable the master switch and each feature in admin.

### SeoCommon

_Released 2026-04-20._

First public release of Qoliber SEO Common. Version aligned with the rest of
the Qoliber SEO suite for a coordinated release — `SeoCommon` is the shared
helper library the other modules depend on, so the version jump matches the
suite rather than starting independently at 1.0.0.

#### Added
Shared utility services consumed by other Qoliber SEO modules:

- **`Service/Html/Stripper`** — HTML-to-plain-text conversion used by OG/meta output paths.
- **`Service/Pattern/PlaceholderReplacer`** — `{key}` placeholder expansion for dynamic tag patterns.
- **`Service/Image/PathParser`** — catalog/media image path decomposition (basename, extension, directory) with safe handling of paths containing multiple dots.
- **`Service/GenerativeAi/*`** — provider-agnostic abstraction consumed by SeoAdvisorAi and ProductDescriptionGenerator.

#### Notes
- SeoCommon has no frontend or admin presence of its own. It's a dependency shipped alongside the rest of the suite; installing it without other Qoliber SEO modules has no effect.

### SeoDynamicDescriptions

_Released 2026-04-12._

#### Performance
- **Hot-path plugin bail-out** — `ModifyDataPlugin::afterGetData` now early-exits for fields that no modifier handles (O(1) lookup against a prebuilt index). Previously every `Product::getData()` / `Category::getData()` call iterated the modifier pool — this runs thousands of times per page.
- **Request-scope memoization** — results for `(event_prefix, entity_id, field)` are cached per request, so Twig rendering for the same field runs at most once. Combined with the bail-out, this eliminates the single biggest TTFB cost of the module.

#### Security
- **CRITICAL: Twig sandbox** — category description / SEO header rendering now uses `Twig\Extension\SandboxExtension` with a tight allow-list (tags: `if`/`for`/`set`; filters: `escape`/`upper`/`lower`/`trim`/`length`/`default`/`join`/`split`/`replace`/`striptags` etc.; functions: `range`). Admin-crafted template strings can no longer invoke PHP or access object methods.
- **HTML autoescape enabled** — Twig `autoescape: html` is now on, so dynamic values are HTML-escaped by default.
- **Removed `html_entity_decode` after render** — this step subverted escaping and turned `&lt;script&gt;` back into live HTML.
- **Safe template context** — category context passed to Twig is now filtered to scalar/null values only; model methods and relations are no longer exposed to templates.
- **Request param whitelist + bounds** — reserved Magento keys (`p`, `product_list_*`, `q`, `id`, `form_key`, etc.) are stripped from filter variables; filter values are trimmed to 128 chars and stripped of control characters to prevent SEO-poisoning payloads.

### SeoDynamicTags

_Released 2026-04-20._

First release cutting from 2.0.0. Ships the stored-XSS fix, robots whitelist,
and locks the `preventRelativePath()` normalisation contract as executable
spec (the method had no test coverage before).

#### Security
- **Stored XSS in meta tag output** — admin input for `meta_title`, `meta_description`, `meta_keywords` now passes through `strip_tags()` + control-char stripping in `ModifyMetaTags` plugin.
- **Robots value whitelist** — `robots` directive now validated against canonical `INDEX/NOINDEX, FOLLOW/NOFOLLOW` combinations; arbitrary admin input is discarded.

#### Tests
- **`preventRelativePath()` contract locked** — `Test/Unit/Model/SeoDynamicTagPathSanitizerTest` (13 cases via dataProvider). The method runs on every admin-submitted `request_path` AND again in `beforeSave()` as last-line defence; before this release, its normalisation rules were undocumented. Tests cover: no leading slash, trailing slashes, triple slashes, empty input, traversal artefact preservation, dot segments, query-like suffixes. The canonical output rule is now spelled out as executable spec: "produce exactly one leading slash, no trailing slash, empty collapses to `/`".

### SeoFriendlyProductUrls

_Released 2026-04-12._

#### Security
- **CRITICAL: url_rewrite collision prevention** — dedup checks in both `Regenerator` and `SingleProductUrlGenerator` previously only looked at `entity_type = 'product'` rows. The `url_rewrite` unique key is `(request_path, store_id)` across ALL entity types, so `insertOnDuplicate` could silently overwrite CMS pages, categories, or custom rewrites that shared a path. Dedup now scans ALL entity types and resolves conflicts before writing.

#### Fixed
- **Transactional batch regeneration** — `partialRegenerate` now wraps `catalog_product_entity_varchar` and `url_rewrite` writes in a single DB transaction; partial failures roll back cleanly instead of leaving URL keys and rewrites out of sync.

### SeoHrefLang

_Released 2026-04-12._

#### Fixed
- **Suppress hreflang on non-canonical URLs** — `HrefLang::getTags()` now returns `[]` when the request carries filter, sort, or pagination query parameters. Previously the module emitted hreflang clusters on faceted pages, diluting the canonical signal.
- **Broken-alternate filtering** — stores that resolved to no URL for the current entity are now dropped from the tag list instead of emitting `<link href="">` entries.

#### Security
- **XSS (CRITICAL): Escape hreflang output** — removed `/* @noEscape */` on `$tag['locale']` and `$tag['url']` in `view/frontend/templates/hreflang.phtml`; now uses `$escaper->escapeHtmlAttr()` and `$escaper->escapeUrl()` respectively

### SeoImagesFriendlyUrl

* **Schema: multi-store index with unique business key** — `qoliber_seo_images_friendly_url` gained a `store_id` column (0 = all stores) and a composite unique constraint on `(image, store_id)`. Pre-2.1.0 installs accumulated duplicate rows (4.3x observed on seed data); the `AddImageStoreIdUniqueConstraint` schema patch dedupes existing rows on upgrade and adds the constraint. `GetSeoFriendlyNameFromIndex::execute()` gains a `$storeId` parameter, preferring store-specific overrides with fallback to store_id=0.
* **Performance: LRU-bounded SEO name cache** — `GetSeoFriendlyNameFromIndex` previously grew an unbounded in-memory map of (image → seo_name) pairs. On a category listing with thousands of products, this leaked memory across requests in long-lived FPM workers. Now capped at 2000 entries with LRU eviction.
* **Removed reflection on parent private state** — `Image` asset class used to call `ReflectionClass::getProperty('miscParams')` on every misc-access to read a private field from Magento core. Overrode the parent constructor to capture `$miscParams` into our own property. Removes a fragile integration point that would break on PHP / Magento upgrades.

* **Security (CRITICAL XSS): Alt tag escaping** — `SeoValueResolver::resolveAltTagSeoValue()` now escapes output via `Magento\Framework\Escaper::escapeHtmlAttr()`. Prevents stored XSS via product names flowing into image `alt` attributes and gallery `caption` JSON
* **Filesystem safety (CRITICAL): Atomic symlink creation in `ImageResize`** — replaces unsafe `isExist()` + `createSymlink()` check-then-act with a temp-file + `rename()` pattern. Concurrent resize workers can no longer corrupt links or race on missing symlinks
* **PHP 8.2+ compliance: `ImageResize` dynamic properties** — `$fileStorageDatabase` and `$storeManager` were assigned without property declarations, triggering a PHP 8.2 deprecation and a fatal error on PHP 9. Now declared explicitly as typed protected properties.
* **DB schema whitelist cleanup** — removed the stale `QOLIBER_SEO_IMAGES_FRIENDLY_URL_IMAGE` entry (the btree was dropped from `db_schema.xml`) and the speculative `..._IMAGE_STORE_ID` entry (never created — the schema patch adds `..._IMAGE_STORE_ID_UNQ` via raw DDL, which intentionally stays out of the whitelist).
* **Integration test coverage for 2.1.0 surface** — 27 new test cases across 6 files (32 integration tests total, up from 5). Covers: multi-store index lookup with fallback, schema-patch dedupe + idempotency + unique-constraint enforcement, URL-builder DI preference and flag gating, indexer full-reindex + partial-reindex non-interference, gallery `CreateHandler` / `UpdateHandler` contract, `App\Media` + `ImageResize` preference wiring, and `Config` scope-read alignment.
* **Fix (CRITICAL): `App\Media::createLocalCopy` passed the cached path to the resizer** — our responder handed the full `catalog/product/cache/<hash>/…/foo.jpg` path to `ImageResize::resizeFromImageName()`, but that method expects the original image path (e.g. `/m/j/foo.jpg`). Core Magento's responder strips the `cache/<hash>/` prefix via a private `getOriginalImage()` helper before calling the resizer; our override never ported that helper. Symptom: **only the first image of a product gallery rendered** — Magento had pre-generated it via `catalog:images:resize`, but every subsequent on-demand request fell through to `setPlaceholderImage()`. The helper is now included and the call site mirrors core.
* **Fix: `ImageResize::resizeFromImageName` was a silent no-op when the module was disabled** — early `return` when `isModuleEnabled()` was false meant no image ever got generated, not even by core. Because the DI preference on `Magento\MediaStorage\Service\ImageResize` still routes every request through our subclass, "disabled" must mean "delegate to parent" rather than "do nothing". Fixed: the disabled branch now calls `parent::resizeFromImageName()` so core image generation works exactly as if the module weren't installed.
* **Fix (CRITICAL): SEO URL scheme was ambiguous (3-segment form)** — `CatalogUrlBuilder::getUrl` and the `CatalogBlockProductImageFactory` plugin both produced `<dir>/<seoName>.<ext>` URLs. Multiple originals can share a single SEO name (e.g. `mp01-gray_main_1.jpg` and `mp01-gray_back_1.jpg` both map to `caesar-warm-up-pant-mp01`), so the responder couldn't reverse-map the SEO URL to a specific source image. The existing `ImageResize::extractRealFilePath()` was coded for a 4-segment form `<dir>/<originalBasename>/<seoName>.<ext>` that the URL generator never produced. Both URL builders now embed the original basename as a subdirectory — the 4-segment form the reverse-mapping was always designed for. Disambiguation is now by construction.
* **Fix: `App\Media::getOriginalImage` prefix-strip regex was too rigid** — core Magento's hardcoded last-3-segments regex worked for the non-SEO tail but truncated the SEO 4-segment tail. Replaced with a `/cache/<hash>/` prefix-strip that preserves whatever tail follows, so 3- and 4-segment forms both round-trip.
* **Fix (CRITICAL): `Model\View\Asset\Image` override hijacked every catalog image asset** — the class is the DI preference target for `Magento\Catalog\Model\View\Asset\Image`, meaning every caller that builds a catalog image asset (OG meta-tag resolver, admin grids, swatches, email templates) routed through us. `getUrl()` and `getFilePath()` were gated only on `isModuleEnabled()` and unconditionally read `misc['filePath']` — which only OUR `CatalogUrlBuilder` populates — so every other caller got a URL with an empty filename, collapsing to the theme placeholder (`/static/…/placeholder/image.jpg`). Now both methods gate on `isSeoImage()` (the flag `CatalogUrlBuilder` sets explicitly). Non-SEO callers pass through to parent unchanged.
* **Fix: broken gallery thumbnails on product pages** — composite symptom of the two fixes above: on a product page with multiple images, only the first rendered. Magento had pre-generated that one via `catalog:images:resize`, but request-time resize for the other thumbnails failed because our responder handed the wrong path to the resizer. With `App\Media::createLocalCopy` now calling `getOriginalImage()` before the resizer (mirroring core), all gallery thumbnails resolve correctly regardless of whether the module is enabled or disabled.
* **Regression lock for the four fixes above** — `CatalogUrlBuilderIntegrationTest::testSeoUrlEmbedsOriginalBasenameAsSubdirectory` (4-segment URL shape), `MediaGetOriginalImageTest` (6 dataProvider cases: 3-seg + 4-seg + edge inputs), `ImageResizeParentDelegationTest` (NotFoundException probe proves parent delegation on disabled), and `ImageResizeExtractRealFilePathTest` (reverse-mapping for the 4-segment form). Integration total now 35 tests; unit 24.

* **Removed: 1.2.0 encoded image URLs and ImageMagick settings** — the image rendering overhaul deletes `Service\ImageParamsEncoder`, its `GenerateImageHmacKey` data patch and the `Interlace` / `SamplingFactor` ImageMagick options added in 1.2.0. Product images use the SEO URL scheme described above; cache URLs in the 1.2.x encoded form are no longer resolved.

### SeoIndexNow

_Released 2026-04-20._

First public release of Qoliber SEO IndexNow. Version aligned with the rest of
the Qoliber SEO suite for a coordinated release.

#### Added
- Push URL-change notifications to Bing, Yandex, Naver, Seznam and any other IndexNow-compatible search engine via the generic `api.indexnow.org` endpoint.
- Observer-based triggers on product, category, and CMS page save (each individually toggle-able).
- `Qoliber\SeoIndexNow\Service\Notifier` — best-effort, fire-and-forget HTTP submission with 5s total timeout; never blocks the triggering save.
- Ownership-verification key file served via `Controller\Key\Index` (route `qoliber_index_now/key/index`) — admin only needs to paste a key into config, no separate file upload.
- Admin configuration under **Stores > Configuration > Qoliber > SEO: IndexNow**.
- ACL resource `Qoliber_SeoIndexNow::config`.

#### Tests
- **Observer chain locked** across all three save paths:
  - `Test/Integration/Observer/ProductSaveObserverTest` (5 cases)
  - `Test/Integration/Observer/CategorySaveObserverTest` (5 cases)
  - `Test/Integration/Observer/CmsPageSaveObserverTest` (6 cases)
  A spy `Curl` replaces the real HTTP client via ObjectManager's shared-instance swap so the observers exercise the full save path without hitting the network. Covers: URL-key becomes the path segment in the POSTed `urlList`; master switch off → zero calls; per-feature flags (`notify_on_product_save` / `notify_on_category_save` / `notify_on_cms_save`) off → zero calls; missing entity in event short-circuits; empty url_key / identifier short-circuits; store_id=0 excluded from CMS submissions.
- **Notifier gating locked** — `Test/Integration/Service/NotifierIntegrationTest` (5 cases): missing/malformed IndexNow key returns `false` without a network call; valid call dedupes duplicate URLs; empty URL list short-circuits as success; disabled module returns `true` with no HTTP call.

#### Notes
- IndexNow is supported by Microsoft Bing, Yandex, Naver, Seznam (launched 2021). **Google does not yet support it.**
- To prove ownership, also configure your web server to serve `/{key}.txt` at the site root with the key as the body; this module's controller handles it automatically for standard Magento-routed requests.

### SeoOpengraphTags

_Released 2026-04-20._

First release cutting from 2.0.0. Bundles the prior correctness fixes with the
2025/2026 social-preview compliance additions.

#### Added
- **`og:image:width`, `og:image:height`, `og:image:alt`** emitted on product pages — Facebook and LinkedIn require the dimensions to render the large-card preview; without them LinkedIn silently downgrades to a 40x40 thumbnail. `og:image:alt` satisfies accessibility tooling for social shares.
- **`twitter:image:alt`** mirrors `og:image:alt` for the same accessibility reason Twitter already mirrors `og:title`/`og:description`.
- New `ResolverProductImageMetadataTest` (4 unit cases) covering: helper URL + resized dimensions, fallback to helper `getWidth`/`getHeight` when `getResizedImageInfo` is null, empty product image suppresses the whole `og:image` block, empty product name suppresses the alt tag.

#### Fixed
- **Module disable actually works** — both `layout_load_before` observers (`RemoveDefaultTags`, `SetPrefix`) now check `Config::isEnabled()` before mutating layout handles. Previously, disabling the module could leave product pages with no OG tags at all because the Magento core `catalog_product_opengraph` handle was still being removed.
- **OG block gated via `ifconfig`** — the `qoliber.opengraph` block is now only instantiated when `qoliber_opengraph/settings/enable` is on.
- **`og:image` now emits the same SEO-friendly URL the product page uses** — previously `ResolverProduct::getImageUrl()` produced a raw `/media/catalog/product/<file>.jpg` URL (not resized, not SEO-rewritten). `ResolverProduct` now injects `Magento\Catalog\Model\Product\Image\UrlBuilder` (the DI preference target for `Qoliber\SeoImagesFriendlyUrl\…\CatalogUrlBuilder`) so the OG image URL goes through the same SEO rewrite the product-page gallery uses. Width/height come from `Magento\Catalog\Helper\Image` using the stock `product_page_image_medium` view.xml entry (700x700) — the right size for social previews, and an existing entry we reuse instead of adding a new one. `product_page_image_large` is intentionally not used because Luma/blank ship it with no dimensions (self-closing `<image .../>`), which makes the helper return the theme placeholder.
- **Template whitespace cleanup** — `view/frontend/templates/opengraph.phtml` was producing a dozen spaces of leading indentation on every `<meta>` line (visible in page source). Restructured to flat output; each tag now starts at column 0.

#### Notes
- The OG image URL matches the product-page gallery URL in both states of the SEO module: with the module enabled you get the 4-segment SEO form (`cache/<hash>/<dir>/<originalBase>/<seoName>.<ext>`); with the module disabled you get the standard Magento resized form (`cache/<hash>/<dir>/<file>.<ext>`). Either way it's a resized variant, never the raw source file.

### SeoPrettyFilters

_Released 2026-04-12._

#### Security
- **Reflected XSS in RequestParamsProvider** — `$paramValue` and `$queryParam` are now passed through `rawurlencode()` before URL concatenation (`Model/RequestParamsProvider.php:56`)

#### Fixed
- **Canonical URLs no longer leak query params** — `AbstractPatternProcessor::getCanonicalArguments` used to append any unresolvable query parameter (e.g. `?sortby=price`, `?utm_source=x`) to the canonical. Canonicals now always point to the clean, unfiltered category URL.
- **Search result canonical preserves `q`** — `ResultBlockPlugin` now includes the normalized search query in the canonical URL so different searches don't collapse to the same canonical.
- **Stateless `RequestPathResolver`** — removed per-instance `$resolvedParams` cache that would leak between requests in long-running PHP processes; resolution state is now method-local. New unit test covers the no-leak contract.

#### Performance
- **Router early exit** — `Router::match()` now bails out immediately for paths under known non-catalog prefixes (`admin/`, `rest/`, `graphql`, `static/`, `media/`, `checkout/`, etc.) before running the full resolver chain. Avoids thousands of wasted resolver calls per page load on admin and AJAX requests.

### SeoPrettyFiltersElasticSuite

_Released 2026-04-20._

First release cutting from 2.0.0. Introduces the first test coverage for the
module; no behavioural changes.

#### Tests
- **First test coverage for this module** — `Test/Unit/Plugin/ShortAttributeResolverTest` (3 cases) locks the short-pattern request-path cleanup contract: null `ResolvedParams` propagates unchanged, the configured separator is stripped from the path, stray comma artefacts from upstream multi-select filters are removed.
- Integration tests for the other eight plugins require the `Smile\ElasticsuiteCore` package which isn't always present in the development environment — deferred to a follow-up release that runs against an ElasticSuite-equipped test fixture. Plugin source doesn't import from Smile, so more unit-test coverage is feasible at zero-infrastructure cost.

### SeoRichSnippets

_Released 2026-03-03._

#### Added
- `price` and `finalPrice` variables in product value resolver with smart formatting (trailing zeros removed)
- `shortDescription` and `short_description` variables with automatic fallback to full description when short description is empty
- Per-review `rating` field in `CollectionVariables` — computes average rating from individual rating votes on a 1–5 scale

#### Fixed
- HTML stripping now applied to all product attribute values for schema.org compliance, not just textarea/text inputs
- Empty string attribute values now return `null` instead of blank strings in JSON-LD output
- Anonymous reviewer fallback — reviews without a nickname now render as "Anonymous" in both `ReviewValueResolver` and `CollectionVariables`
- `preg_replace` return values explicitly cast to `string` in `stripHtml()` for strict type safety
- Removed `sleep(1)` calls from review test fixture to speed up test execution

## 2.0.6 — 2026-03-06

### SeoDynamicDescriptions

#### Fixed
- **Twig template error logging**: Twig rendering exceptions are now logged with category ID and error message instead of being silently swallowed — aids debugging broken templates without breaking the storefront

## 2.0.5 — 2025-10-16

### SeoDynamicDescriptions

#### Fixed
- **PageBuilder content formatting** fix that properly handles and formats PageBuilder HTML content in category descriptions
- **Product page header overwriting prevention** that ensures dynamic descriptions don't incorrectly override product page headings
- Enhanced modifier architecture to prevent cross-contamination between category and product page SEO elements

#### Changed
- Improved `ModifyDataPlugin` to better distinguish between category and product contexts
- Refactored modifier pool to handle different page types more reliably

## 2.0.4 — 2025-07-03

### SeoDynamicDescriptions

#### Changed
- Updated composer.json metadata

## 2.0.3 — 2025-06-06

### SeoDynamicDescriptions

#### Fixed
- Code quality improvements and formatting consistency

## 2.0.2 — 2025-05-27

### SeoDynamicDescriptions

#### Changed
- Updated package author information

## 2.0.1 — 2026-04-12

### SEO Suite metapackage

_Released 2026-04-06._

#### Fixed
- Corrected package name for HrefLang module (`qoliber/seo-hreflang` → `qoliber/seo-href-lang`)
- Corrected ElasticSuite package name in `suggest` (`qoliber/seo-pretty-filters-elastic-suite` → `qoliber/seo-pretty-filters-elasticsuite`)

### SeoDynamicDescriptions

_Released 2025-04-02._

#### Changed
- Automated version update

### SeoImagesFriendlyUrl

_Never tagged: these changes first shipped in 2.1.0._

* **Proper logger injection**: Replaced `error_log()` with `Psr\Log\LoggerInterface` injected via setter-injection plugin — uses Magento's standard logging channel (`var/log/system.log`) with exception and image ID context

### SeoRichSnippets

_Released 2026-02-25._

#### Changed
- Version bump for Private Packagist configuration

## 2.0.0 — 2026-04-06

### SEO Suite metapackage

_Never tagged: these changes first shipped in 2.0.1._

#### Added
- Initial release of Qoliber SEO Suite metapackage
- Bundles all 10 Qoliber SEO modules (+ 1 optional):
  - `qoliber/seo-advanced-sitemaps` (^2.0) - Entity-based sitemap splitting with configurable pagination
  - `qoliber/seo-advisor-ai` (^2.0) - AI-powered SEO analysis with Claude, GPT, Gemini, and Grok
  - `qoliber/seo-dynamic-descriptions` (^2.0) - Filter-aware dynamic category SEO content
  - `qoliber/seo-dynamic-tags` (^2.0) - URL pattern-based custom meta tag injection
  - `qoliber/seo-friendly-product-urls` (^2.0) - Pattern-based SEO product URL generation
  - `qoliber/seo-hreflang` (^2.0) - Automatic hreflang tags for multi-language stores
  - `qoliber/seo-images-friendly-url` (^2.0) - SEO-friendly product image URLs and alt tags
  - `qoliber/seo-opengraph-tags` (^2.0) - Open Graph and Twitter Card meta tags
  - `qoliber/seo-pretty-filters` (^2.0) - SEO-friendly layered navigation URLs (Short, Complex, Flat modes)
  - `qoliber/seo-rich-snippets` (^2.0) - JSON-LD structured data with DJson template engine
  - `qoliber/seo-pretty-filters-elasticsuite` (^2.0) - Optional ElasticSuite integration
- README with installation and module overview
- HOWTO guide with setup and configuration instructions
- LICENSE file

### SeoAdvancedSitemaps

_Released 2026-03-06._

#### Changed
- Complete rewrite: replaced ValueFilter plugin architecture with clean `SitemapGeneratorInterface` generator pattern
- Each entity type (CMS pages, categories, products, images) is now a configurable generator registered via `di.xml`
- Sitemap generation delegated to `SitemapGenerationService` orchestrator with streaming XML writes
- Configurable pagination: URLs per sitemap file (default 1500) via admin config
- Output naming: `sitemap_cms.xml`, `sitemap_categories.xml`, `sitemap_products_1.xml`, etc.

#### Added
- `Api\SitemapGeneratorInterface` contract for entity generators
- `Model\Generator\CmsPageGenerator`, `CategoryGenerator`, `ProductGenerator`, `ImageGenerator`
- `Model\Service\SitemapGenerationService` core orchestrator
- Admin config field "URLs per Sitemap File" with `validate-digits` validation

#### Removed
- `Plugin\ValueFilter\AbstractValueFilter`, `Category`, `CmsPage`, `Product` — replaced by generators

### SeoAdvisorAi

_Released 2026-03-06._

#### Added
- **Anthropic Claude AI integration** with native API client, dynamic model fetching via `/v1/models` endpoint, and 24h cache
- **xAI Grok integration** using OpenAI-compatible SDK with custom base URL, supporting Grok 4 and Grok 3 model families
- **Dynamic model fetching for Gemini** — available models are now fetched from the Google API and cached for 24 hours, with fallback to a static list
- Admin configuration fields for Claude (API key, model selection) and Grok (API key, model selection)
- Source model classes for Claude and Grok admin dropdowns

#### Changed
- **BREAKING:** Gemini API upgraded from `v1` to `v1beta` for access to latest models
- **BREAKING:** Gemini model config values now store actual model IDs (e.g., `gemini-2.5-flash`) instead of mapped keys (e.g., `gemini_flash`). Existing Gemini model selections will need to be re-saved
- Updated ChatGPT model list to 2026 models (GPT-4.1, o3, o4-mini)
- Updated Gemini fallback models to include Gemini 2.5 Flash and Gemini 2.5 Pro
- Default ChatGPT model changed from `gpt-3.5-turbo` to `gpt-4.1-mini`
- Modernized all service classes to use PHP 8.1 constructor property promotion
- Renamed Gemini provider display name from "Gemini" to "Google Gemini"

#### Removed
- Removed hardcoded `MODELS` constant mapping from `GeminiClient` — model IDs are now passed through directly

### SeoDynamicDescriptions

_Released 2025-03-06._

#### Added
- **Major architecture refactoring** with introduction of Modifier pattern for better code organization and maintainability
- Modifier classes for category descriptions, meta descriptions, meta keywords, meta titles, and SEO headers
- Product-specific modifiers for meta descriptions and meta titles
- Factory pattern for creating modifiers dynamically based on context
- Improved plugin integration with Output helper for better HTML rendering

#### Changed
- Migrated from direct plugin implementation to modifier-based architecture
- Enhanced code quality and reduced code duplication across SEO field processors

### SeoDynamicTags

_Released 2026-03-10._

#### Fixed
- **Save controller missing default redirect** — added `$resultRedirect->setPath('*/*/index')` before POST check to ensure redirect is always set
- **ModifyMetaTags assignment in conditional** — extracted `$page = $this->getRequest()->getParam('p')` before conditional blocks for clarity

#### Changed
- Added `declare(strict_types=1)` to `Save` controller and `ModifyMetaTags` plugin

### SeoFriendlyProductUrls

_Released 2026-03-07._

#### Added
- **Admin UI: Generate URL button** on product edit page (Search Engine Optimization section) — generates SEO-friendly URL key directly from the admin panel without CLI
- **Single product URL generation service** (`Service\SingleProductUrlGenerator`) with support for both saved products (`generate()`) and unsaved products from form data (`generateFromFormData()`)
- **Admin AJAX controller** (`Controller\Adminhtml\Generate\UrlKey`) returning JSON with generated URL key and configured pattern
- **ViewModel** (`ViewModel\GenerateUrlData`) providing pattern configuration to the template
- **Admin route** `qoliber_seo_friendly_urls` for the generate endpoint
- **RequireJS widget** with MutationObserver that injects "Generate URL" button next to `url_key` label and pattern notice below the input field
- **ACL resource** `Qoliber_SeoFriendlyProductUrls::generate_url` for granular permission control
- **LESS styling** for generate button and pattern notice in adminhtml

### SeoHrefLang

_Released 2026-03-10._

#### Fixed
- **Critical: Config property accessed as method** — `$this->allowedStoreUrls()[$storeId]` corrected to `$this->allowedStoreUrls[$storeId]` (was calling non-existent method instead of reading property)
- **Malformed `composer.json` psr-4 autoload** — fixed missing empty string value and closing braces in autoload configuration
- **Null safety in URL resolvers** — added null guards for `$request->getParam()` in `ProductUrlResolver`, `CategoryUrlResolver`, and `CmsPageUrlResolver` to prevent type errors

#### Changed
- Added `readonly` to constructor properties in `Config` and `HrefLang` ViewModel
- Added `declare(strict_types=1)` to all files missing it: `ProductUrlResolver`, `CategoryUrlResolver`, `CmsPageUrlResolver`, `ContactPageUrlResolver`, `AlternateUrlService`, `UrlResolverInterface`

### SeoImagesFriendlyUrl

* **Strict comparison fix**: Changed loose `!=` to strict `!==` in `Image::getImageInfo()` for image friendly name check
* **Dead code removal**: Removed unused `$productData` variable in `SeoValueResolver::getSeoFriendlyValue()` — was populated but never passed to template processor
* **Docblock fix**: Corrected `/**+` typo to `/**` in `SeoValueResolver` constructor docblock
* **Readonly properties**: Added `readonly` to all constructor properties in `AddDiObjectsToImageModel` plugin
* **Error logging**: Added exception logging in `Image::getUrl()` catch block — silent exception swallowing now reports the error

### SeoOpengraphTags

_Released 2026-03-10._

#### Fixed
- **ResolverCategory `array_filter` removes valid falsy values** — replaced bare `array_filter($tags)` with explicit callback to preserve `"0"` and `false` values, only filtering out `null` and empty strings

#### Changed
- `SetPrefix` observer modernized to PHP 8.1 constructor property promotion with `readonly`
- Added `: void` return type to `execute()` in `SetPrefix` and `RemoveDefaultTags` observers

### SeoPrettyFilters

_Released 2026-03-10._

#### Added
- **Flat URL mode** — third URL pattern alongside Short and Complex, with configurable filter order per store view and segment separator (`--` or `__`)
- `FlatAttributeResolver` for resolving flat URL segments into filter parameters using ordered attribute matching
- `FlatPatternProcessor` for generating flat-format filter URLs with configurable segment separator
- `FlatSegmentSeparator` source model for admin separator selection
- Admin config fields: "Flat Segment Separator" and "Flat Filter Order" (comma-separated attribute codes)
- Unit tests for `FilterOption`, `Yesno`, `RequestPathResolver`, `FlatAttributeResolver`, `AttributeFetcher`
- Integration tests for `Router` controller and Flat mode DI wiring / config resolution (`FlatModeTest`)

#### Fixed
- **Critical: AttributeFetcher data-wipe bug** — `$attributeSeoParams` was wiped immediately after store key initialization due to reversed line order
- **ComplexAttributeResolver `str_contains` args reversed** — `str_contains('!', $value)` corrected to `str_contains($value, '!')`
- **ComplexAttributeResolver missing `isset` guard** — added check before `getOptionIdByValue()` to prevent error on unknown attribute codes
- **ShortPatternProcessor `array_merge` crash** — `array_merge(...$seoPaths)` crashes when `$seoPaths` is empty; applied ternary guard
- **AbstractPatternProcessor loose `usort` comparison** — replaced verbose comparator with spaceship operator (`<=>`)
- **FilterOption loose comparisons** — changed `==` to `===` in `getOptionIdByValue()` and `getOptionIdBySeoPath()`
- **Yesno converter loose comparison** — changed `$optionId == '0'` to `$optionId === '0'`
- **ModifyMetaRobots silent exception swallowing** — added `LoggerInterface` dependency and warning-level logging
- **RequestPathResolver falsy check on empty array** — changed default from `[]` to `null` and check to `=== null`

### SeoPrettyFiltersElasticSuite

_Released 2026-03-10._

#### Added
- **Flat URL mode support** — `FlatAttributeResolver` and `FlatPatternProcessor` plugins for ElasticSuite-specific attribute handling in flat URL mode
- Plugin for `FlatAttributeResolver::resolveAttributeValues()` handling ElasticSuite multi-select and swatch attribute formats
- Plugin for `FlatPatternProcessor` handling ElasticSuite attribute array construction

#### Fixed
- **ComplexAttributeResolver `str_contains` args reversed** — `str_contains('!', $value)` corrected to `str_contains($value, '!')`
- **ComplexAttributeResolver missing `isset` guard** — added check before `getOptionIdByValue()` for multi-value attribute case

### SeoRichSnippets

_Released 2026-02-25._

#### Fixed
- Last breadcrumb item having empty URL in JSON-LD output — now uses current page URL
- HTML tags no longer leak into schema.org JSON-LD output for `description` and `short_description` attributes

#### Added
- **Complete test suite** (161 integration + 14 unit = 175 tests, 733+ assertions)
- **Full JSON string comparison tests** (`FullJsonOutputTest`) — loads real installed snippets from DB, expands all nested child snippets (up to 4 levels deep), resolves variables, processes through DJson, and compares the complete final JSON-LD output
- **HTML stripping** from product descriptions for schema.org compliance — `<b>`, `<p>`, `<div>`, `<a>`, `<br>` tags stripped, HTML entities decoded, whitespace normalized
- **BreadcrumbsVariableProvider unit tests** — 8 tests covering both layout block and catalog helper code paths, verifying last breadcrumb gets current URL
- Product with image test using Magento's built-in `product_with_image.php` fixture
- MSI-compatible test fixture — `product_with_select_attribute.php` conditionally registers MSI source items using `interface_exists()` check, works with and without MSI modules
- DJson template resolution tests — `@djson if/else` stock conditionals, optional field inclusion/exclusion, nested snippet expansion, full JSON-LD validation
- Product attribute resolution tests — select/multiselect attribute text label resolution, HTML stripping, camelCase to snake_case attribute mapping
- Variable extractor tests — HTML stripping verification, HTML entity decoding, `@djson` directive variable extraction
- Schema block rendering tests — all 30 installed snippet templates verified
- Nested snippets tests — circular dependency detection, multi-level expansion, missing snippet handling
- Value resolver integration tests — complete flow from template through variable resolution, nested snippet expansion, to final JSON output
- **BREAKING**: Complete architectural rewrite of the module
- **API Layer**:
  - `SnippetInterface` for snippet data structure
  - `SnippetRepositoryInterface` for snippet CRUD operations
  - `SnippetSearchResultsInterface` for search results
  - `ValueResolverInterface` for dynamic value resolution
  - `VariableProviderInterface` for variable system

- **Admin Interface**:
  - Complete adminhtml UI for snippet management
  - Snippet listing grid with filtering and mass actions
  - Snippet edit form with advanced schema editor
  - CodeMirror-based JSON editor with syntax highlighting
  - Variables panel with autocomplete support
  - Save, delete, and mass delete operations
  - Inline editing support

- **Core Features**:
  - `SnippetRepository` for managing snippet entities
  - `SnippetExpander` for processing nested snippets
  - `CircularDependencyValidator` for preventing infinite loops
  - `VariableExtractor` for parsing variable expressions (supports both `{{var}}` and `@djson if/unless/exists` directives)
  - Handle system for layout-based snippet assignment

- **Variable System**:
  - `ProductVariables` - Product-specific variables
  - `StockVariables` - Stock/inventory variables (`product.stock.qty`, `product.stock.isInStock`, `product.stock.availability`)
  - `BreadcrumbsVariableProvider` - Breadcrumb navigation variables
  - `CollectionVariables` - Product collection variables
  - `CustomVariables` - User-defined custom variables
  - `EnumVariables` - Enumeration values
  - `StoreConfigVariables` - Store configuration access
  - `SystemVariables` - System-level variables
  - `SnippetVariables` - Cross-snippet references

- **Value Resolvers**:
  - `ConfigValueResolver` - Resolve configuration values
  - `ProductValueResolver` - Resolve product data with 20+ attributes and nested `stock.*` path resolution
  - `ReviewValueResolver` - Resolve product review data
  - `StoreValueResolver` - Resolve store information

- **Database Schema**:
  - `qoliber_seo_richsnippets_snippet` table for snippet storage
  - `qoliber_seo_richsnippets_snippet_store` for store relations
  - `qoliber_seo_richsnippets_handle` for layout handle assignments
  - Complete database schema with proper indexes and constraints

- **Data Patches**:
  - `InstallTier1Snippets` - Core snippets (Product, Organization, WebSite)
  - `InstallTier2Snippets` - Enhanced snippets (Breadcrumbs, Offers)
  - `InstallTier3Snippets` - Advanced snippets (Reviews, Ratings)
  - `InstallTier4Snippets` - Business snippets (LocalBusiness, Store policies)
  - `InstallTier5Snippets` - Collection and search page snippets
  - `UpdateOfferStockAvailability` - Dynamic stock availability in Offer snippet

- **Frontend**:
  - New `JsonLd` block for rendering snippets with caching
  - Product image URL resolution via catalog image helper (Friendly URLs compatible)
  - Enhanced template with better error handling

- **Admin Assets**:
  - CodeMirror library integration
  - Custom CSS for schema editor
  - JavaScript widgets for variables panel
  - DJSON logo and branding

#### Removed
- **Old Service Layer** (replaced with new architecture):
  - `AbstractRichSnippetsService`, `AcceptedPaymentMethodService`, `BreadcrumbListService`
  - `ContactPointService`, `LocalBusinessService`, `MerchantReturnPolicyRichSnippetsService`
  - `OnlineStoreService`, `OrganizationService`, `ProductService`, `WebsiteService`
  - Collection page services, Item list services
  - Product-related services (AggregateRating, Brand, Offer, OfferShippingDetails, Review)
- `RichSnippets` ViewModel (replaced with Block-based approach)
- Hardcoded layouts for category, product, and search pages (replaced with flexible handle-based system)
- Extensive system.xml configuration (600+ lines, replaced with admin UI)

## 1.4.0 — 2026-11-20

### SeoCanonical

#### Security
- The canonical link's URL is escaped for its `href` attribute. Magento's head renderer prints a canonical asset's
  URL into the markup as it is, and an unclassified page (or a product, category or CMS page without a URL in the
  store) canonicalises to the requested URL, so a request whose path or query carried a quote could close the
  attribute and add markup to the page head. `Plugin\Frontend\EnforceSingleCanonical` now encodes `& < > " '` once,
  for every decision, including those of strategies other modules register; all other URL bytes stay as they are,
  and the decision itself stays a plain URL for the SEO Inspector and other consumers.
- Self-referential and query-free canonicals are built on the store view's configured base URL. They kept the host
  the request arrived with, so an alias host, or any Host header the web server let through, became the canonical
  origin. The requested path and query are kept byte for byte (percent-encoding included); a path outside the base
  URL's own path (store code, sub-directory, `index.php`) is placed below it, like product and category URLs.

#### Changed
- **Tracking parameters no longer reach the canonical.** A page that canonicalises to its own URL (unclassified pages
  such as contact, the not-a-category fallback, and every page while the policy is disabled) kept the whole query,
  so `?utm_source=…&gclid=…` named each tracked link its own canonical. Campaign and click-tracking parameters
  (`utm_*`, `mc_*`, `gclid`, `dclid`, `fbclid`, `msclkid`, `gbraid`, `wbraid`, `gad_source`, `gclsrc`, `srsltid`,
  `_ga`, `_gl`) are now dropped; every other parameter keeps its place and bytes. SEO Hreflang already treats the
  same parameters as not changing the page.

#### Fixed
- A page whose new canonical cannot be registered keeps the canonical it had. The competing canonicals were removed
  first, so a failing asset factory or collection left the page with none; the replacement is now registered
  first, the others are removed afterwards, and the failure is logged once with its exception.

#### Added
- `README.md`: which module writes a page's canonical, the URL and decision code per page type, the integration
  points and how to roll back. The Enable Canonical Policy setting explains what enabling and disabling it does.

#### Tests
- Unit coverage of the escaped `href`, the replacement order and a failing replacement, and of self and root URLs
  for a forged host, a store code in the URL, `index.php`, a look-alike path prefix and percent-encoded bytes.
- Integration test dispatching a page whose query carries quotes and markup: exactly one canonical link, with only
  `rel` and `href`, whose URL is the request on the configured base URL.

## 1.3.0 — 2026-11-10

### SeoCanonical

GitLab's 1.2.1 with qoliber Catalog Pro's local patches P5, P8 (to be upstreamed).

#### Added
- **Public canonical ownership hook** (`Api\CanonicalOwnershipInterface`, `@api`; local patch P5 of qoliber Catalog
  Pro, to be upstreamed). A module that wrote the current page's canonical link itself — exactly one, or deliberately
  none — registers an owner in di.xml (`Plugin\Frontend\EnforceSingleCanonical` argument `canonicalOwners`); the
  single-canonical enforcement then leaves that page's head alone. Backwards compatible: the constructor argument is
  optional and nothing changes without a registered owner. Replaces plugins other modules put on the internal
  `EnforceSingleCanonical` class.

#### Tests
- PHPUnit 12 (local patch P8 of qoliber Catalog Pro, readiness review 5 R3): collaborators without expectations are
  stubs (`createStub()`), so the unit suite runs without PHPUnit notices; a few shared doubles assert their calls
  explicitly instead. Test-only; runs on PHPUnit 10.5 (Magento 2.4.8) too.

## 1.2.4 — 2025-02-14

### SeoDynamicDescriptions

#### Changed
- Package maintenance update

## 1.2.3 — 2025-02-05

### SeoDynamicDescriptions

#### Changed
- Package maintenance update

## 1.2.2 — 2026-02-06

### SeoDynamicDescriptions

_Released 2025-02-05._

#### Changed
- Package maintenance update

### SeoImagesFriendlyUrl

#### Fixed
* Fixed CLI indexing compatibility with `creatuity/magento2-interceptors` package - moved `Catalog\Helper\Image` and `UrlBuilder` preferences from frontend to global scope
* Added documentation for `ensureDependencies()` method explaining Creatuity compiled interceptors limitation in CLI/primary scope

## 1.2.1 — 2026-10-19

### SeoCanonical

#### Fixed
- The home page is recognised the way Magento serves it: an `identifier|page_id` home page setting drops the `|page_id` and matches the page identifier in the store (only a purely numeric setting is a page id). 1.2.0 compared the page id, so with `home|5` set at website scope every other store view's own home page was not treated as the home page and `/` canonicalised to `/home`.

#### Tests
- Unit coverage of the home page setting forms: identifier, identifier with this or another store's page id, and a numeric page id.

### SeoDynamicDescriptions

_Released 2025-02-05._

#### Changed
- Package maintenance update

### SeoImagesFriendlyUrl

_Released 2026-02-06._

#### Changed
* Added `GetSeoFriendlyNameFromIndex` service injection to `Image` model for SEO name resolution from index
* Auto-resolve dependencies via ObjectManager in CLI scope when plugin interception is unavailable (`ensureDependencies()`)
* Fallback to parent `getFilePath()` when `filePath` not set in miscParams
* Added `Magento_Indexer` module dependency

#### Fixed
* Fixed admin panel and Elasticsearch/OpenSearch indexing issues with SEO image URLs (QLB-SEO-IMG-009)
* Improved `getImageFriendlyName()` to resolve SEO name from index when not preset in miscParams

#### Code Quality
* PHPStan level 5 and PHPCS Magento2 standard compliance fixes
* Removed `PATCHES.txt` file

### SeoRichSnippets

_Released 2025-10-21._

#### Fixed
- QM-290: Added null value protection in ProductService to prevent errors

## 1.2.0 — 2026-11-20

### SeoCanonical

_Released 2026-10-18._

#### Fixed
- Category and CMS pages requested through an alias canonicalise to the entity's own URL instead of to themselves: `catalog/category/view/id/4` and custom non-redirecting rewrites point at the category's store rewrite (a valid page number above one is kept), `cms/page/view/page_id/3` at the page's rewrite, and the configured home page (its own URL key, its internal route and the store root itself) at the store's base URL. Without a rewrite in the store the request path stays the fallback.
- A configurable child canonicalises to its parent only when that parent is enabled and visible in the store, assigned to its website and has a URL there; the lowest such parent id wins. Previously a disabled or hidden parent could become the canonical target.
- Product rewrite selection prefers a system-generated rewrite over a merchant's custom non-redirecting alias with the same standing.

#### Added
- `Api\ParentCanonicalResolverInterface`: the effective "configurable child → parent" decision for batches of products (policy enabled, option on, a parent live in the store), so sitemaps and hreflang follow the same decision as the product page.
- `Api\EntityCanonicalUrlResolverInterface` (optional resolver extension, implemented by `CanonicalUrlResolver`): `categoryUrl()` and `cmsPageUrl()`.

#### Tests
- Unit coverage of category/CMS aliases, the home page setting in both forms, the store root classified as the home page and rewrite preference; integration coverage of the parent locator against real products (hidden, store-disabled and live parents; both switches) and HTTP dispatch of category, CMS and home-page aliases.

### SeoDynamicDescriptions

_Released 2025-02-05._

#### Added
- **Category description positioning control** that allows moving category descriptions below product pagination for improved user experience
- Frontend event observer `MoveCategoryDescriptionBelowPagination` that relocates description block dynamically
- Configuration option to enable/disable description repositioning

#### Changed
- Enhanced layout handling with custom event system for description placement

### SeoImagesFriendlyUrl

_Released 2026-02-04._

#### Added
* Binary image parameters encoding via `ImageParamsEncoder` - packs image params into compact base32 strings (~18 chars) with HMAC-SHA256 signature, replacing long MD5 hashes in cache URLs
* ImageMagick optimization settings - configurable strip metadata, interlace mode, and chroma sampling factor via admin panel (`dev/image`)
* HMAC key generation data patch (`GenerateImageHmacKey`) for secure image parameter signing
* New admin configuration fields for ImageMagick optimizations (strip, interlace, sampling factor, JPEG quality)
* New source models: `Interlace` and `SamplingFactor` for admin configuration options

#### Changed
* On-demand single image resize when encoded params are detected in cache URL
* Reflection property caching for `miscParams` in `Image` model to avoid repeated reflection operations
* Frontend-specific DI preferences moved from global `di.xml` to `frontend/di.xml` for proper scope management
* Direct dependency injection into Image asset for `AREA_GLOBAL` context (fixes plugin resolution in `get.php` flow)

#### Fixed
* Fixed SQL injection vulnerability in `ModelProductGalleryCreateHandler` - replaced string concatenation with parameter binding
* Replaced `in_array($attrData, array_keys($newImages))` with `isset($newImages[$attrData])` for better performance

#### Code Quality
* PHP 8.1 constructor property promotion with `readonly` modifiers in `CreateHandler` and `ProductAttributes`
* Removed unused dependencies from `CreateHandler` (`Gallery`, `StoreManagerInterface`, `ResourceConnection`)
* Changed property visibility from `protected` to `private readonly` in `CreateHandler`

### SeoPlatform

#### Fixed
- **An idempotent rewrite update no longer fails its group.** MySQL reports CHANGED rows, so an `OPERATION_UPDATE`
  that re-applied the values a row already held affected 0 rows and was treated as "the row is gone": the group rolled
  back and its dependent callback (the url_key sync) never ran. The writer now checks the row inside the transaction:
  an existing row is a successful no-op (it adds 0 to the written count), only a missing row fails the group.
  `UrlRewriteWriterTest::testUnchangedUpdateCommitsAsNoOp`, `UrlRewriteWriterIntegrationTest::testUnchangedUpdateCommitsAsNoOp`.
- **A deadlock or lost connection mid-batch now surfaces as itself.** InnoDB rolls the whole transaction back on a
  deadlock, taking every savepoint with it; the writer then failed on `ROLLBACK TO SAVEPOINT` and threw "SAVEPOINT does
  not exist" instead of the deadlock, and a failing rollback of the batch could replace the original error too. The
  batch now stops at the first lost savepoint (no later group runs outside the transaction) and rethrows the group's
  original error; a rollback error never masks the failure being thrown.
  `UrlRewriteWriterTest::testLostSavepointAbortsTheBatchWithTheOriginalError`, `testRollbackFailureDoesNotMaskTheBatchError`.
- **Malformed rewrite requests are rejected before any SQL runs** (`\InvalidArgumentException`). An unknown operation was
  written as an INSERT, an update or delete without a `url_rewrite_id` addressed row 0, an empty or unknown update
  column set produced a broken UPDATE, and entries that were not requests were silently dropped. Callers that only
  send valid requests are unaffected. `UrlRewriteWriterTest::testMalformedOperationIsRejectedBeforeStartingTransaction`
  and siblings.
- **`UrlIdentity` keeps query strings and fragments byte for byte.** The trailing-slash normalisation stripped a slash
  from the end of the whole value, so `?referer=/checkout/` lost its last character and `?next=/` and `?next=` shared
  one key. Only a URL that ends in its path is normalised now. `UrlIdentityTest::testTrailingSlashInQueryIsPreserved`.
- **One failing URL signal provider no longer aborts the whole resolution.** `UrlStateResolver` skips and logs a
  provider that throws, keeps every other provider's evidence and reports the failure in the new
  `UrlState::getProviderFailures()` (keyed by the provider's DI item name). Contributions that share a `source` name no
  longer overwrite each other's evidence or rejected values: later ones are labelled `source#2`, `source#3`.
  `UrlStateResolverTest::testProviderFailureRetainsOtherEvidence`, `testDuplicateSourceNamesKeepEveryContributionsEvidence`.

#### Added
- `UrlRewriteWriteResult::isProvisional()`: true when the writer ran inside a transaction the caller opened on the same
  connection. Magento only physically commits the outermost transaction, so "committed" groups of a nested write
  survive only if the caller commits; a caller rollback removes them. The writer contract now documents transaction
  ownership, operation order, the no-op rule and the callback boundary (same-connection database work only).
  `UrlRewriteWriterDurabilityTest` proves it from a second database connection.

#### Changed
- Requires `magento/module-url-rewrite` and loads after `Magento_UrlRewrite` (`etc/module.xml`): the writer owns that
  module's `url_rewrite` table, which a stand-alone install did not guarantee. The package description no longer
  claims the platform depends only on `qoliber/seo-common`.
- `etc/di.xml` documents provider ordering: Magento sorts the `providers` items by `sortOrder`, so a provider that must
  win a field declares one.

### SeoRichSnippets

_Released 2025-10-20._

#### Added
- QM-291: Advanced e-commerce features
  - `AcceptedPaymentMethodService` for payment method rich snippets
  - `OnlineStoreService` for online store structured data
  - Collection page support with `CollectionPageService`
  - Search results page support with `SearchResultsPageService`
  - `OfferShippingDetailsService` for shipping information
  - Item list functionality with `ItemListService`

- QM-291: New configuration options
  - Item condition enumeration (New, Used, Refurbished, Damaged)
  - Refund type enumeration
  - Return fees enumeration
  - Return label source enumeration
  - Return method enumeration
  - Enhanced merchant return policy configuration (400+ lines)

- QM-291: Enhanced layout support
  - Added layouts for category views
  - Added layouts for product views
  - Added layouts for search results

#### Changed
- QM-291: Enhanced `MerchantReturnPolicyRichSnippetsService` with advanced features
- QM-291: Improved `ProductService` with better offer handling
- QM-291: Updated `ReviewService` with enhanced review data
- QM-289: Refactored ProductService for better code quality

## 1.1.16 — 2026-01-21

### SeoPrettyFilters

#### Fixed
- Category resolver improvements and bug fixes (QM-314)
- Category path resolver enhanced to handle edge cases

#### Changed
- Code quality improvements across multiple files
- Refactored request params provider
- Enhanced attribute fetcher functionality
- Improved pattern processor logic
- Updated CMS page block plugin
- Optimized result block plugin
- Improved layered navigation block navigation state handling

## 1.1.15 — 2025-10-28

### SeoPrettyFilters

#### Fixed
- Pattern processor bug fix in abstract pattern processor

## 1.1.14 — 2025-10-20

### SeoPrettyFilters

_Released 2025-08-08._

#### Fixed
- Request params provider improvements
- Category URL handling enhancements

### SeoRichSnippets

#### Fixed
- Minor ProductService improvements

## 1.1.13 — 2025-07-18

### SeoPrettyFilters

_Released 2025-07-14._

#### Changed
- CMS page block plugin enhancements

### SeoRichSnippets

#### Fixed
- QM-204: Fixed product image handling for Hyva theme compatibility

## 1.1.12 — 2025-07-14

### SeoPrettyFilters

#### Changed
- Improved CMS page block plugin
- Result block plugin code improvements

### SeoRichSnippets

_Released 2025-05-02._

#### Fixed
- LocalBusinessService improvements

## 1.1.11 — 2025-07-14

### SeoPrettyFilters

#### Added
- New CMS page block plugin for better CMS page integration

#### Changed
- Result block plugin improvements

### SeoRichSnippets

_Released 2025-05-02._

#### Fixed
- LocalBusinessService fixes

## 1.1.10 — 2025-07-09

### SeoPrettyFilters

#### Fixed
- Layered navigation block navigation state fixes
- Result block plugin improvements

### SeoRichSnippets

_Released 2025-03-31._

#### Fixed
- ProductService minor improvements

## 1.1.9 — 2025-07-09

### SeoPrettyFilters

#### Fixed
- Layered navigation block navigation state cleanup

### SeoRichSnippets

_Released 2025-01-30._

#### Changed
- QM-109: Enhanced AbstractRichSnippetsService with better error handling and code structure

## 1.1.8 — 2025-07-08

### SeoPrettyFilters

#### Added
- New result block plugin for enhanced filtering
- Pattern processor interface improvements

#### Changed
- Enhanced abstract pattern processor with additional functionality
- Complex pattern processor improvements
- Short pattern processor enhancements
- Layered navigation block navigation state improvements

### SeoRichSnippets

_Released 2025-01-15._

#### Changed
- QM-96: Updated license information in composer.json

## 1.1.7 — 2026-03-07

### SeoImagesFriendlyUrl

_Never tagged: these changes first shipped in 2.0.0._

* **Security fix**: Parameterized SQL query in `ModelProductGalleryCreateHandler` — replaced direct string concatenation in WHERE clause with bound parameters to prevent SQL injection
* **Performance fix**: Added in-memory cache to `GetSeoFriendlyNameFromIndex` — eliminates N+1 query problem when rendering multiple product images on a single page
* **Stability fix**: Added `ReflectionException` catch in `Image::getMisc()` — prevents fatal error if parent class property changes in future Magento versions

### SeoPrettyFilters

_Released 2025-07-03._

#### Added
- Catalog search controller result index plugin for search page support (QM-199)
- Request params provider interface and implementation
- Support for search result pages with SEO-friendly URLs

#### Changed
- Refactored URL generator for better modularity
- Improved catalog product list toolbar plugin
- Major improvements to abstract pattern processor
- Enhanced pattern processing logic

#### Removed
- Removed unused code from Router controller

### SeoRichSnippets

_Released 2025-01-07._

#### Fixed
- QM-91: Fixed offer generation in AbstractRichSnippetsService

## 1.1.6 — 2026-01-31

### SeoImagesFriendlyUrl

* Limit frontend resize generation to current store/theme when available.
* Exclude SEO-friendly name from image cache hash to reduce duplicate variants.
* Use indexed SEO name for product image rendering to avoid multiple URLs.

### SeoPrettyFilters

_Released 2025-05-27._

#### Changed
- Updated author information in composer.json and source files

### SeoRichSnippets

_Released 2024-12-20._

#### Fixed
- LocalBusinessService code improvements

## 1.1.5 — 2025-03-12

### SeoPrettyFilters

#### Changed
- Pattern processor improvements and refactoring (QM-128)
- Suffix resolver optimization
- Abstract pattern processor code cleanup
- Enhanced configuration handling

### SeoRichSnippets

_Released 2024-12-20._

#### Changed
- Enhanced AbstractRichSnippetsService
- Improved LocalBusinessService
- Updated ReviewService with better data handling

## 1.1.4 — 2025-02-14

### SeoPrettyFilters

#### Changed
- Code improvements in select converter
- Filter option model enhancements
- Short attribute resolver improvements
- Attribute fetcher refactoring and optimizations

### SeoRichSnippets

_Dated 2024-12-20. Never tagged: these changes first shipped in 1.1.5._

#### Changed
- Minor improvements and dependency updates

## 1.1.3 — 2025-01-15

### SeoPrettyFilters

#### Changed
- License update (QM-96)

### SeoRichSnippets

_Dated 2024-12-06. Never tagged: these changes first shipped in 1.1.5._

#### Added
- QM-79: Enhanced LocalBusinessService with 95+ lines of new functionality

#### Removed
- Moved some functionality from OrganizationService to LocalBusinessService

## 1.1.2 — 2025-10-14

### SeoImagesFriendlyUrl

* Removing `catalog_product_entity_media_gallery_value` table dependency

### SeoPrettyFilters

_Released 2024-12-20._

#### Fixed
- Code cleanup and formatting improvements
- Boolean attribute resolver fixes
- Category path resolver improvements
- Attribute fetcher optimizations
- Category URL service improvements

### SeoRichSnippets

_Released 2024-10-20._

#### Added
- IT-31: Added source repository URL to composer.json

## 1.1.1 — 2026-11-23

### AttributeSeoPath

#### Fixed
- **Removing a store view's translated option label erased the store view's SEO path.** Magento rewrites an option's
  label rows on every save, and 1.1.0 put a store view's path back only when the save wrote that store view's label
  again or the row had no label already. A surviving option now keeps every store view's path the save did not set
  itself: the store view keeps its row with no label of its own, so it reads the default label and keeps its URL
  segment. A path cleared in the admin attribute form stays cleared; a deleted option leaves nothing.
- **REST, GraphQL and indexers read an empty label for a store view that has an SEO path but no translation.** The
  option collection plugin that falls back to the default label ran on the storefront and in the admin only; the
  option API (`GET /V1/products/attributes/{code}/options`), GraphQL attribute metadata and the search indexers
  (OpenSearch and ElasticSuite filter labels) used Magento's query, which takes a store view's row whenever one exists.
  The plugin now applies in every area, and runs after Magento's own store filter instead of replacing it. GraphQL
  layered navigation and the flat catalog index, which read labels with queries of their own, fall back the same way.

#### Upgrade
- Run `bin/magento setup:upgrade`. A store with compiled interceptors (Mage-OS) must also clear
  `generated/staticcache` (or all of `generated/`): it caches each area's plugin list, and a stale one keeps the
  option collection plugin out of REST, GraphQL and the indexers. Reindex `catalogsearch_fulltext` so the search
  engine's filter labels of such store views are written again.

#### Tests
- Integration: new `LabelFallbackTest` (REST option list, GraphQL attribute metadata and layered navigation, indexers
  and the flat index read the default label for a path-only store view row; a store view's own label still wins; six
  of its seven cases fail on 1.1.0); `NativeOptionUpdateTest` removing a store view's label through the option API
  keeps its path.
- Unit: `OptionPathTest` expects the removed label's path back.

### SeoDynamicDescriptions

_Released 2025-01-15._

#### Changed
- Updated license to Apache-2.0

### SeoPlatform

_Released 2026-11-10._

GitLab's 1.1.0 with qoliber Catalog Pro's local patches P9 (to be upstreamed).

#### Tests
- PHPUnit 12 (local patch P9 of qoliber Catalog Pro, test-pipeline audit TP5): `ReasonCodeTest` declares its data
  provider as a `#[DataProvider]` attribute (PHPUnit 12 ignores `@dataProvider`, so the case failed with
  `ArgumentCountError`); collaborators without expectations are stubs (`createStub()`), and `UrlRewriteWriterTest`,
  whose shared connection double only some cases assert on, opts out of the mock-without-expectations notice
  (`#[AllowMockObjectsWithoutExpectations]`). No PHPUnit notice left; test-only, runs on PHPUnit 10.5 (Magento 2.4.8)
  too.

### SeoPrettyFilters

_Released 2024-12-19._

#### Added
- Meta robots configuration options (QM-78)
- Meta tag source model for admin configuration
- Frontend plugin to modify meta robots tags
- New admin system configuration for SEO meta tags

#### Changed
- Extended config interface with meta robots methods
- Enhanced config model with meta tag handling
- Updated ACL and menu configuration

### SeoRichSnippets

_Released 2024-10-10._

#### Added
- QM-69: Enhanced organization schema support
- Added configuration for organization legal name and same-as URLs
- Improved LocalBusinessService integration with organization data

#### Changed
- Updated AbstractRichSnippetsService for better organization handling
- Enhanced i18n translations

## 1.1.0 — 2026-11-20

### AttributeSeoPath

#### Fixed
- **Saved option SEO paths survived only admin saves.** Magento saves an option's labels by deleting its rows and
  writing new ones, and 1.0.14 put the paths back only from the admin attribute form: an option label changed through
  the option API (`ProductAttributeOptionUpdateInterface`, REST, a PIM, an import) silently dropped the option's
  default and localized paths. The paths of the options a save rewrites are now kept before it and put back after it,
  whoever saves the attribute (both save observers are global now). A store view's path-only row is written again, a
  store view whose label the save removed loses its path with it, and a deleted option leaves nothing.
- **A store view's URL key did not filter a fresh listing request.** Core's attribute filter reads its request variable
  when it is applied, before anything asked for the URL key: the filter links carried the key (`?farbe=12`) while a
  request with it applied no filter. The key is now read when the filter is applied. A request with the attribute code
  keeps filtering, so links published before the key was set keep working.
- **The attribute form could write a path to another attribute's option**, and failed the save (foreign key error) for
  a store view that no longer exists or an option deleted in the same save. Paths are now written only for the
  attribute's own existing options and existing store views.

#### Changed
- **Checked on save; the attribute is not saved and the admin shows why:** a URL key that is a listing parameter (`p`,
  `q`, `id`, `cat`, `product_list_*`) or already the code or URL key of another attribute in that store view; an option
  SEO path longer than 255 characters (it was cut silently); one SEO path given to two options of the attribute in a
  store view. Only values the save changes are checked, so a clash saved before does not block an unrelated save.
- URL keys are read once into keyed maps (no attributes x store views table, no scan per lookup). A saved URL key
  resolves to its attribute before an attribute code does; of two attributes saved with one key, the lower ID wins.
- `composer.json` declares the Magento packages the module uses (framework, backend, catalog, eav, store), a
  description, the `magento2-module` type and the `proprietary` license identifier.
- Admin: the URL keys tab says what a key replaces and what it cannot be.

#### Tests
- Integration: new `NativeOptionUpdateTest` (option API label update keeps the default and localized paths and a
  path-only row; a deleted option leaves no rows), new `UrlKeyFilterTest` (a fresh request with the URL key, and one
  with the attribute code, applies the filter; taken keys are refused).
- Unit: `OptionPathTest` (foreign option, missing store view, too-long and shared paths, dropped paths put back), new
  `Repository/AttributeUrlKeysTest`; the observer tests use a plain model instead of a mock without expectations.

### SeoCanonical

_Released 2026-10-04._

- Register a store-scoped canonical policy signal provider with entity, decision code and reason evidence.

### SeoDynamicDescriptions

_Released 2024-12-17._

#### Added
- **Enhanced filter attribute parsing** that extracts selected filter values from URL parameters to use in dynamic SEO content
- **Backup field mechanism** that falls back to alternative fields (like category name) when primary SEO field is empty
- **Multi-attribute support in SEO templates** allowing use of multiple category attributes (e.g., {name}, {description}) in meta tags
- **ElasticSuite integration detection** to properly handle layered navigation with ElasticSearch-powered filtering
- Configuration option for moving category descriptions below pagination
- Support for dynamic replacement of attribute placeholders with actual filtered values

#### Changed
- Refactored `AbstractPlugin` to support multiple backup fields and more sophisticated text replacement
- Enhanced meta title, meta description, and page heading generation with filter-aware content
- Improved SEO filters attribute handling to dynamically insert selected filter labels into templates
- Updated category form UI with better attribute management

#### Technical Implementation
- Added `formatSeo()` method that processes category attributes and replaces template placeholders with real values
- Implemented attribute text caching to improve performance when processing multiple placeholders
- Enhanced EAV config usage to fetch attribute options and labels for dropdown/select attributes
- Created data patches for `seo_filters` and `seo_header` category attributes

### SeoHrefLang

_Dated 2026-03-06. Never tagged: these changes first shipped in 2.0.0._

#### Added
- **x-default hreflang tag**: Configurable store view selection for `hreflang="x-default"` — tells search engines which version to show when user's language doesn't match any available store
- Admin config field "x-default Store View" under Stores > Configuration > Qoliber SEO > HrefLangs > Settings

### SeoInspector

#### Fixed
- `bin/magento qoliber:seo:audit`: one URL that could not be fetched or inspected aborted the whole batch with a generic error, losing the other reports and the resume cursor. It now becomes a report with `"status": "failed"` and one `inspection.failed` error finding (a fixed message, never the underlying exception text); the other reports and `next_after_id` are kept, and the command exits with 1 as for any error finding. An explicitly requested `--url` outside the store view is still a usage error (exit 2).
- One 20-second time budget now covers the whole inspection of a URL: the page, robots.txt, the canonical target and up to 12 hreflang peers. Every storefront request is limited to the time that is left, robots.txt and the canonical target are checked before the peers, and whatever no longer fits is reported as unverified. Previously only the peer loop was bounded, so a slow storefront could hold an admin request for close to a minute.
- PHP 8.5: the storefront fetcher no longer calls `curl_close()`, which is deprecated in 8.5 (and a no-op since 8.0); the handle is released when it goes out of scope.
- Canonical and hreflang targets are assigned to the store view whose base URL matches the most specific path, judged by the base URL (default, secure or unsecure) that actually matched. Previously the store with the longest default base URL won even when it matched only through a shorter one. Store views sharing an origin and path are ambiguous: the canonical target prefers the inspected store view, an hreflang peer is reported as unverified instead of being inspected in a guessed store view.
- Generated-sitemap membership (up to 200,000 URLs per store view) is kept in memory for at most two store views per process.

#### Changed
- `composer.json` declares the direct requirements `magento/framework`, `magento/module-url-rewrite` (the CLI reads `url_rewrite`), `symfony/console`, `ext-libxml` and `ext-zlib` (gzip sitemaps).
- `README.md` is self-contained: install, admin and CLI usage, report format, exit codes, limits and failure handling.
- `HttpFetcher` and `Inspector` take the new `Model\InspectionBudget` in their constructors (DI resolves it). `UrlScope::storeFor()` accepts an optional preferred store view ID.

#### Tests
- Unit: a failed middle URL keeps both other reports and the cursor in JSON and CSV (`AuditCommandTest`); the real cURL fetcher against local sockets only: refused connection without deprecations (run on PHP 8.3 and 8.5), a silent peer cut off at the remaining budget, no request once the budget is spent (`HttpFetcherTest`); slow peers stop at the budget and robots.txt is read first (`InspectorBudgetTest`); matched-prefix ranking and shared-origin ambiguity (`UrlScopeTest`).
- Integration: the inspection action through Magento's admin routing with an in-process fetcher: authorized POST inspects, GET and a forged form key fetch nothing, ACL allowed/denied (`RunControllerTest`).

### SeoOpengraphTags

_Dated 2026-03-06. Never tagged: these changes first shipped in 2.0.0._

#### Fixed
- **Null safety in ResolverProduct**: `getCurrentProduct()` now returns nullable `?Product` — prevents fatal error when registry has no product
- **Null safety in ResolverCategory**: `getCurrentCategory()` now returns nullable `?Category` — prevents fatal error when registry has no category
- **Product image `no_selection` check**: Filters out Magento's `no_selection` placeholder value from `og:image`

#### Added
- **`og:site_name`** tag on all pages — uses store name from admin config with fallback to store view name
- **Product-specific OG type**: Product pages now render `og:type="product"` instead of `"website"`
- **Product price tags**: `product:price:amount` and `product:price:currency` for richer social previews
- **Product availability**: `product:availability` tag when product is in stock
- **Category image**: `og:image` tag on category pages when a category image is set
- **Twitter Card support**: `twitter:card`, `twitter:title`, `twitter:description`, `twitter:image` on product pages — uses `summary_large_image` when image is available
- Template now correctly uses `name` attribute for Twitter tags and `property` for OG/product tags

#### Changed
- All resolvers modernized to PHP 8.1 constructor property promotion
- Tag keys now use full property names (`og:title` instead of `title`) for flexibility with mixed tag types

### SeoPlatform

_Released 2026-10-04._

- Add optional provider evidence and exact URL identities for read-only inspection; preserve legacy providers and identity defaults.

### SeoPrettyFilters

_Released 2024-12-02._

#### Added
- Source URL to composer.json (IT-31)

#### Changed
- Version update to 1.1.0

### SeoRedirects

#### Fixed
- **An edited, disabled or deleted wildcard rule can no longer be served from a stale cache.** The wildcard candidate
  cache was cleaned inside the save/delete transaction; a storefront request on another connection could refill it
  from the still-committed old rules before the commit, and that stale set then stayed until the next redirect write.
  The cache is now cleaned again once the outermost transaction has committed, and cached sets expire after an hour,
  which bounds any refill that races a write. `Test/Integration/Model/WildcardCacheCommitTest`,
  `WildcardCandidateCacheTest::testCachedSetsExpireSoAConcurrentStaleRefillIsBounded`.
- **A malformed `store_id` in a CSV import no longer widens a rule to every store view.** The cell was cast to an
  integer, so `1;2`, `default` or `-1` became store 0 ("all store views") and could overwrite the all-stores rule with
  the same path. An empty cell (or `0`) still means all store views; anything other than a single store ID number now
  skips the row before anything is looked up or saved. `RedirectCsvConverterTest::testStoreScopeIsParsedStrictly`,
  `Test/Integration/Console/RedirectImportScopeTest`.
- **A failing hit counter can no longer break a redirect.** The responder incremented the rule's hit count before it set
  the 301/302/410 answer; a lock wait or database error on that one hot row turned a valid redirect into an error page.
  The answer is set first and the count is written last, best-effort, with a logged warning on failure.
  `ResponderTest::testTelemetryFailureCannotBreakTheRedirect`, `testTelemetryFailureCannotBreakAGoneAnswer`.
- **Only a duplicate-key race is folded into the 404 log's existing row.** Every exception on the first-seen insert was
  treated as that race and followed by an update that could match nothing, so real storage errors vanished. Other
  errors now reach the 404 logger, which logs them (store and error only, not the visitor's path or headers).
  `Log404Test`, `NotFoundLoggerTest::testStorageFailureIsLoggedWithoutTheVisitorsRequestData`.

#### Security
- **The 404 log stores less visitor data.** The referrer is reduced to scheme, host and path: credentials, the query
  string and the fragment (which can carry tokens, e-mail addresses or search terms) are no longer stored. The
  "Log Unmatched 404s" setting now explains what is captured and how long it is kept. `NotFoundLoggerTest`.

#### Added
- `bin/magento qoliber:seo-redirects:import --strict` exits with an error code when any row was skipped (the valid rows
  are still imported). Without it the exit code stays 0, as before. Every skipped row is now reported with its CSV line
  number, and the command help documents the columns and their defaults.

### SeoRichSnippets

_Released 2024-09-27._

#### Changed
- **Major refactoring**: Migrated from Resolver pattern to Service pattern
- Renamed `RichSnippetsResolverInterface` to `RichSnippetsServiceInterface`
- Restructured service architecture for better maintainability

#### Added
- **New Services**:
  - `ProductService` - Complete product rich snippets handling
  - `WebsiteService` - Website-level structured data
  - `ContactPointService` - Contact information structured data
  - `OrganizationService` - Organization schema support
  - `MerchantReturnPolicyRichSnippetsService` - Return policy structured data
  - `AggregateRatingService` - Product rating aggregation
  - `BrandRichSnippetsService` - Brand information

- **New Configuration**:
  - Brand attribute selection
  - Product description source configuration
  - Item condition settings
  - Return policy enumeration
  - General settings with comments
  - 200+ lines of new system configuration

- **New Utilities**:
  - `JsonUnescaped` serializer for proper JSON output

#### Changed
- Enhanced `AbstractRichSnippetsService` with 120+ lines of improvements
- Refactored `BreadcrumbListService` for better efficiency
- Improved `OfferService` with enhanced offer data
- Updated `ReviewService` with better review handling
- Renamed template from `richSnippets.phtml` to `rich-snippets.phtml`
- Updated DI configuration with new service bindings
- Enhanced module configuration structure

#### Removed
- `AggregateRatingResolver` (replaced with AggregateRatingService)
- `OrganizationResolver` (replaced with OrganizationService)
- `ProductResolver` (replaced with ProductService)

## 1.0.14 — 2026-11-10

### AttributeSeoPath

GitLab's 1.0.13 with qoliber Catalog Pro's local patches P17, P23 (to be upstreamed).

#### Fixed
- **A new option of a visual or text swatch attribute saves** (local patch P23 of qoliber Catalog Pro). 1.0.13 matched
  the saved new options to their SEO paths through the keys of `option[value]`, but swatch grids post their labels as
  `optionvisual[value]` or `optiontext[value]`: adding an option to Color or Size threw "Unable to match saved attribute
  options to their SEO paths" and rolled the whole attribute save back. The keys now come from whichever grid was
  posted, and an SEO path never aborts the attribute's save: new options that cannot be matched only leave their paths
  out. `Test/Unit/Observer/Adminhtml/SwatchOptionPathTest`, and `Test/Integration/SwatchOptionPathsTest` through
  Magento's own save (Swatches plugins, new option IDs, swatch values) for a visual and a text swatch.
- **URL keys saved on the attribute's SEO tab are kept** (local patch P17 of qoliber Catalog Pro). The plugin that stores
  them was declared for the storefront area only, so an admin save said "You saved the product attribute." and dropped
  the keys. It is now declared globally, which also clears them when an attribute is deleted in the admin. Only a key
  that changed is written, in lowercase.

## 1.0.13 — 2026-10-19

### AttributeSeoPath

#### Fixed
- `composer.json` no longer hard-codes a `source` block pointing at the `master` branch. Composer keeps a package's own `source` over the repository's, so installing any version from the Git repository checked out `master` instead of that version, and `composer.lock` recorded `master` instead of the tag's commit. The source now comes from the repository, so every version installs its own tagged code.

## 1.0.12 — 2026-10-03

### AttributeSeoPath

- Save localized SEO paths independently of translated labels; retain native label fallback and existing translations.
- Read saved SEO paths in the admin option editor and apply independent label/path fallback in storefront collections.
- Map temporary admin option IDs to their saved IDs inside the attribute transaction; preserve distinct new paths even when labels match.
- Delete attribute URL keys from the module table, preserving Magento stores.
- Invalidate repository state after writes/deletes; clear explicit empty localized keys and option paths.
- Add package-local unit and Magento integration lifecycle regressions.

## 1.0.11 — 2026-07-14

### AttributeSeoPath

#### Changed
- Declared PHP 8.5 support (`~8.5.0` added to the `php` constraint); verified 8.5-clean — php8.5 `-l` and the unit suite both pass.
- Bounded the `qoliber/core` dependency constraint (`*` → `^1.0`) so the package resolves against a compatible Core major instead of any version.
- Declared the supported PHP versions in `composer.json` (`~8.1.0||~8.2.0||~8.3.0||~8.4.0`, previously unconstrained), including PHP 8.4; verified 8.4-clean, no code change required.
- PHPStan level-8 cleanups (strict comparisons over `empty()`, redundant-cast and `in_array` strictness); no behaviour change.

## 1.0.10 — 2025-10-29

### AttributeSeoPath

#### Fixed
- Fixed interface implementation for admin panel compatibility with Adobe Commerce Cloud edition
- Resolved dependency injection configuration for admin scope

#### Changed
- Moved di.xml configuration to frontend scope for better separation of concerns
- Added separate di.xml for adminhtml scope

## 1.0.9 — 2026-03-06

### AttributeSeoPath

_Released 2025-09-10._

#### Changed
- Moved di.xml to frontend directory to ensure compatibility with Adobe Commerce Cloud edition
- Improved module configuration structure for multi-scope deployments

### SeoDynamicTags

_Never tagged: these changes first shipped in 2.0.0._

#### Fixed
- **DB constraint name typo**: Renamed unique constraint from `QOLIBER_REDIRECTS_REQUEST_PATH_STORE_ID` to `QOLIBER_SEO_DYNAMIC_TAGS_REQUEST_PATH_STORE_ID` — fixes naming inconsistency left over from copy-paste

### SeoFriendlyProductUrls

_Never tagged: these changes first shipped in 2.0.0._

#### Fixed
- **301 redirect preservation**: Scoped redirect cleanup to only delete redirects created by this module (`description = 'Generated by Qoliber_SeoFriendlyProductUrls'`), preventing accidental deletion of manually-created 301 redirects
- **URL conflict detection**: Added deduplication of generated URL keys — resolves within-batch duplicates and checks against existing URL rewrites to prevent products from overwriting each other's URLs

## 1.0.8 — 2026-11-10

### AttributeSeoPath

_Released 2025-05-28._

#### Changed
- Updated author information in all module files to Qoliber standards
- Improved code documentation and file headers

#### Fixed
- Fixed repository implementations for better data retrieval performance

### SeoDynamicTags

_Released 2025-05-27._

#### Changed
- Updated package author information

### SeoFriendlyProductUrls

_Released 2025-06-23._

#### Changed
- Package maintenance update

### SeoRedirects

GitLab's 1.0.3 with qoliber Catalog Pro's local patches P9, P16 (to be upstreamed).

#### Fixed
- The module loads after `Magento_CmsUrlRewrite` too (`etc/module.xml` sequence, and `magento/module-cms-url-rewrite`
  in `composer.json`; local patch P16 of qoliber Catalog Pro, release code review 30). `CmsPageUrlKeyChange` reads
  url_rewrite on `cms_page_save_after`, where that module's `process_url_rewrite_saving` observer rebuilds the page's
  rows. The order held only alphabetically; flipped, the page's old live identifier would have counted as taken and
  its redirect would have been dropped without a log line. `Test/Unit/Module/ModuleSequenceTest`.
- **A rename seen by more than one store view got no auto-redirect at all** (local patch P16 of qoliber Catalog Pro,
  found by its local tuple harness on the frozen Catalog Pro 1.0.0-rc6). The observers build a redirect pair for every
  store view of the entity and write them as one url_rewrite group; a pair whose old request path already was a row of
  its store view — the live URL of a store view whose url_key did not change, or the 301 Magento already wrote for the
  rename — hit url_rewrite's unique key, and the platform writer rolled the whole group back, so no store view kept a
  redirect from the old URL (Magento 2.4.8 writes no 301 of its own there) and an error was logged
  ("url_rewrite group product:1 … was rolled back: … Duplicate entry"). `RedirectRegistrar` now leaves such a pair
  out: it asks the new `Model\ResourceModel\TakenRequestPaths` which old paths are already rows of their store views
  (wired in `etc/di.xml`; the constructor argument `takenRequestPaths` is optional, so direct construction keeps
  working). `Test/Integration/Observer/ProductRenameStoreViewsTest`,
  `RedirectRegistrarTest::testAPairWhoseOldPathIsTakenInItsStoreIsLeftOut`.
- The taken paths are read once for every store of the pairs (one `TakenRequestPaths` query for up to 200 old paths
  and their store ids), never once per store inside the store loop (release code review 17 of qoliber Catalog Pro).
- The module loads after `Magento_CatalogUrlRewrite` (`etc/module.xml` sequence, and `magento/module-catalog-url-rewrite`
  in `composer.json`): its `process_url_rewrite_saving` observers on `catalog_product_save_after` and
  `catalog_category_save_after` rebuild the entity's url_rewrite rows before the auto-redirect observers read them.
  The order held only alphabetically; flipped, the renamed store view's old live path would have counted as taken
  and its redirect would have been dropped without a log line. `Test/Unit/Module/ModuleSequenceTest`.
- A pair whose old path is taken under the database's comparison but not byte for byte (`café.html` against an
  existing `cafe.html`) is left out too (release code review 19 of qoliber Catalog Pro, external review). The taken
  paths were keyed in PHP by `mb_strtolower()`, while url_rewrite's `request_path` collation (`utf8mb4_general_ci`,
  accent- and case-insensitive) treats both as one path: the insert hit the unique key and the whole group, with the
  valid redirect next to it, was rolled back. The new `Model\ResourceModel\TakenRequestPaths` compares each old path
  in SQL against the column (one flag per path, so the column's collation decides; one query for up to 200 paths,
  through the unique index) and names the taken paths exactly as given.
  `Test/Integration/Model/AutoRedirect/RedirectRegistrarCollationTest`, `Test/Unit/Model/ResourceModel/TakenRequestPathsTest`,
  `RedirectRegistrarTest::testAnOldPathTheDatabaseFindsTakenIsLeftOutHoweverItIsSpelled`.

#### Tests
- PHPUnit 12 (local patch P9 of qoliber Catalog Pro, test-pipeline audit TP5): `RedirectRepositoryValidationTest`
  (integration) declares its data provider as a `#[DataProvider]` attribute (PHPUnit 12 ignores `@dataProvider`, so
  the case failed with `ArgumentCountError`); collaborators without expectations are stubs (`createStub()`), and the
  four classes whose shared doubles only some cases assert on opt out of the mock-without-expectations notice
  (`#[AllowMockObjectsWithoutExpectations]`); `isType('string')` (deprecated in PHPUnit 12) is a callback constraint.
  No PHPUnit notice or deprecation left (47 and 1); test-only, runs on PHPUnit 10.5 (Magento 2.4.8) too.

## 1.0.7 — 2025-06-23

### AttributeSeoPath

_Released 2025-05-27._

#### Changed
- Updated author information across all module components

### SeoDynamicTags

_Released 2025-01-15._

#### Changed
- Updated license to Apache-2.0

### SeoFriendlyProductUrls

#### Changed
- Package maintenance update

## 1.0.6 — 2025-08-29

### AttributeSeoPath

_Released 2025-03-12._

#### Fixed
- Fixed adminhtml URL keys tab display and functionality
- Improved URL key management interface in attribute edit form

### SeoAdvisorAi

#### Changed
- Updated composer.json metadata

#### Fixed
- Enhanced error handling for AI provider API failures with detailed error messages and status codes

### SeoDynamicTags

_Released 2024-12-02._

#### Fixed
- Tag reinitialization for package versioning

### SeoFriendlyProductUrls

_Released 2025-05-27._

#### Changed
- Updated package author information

### SeoHrefLang

_Released 2025-05-27._

#### Changed
- Updated package author information

## 1.0.5 — 2025-03-14

### AttributeSeoPath

_Released 2025-02-16._

#### Changed
- Code quality improvements and refactoring

### SeoAdvisorAi

_Released 2025-03-03._

#### Added
- **Google Gemini AI integration** as alternative to ChatGPT, offering built-in client support for Gemini 1.5 Flash and Gemini 1.5 Pro models
- **Custom Gemini API client** (`GeminiClient`) with native support for Google's Generative Language API, including quota violation handling and retry mechanisms
- **Advanced error handling** with detailed extraction of API error codes, messages, and retry-after information for better debugging
- **Multi-provider architecture refactoring** that allows switching between AI providers (ChatGPT, Gemini) through system configuration
- Configuration option to select AI model variant (Flash vs Pro for Gemini, GPT-3.5 vs GPT-4 for ChatGPT)

#### Changed
- Refactored ChatGPT client to implement common `ClientInterface` for better extensibility
- Enhanced AI response processing with improved Parsedown markdown-to-HTML conversion
- Updated admin configuration to support provider selection and model configuration

### SeoDynamicTags

_Released 2024-10-10._

#### Changed
- Version update

### SeoFriendlyProductUrls

#### Changed
- Automated version update

### SeoHrefLang

_Released 2025-01-15._

#### Changed
- Updated license to Apache-2.0

### SeoPrettyFiltersElasticSuite

_Released 2025-02-14._

#### Changed
- Package maintenance update

## 1.0.4 — 2025-05-27

### AttributeSeoPath

_Released 2025-01-15._

#### Fixed
- Fixed attribute frontend input validator to properly handle different attribute types
- Improved validation logic for SEO-friendly URL generation

### SeoAdvancedSitemaps

#### Changed
- Updated package author information

### SeoAdvisorAi

_Released 2025-01-15._

#### Changed
- Updated license to Apache-2.0

### SeoDynamicDescriptions

_Released 2024-12-02._

#### Fixed
- Tag reinitialization for package versioning

#### Added
- Source URL to composer.json

### SeoDynamicTags

_Released 2024-10-09._

#### Changed
- Version update

### SeoFriendlyProductUrls

_Released 2025-01-15._

#### Changed
- Updated license to Apache-2.0

### SeoHrefLang

_Released 2024-12-02._

#### Fixed
- Tag update for package versioning

### SeoImagesFriendlyUrl

_Released 2024-12-02._

* Fixed backward compatibility issue  with `Magento\Catalog\Model\View\Asset\Image`

### SeoOpengraphTags

_Released 2025-01-15._

#### Changed
- Updated license to Apache-2.0

### SeoPrettyFilters

_Released 2024-10-10._

#### Added
- LICENSE.md file with license information
- Updated composer.json with license reference

### SeoPrettyFiltersElasticSuite

_Released 2025-02-13._

#### Added
- **Enhanced pattern processing** with improved handling of complex attribute combinations in filter URLs
- Better error handling and validation in pattern processors

#### Changed
- Refactored `ComplexPatternProcessor` to improve filter URL generation and removal logic
- Enhanced `ShortPatternProcessor` with better attribute array construction for multi-select filters
- Improved price filter handling to maintain price ranges in clean URL format

#### Fixed
- Fixed issues with complex attribute resolution when combining multiple filter types
- Corrected SEO path removal logic to ensure proper filter toggling in URLs

## 1.0.3 — 2026-10-03

### AttributeSeoPath

_Released 2024-12-20._

#### Changed
- Updated license information to Qoliber commercial license

### SeoAdvancedSitemaps

_Released 2025-01-15._

#### Changed
- Updated license to Apache-2.0

### SeoAdvisorAi

_Released 2024-12-02._

#### Fixed
- Tag reinitialization for package versioning

### SeoDynamicDescriptions

_Released 2024-10-09._

#### Changed
- Version update

### SeoDynamicTags

_Released 2024-10-08._

#### Changed
- Version update

### SeoFriendlyProductUrls

_Released 2025-01-10._

#### Changed
- Version update

### SeoHrefLang

_Released 2024-10-09._

#### Changed
- Version update

### SeoOpengraphTags

_Released 2024-12-02._

#### Fixed
- Tag update for package versioning

#### Added
- Source URL to composer.json

### SeoPrettyFilters

_Released 2024-10-08._

#### Changed
- Abstract pattern processor refactoring and improvements
- Admin menu configuration updates

### SeoPrettyFiltersElasticSuite

_Released 2025-01-15._

#### Changed
- Updated license to Apache-2.0

### SeoRedirects

#### Fixed
- Render editable redirect fields and submit Save through the native UI form POST; verify admin create/edit, scoped queries and Save and Continue through browser acceptance.
- Declare admin redirect field defaults through schema-valid UI configuration.
- Return HTTP 410 when a redirect chain terminates in Gone, retaining hit accounting for the original rule.
- Preserve configured relative destination queries and fragments through persistence and chain resolution.

## 1.0.2 — 2026-10-03

### AttributeSeoPath

_Released 2024-12-02._

#### Changed
- Updated license information in composer.json

### SeoAdvancedSitemaps

_Released 2024-12-02._

#### Fixed
- Tag reinitialization for package versioning

### SeoAdvisorAi

_Released 2024-10-07._

#### Changed
- Updated composer.json configuration

#### Added
- Source URL to composer.json

### SeoCanonical

_Never tagged: these changes first shipped in 1.1.0._

#### Fixed
- Keep valid category pagination while removing tracking and Magento toolbar parameters; normalize page one and sort query keys.
- Resolve product aliases using store-scoped non-redirecting rewrites. Add the optional ProductCanonicalUrlResolverInterface without changing existing resolver implementations.

### SeoDynamicDescriptions

_Released 2024-09-25._

#### Changed
- Version update

### SeoDynamicTags

_Released 2024-09-09._

#### Changed
- Version update

#### Added
- Source URL to composer.json

### SeoFriendlyProductUrls

_Released 2025-01-09._

#### Changed
- Version update

### SeoHrefLang

_Released 2024-09-25._

#### Changed
- Version update

### SeoOpengraphTags

_Released 2024-09-25._

#### Changed
- Version update

### SeoPrettyFilters

_Released 2024-10-08._

#### Fixed
- Short pattern processor fixes
- Admin menu configuration corrections

### SeoPrettyFiltersElasticSuite

_Released 2024-12-02._

#### Fixed
- Tag update for package versioning

#### Added
- Source URL to composer.json

### SeoRedirects

_Dated 2026-09-06. Never tagged: these changes first shipped in 1.0.3._

#### Changed
- Declared the missing `magento/module-customer` dependency
  (the admin Save&Continue button extends its GenericButton).
- Release metadata: `support.security` advisory-feed pointer
  (https://security.qoliber.com) and canonical composer formatting.
- Ships the August test-hardening pass (behavior-locking unit and
  integration tests only; no functional changes).

### SeoRichSnippets

_Released 2024-09-25._

#### Changed
- Enhanced composer.json with complete package metadata
- Added authors information
- Added license reference

## 1.0.1 — 2026-09-06

### AttributeSeoPath

_Released 2024-12-02._

#### Fixed
- Fixed attribute save observer for proper URL key persistence
- Improved EAV attribute option collection plugin for better store-specific handling

### SeoAdvancedSitemaps

_Released 2024-09-17._

#### Fixed
- Corrected PHP version requirement from ">-8.1" to ">=8.1" in composer.json

#### Added
- Source URL to composer.json for package repository reference

### SeoAdvisorAi

_Released 2024-09-25._

#### Added
- **AI-powered SEO advisor** that analyzes product and category content using ChatGPT to provide SEO optimization recommendations
- **"Check SEO" button integration** in product edit form (Catalog > Products > Edit) that opens a popup with AI-generated SEO suggestions
- **Real-time SEO analysis** that evaluates meta titles, meta descriptions, product descriptions, and keywords for search engine optimization best practices
- **ChatGPT integration service** with configurable API key and model selection (GPT-3.5-turbo, GPT-4) through admin system configuration
- **Markdown-to-HTML conversion** of AI responses using Parsedown library for clean, formatted SEO suggestions in admin panel
- **Dynamic prompt assembly** that sends product/category attributes (name, description, meta data) to AI for contextual analysis
- **AJAX-based popup interface** that displays SEO recommendations without page reload, improving admin user experience
- Admin system configuration panel (Stores > Configuration > Qoliber SEO > AI Advisor) for API credentials and provider settings
- ACL resource for controlling access to SEO advisor functionality
- Generative AI service architecture with provider abstraction for future AI integrations

#### Technical Implementation
- Created `Service\ChatGpt` class for OpenAI API communication with configurable models
- Implemented `Controller\Adminhtml\Advise\Popup` for handling AJAX requests and AI response processing
- Added `Block\Adminhtml\Product\Edit\Button\CheckSeo` for product form button integration
- Configured admin routes for SEO advisor popup functionality
- JavaScript component (`view/adminhtml/web/js/check-seo.js`) for handling button clicks and popup display
- UI component XML configuration to inject button into product form layout

### SeoCanonical

_Never tagged: these changes first shipped in 1.1.0._

#### Changed
- Release metadata: `support.security` advisory-feed pointer
  (https://security.qoliber.com) and canonical composer formatting.
- Ships the August test-hardening pass (behavior-locking unit and
  integration tests only; no functional changes).

### SeoDynamicDescriptions

_Released 2024-08-01._

#### Changed
- Version update

### SeoDynamicTags

_Released 2024-08-01._

#### Changed
- Version update

### SeoFriendlyProductUrls

_Released 2025-01-09._

#### Changed
- Version update

### SeoHrefLang

_Released 2024-09-12._

#### Changed
- Version update

### SeoImagesFriendlyUrl

_Released 2024-08-01._

* Qoliber_Core module dependency has been added.

### SeoOpengraphTags

_Released 2024-08-01._

#### Changed
- Version update

### SeoPlatform

_Never tagged: these changes first shipped in 1.1.0._

#### Changed
- Release metadata: `support.security` advisory-feed pointer
  (https://security.qoliber.com) and canonical composer formatting.

### SeoPrettyFilters

_Released 2024-10-08._

#### Changed
- Pattern processor interface improvements
- Abstract pattern processor enhancements
- Complex pattern processor updates
- Short pattern processor improvements

### SeoPrettyFiltersElasticSuite

_Released 2024-10-08._

#### Changed
- Version update

### SeoRedirects

_Released 2026-08-12._

#### Fixed
- **Manage Redirects grid 500'd in developer mode** — the listing XML carried
  an `<editable>` element that is not valid `ui_configuration` XML; production
  mode skips XSD validation (so the grid worked there), developer mode
  validates at read time and failed the whole page. The element is removed —
  a column without `<editor>` settings is read-only in the inline editor
  anyway. Caught by the docs screenshot pipeline dispatching the real page;
  now permanently locked by `RedirectGridTest` (a real admin dispatch, which
  also proves ACL allow/deny both ways via the framework's automatic tests).

### SeoRichSnippets

_Released 2024-09-12._

#### Fixed
- Minor configuration corrections in system.xml
- Version bump in composer.json

## 1.0.0 — 2026-10-04

### AttributeSeoPath

_Released 2024-11-17._

#### Added
- Initial release of Attribute SEO Path module
- Implemented SEO-friendly URL paths for product attribute filter values
- Added custom URL key management for attribute options in admin panel
- Implemented database schema for storing attribute-specific URL keys (qoliber_attribute_url_keys table)
- Added database schema for storing option-specific SEO paths (qoliber_option_seo_path table)
- Implemented AbstractFilter plugin for transforming filter URLs to SEO-friendly format
- Added FilterInterfacePlugin for layered navigation URL optimization
- Implemented attribute URL keys repository for managing custom attribute URLs
- Added option SEO path repository for managing option-specific URL rewrites
- Implemented adminhtml UI component for managing attribute URL keys in attribute edit form
- Added frontend input validator to restrict SEO path functionality to applicable attribute types
- Enabled store-view specific SEO URL configuration for multi-store environments
- Added admin tab in attribute edit interface for configuring SEO URL keys
- Implemented automatic URL key generation based on attribute option labels
- Added support for SEO-friendly URLs in catalog layered navigation

### SeoAdvancedSitemaps

_Dated 2024-09-12. Never tagged: these changes first shipped in 1.0.1._

#### Added
- **Advanced sitemap splitting functionality** that generates separate XML files for different entity types (products, categories, CMS pages) instead of one large sitemap file
- **Automatic sitemap index generation** that creates a master sitemap.xml file referencing all individual entity sitemaps for better organization and crawlability
- **Enhanced CMS page sitemap filtering** with custom `use_in_sitemap` attribute, allowing administrators to explicitly control which CMS pages appear in sitemaps through the admin panel
- **Custom sitemap file naming convention** where each entity type gets its own file (e.g., categories.xml, products.xml, pages.xml) for easier identification and management
- **Multi-sitemap support for large stores** that prevents sitemap file size limitations by automatically splitting large entity collections across multiple numbered files
- **Configurable module toggle** in admin system configuration (Stores > Configuration > Qoliber SEO > Advanced Sitemaps) to enable/disable advanced sitemap features
- **Automatic sitemap generation for all stores** via data patch that creates sitemap configurations for existing store views during module installation
- Admin UI integration with dedicated ACL resource for sitemap management permissions
- Plugin architecture for intercepting default Magento sitemap generation and applying custom filtering rules
- Value filter plugins for categories, CMS pages, and products to organize sitemap items by entity type
- Category form UI component integration for managing category-specific sitemap settings

#### Technical Implementation
- Extended `\Magento\Sitemap\Model\Sitemap` to override XML generation logic and implement entity-based file splitting
- Implemented plugin for `Magento\Sitemap\Model\ResourceModel\Cms\Page::getCollection()` to filter pages based on `use_in_sitemap` attribute
- Created abstract value filter with separate implementations for each entity type (Category, Product, CmsPage)
- Added database schema extension with `use_in_sitemap` column in `cms_page` table
- Configured dependency injection for sitemap model preference and plugin interception points

### SeoAdvisorAi

_Dated 2024-09-25. Never tagged: these changes first shipped in 1.0.1._

#### Added
- Initial project structure with .gitignore

### SeoCanonical

_Released 2026-08-12._

**First shipped stable release** (0.9.0 below was the untagged foundation;
its pre-release hardening and the storefront single-canonical wiring ship
here for the first time).

#### Added
- **Every decision path carries a stable machine-readable code** next to its
  human-readable reason (`CanonicalDecision::getCode()`), from the frozen
  platform 1.0 contract: `canonical.product.self`,
  `canonical.product.configurable_parent`, `canonical.category.faceted_root`,
  `canonical.search.query_preserved`, `canonical.policy.disabled`, … — 14
  codes, uniqueness and shape locked by `DecisionCodesTest`. Prose may be
  reworded; codes never are.

#### Fixed
- **Path-encoded facet pages now canonicalise to the category's OWN URL** —
  found in live soak: `absoluteRoot()` strips only the query, so a Pretty
  Filters URL like `/gear/bags/sale.html` kept its filter segment and
  self-canonicalised. The unapproved-facet root now comes from the category
  entity's own URL (request-derived root only as fallback), verified live:
  the filtered page emits `<link rel="canonical" href=".../gear/bags.html">`.

#### Changed
- **Still ships DISABLED by default, deliberately** — enabling the policy
  replaces every canonical on the storefront, an SEO-visible change no
  upgrade should make silently. Merchants opt in
  (`qoliber_seo_canonical/general/enabled = 1`).
- **Depends on the frozen platform API** — `qoliber/seo-platform ^1.0`.

### SeoDynamicDescriptions

_Released 2024-07-22._

#### Added
- **Dynamic category SEO content generation** that automatically modifies meta titles, meta descriptions, headings, and descriptions based on selected layered navigation filters
- **Template-based SEO customization** using custom category attributes (`seo_filters`, `seo_header`) where merchants can define templates with attribute placeholders
- **Filter-aware meta tag generation** that updates page meta information when customers apply category filters, improving SEO for filtered category pages
- **Automatic placeholder replacement** that substitutes category attribute codes (e.g., {name}, {color}) with actual filtered values
- **ElasticSuite compatibility** with detection of ElasticSearch-powered layered navigation
- Plugin architecture intercepting category data retrieval for description, meta_description, meta_keywords, meta_title, page_heading, and custom SEO header
- Admin configuration toggle (Stores > Configuration > Qoliber SEO > Dynamic Descriptions) to enable/disable module
- Category form UI components for managing SEO filter templates and header templates
- Data patches creating `seo_filters` and `seo_header` category attributes during installation

#### Technical Implementation
- Created `Plugin\AbstractPlugin` base class with common SEO formatting logic
- Implemented `aroundGetData()` interceptor for `Magento\Catalog\Model\Category` to modify SEO fields dynamically
- Added filter manager integration for text processing and URL-safe formatting
- EAV configuration for retrieving attribute options and labels for template substitution
- Request parameter parsing to extract active filter selections from layered navigation

### SeoDynamicTags

_Released 2024-07-05._

#### Added
- **Dynamic meta tag injection system** that allows administrators to create custom meta tags (meta description, meta keywords, Open Graph tags) for any page type via admin panel
- **URL pattern matching** that applies meta tags based on configurable URL patterns (exact match or wildcard patterns) for flexible page targeting
- **Admin grid interface** (Marketing > SEO > Dynamic Tags) for managing SEO tag rules with CRUD operations (create, read, update, delete)
- **Page type filtering** with support for different indexable types (products, categories, CMS pages, custom pages) to target specific content
- **Priority-based tag application** where multiple matching rules can be defined with tags applied based on configuration order
- **Active/inactive status control** allowing administrators to enable/disable tag rules without deletion
- **Meta tag override functionality** that intercepts Magento's default meta tag rendering and injects custom values when URL patterns match
- **Customer group context awareness** that evaluates current customer session for personalized tag application
- Database-backed tag storage with `qoliber_seo_dynamic_tags` table for persistent tag configurations
- Admin UI components with listing grid and form for intuitive tag management
- ACL resources for granular permission control over dynamic tag management
- Action column in listing grid with edit and delete actions for quick management

#### Technical Implementation
- Created `Model\SeoDynamicTag` entity model with resource model and collection for database operations
- Implemented `Plugins\App\ModifyMetaTags` as around plugin for `ActionInterface::execute()` to intercept page rendering
- Built admin controller structure (`Index\Add`, `Index\Edit`, `Index\Save`, `Index\Delete`) for full CRUD functionality
- Added `SeoDynamicTagsDataProvider` for UI component data provisioning
- Configured UI components (`seodynamictags_listing.xml`, `seodynamictags_form.xml`) with columns for URL pattern, page type, status, and meta tag content
- Database schema with fields for `url_pattern`, `indexable_type`, `text` (meta content), `is_active`, and `sort_order`
- Frontend DI configuration for plugin interception on layout result pages
- Admin menu integration under Marketing > SEO section

### SeoFriendlyProductUrls

_Released 2024-12-02._

#### Added
- **Pattern-based product URL generation** that creates SEO-friendly product URLs using custom attribute combinations (e.g., `{brand}-{name}-{sku}`)
- **Console command for bulk URL regeneration** (`bin/magento qoliber:seo:regenerate-urls`) with options for entity ID range and specific stores
- **Attribute placeholder system** where merchants configure URL patterns using attribute codes in curly braces (e.g., `{color}-{size}-{product_name}`)
- **Multi-attribute URL composition** that combines product attributes (text, select, multiselect) into structured, keyword-rich URLs
- **Store-specific URL generation** with separate URL patterns configurable per store view for multilingual sites
- **Entity ID range filtering** for processing specific product ID ranges during regeneration to optimize performance
- **URL rewrite integration** that creates proper Magento URL rewrites when regenerating product URLs
- **Select and multiselect attribute support** that converts option IDs to human-readable labels in URLs (e.g., "red" instead of "93")
- **URL key validation and filtering** to ensure generated URLs comply with web standards (lowercase, hyphenated, URL-safe characters)
- **Configurable URL pattern** via admin system configuration (Stores > Configuration > Qoliber SEO > Friendly Product URLs)
- **Disabled module safety mechanism** that throws `DisabledModuleException` when attempting operations with module disabled
- **Single-store mode detection** that automatically filters operations to current store in single-store installations
- Repository architecture for efficient attribute data fetching with separate repositories for products, attributes, and store data
- Filter system for validating attribute codes, entity IDs, store IDs, and URL patterns before processing
- Service layer (`Regenerator`, `UrlKeyGenerator`, `Reindexer`) for orchestrating URL generation workflow

#### Technical Implementation
- Created `Service\UrlKeyGenerator` that parses patterns and replaces placeholders with actual product attribute values
- Implemented `Service\Regenerator` orchestrating bulk URL regeneration with batch processing support
- Built repository layer for product entity IDs, attribute codes, SKUs, and URL rewrite data
- Added `Console\Command\RegenerateUrls` with options: `--entity-id-from`, `--entity-id-to`, `--store-id`
- Configured filter chain (ExistingAttributeCodeFilter, MaxProductEntityIdFilter, MinProductEntityIdFilter, UrlKeyFilter) for data validation
- Created `Repository\Product\Attribute\OptionsRepository` for fetching select/multiselect attribute labels
- Implemented `Repository\Product\Attribute\ProductUrlRewriteRepository` for URL rewrite persistence
- Added admin configuration backend model for pattern validation
- Configured DI for filter repository and service classes with proper dependency injection

### SeoHrefLang

_Released 2024-09-11._

#### Added
- **Automatic hreflang tag generation** for multi-language stores that helps search engines understand language and regional targeting of pages
- **Product page hreflang support** that generates alternate URLs for the same product across different store views and languages
- **Category page hreflang support** that creates language alternatives for category pages to prevent duplicate content penalties
- **CMS page hreflang support** for static content pages with language/region variants
- **Contact page hreflang support** with dedicated resolver for contact form pages across stores
- **Homepage hreflang support** that generates alternate language versions for store homepages
- **Automatic locale detection** that converts Magento locale codes (e.g., `en_US`) to proper hreflang format (`en-us`)
- **Store-specific URL resolution** using dedicated resolvers for different page types (ProductUrlResolver, CategoryUrlResolver, CmsPageUrlResolver, ContactPageUrlResolver)
- **Configurable store inclusion** via admin panel (Stores > Configuration > Qoliber SEO > HrefLang) to select which stores appear in hreflang tags
- **x-default tag support** for specifying default language version when user's language preference doesn't match available options
- **Template-based output** with dedicated phtml template for rendering hreflang link tags in HTML head section
- **Checkout page exclusion** via layout XML to prevent hreflang on checkout pages where it's not beneficial
- **ViewModel architecture** (`HrefLang`) that coordinates tag generation and passes data to templates
- **AlternateUrlService** that determines current page type and dispatches to appropriate URL resolver
- Request-aware resolver pattern that identifies page type from full action name (e.g., `catalog_product_view`, `cms_page_view`)

#### Technical Implementation
- Created `Service\AlternateUrlService` that uses action name matching to select appropriate URL resolver
- Implemented URL resolver interfaces with concrete classes for product, category, CMS page, and contact page
- Built `ViewModel\HrefLang` that fetches allowed stores, generates alternate URLs, and formats locale codes
- Added `Model\Config` with methods for retrieving store configurations, locale codes, and base URLs
- Configured layout XML (`view/frontend/layout/default.xml`) to inject hreflang template in page head
- Template file (`view/frontend/templates/hreflang.phtml`) rendering link rel="alternate" tags for each language
- DI configuration mapping action names to resolver implementations
- ACL and admin menu structure for module configuration access
- Multi-store locale code transformation (underscore to hyphen, lowercase formatting)

### SeoImagesFriendlyUrl

_Released 2024-07-18._

* initial module release

### SeoInspector

- Add store-scoped, read-only canonical/robots/hreflang/sitemap/JSON-LD inspection.
- Explain conflicting signals with provider provenance and evidence.
- Add ACL-protected admin reports and bounded, resumable JSON/CSV CLI auditing.

### SeoOpengraphTags

_Released 2024-07-22._

#### Added
- **Open Graph meta tag generation** for product, category, and CMS pages to optimize social media sharing previews
- **Product-specific OG tags** including og:title, og:description, og:image, og:url, and og:type for rich product previews on Facebook, Twitter, LinkedIn
- **Automatic product image detection** that extracts product base image URL and adds it to og:image tag for visual social sharing
- **Category page OG tag support** with title, description, and URL tags for category landing pages
- **CMS page OG tag support** for static content pages to ensure proper social media representation
- **Default tag resolver** that provides fallback OG tags for pages without specific resolvers
- **Resolver pattern architecture** with page-type-specific tag generators (ResolverProduct, ResolverCategory, ResolverDefault)
- **Configurable og:title prefix** via admin configuration (Stores > Configuration > Qoliber SEO > Open Graph Tags) to add site branding to shared titles
- **Automatic meta description fallback** where product/page meta descriptions are used for og:description when available
- **Default Open Graph tag removal observer** that strips Magento's default OG tags to prevent duplication
- **Prefix addition observer** that prepends configured text to og:title tags (e.g., "MyStore - Product Name")
- **Template-based rendering** with dedicated phtml template for clean OG tag output in HTML head
- **Multiple layout handles** (`qoliber_opengraph`, `qoliber_product_opengraph`) for different page type contexts
- ViewModel (`OpengraphTags`) that coordinates resolver selection and tag generation
- Admin configuration toggle to enable/disable Open Graph tag generation globally

#### Technical Implementation
- Created `Service\GetTagResolver` that determines page type and returns appropriate resolver implementation
- Implemented `Model\ResolverInterface` with concrete classes for products, categories, and default pages
- Built `Model\ResolverProduct` that fetches current product from registry and extracts meta description and image URL
- Added `Model\ResolverCategory` for category-specific tag generation
- Created `Observer\RemoveDefaultTags` (event: `layout_load_before`) to remove default Magento OG tags
- Implemented `Observer\SetPrefix` (event: `layout_generate_blocks_after`) to add configurable prefix to titles
- Configured `ViewModel\OpengraphTags` for checking module status and getting appropriate resolver
- Template file (`view/frontend/templates/opengraph.phtml`) iterating through tags and rendering meta property elements
- DI configuration for resolver pool with product, category, and default implementations
- Layout XML files for injecting OG template on product and generic pages
- ACL resource for admin access control

### SeoPlatform

_Released 2026-08-12._

**First stable release — the control-plane API is frozen.** Everything below
is additive over 0.9.0; consumers on `^0.9` code-compatible throughout.

#### Added
- **Stable reason codes** — `Model\ReasonCode` defines the shape contract for
  machine-readable rationale: dotted lowercase identifiers
  (`<domain>.<subject>.<verdict>`, e.g. `canonical.search.query_preserved`).
  The catalog is open (any module mints codes in its own domain) but strictly
  shaped — a malformed code fails at construction, not in a consumer's parser.
  `CanonicalDecision` and `SeoFinding` carry an optional `code` next to their
  human prose (`getCode()`); prose may be reworded, codes never are — they are
  what the Health Center and CI exports match on.
- **Field-level provenance** — `UrlState::getProvenance()` maps every resolved
  field to the source that supplied its winning value. Together with
  `getConflicts()` this completes the audit picture: what won, who supplied
  it, and what it overrode.

### SeoPrettyFilters

_Released 2024-09-16._

#### Added
- Initial release of SEO Pretty Filters module
- SEO-friendly URL generation for Magento 2 layered navigation
- Support for multiple URL generation modes (short and complex)
- Attribute to SEO path converter interface and implementations
- Filter option management
- URL resolver and generator
- Category path resolver
- Pattern processors for URL generation
- Attribute resolver system
- Boolean attribute resolver
- Price resolver
- Suffix resolver
- Service layer for attribute fetching and URL generation
- Admin interface for attribute SEO configuration
- Frontend plugins for catalog layer filter items
- Swatches support for layered navigation
- Product list toolbar integration
- Configurable URL patterns
- Support for select, price, and yes/no attribute types

### SeoPrettyFiltersElasticSuite

_Released 2024-09-16._

#### Added
- **ElasticSuite integration for Qoliber SeoPrettyFilters** that extends SEO-friendly filter URL functionality to Smile ElasticSuite module
- **Complex pattern processing** for ElasticSuite-specific filter attribute handling with support for multi-select filters
- **Short pattern processing** for simplified filter URL generation compatible with ElasticSuite's architecture
- **Attribute fetcher plugin** that intercepts ElasticSuite attribute retrieval to apply SEO transformations
- **Select dropdown converter plugin** that modifies select/dropdown attribute rendering to use SEO-friendly URLs
- **Price filter support** with special handling to maintain price range values in clean URL format (e.g., `/price-100-200/` instead of `/price?min=100&max=200`)
- **Multi-select filter URL generation** that combines multiple selected values into cohesive URL segments
- **Filter removal URL generation** that creates proper URLs when deselecting filter options while maintaining other active filters
- **Complex attribute array construction** that builds hierarchical filter structures for nested attribute combinations
- **Frontend input type detection** to handle different attribute types (price, select, multiselect) with appropriate URL patterns
- Plugin architecture specifically designed for `Qoliber\SeoPrettyFilters` compatibility with ElasticSuite
- Dependency on both `qoliber/seo-pretty-filters` and `smile/elasticsuite` modules for proper operation

#### Technical Implementation
- Created `Plugin\PatternProcessor\ComplexPatternProcessor` that intercepts complex URL pattern generation and removal
- Implemented `Plugin\PatternProcessor\ShortPatternProcessor` for simplified pattern handling
- Built `Plugin\AttributeFetcher` to modify attribute data retrieval for SEO purposes
- Added `Plugin\ComplexAttributeResolver` for resolving complex multi-attribute filter combinations
- Created `Plugin\ShortAttributeResolver` for simple attribute resolution
- Implemented `Plugin\ConverterSelect` to convert select attribute rendering to use SEO URLs
- Configured around plugins for `aroundGenerateFilterItemUrl()` and `aroundGenerateRemoveItemUrl()` methods
- Added specialized handling for price range filters to preserve min/max values in URL structure
- DI configuration with plugin interception points for ElasticSuite and SeoPrettyFilters classes
- Attribute code to frontend input mapping for determining appropriate URL generation strategy

### SeoRedirects

_Released 2026-08-12._

**First shipped stable release.** The 0.9.1 and 0.10.0 entries below were
never tagged — 1.0.0 is their first distribution, on top of the 0.9.0 beta.

#### Changed
- **Ships ENABLED by default** — the suite's stable modules are opt-out.
  Without configured rules the module only logs 404s and auto-creates
  redirects when URL keys change (both pure upside); set
  `qoliber_seo_redirects/general/enabled = 0` to opt out.
- **Depends on the frozen platform API** — `qoliber/seo-platform ^1.0`
  (was `^0.9`): a stable release no longer sits on a 0.x contract.

### SeoRichSnippets

_Released 2024-09-11._

#### Added
- Initial release of Qoliber SEO Rich Snippets module
- **Core Features**:
  - Product structured data support
  - Breadcrumb list schema
  - Organization schema
  - Local business schema
  - Aggregate rating support
  - Product offers with pricing
  - Product reviews integration

- **Resolvers**:
  - `AbstractRichSnippetsResolver` base class
  - `ProductResolver` for product schema
  - `BreadcrumbListResolver` for navigation
  - `LocalBusinessResolver` for business information
  - `OrganizationResolver` for organization data
  - `AggregateRatingResolver` for ratings
  - `OfferResolver` for product offers
  - `ReviewResolver` for product reviews

- **ViewModel**:
  - `RichSnippets` ViewModel for template rendering

- **Frontend**:
  - Layout integration for default pages
  - Checkout page support
  - JSON-LD output template

- **Admin**:
  - ACL permissions for module access
  - Admin menu integration
  - Basic system configuration

- **Module Structure**:
  - Proper module registration
  - Dependency injection configuration
  - Basic configuration values

## 0.10.0 — 2026-08-12

### SeoRedirects

_Never tagged: these changes first shipped in 1.0.0._

#### Added
- **404 admin grid** — Qoliber → SEO Redirects → **404 Log** (own ACL resource
  `Qoliber_SeoRedirects::log404`): the previously database-only
  `qoliber_seo_404_log` is now a full listing (request path, store, hits,
  referrer, last seen) with filters, bookmarks, single delete (POST) and mass
  delete.
- **Convert a 404 into a redirect in one click** — the grid's *Create
  Redirect* action opens the redirect form pre-filled with the logged request
  path, store and a 301 default (`RedirectDataProvider` seeds new-entity data
  the same way core's CMS providers do).
- **Retention cleanup cron** — `qoliber_seo_redirects_purge_404_log` (daily,
  02:15) purges log rows not seen for the configured window. New config group
  *404 Log Retention* (`log_cleanup/retention_days`, default 90; 0 keeps the
  log forever). Deliberately not gated on the module's enabled flag —
  switching logging off doesn't make old rows worth keeping. Locked by
  `Purge404LogTest` + an integration test proving only rows outside the
  window are dropped.
- **Wildcard candidate caching on the 404 hot path** — the per-store wildcard
  rule set (the one query whose cost repeats on every 404 miss) is now served
  from `WildcardCandidateCache`, tag-invalidated by the redirect resource
  model's after-save/after-delete hooks so a freshly written rule is always
  visible. Exact-match lookups stay uncached on purpose (a single indexed row
  is not worth a staleness surface). Locked by `WildcardCandidateCacheTest` +
  an end-to-end integration test that warms the cache, saves a new wildcard
  rule and asserts the very next lookup serves it.

## 0.9.1 — 2026-08-12

### SeoRedirects

_Never tagged: these changes first shipped in 1.0.0._

#### Fixed
- **Renaming a category now auto-redirects its whole subtree, not just its own
  paths** — closing the limitation documented in 0.9.0. New
  `Model\AutoRedirect\SubtreePathResolver` finds every canonical rewrite
  living UNDER the renamed prefix — descendant categories
  (`men/tops/tees.html`) and category-scoped product rewrites
  (`men/tops/tee-shirt.html`) — and moves them by prefix swap, per store with
  that store's suffix. Rows are matched in both states (before and after
  core's own regeneration, whose relative order on the shared save_after
  event is undefined), the LIKE pattern's trailing slash keeps prefix-sharing
  siblings (`men/tops-sale.html`) out, and pairs are de-duplicated per
  (store, old path) before registering through the platform writer. Locked by
  `SubtreePathResolverTest` (5 cases).

## 0.9.0 — 2026-07-18

### SeoCanonical

#### Added
- Declared PHP 8.5 support (`~8.5.0` added to the `php` constraint); verified 8.5-clean — php8.5 `-l` and the unit suite both pass.

- Initial release: the single canonical authority for the Qoliber SEO Suite
  (battleplan §5.2 / §6 Phase 0, promoted T2-B). Implements the platform's
  `Qoliber\SeoPlatform\Api\CanonicalPolicyInterface`; depends only on
  `qoliber/seo-platform`.
- `Model\CanonicalResolver` — the root of the per-page-type decision tree and the
  one `<preference>` for `CanonicalPolicyInterface`. Walks DI-registered strategy
  branches in priority order; falls back to a self-referential canonical when the
  policy is disabled or the subject is unclassified. Every path returns a
  `CanonicalDecision` carrying a human-readable reason string.
- `Api\CanonicalStrategyInterface` + four branches:
  - `Model\Strategy\ProductCanonicalStrategy` — configurable child → parent (admin
    option `qoliber_seo_canonical/product/configurable_child_to_parent`), else self.
  - `Model\Strategy\CategoryCanonicalStrategy` — facet-aware placeholder: unapproved
    facet combinations canonicalise to the facet-free category root.
  - `Model\Strategy\CmsPageCanonicalStrategy` — self-referential (facet-free).
  - `Model\Strategy\SearchCanonicalStrategy` — canonical to the search result URL
    carrying the normalized query.
- `Api\CanonicalUrlResolverInterface` + `Model\CanonicalUrlResolver` — builds the
  absolute self / facet-free root / base / configurable-parent URLs the tree emits.
- `Api\FacetApprovalPolicyInterface` + `Model\FacetApprovalPolicy` — conservative,
  allowlist-driven placeholder that approves no facet combination until
  `qoliber/seo-facet-governance` binds the real per-category rules.
- `Model\PageContext\SearchResultsContext` — entity-less marker for search pages.
- `Model\Config` — store-scoped reader; `etc/config.xml` defaults (policy disabled —
  opt-in, configurable child → parent enabled); `etc/adminhtml/system.xml` decision-tree
  configuration under the Qoliber tab; `etc/acl.xml` config resource.

#### Added (pre-release, 2026-08-11) — storefront wiring

- **The policy now actually renders.** New frontend-area plugin
  `Plugin\Frontend\EnforceSingleCanonical` (on `Page\Config\Renderer`, so it
  runs AFTER every competing emitter registered its asset) removes all
  canonical-typed head assets — core's product/category tags, Pretty Filters'
  plugin output, third parties — and emits exactly ONE canonical: the
  `CanonicalPolicyInterface` decision. `Model\PageSubjectLocator` classifies
  the page (registry product/category, search results context with the `q`
  term, cms_page_view) for the decision tree. Disabled (the shipped default)
  means hands off; a policy failure fails OPEN — existing canonicals stay
  rather than stripping the page. Locked by `EnforceSingleCanonicalTest`
  (unit) and `SingleCanonicalTest` (integration: real PDP dispatch with
  core's `catalog/seo/product_canonical_tag` ON asserts exactly one clean
  canonical when enabled, and core's untouched canonical when disabled).

#### Fixed (pre-release)
- `SearchCanonicalStrategy` no longer canonicalises every search to the store base
  URL (which collapsed ?q=shoes and ?q=boots into one canonical). The canonical is
  now the `catalogsearch/result/index` URL carrying the normalized `q` parameter —
  the suite's search canonical contract — via the new
  `CanonicalUrlResolverInterface::searchResultUrl()` (interface extended; the
  module is unreleased, so no BC impact).
- `ProductCanonicalStrategy` self-canonicals (standalone product and the
  child-with-option-off fallback) now use the query-free `absoluteRoot()` URL, so
  tracking parameters (`utm_*`, `gclid`, …) no longer survive into the canonical.
- `CategoryCanonicalStrategy` facet detection now also inspects the current
  request's resolved parameters (excluding `id`/`p`/`limit`/`order`/`dir`/`mode`/`q`;
  exclusion list injectable via di.xml), so path-encoded Pretty Filters URLs —
  which carry no query string — are recognised as faceted and canonicalise to the
  category root instead of self-canonicalising.
- `CanonicalUrlResolver::configurableParentUrl()` now filters url_rewrite rows to
  non-redirects (`redirect_type = 0`), prefers the category-free rewrite (empty
  metadata) with the lowest `url_rewrite_id`, and picks the lowest parent ID when
  a child belongs to multiple configurables — the parent URL is deterministic and
  can no longer be a 301 history or category-context rewrite.
- `etc/config.xml`: the policy now ships disabled (`general/enabled = 0`) — beta
  modules are opt-in.

### SeoPlatform

#### Changed (pre-release review hardening, 2026-08-11)

Applied before the first tag, from the whole-tree release review — the 0.9.0
contract below is described post-hardening:

- **`UrlRewriteWriter` groups by entity TYPE + id** — savepoint groups (and the
  result's `committedGroups`/`failedGroups` keys) are now `"product:5"`-style
  composite keys. Grouping by bare entity id put product 5 and category 5 into
  ONE atomic group, so a failure in either rolled back the other.
- **The writer supports update-by-PK and delete-by-PK operations** —
  `UrlRewriteRequestInterface` gains `OPERATION_INSERT|UPDATE|DELETE` +
  `getUrlRewriteId()`. Updates address `url_rewrite_id` and an update matching
  no row fails its group (the row it promised to change is gone); deletes
  tolerate already-missing rows; inserts stay batched. This is the semantic
  floor `SeoFriendlyProductUrls`' Regenerator needs before it can migrate to
  the single writer (update-by-PK preserves `url_rewrite_id` so
  `catalog_url_rewrite_product_category` links survive).
- **`write()` accepts an optional per-group post-persist callback** — invoked
  after a group's rows are written but BEFORE its savepoint is released, with
  `(entityType, entityId, rowsWritten)`; a throw rolls back exactly that
  group. This is the seam for "no url_key is committed without its rewrite
  row" dependent writes. Collision retry stays a caller concern, composed on
  top of the per-group failure report.
- **`UrlStateResolver` records disagreements instead of discarding them** —
  first-non-null still decides every field, but each overridden differing
  value now lands in `UrlState::getConflicts()` (field, chosen value + source,
  rejected values by source) — the audit currency for the planned Health
  Center.
- **Dropped the decorative `qoliber/core` dependency** (and its `module.xml`
  sequence entry) — the module has no UI and never references `Qoliber_Core`,
  matching its own "depends only on qoliber/seo-common" description.

#### Added
- Declared PHP 8.5 support (`~8.5.0` added to the `php` constraint); verified 8.5-clean — php8.5 `-l` and the unit suite both pass.

- Initial control-plane contract for the Qoliber SEO Suite (battleplan §5.2).
  Depends only on `qoliber/seo-common`; ships no UI.
- `Model\UrlIdentity` — immutable `(url, storeId)` value object with a stable
  `key()` and `equals()`; the normalisation invariant every module shares.
- `Api\Data\SignalContributionInterface` + `Model\SignalContribution` — one
  provider's partial, per-URL signal contribution (immutable value object).
- `Model\UrlState` — the aggregated, resolved per-URL signal state
  (httpStatus, canonical, robots, sitemapMembership, hreflangCluster,
  structuredDataStatus, indexNowStatus) with contributing-source provenance.
- `Api\UrlSignalProviderInterface` — `contribute(UrlIdentity): ?SignalContribution`;
  each feature module registers one via `di.xml`.
- `Model\UrlStateResolver` — aggregates all DI-registered providers into a
  single `UrlState` (first non-null contribution wins, by registry order).
- `Api\CanonicalPolicyInterface` + `Model\CanonicalDecision` — the single
  canonical authority contract; every decision carries a `reason` string.
- `Api\IndexabilityPolicyInterface` + `Model\IndexabilityDecision` — the
  facet/pagination indexability contract; every decision carries a `reason`.
- `Model\SeoFinding` — the audit currency (severity, impact, message, url).
- `Api\UrlRewriteWriterInterface` + `Model\UrlRewriteWriter` — THE single owner
  of `url_rewrite` writes, savepoint-atomic per entity (product) group, plus
  `Api\Data\UrlRewriteRequestInterface` / `Model\UrlRewriteRequest` and
  `Model\UrlRewriteWriteResult`.

### SeoRedirects

#### Security & correctness (pre-release review hardening, 2026-08-11)

Applied before the first tag, from the whole-tree release review — the 0.9.0
contract below is unchanged, these harden it:

- **Server-side validation gate** — new `Model\RedirectValidator`, invoked from
  `RedirectRepository::save()` so every write path (admin form, inline edit, CLI
  import, CSV, API) inherits the same rules: only 301/302/410 persist (the grid's
  source model was UI-only — `redirect_type=999` used to save and get fed to
  `setRedirect()`); 301/302 require a target, 410 forbids one; an empty request
  path is rejected instead of silently normalising to a homepage (`/`) rule; the
  store root cannot be redirected; absolute targets are restricted to http(s) —
  `javascript:`, `data:`, `ftp:` and scheme-less `//host` destinations are
  rejected; raw or percent-encoded CR/LF is rejected in both paths; the source
  may not equal the target after normalisation; the store id must exist (0 = all
  stores); `*` only as the final character with a real prefix. Locked by
  `RedirectValidatorTest` (19 cases).
- **Delete is POST-only** — `Controller\Adminhtml\Redirect\Delete` now implements
  `HttpPostActionInterface` and the grid action sets `'post' => true`, so single
  deletion rides the form-key-validated POST helper instead of a state-changing
  GET link (MassDelete already did).
- **Hit counting by primary key** — `fetchExact`/`fetchWildcardCandidates` now
  select `redirect_id`, `RedirectMatch` carries it, and the 404 responder calls
  `incrementHitsById()`. The previous path + `store IN (store, 0)` UPDATE also
  incremented an all-stores rule sharing the request path with the store rule
  actually served. Locked by `ResponderTest`.
- **Auto-redirect paths come from `url_rewrite`, not `url_key . suffix`** — new
  `Model\AutoRedirect\RenamedEntityPathResolver` reads the renamed entity's
  canonical rewrites per store and swaps only the trailing segment, so nested
  category paths (`men/tops.html`), category-context product rewrites
  (`gear/bags/duffle.html`) and per-store URL keys/suffixes survive. It
  recognises rows both before and after core's own rewrite regeneration (the
  observers share its save_after event; relative order is undefined) and falls
  back to the old naive pair when no rows match. Store 0 ("all store views",
  e.g. CMS pages) is expanded to real store ids — core's rewrite lookup matches
  concrete ids, so a store-0 row is dead. Writer failures (rolled-back groups)
  are now logged instead of silently discarded. Known limitation: renaming a
  category registers redirects for that category's own paths, not for its
  descendants' paths. Locked by `RenamedEntityPathResolverTest` +
  `RedirectRegistrarTest`.
- **CSV import no longer coerces an unsupported `redirect_type` to 301** — the
  raw value is passed through and rejected by the validator, so the row is
  reported as skipped instead of silently imported as a rule the operator never
  wrote (a missing/empty cell still defaults to 301).
- **Ships disabled by default** — `qoliber_seo_redirects/general/enabled` is now
  `0` in `config.xml`; the suite's features are opt-in.
- **Dependencies declared honestly** — added the direct `magento/module-config`
  requirement (`system.xml` sources, ACL parent) and `Magento_Config` to the
  `module.xml` sequence.

#### Added
- Declared PHP 8.5 support (`~8.5.0` added to the `php` constraint); verified 8.5-clean — php8.5 `-l` and the unit suite both pass.

- Initial redirect + 404 lifecycle manager (battleplan Phase 1). Depends on
  `qoliber/seo-platform`; consumes its single `url_rewrite` writer — never writes
  the `url_rewrite` table directly.
- `etc/db_schema.xml` — `qoliber_seo_redirect` (301/302/410 rules, unique on
  `request_path` + `store_id`, hit counter) and `qoliber_seo_404_log`
  (frequency + referrer + user-agent, unique on `request_path` + `store_id`).
- Service contracts — `Api\Data\RedirectInterface`, `Api\RedirectRepositoryInterface`
  (+ `Model\RedirectRepository`) and `Api\RedirectLookupInterface`
  (+ DB-backed `Model\RedirectFinder`).
- `Model\RedirectPathNormalizer`, `Model\RedirectMatcher` (exact + longest-prefix
  wildcard) and `Model\RedirectChainResolver` — folds a redirect chain to its
  terminal target with a visited-set loop guard and a configurable hop cap.
- 404 handling — `Observer\NotFoundHandler` on the no-route predispatch serves a
  matching active redirect (301/302/410) via `Model\NotFound\Responder` or records
  the miss through `Model\NotFoundLogger`.
- Auto-redirect — `Observer\{Product,Category,CmsPage}UrlKeyChange` turn a URL-key
  change into a 301 old → new through `Model\AutoRedirect\RedirectRegistrar`, which
  writes exclusively via the platform's `UrlRewriteWriterInterface`.
- Admin UI — listing grid (`qoliber_seo_redirect_listing`) with inline edit,
  mass delete and per-row edit/delete, a create/edit form, `menu.xml`, `acl.xml`,
  `routes.xml`, system configuration, and the CRUD controllers.
- CLI — `qoliber:seo-redirects:import` and `qoliber:seo-redirects:export`
  (CSV) backed by the pure `Model\Csv\RedirectCsvConverter`.
- Unit tests for the chain/loop guard, the redirect-match lookup, and the CSV
  import/export round-trip.
