Commit 7cd2fa5e5c for handsontable.com

commit 7cd2fa5e5c34601c32dad6a3dc274be6d008661b
Author: Szymon Dolnik <42141039+Haxikowy@users.noreply.github.com>
Date:   Tue Nov 24 13:48:15 2026 +0100

    DEV-4153: Rename the badge license key flag to attribution-bar (release 19.0.0) (#14423)

    * DEV-4153: Rename the badge license key flag to attribution-bar (#14418)

    The entitlement key flag `badge` is now `attribution-bar` (license-key PR #18, released as 7.0.0). The reader constant is ATTRIBUTION_BAR_FLAG, the license state facet is `attributionBar`, and a key that still carries `badge` shows no "Powered by Handsontable DataGrid" bar: it is an unknown flag. The fixture keys that carried the flag are regenerated with the generator of that branch.

    (cherry picked from commit 845f793ca49bddd93e2a2be0f500c306a1929b69)

    * DEV-4130: Give every test grid the test key and test the license checks on the built bundles (release 19.0.0) (#14424)

    * DEV-4130: Give every test grid the internal test key and fail a test that leaves a lock (#14378)

    Thread the test key into the Jasmine grids, the Angular component spec and the docs 404 page that built a grid without one, and add guards so a grid without a key fails: a tooling scan of every spec and fixture, an afterEach in Jest for license messages outside the license suites, a Playwright page fixture that fails a passing test with a lock on its page, and a unit test that pins what the key reads as for this build.

    (cherry picked from commit 459a8f22ee801ad5b099e4d6875128b4f8e42f94)

    * DEV-4130: Test the license checks on the built bundles and through the wrappers (#14379)

    * DEV-4130: Test the license checks on the built bundles and through the wrappers

    * DEV-4130: Share the license fixture plumbing and assert the root wrapper in the lock helpers

    (cherry picked from commit fac3bf67d20f5f67331c7f846a0c1ee9a637fcaf)

    * DEV-4130: Read the attribution-bar flag and name only release fixtures

    ---------

    Co-authored-by: Mateusz Wojczal <mateusz@qunabu.com>
    Co-authored-by: Daniel Zyto <daniel.zyto@handsontable.com>

diff --git a/.claude/skills/handsontable-e2e-testing/SKILL.md b/.claude/skills/handsontable-e2e-testing/SKILL.md
index a4ac994a14..c1b31a4ea5 100644
--- a/.claude/skills/handsontable-e2e-testing/SKILL.md
+++ b/.claude/skills/handsontable-e2e-testing/SKILL.md
@@ -34,6 +34,8 @@ describe('MyFeature', () => {

 ESLint enforces: every `it()` callback is `async`, and every HOT API call (~50+ methods) is `await`-ed.

+`handsontable()` adds the internal test key to every grid it builds. A second grid built any other way (`new Handsontable(el, {…})`, `$('<div>').handsontable({…})`) passes `licenseKey: TEST_LICENSE_KEY` (a global in specs) itself, or it runs behind the license lock; the root `test:tooling` fails on one that does not (`handsontable/.ai/TESTING.md`, "The license key every test grid takes").
+
 ## Global helpers

 Injected automatically; full list in `test/helpers/common.js`.
diff --git a/.claude/skills/handsontable-playwright-e2e/SKILL.md b/.claude/skills/handsontable-playwright-e2e/SKILL.md
index e0f4a9f28f..25a53143d5 100644
--- a/.claude/skills/handsontable-playwright-e2e/SKILL.md
+++ b/.claude/skills/handsontable-playwright-e2e/SKILL.md
@@ -46,7 +46,8 @@ Read a mixed result per leg: a split along the bundle axis is about the bundles,
 2. **Hook by `data-testid`, not structural CSS.** Stamp ids in the fixture (or add them to the component when it removes ambiguity). Fall back to role/text locators before grid internals.
 3. **Web-first waits only.** `await expect(locator).toBeVisible()`; await every assertion. Inside a page object the same rule has six shapes lint cannot see (`setTimeout` in `page.evaluate()`, a `waitForFunction` without `{ polling }`, a scroll method that ends on `scrollTop`, `.at(-1)` on a separately read log, a fixture build that fails silently, a negative settle with no positive control), spelled out in `references/determinism.md`.
 4. **Isolation.** One instance per test; `page.route()` / `page.clock()` for network/time. `failOnFlakyTests` is on in CI: pass-on-retry is a hard failure.
-5. **Thread the bundle axis, and declare the legs.** Import `test` from `tests/fixtures/test.ts`, destructure `{ page, theme, bundle }`, and pass both to the page object. A new fixture copies the fail-loud `?theme=`/`?bundle=` allowlist block from `demo/grid.html` (no hardcoded bundle `<script src=…>`). Formulas specs load HyperFormula as an external script in the fixture, and declare `BUNDLES_TAG`; a spec that reads a computed style, a token or a pixel declares `THEMES_TAG`, on every top-level block (`tests/AGENTS.md` → "Declaring the legs"). Never-get-wrong list: `tests/AGENTS.md`.
+5. **Every grid takes the test key.** A fixture loads `/tests/fixtures/demo/test-license-key.js` before the grid and passes `licenseKey: window.htTestLicenseKey`, and so does a grid a spec builds in `page.evaluate`. The `page` fixture fails a passing test that left a `.ht-license-lock` on its page, unless the page asks for a license state on purpose (`tests/AGENTS.md`, "Fixture contract").
+6. **Thread the bundle axis, and declare the legs.** Import `test` from `tests/fixtures/test.ts`, destructure `{ page, theme, bundle }`, and pass both to the page object. A new fixture copies the fail-loud `?theme=`/`?bundle=` allowlist block from `demo/grid.html` (no hardcoded bundle `<script src=…>`). Formulas specs load HyperFormula as an external script in the fixture, and declare `BUNDLES_TAG`; a spec that reads a computed style, a token or a pixel declares `THEMES_TAG`, on every top-level block (`tests/AGENTS.md` → "Declaring the legs"). Never-get-wrong list: `tests/AGENTS.md`.

 For a UI change, the accessibility assertions (a keys-only flow, `toBeFocused()` at each step, role-and-name locators, the announcer's live region) are in the `handsontable-a11y` skill, `references/proving.md`.

diff --git a/.claude/skills/handsontable-unit-testing/SKILL.md b/.claude/skills/handsontable-unit-testing/SKILL.md
index 51983492c8..7f47d03541 100644
--- a/.claude/skills/handsontable-unit-testing/SKILL.md
+++ b/.claude/skills/handsontable-unit-testing/SKILL.md
@@ -20,6 +20,7 @@ Favor E2E: a unit test that needs a mocked module becomes an E2E test, because m
 - Location: `src/**/__tests__/` beside the source (e.g. `src/plugins/filters/__tests__/dataFilter.unit.ts`).
 - A helper only unit tests use goes straight in `__tests__/` (e.g. `undoRedo/__tests__/grid.js`), never in a `helpers/` folder. `test/helpers/index.js` bundles every `.js` under `src/{plugins,editors}/**/helpers/` into the E2E build and puts its exports on `window`. A `handsontable/...` import there breaks the Integration / ESM and CJS jobs, whose E2E build aliases `handsontable` to the single file `dist/handsontable.js`. Those jobs run on trunk only, so `no-restricted-imports` in `handsontable/.eslintrc.js` blocks `handsontable/*` in every `*.spec.js` and `helpers/` file.
 - Framework: Jest, `jsdom`, `jest-jasmine2` runner. Import everything explicitly.
+- A grid a unit test builds with `new Handsontable(…)` passes `licenseKey: TEST_LICENSE_KEY` (imported from `test/helpers/licenseKey.js`). A grid that logs a missing, invalid or expired key message fails its test, unless the file is a license test listed in `LICENSE_TEST_FILES` (`test/jestExpectedConsole.js`).
 - Aliases: `'handsontable'` and `'handsontable/...'` resolve to `src/`; `'walkontable'` and `'walkontable/...'` to `src/3rdparty/walkontable/src/`; CSS/SCSS to `test/__mocks__/styleMock.js`.
 - `test/bootstrap.js` provides `ResizeObserver` (`test/__mocks__/resizeObserverMock.js`) and `IntersectionObserver` (`test/__mocks__/intersectionObserverMock.js`) mocks. Other mocking: `jest.fn()`, `jest.spyOn(object, 'method')`.

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 4cec35a6b5..10f47808aa 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -53,7 +53,7 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
 - Added the license check of plugins: a plugin that the tier of a license key leaves out stays off, and the console and the bar under the grid name the missing features. A plugin turned off with `disablePlugin()` while its option is on now counts as off for exports, imports, row resizing, the Loading overlay, and the Undo, Redo, and "Copy with group headers" context menu items. [#14104](https://github.com/handsontable/handsontable/pull/14104)
 - Added the `hidden_columns_hide` and `hidden_columns_show` keys to the column menu. List them in the `dropdownMenu` option to show the items. `dropdownMenu: true` is unchanged. A custom column menu item under one of these keys now uses the built-in action and visibility rule unless you set your own. The `MenuItemConfig` and `PredefinedMenuItemKey` types are now also exported from `handsontable`. [#14107](https://github.com/handsontable/handsontable/pull/14107)
 - Added the import of the errors Excel stores as rich values, such as #SPILL! and #CALC!, to the built-in XLSX engine. Such cells used to import as #VALUE!. A cell holding a linked data type, such as Stocks, is now reported in result.dropped. [#14119](https://github.com/handsontable/handsontable/pull/14119)
-- Added a "Powered by Handsontable DataGrid" bar below the grid for trial license keys (including trials issued for external use) and keys with the `badge` flag. A license bar now stays within the grid's declared `height`. [#14139](https://github.com/handsontable/handsontable/pull/14139)
+- Added a "Powered by Handsontable DataGrid" bar below the grid for trial license keys (including trials issued for external use) and keys with the `attribution-bar` flag. A license bar now stays within the grid's declared `height`. [#14139](https://github.com/handsontable/handsontable/pull/14139)
 - Added the `batchEvaluation` setting of the `formulas` option, which makes HyperFormula recalculate once for all changes made inside `batch()`, and the `beforeSuspendExecution`, `afterSuspendExecution`, `beforeResumeExecution`, and `afterResumeExecution` hooks. [#14268](https://github.com/handsontable/handsontable/pull/14268)
 - Added the `includeSummaryResults` option of a column summary, which lets a summary count the results of other summaries inside its range. [#14271](https://github.com/handsontable/handsontable/pull/14271)
 - Added license tiers: a license key can name the Standard or Professional tier, and the license key guide lists the features each tier includes. A key that names no tier keeps every feature. [#14284](https://github.com/handsontable/handsontable/pull/14284)
diff --git a/docs/AGENTS.md b/docs/AGENTS.md
index f79fe2462b..2137079ccb 100644
--- a/docs/AGENTS.md
+++ b/docs/AGENTS.md
@@ -331,7 +331,7 @@ Untagged code blocks (```` ``` ````) are not allowed.
 - Examples must be self-contained and runnable (or clearly labeled as a snippet).
 - Use `const` and `let`. Never use `var`.
 - Never write a license key value in an example. Leave the placeholder comment where the key goes, in the quote style of the file: `// licenseKey: 'your-license-key', // get a key at https://handsontable.com/pricing/`. In an Angular `HOT_GLOBAL_CONFIG`, comment out `license` the same way. In JSX, make it the first attribute of the component (`// licenseKey="your-license-key" // get a key at ...`), because the TypeScript transpile that generates the `.jsx` drops a comment that follows the last attribute. In an executed `.vue` example, put the placeholder in the settings object of the script block, not in the template. In an HTML template or a code-only snippet, put `<!-- license-key="your-license-key" (get a key at ...) -->` above the tag, because a tag cannot hold a comment.
-- **Staging and pull request previews run the examples with the internal test key.** Core skips the lock screen only on `handsontable.com` and its subdomains, so a build with `DOCS_TEST_LICENSE_KEY=true` (`docs-staging.yml` sets it, and so does the local build in `docs-visual-tests.yml` outside a release branch) rewrites each placeholder line of an executed example (`example*.{js,jsx,ts}`, and `vue/example*.vue`) into a live option that holds the key from `src/test-license-key.mjs` (`src/plugins/preview-license-key.mjs`). The rewrite runs in the Vite transform, so the code a page shows keeps the placeholder. A production build (`BUILD_MODE=production`, which includes RC staging) never gets the key. The build fails when the key reaches a page, when an injecting build skips an executed example that holds a placeholder, or holds the key in no script chunk, and, with no key injected, when any output holds it. RC staging keeps the lock screen, so the `release/*` visual baseline does too, and a docs pull request into a release branch, whose preview has the key, reports its example pages as changed (2.18). Only the three line forms above are rewritten, not the template comment. `src/plugins/__tests__/preview-license-key.test.mjs` fails on an executed example with no placeholder, one whose placeholder stays, and a `license` placeholder outside an Angular example. For local `npm run dev`, which runs on `localhost`, add `DOCS_TEST_LICENSE_KEY=true` to `docs/.env`.
+- **Staging and pull request previews run the examples with the internal test key.** Core skips the lock screen only on `handsontable.com` and its subdomains, so a build with `DOCS_TEST_LICENSE_KEY=true` (`docs-staging.yml` sets it, and so does the local build in `docs-visual-tests.yml` outside a release branch) rewrites each placeholder line of an executed example (`example*.{js,jsx,ts}`, and `vue/example*.vue`) into a live option that holds the key from `src/test-license-key.mjs` (`src/plugins/preview-license-key.mjs`). The rewrite runs in the Vite transform, so the code a page shows keeps the placeholder. The site's own scripts that build a grid outside `content/` (the 404 page's game) get the key the same way when they are listed in `KEYED_SITE_SCRIPTS` in that module; a new one goes on the list with the same placeholder line, or it shows the lock screen on every preview. A production build (`BUILD_MODE=production`, which includes RC staging) never gets the key. The build fails when the key reaches a page, when an injecting build skips an executed example that holds a placeholder, or holds the key in no script chunk, and, with no key injected, when any output holds it. RC staging keeps the lock screen, so the `release/*` visual baseline does too, and a docs pull request into a release branch, whose preview has the key, reports its example pages as changed (2.18). Only the three line forms above are rewritten, not the template comment. `src/plugins/__tests__/preview-license-key.test.mjs` fails on an executed example with no placeholder, one whose placeholder stays, and a `license` placeholder outside an Angular example. For local `npm run dev`, which runs on `localhost`, add `DOCS_TEST_LICENSE_KEY=true` to `docs/.env`.
 - No inline `// TODO` or `// ...` comments in published examples.
 - Keep examples between 25 and 60 lines. If longer, link to the live sandbox instead.
 - TypeScript is the primary language for new examples. Generate the JavaScript variant: `npm run docs:code-examples:generate-js <path>`.
diff --git a/docs/astro.config.mjs b/docs/astro.config.mjs
index 32b914cdd9..80f3550b33 100644
--- a/docs/astro.config.mjs
+++ b/docs/astro.config.mjs
@@ -16,6 +16,7 @@ import { replaceHasSelectors } from './src/plugins/replace-has-selectors.mjs';
 import {
   injectLicenseKey,
   isExecutedExampleId,
+  isKeyedSiteScriptId,
   previewLicenseKeyCheck,
   resolvePreviewLicenseKey,
 } from './src/plugins/preview-license-key.mjs';
@@ -189,7 +190,19 @@ function resolveMonorepoPackages() {
     // A staging or preview build first writes the internal test key over the
     // license placeholder of each executed example (preview-license-key.mjs).
     async transform(source, id) {
-      if (!id.includes('/content/')) return null;
+      if (!id.includes('/content/')) {
+        // A site script that builds a grid (the 404 page's game) gets the key the same way.
+        if (!previewLicenseKey || !isKeyedSiteScriptId(id)) return null;
+
+        const keyed = injectLicenseKey(source, previewLicenseKey);
+
+        if (keyed === source) return null;
+
+        licenseKeyRewrittenIds.add(id);
+
+        // Vite's own TypeScript transform runs after this `pre` plugin; the line count is unchanged.
+        return { code: keyed, map: null };
+      }

       // Runs first, on the source, before the JSX and Angular transpiles drop
       // the placeholder comments.
diff --git a/docs/content/guides/upgrade-and-migration/changelog/changelog.md b/docs/content/guides/upgrade-and-migration/changelog/changelog.md
index 5b682d55d6..7513abc9fa 100644
--- a/docs/content/guides/upgrade-and-migration/changelog/changelog.md
+++ b/docs/content/guides/upgrade-and-migration/changelog/changelog.md
@@ -75,7 +75,7 @@ For more information about this release, see:
 - Added the license check of plugins: a plugin that the tier of a license key leaves out stays off, and the console and the bar under the grid name the missing features. A plugin turned off with `disablePlugin()` while its option is on now counts as off for exports, imports, row resizing, the Loading overlay, and the Undo, Redo, and "Copy with group headers" context menu items. [#14104](https://github.com/handsontable/handsontable/pull/14104)
 - Added the `hidden_columns_hide` and `hidden_columns_show` keys to the column menu. List them in the `dropdownMenu` option to show the items. `dropdownMenu: true` is unchanged. A custom column menu item under one of these keys now uses the built-in action and visibility rule unless you set your own. The `MenuItemConfig` and `PredefinedMenuItemKey` types are now also exported from `handsontable`. [#14107](https://github.com/handsontable/handsontable/pull/14107)
 - Added the import of the errors Excel stores as rich values, such as #SPILL! and #CALC!, to the built-in XLSX engine. Such cells used to import as #VALUE!. A cell holding a linked data type, such as Stocks, is now reported in result.dropped. [#14119](https://github.com/handsontable/handsontable/pull/14119)
-- Added a "Powered by Handsontable DataGrid" bar below the grid for trial license keys (including trials issued for external use) and keys with the `badge` flag. A license bar now stays within the grid's declared `height`. [#14139](https://github.com/handsontable/handsontable/pull/14139)
+- Added a "Powered by Handsontable DataGrid" bar below the grid for trial license keys (including trials issued for external use) and keys with the `attribution-bar` flag. A license bar now stays within the grid's declared `height`. [#14139](https://github.com/handsontable/handsontable/pull/14139)
 - Added the `batchEvaluation` setting of the `formulas` option, which makes HyperFormula recalculate once for all changes made inside `batch()`, and the `beforeSuspendExecution`, `afterSuspendExecution`, `beforeResumeExecution`, and `afterResumeExecution` hooks. [#14268](https://github.com/handsontable/handsontable/pull/14268)
 - Added the `includeSummaryResults` option of a column summary, which lets a summary count the results of other summaries inside its range. [#14271](https://github.com/handsontable/handsontable/pull/14271)
 - Added license tiers: a license key can name the Standard or Professional tier, and the license key guide lists the features each tier includes. A key that names no tier keeps every feature. [#14284](https://github.com/handsontable/handsontable/pull/14284)
diff --git a/docs/src/plugins/__tests__/preview-license-key.test.mjs b/docs/src/plugins/__tests__/preview-license-key.test.mjs
index bb5a268108..2259c8c04a 100644
--- a/docs/src/plugins/__tests__/preview-license-key.test.mjs
+++ b/docs/src/plugins/__tests__/preview-license-key.test.mjs
@@ -10,9 +10,12 @@ import {
   TEST_KEY_MARKER,
   checkEveryExampleRewritten,
   checkKeyInOutput,
+  KEYED_SITE_SCRIPTS,
   injectLicenseKey,
   isExecutedExampleId,
+  isKeyedSiteScriptId,
   listExamplesWithPlaceholder,
+  listSiteScriptsWithPlaceholder,
   resolvePreviewLicenseKey,
 } from '../preview-license-key.mjs';
 import { TEST_LICENSE_KEY } from '../../test-license-key.mjs';
@@ -254,6 +257,27 @@ test('the build check fails on a key in displayed output, on a key missing from
   }
 });

+test('the site scripts that build a grid get the key too, and still parse', () => {
+  assert.equal(isKeyedSiteScriptId('/repo/docs/src/scripts/minesweeper-404.ts'), true);
+  assert.equal(isKeyedSiteScriptId('C:\\repo\\docs\\src\\scripts\\minesweeper-404.ts'), true);
+  assert.equal(isKeyedSiteScriptId('/repo/docs/src/scripts/minesweeper-404.ts?raw'), false);
+  assert.equal(isKeyedSiteScriptId('/repo/docs/src/scripts/example-runner.ts'), false);
+
+  // Every listed script holds a placeholder: one without it builds its grid with no key, and the build
+  // check would expect nothing from it.
+  assert.equal(listSiteScriptsWithPlaceholder(DOCS_DIR).length, KEYED_SITE_SCRIPTS.length);
+
+  for (const script of KEYED_SITE_SCRIPTS) {
+    const file = join(DOCS_DIR, script);
+    const code = readFileSync(file, 'utf8');
+    const out = injectLicenseKey(code, TEST_LICENSE_KEY);
+
+    assert.equal(out.split(KEY_JSON).length - 1, 1, `${script} gets the key once.`);
+    assert.equal(out.split('\n').length, code.split('\n').length, `${script} keeps its line count.`);
+    assert.deepEqual(moduleSyntaxErrors(out, file), moduleSyntaxErrors(code, file), `${script} still parses.`);
+  }
+});
+
 test('the build check fails when an executed example never reached the rewrite', () => {
   const expected = ['/repo/docs/content/a/javascript/example1.js', '/repo/docs/content/a/vue/example1.vue'];

diff --git a/docs/src/plugins/preview-license-key.mjs b/docs/src/plugins/preview-license-key.mjs
index c797abe967..589705d7c5 100644
--- a/docs/src/plugins/preview-license-key.mjs
+++ b/docs/src/plugins/preview-license-key.mjs
@@ -1,5 +1,5 @@
 import { readdirSync, readFileSync } from 'node:fs';
-import { extname, join, relative } from 'node:path';
+import { dirname, extname, join, relative } from 'node:path';
 import { fileURLToPath } from 'node:url';
 import { TEST_LICENSE_KEY } from '../test-license-key.mjs';

@@ -40,6 +40,37 @@ export function isExecutedExampleId(id) {
   return !id.includes('?') && EXECUTED_EXAMPLE_ID.test(toPosix(id));
 }

+/**
+ * The site's own scripts that build a grid, outside `content/`, by their path under `docs/`. A staging or
+ * preview build writes the key into them as it does into the examples: the 404 page's minesweeper grid
+ * showed the lock screen on every preview, and a scan of that page measured the lock.
+ */
+export const KEYED_SITE_SCRIPTS = ['src/scripts/minesweeper-404.ts'];
+
+/**
+ * Returns `true` when a Vite module id is one of the site scripts in `KEYED_SITE_SCRIPTS`.
+ *
+ * @param {string} id The Vite module id.
+ * @returns {boolean}
+ */
+export function isKeyedSiteScriptId(id) {
+  const path = toPosix(id);
+
+  return !id.includes('?') && KEYED_SITE_SCRIPTS.some(script => path.endsWith(`/docs/${script}`));
+}
+
+/**
+ * Lists the site scripts of `KEYED_SITE_SCRIPTS` that hold a placeholder: the scripts a build with the key
+ * must rewrite.
+ *
+ * @param {string} docsDir The absolute path of `docs`.
+ * @returns {string[]} Absolute file paths, with forward slashes.
+ */
+export function listSiteScriptsWithPlaceholder(docsDir) {
+  return KEYED_SITE_SCRIPTS.map(script => toPosix(join(docsDir, script)))
+    .filter(path => new RegExp(PLACEHOLDER_LINE.source, 'm').test(readFileSync(path, 'utf8')));
+}
+
 /**
  * Converts a path to forward slashes, the form Vite gives module ids in.
  *
@@ -188,7 +219,10 @@ export function previewLicenseKeyCheck({ injected, rewritten, contentDir }) {
     hooks: {
       'astro:build:done': ({ dir }) => {
         if (injected) {
-          checkEveryExampleRewritten(listExamplesWithPlaceholder(contentDir), rewritten);
+          checkEveryExampleRewritten([
+            ...listExamplesWithPlaceholder(contentDir),
+            ...listSiteScriptsWithPlaceholder(dirname(contentDir)),
+          ], rewritten);
         }

         checkKeyInOutput(fileURLToPath(dir), { injected });
diff --git a/examples/next/visual-tests/js/demo/src/demos/licensePoweredBy/index.js b/examples/next/visual-tests/js/demo/src/demos/licensePoweredBy/index.js
index 7b103ed43b..e51daaff3e 100644
--- a/examples/next/visual-tests/js/demo/src/demos/licensePoweredBy/index.js
+++ b/examples/next/visual-tests/js/demo/src/demos/licensePoweredBy/index.js
@@ -5,12 +5,12 @@ import { LICENSE_KEYS } from './keys';

 /**
  * Visual regression demo: a small grid built with a license key that shows the "Powered by
- * Handsontable DataGrid" bar under it, chosen by `?key=` (`badge` or `trial`, see `./keys.js`). The grid
+ * Handsontable DataGrid" bar under it, chosen by `?key=` (`attribution-bar` or `trial`, see `./keys.js`). The grid
  * is 480 px wide so the bar's text stays on one line, and it has row and column headers so a trial's
  * corner badge has its corner cell.
  */
 export function init() {
-  const keyName = getFromURL('key', 'badge');
+  const keyName = getFromURL('key', 'attribution-bar');

   if (!Object.prototype.hasOwnProperty.call(LICENSE_KEYS, keyName)) {
     throw new Error(`Unknown ?key= value: ${JSON.stringify(keyName)}`);
diff --git a/examples/next/visual-tests/js/demo/src/demos/licensePoweredBy/keys.js b/examples/next/visual-tests/js/demo/src/demos/licensePoweredBy/keys.js
index 4132c3a0d0..31e742f96c 100644
--- a/examples/next/visual-tests/js/demo/src/demos/licensePoweredBy/keys.js
+++ b/examples/next/visual-tests/js/demo/src/demos/licensePoweredBy/keys.js
@@ -1,16 +1,16 @@
 /**
  * The two license keys the "Powered by Handsontable DataGrid" demo can build its grid with, chosen by
  * `?key=`. They are the public test fixture keys of `tests/fixtures/demo/license-branding.html` (the
- * `trial` and `sponsored-badge` entries there), copied verbatim because this demo cannot import from
+ * `trial` and `sponsored-attribution-bar` entries there), copied verbatim because this demo cannot import from
  * `tests/`. Both are judged at a pinned clock: the visual spec fixes the time before it loads the page,
- * because the trial ran to 2026-09-26 and the badge key starts its renewal notice in 2027.
+ * because the trial ran to 2026-09-26 and the attribution-bar key starts its renewal notice in 2027.
  *
  * - `trial`: a running trial (usage_until 2026-09-26, flag `trial`). It shows the bar and the corner badge.
- * - `badge`: a sponsored key with the `badge` flag (usage_until 2027-11-04). It shows the bar alone.
+ * - `attribution-bar`: a sponsored key with the `attribution-bar` flag (usage_until 2027-11-04). It shows the bar alone.
  */
 export const LICENSE_KEYS = {
   // eslint-disable-next-line max-len
   trial: 'This is a Handsontable license key for Test Fixture, issued on 2026-08-12 for the "Fixture Project" project. It includes 1 license: > 1. Trial license under Handsontable Evaluation License Agreement 4.0 of 2026-03-02, for Handsontable on the Enterprise package, for internal use, valid until 2026-09-26 (UTC). Not licensed for production use. To purchase a license, contact sales@handsontable.com. [eyJwcm9kdWN0cyI6eyJoYW5kc29udGFibGUiOnsiY2FwYWJpbGl0aWVzIjpbImNvcmUiXSwidXNhZ2VfdW50aWwiOiIyMDI2LTA5LTI2Iiwibm90aWNlIjo0NSwiZ3JhY2UiOjE1LCJmbGFncyI6WyJ0cmlhbCJdfX0sInYiOjIsInByb3NlIjoiMzg3MzYxOTE5Yzc1YTQ0NTA4NGZmNmM1MmYwMmM0ZDJjNmMyMTVhYzc2YjFkMGRiYTZiMDkzODFmMDkwNjg1YSJ973a630de3fb4f97dd3d82647b57149489e48114b83ac7d5ca92d370a0be18246eecfedca9c2671de91a39840c8c2b6964b5756bf3fc2b7adbe0718167ea55b50]',
   // eslint-disable-next-line max-len
-  badge: 'This is a Handsontable license key for Test Fixture, issued on 2026-11-04 for the "Fixture Project" project. It includes 1 license: > 1. Sponsored license under Handsontable Subscription License Agreement 2.0 of 2022-05-21, for Handsontable, for internal use, valid until 2027-11-04 (UTC). Issued free of charge for non-commercial use. Use after that date is not permitted. To renew, contact sales@handsontable.com. The grid must display the "Powered by Handsontable DataGrid" bar. [eyJwcm9kdWN0cyI6eyJoYW5kc29udGFibGUiOnsiY2FwYWJpbGl0aWVzIjpbImNvcmUiXSwidXNhZ2VfdW50aWwiOiIyMDI3LTExLTA0Iiwibm90aWNlIjo2MCwiZ3JhY2UiOjkwLCJmbGFncyI6WyJiYWRnZSJdfX0sInYiOjIsInByb3NlIjoiODJjNTVkZWU2MDE5OWVhN2MyMTk5ZjJjNjM2NjhlOWRjZTVhZDZiMzQ2NDEwZTc4ZmZjMzdjZTQ1YTkzNzEwYiJ95716456604582d8de0c19837584475d5035693918c6fc8ec0d46be733eb5aaf73bb6aa51201b5deb5418a15d01383bead2fa14f9eb10895679efc6c0952a8cc2]',
+  'attribution-bar': 'This is a Handsontable license key for Test Fixture, issued on 2026-11-04 for the "Fixture Project" project. It includes 1 license: > 1. Sponsored license under Handsontable Subscription License Agreement 2.0 of 2022-05-21, for Handsontable, for internal use, valid until 2027-11-04 (UTC). Issued free of charge for non-commercial use. Use after that date is not permitted. To renew, contact sales@handsontable.com. The grid must display the "Powered by Handsontable DataGrid" bar. [eyJwcm9kdWN0cyI6eyJoYW5kc29udGFibGUiOnsiY2FwYWJpbGl0aWVzIjpbImNvcmUiXSwidXNhZ2VfdW50aWwiOiIyMDI3LTExLTA0Iiwibm90aWNlIjo2MCwiZ3JhY2UiOjkwLCJmbGFncyI6WyJhdHRyaWJ1dGlvbi1iYXIiXX19LCJ2IjoyLCJwcm9zZSI6IjgyYzU1ZGVlNjAxOTllYTdjMjE5OWYyYzYzNjY4ZTlkY2U1YWQ2YjM0NjQxMGU3OGZmYzM3Y2U0NWE5MzcxMGIifQ99d10a32bd349c604ad7c60c5ff83462865f830c72d14aa3fc5b68d93be1a16979feb380af60994954d244ac06fb59d29d8247d430116f710bcdd867bfcf2429]',
 };
diff --git a/handsontable/.ai/TESTING.md b/handsontable/.ai/TESTING.md
index aeae379810..7559305088 100644
--- a/handsontable/.ai/TESTING.md
+++ b/handsontable/.ai/TESTING.md
@@ -719,6 +719,29 @@ it('should maintain selections after render', async() => {
 - `keyDownUp(key)` -- Simulate full keydown+keyup sequence
 - Key names: `'enter'`, `'esc'`, `'tab'`, `'arrowdown'`, `'arrowup'`, `'arrowleft'`, `'arrowright'`, `'ctrl'`, `'shift'`, `'space'`, `'backspace'`, `'delete'`, etc.

+## The license key every test grid takes
+
+Since 19.0 a grid built without a valid key mounts behind the license lock. API calls still work, so a test
+that only reads the grid passes, while its clicks, focus moves, screenshots and axe scans meet the lock. Every
+grid a test builds therefore takes the internal test key, from its suite's constant:
+`TEST_LICENSE_KEY` (`test/helpers/licenseKey.js`; a global in Jasmine specs, imported in Jest), and
+`window.htTestLicenseKey` in a Playwright fixture. The Jasmine `handsontable()` helper adds it unless
+`explicitOptions` is `true`. Only a test of the license behavior itself builds another key, or none.
+
+Three guards hold it, one per runner, because no single check sees every runner:
+
+- **Jasmine and fixture pages: a static scan.** `scripts/__tests__/test-license-key.test.mjs` (root
+  `test:tooling`) fails on a grid constructor (`new Handsontable(`, `new Handsontable.Core(`, `new Core(`,
+  jQuery's `.handsontable(`) whose options do not name `licenseKey`, unless they are a variable, a spread or
+  `Object.assign()` in a file that sets a key. A runtime check cannot do this job in Jasmine: the whole suite
+  shares one page, and the core prints the legacy key message once per page.
+- **Jest: the console.** `test/jestExpectedConsole.js` fails a unit test whose grid logged a missing, invalid
+  or expired key message, unless its file is listed in `LICENSE_TEST_FILES`. The message prints once per
+  test file, so the guard fails the first keyless grid of a file. A `Core` built without the root symbol
+  never checks the key and logs nothing; it shows no lock either.
+- **Playwright: the page.** The `page` fixture in `tests/fixtures/test.ts` fails a passing test that left a
+  `.ht-license-lock` on its page (`tests/AGENTS.md`, "Fixture contract").
+
 ## Bootstrap and Setup

 **Test Bootstrap** (`handsontable/test/bootstrap.js`):
diff --git a/handsontable/src/__tests__/core/destroy.spec.js b/handsontable/src/__tests__/core/destroy.spec.js
index 652ed8f0c5..ad8e102e7d 100644
--- a/handsontable/src/__tests__/core/destroy.spec.js
+++ b/handsontable/src/__tests__/core/destroy.spec.js
@@ -34,7 +34,7 @@ describe('Core_destroy', () => {

     const $tmp = $('<div id="tmp"></div>').appendTo(document.body);

-    $tmp.handsontable();
+    $tmp.handsontable({ licenseKey: TEST_LICENSE_KEY });
     $tmp.handsontable('destroy');
     $tmp.remove();

diff --git a/handsontable/src/__tests__/core/init.spec.js b/handsontable/src/__tests__/core/init.spec.js
index ffc19f1fdb..3f4dfba9dd 100644
--- a/handsontable/src/__tests__/core/init.spec.js
+++ b/handsontable/src/__tests__/core/init.spec.js
@@ -45,7 +45,7 @@ describe('Core_init', () => {
     const container = $('<div/>').appendTo(doc.body);

     expect(() => {
-      container.handsontable({});
+      container.handsontable({ licenseKey: TEST_LICENSE_KEY });
       container.handsontable('destroy');
     }).not.toThrow();
   });
diff --git a/handsontable/src/__tests__/core/listen.spec.js b/handsontable/src/__tests__/core/listen.spec.js
index 83e22a9415..c9abfdc3c6 100644
--- a/handsontable/src/__tests__/core/listen.spec.js
+++ b/handsontable/src/__tests__/core/listen.spec.js
@@ -161,10 +161,10 @@ describe('Core.listen', () => {
   });

   it('when second instance is created, first should unlisten automatically', async() => {
-    const $container1 = $('<div id="hot1"></div>').appendTo('body').handsontable();
+    const $container1 = $('<div id="hot1"></div>').appendTo('body').handsontable({ licenseKey: TEST_LICENSE_KEY });

     $container1.handsontable('selectCell', 0, 0);
-    const $container2 = $('<div id="hot2"></div>').appendTo('body').handsontable();
+    const $container2 = $('<div id="hot2"></div>').appendTo('body').handsontable({ licenseKey: TEST_LICENSE_KEY });

     $container2.handsontable('selectCell', 0, 0);

@@ -178,10 +178,10 @@ describe('Core.listen', () => {
   });

   it('when listen is called on first instance, second should unlisten automatically', async() => {
-    const $container1 = $('<div id="hot1"></div>').appendTo('body').handsontable();
+    const $container1 = $('<div id="hot1"></div>').appendTo('body').handsontable({ licenseKey: TEST_LICENSE_KEY });

     $container1.handsontable('selectCell', 0, 0);
-    const $container2 = $('<div id="hot2"></div>').appendTo('body').handsontable();
+    const $container2 = $('<div id="hot2"></div>').appendTo('body').handsontable({ licenseKey: TEST_LICENSE_KEY });

     $container2.handsontable('selectCell', 0, 0);

@@ -213,6 +213,7 @@ describe('Core.listen', () => {
     const afterUnlisten = jasmine.createSpy('afterUnlisten');

     $iframeContainer.handsontable({
+      licenseKey: TEST_LICENSE_KEY,
       afterUnlisten,
     });

diff --git a/handsontable/src/editors/baseEditor/__tests__/baseEditor.spec.js b/handsontable/src/editors/baseEditor/__tests__/baseEditor.spec.js
index c69c5f397e..7d5528567d 100644
--- a/handsontable/src/editors/baseEditor/__tests__/baseEditor.spec.js
+++ b/handsontable/src/editors/baseEditor/__tests__/baseEditor.spec.js
@@ -380,7 +380,7 @@ describe('BaseEditor', () => {
       const hot1 = handsontable({});
       const container2 = $(`<div id="${id}2" style="width: 300px; height: 200px; overflow: auto"></div>`)
         .appendTo('body');
-      const hot2 = container2.handsontable().handsontable('getInstance');
+      const hot2 = container2.handsontable({ licenseKey: TEST_LICENSE_KEY }).handsontable('getInstance');

       $(hot1.getCell(1, 1)).simulate('mousedown');
       $(hot1.getCell(1, 1)).simulate('mouseover');
diff --git a/handsontable/src/editors/multiSelectEditor/__tests__/multiSelectEditor.spec.js b/handsontable/src/editors/multiSelectEditor/__tests__/multiSelectEditor.spec.js
index d67ea0ace7..feaebf25b0 100644
--- a/handsontable/src/editors/multiSelectEditor/__tests__/multiSelectEditor.spec.js
+++ b/handsontable/src/editors/multiSelectEditor/__tests__/multiSelectEditor.spec.js
@@ -1231,6 +1231,7 @@ describe('MultiSelectEditor', () => {

         const $container2 = $('<div style="width: 300px; height: 300px;"></div>').appendTo('body');
         const hot2 = new Handsontable($container2[0], {
+          licenseKey: TEST_LICENSE_KEY,
           data: [[[]]],
           columns: [{ type: 'multiselect', source: choices }],
         });
diff --git a/handsontable/src/helpers/__tests__/entitlementLicenseInfo.unit.js b/handsontable/src/helpers/__tests__/entitlementLicenseInfo.unit.js
index 90fc0f6cc5..6cd69b245a 100644
--- a/handsontable/src/helpers/__tests__/entitlementLicenseInfo.unit.js
+++ b/handsontable/src/helpers/__tests__/entitlementLicenseInfo.unit.js
@@ -10,12 +10,13 @@ import {
   PERPETUAL_KEY,
   PERPETUAL_NO_UI_WARNS_KEY,
   HF_ONLY_KEY,
-  SPONSORED_BADGE_KEY,
-  SPONSORED_BADGE_EXTERNAL_KEY,
-  SPONSORED_NO_BADGE_KEY,
-  PERPETUAL_BADGE_KEY,
-  PERPETUAL_BADGE_NO_UI_WARNS_KEY,
-  BADGE_EMPTY_CLAUSE_KEY,
+  SPONSORED_ATTRIBUTION_BAR_KEY,
+  SPONSORED_ATTRIBUTION_BAR_EXTERNAL_KEY,
+  SPONSORED_NO_ATTRIBUTION_BAR_KEY,
+  PERPETUAL_ATTRIBUTION_BAR_KEY,
+  PERPETUAL_ATTRIBUTION_BAR_NO_UI_WARNS_KEY,
+  ATTRIBUTION_BAR_EMPTY_CLAUSE_KEY,
+  SPONSORED_RETIRED_BADGE_FLAG_KEY,
 } from '../../utils/entitlementLicenseKey/__tests__/fixtures';
 import { blockOf } from '../../utils/entitlementLicenseKey/__tests__/buildTestKey';

@@ -355,7 +356,7 @@ describe('entitlement license notification (via _injectProductInfo)', () => {
   });
 });

-describe('the `badge` facet of the license state (DEV-3413)', () => {
+describe('the `attributionBar` facet of the license state (DEV-3413)', () => {
   let _getLicenseState;

   beforeEach(() => {
@@ -364,41 +365,42 @@ describe('the `badge` facet of the license state (DEV-3413)', () => {
     _getLicenseState = require('../mixed')._getLicenseState;
   });

-  it('should read `badge` from a key whose Handsontable entry carries the flag', () => {
-    expect(_getLicenseState(SPONSORED_BADGE_KEY).badge).toBe(true);
+  it('should read `attributionBar` from a key whose Handsontable entry carries the flag', () => {
+    expect(_getLicenseState(SPONSORED_ATTRIBUTION_BAR_KEY).attributionBar).toBe(true);
   });

-  it('should read `badge` from a perpetual key, whose entry is a `release_until` one', () => {
-    expect(_getLicenseState(PERPETUAL_BADGE_KEY).badge).toBe(true);
+  it('should read `attributionBar` from a perpetual key, whose entry is a `release_until` one', () => {
+    expect(_getLicenseState(PERPETUAL_ATTRIBUTION_BAR_KEY).attributionBar).toBe(true);
   });

-  it('should keep `badge` on a perpetual key that also carries `no-ui-warns`', () => {
-    const { badge, channels } = _getLicenseState(PERPETUAL_BADGE_NO_UI_WARNS_KEY);
+  it('should keep `attributionBar` on a perpetual key that also carries `no-ui-warns`', () => {
+    const { attributionBar, channels } = _getLicenseState(PERPETUAL_ATTRIBUTION_BAR_NO_UI_WARNS_KEY);

     expect(channels.ui).toBe(false);
-    expect(badge).toBe(true);
+    expect(attributionBar).toBe(true);
   });

-  it('should read `badge` from a key whose badge clause is empty', () => {
-    expect(_getLicenseState(BADGE_EMPTY_CLAUSE_KEY).badge).toBe(true);
+  it('should read `attributionBar` from a key whose attribution bar clause is empty', () => {
+    expect(_getLicenseState(ATTRIBUTION_BAR_EMPTY_CLAUSE_KEY).attributionBar).toBe(true);
   });

-  it('should keep `badge` on a key whose silencing flags close both channels', () => {
-    const { badge, channels } = _getLicenseState(SPONSORED_BADGE_EXTERNAL_KEY);
+  it('should keep `attributionBar` on a key whose silencing flags close both channels', () => {
+    const { attributionBar, channels } = _getLicenseState(SPONSORED_ATTRIBUTION_BAR_EXTERNAL_KEY);

     expect(channels).toEqual({ console: false, ui: false });
-    expect(badge).toBe(true);
+    expect(attributionBar).toBe(true);
   });

   it.each([
-    ['a sponsored key without the flag', SPONSORED_NO_BADGE_KEY],
+    ['a sponsored key without the flag', SPONSORED_NO_ATTRIBUTION_BAR_KEY],
+    ['a sponsored key with the retired `badge` flag (DEV-4153), an unknown flag now', SPONSORED_RETIRED_BADGE_FLAG_KEY],
     ['a subscription key', SUBSCRIPTION_KEY],
-    ['a trial key (the bar of a trial comes from its `trial` flag, not from `badge`)', TRIAL_KEY],
+    ['a trial key (the bar of a trial comes from its `trial` flag, not from `attribution-bar`)', TRIAL_KEY],
     ['a key that grants no Handsontable license', HF_ONLY_KEY],
     ['the non-commercial key', 'non-commercial-and-evaluation'],
     ['a malformed legacy key', '00000-00000-00000-00000-00000'],
     ['no key', undefined],
-  ])('should read no `badge` from %s', (_label, key) => {
-    expect(_getLicenseState(key).badge).toBe(false);
+  ])('should read no `attributionBar` from %s', (_label, key) => {
+    expect(_getLicenseState(key).attributionBar).toBe(false);
   });
 });
diff --git a/handsontable/src/helpers/dom/__tests__/element.spec.js b/handsontable/src/helpers/dom/__tests__/element.spec.js
index 81fe67fdb5..02b1cadb20 100644
--- a/handsontable/src/helpers/dom/__tests__/element.spec.js
+++ b/handsontable/src/helpers/dom/__tests__/element.spec.js
@@ -18,6 +18,7 @@ describe('DOM helpers', () => {
       document.body.appendChild(hotContainer);

       const hot = new Handsontable(hotContainer, {
+        licenseKey: TEST_LICENSE_KEY,
         data: createSpreadsheetData(10, 10),
         colHeaders: true,
         rowHeaders: true,
diff --git a/handsontable/src/helpers/mixed.ts b/handsontable/src/helpers/mixed.ts
index 1723eee25e..871bed53db 100644
--- a/handsontable/src/helpers/mixed.ts
+++ b/handsontable/src/helpers/mixed.ts
@@ -6,7 +6,7 @@ import {
   classifyEntitlement,
   resolveChannels,
   HANDSONTABLE_PRODUCT,
-  BADGE_FLAG,
+  ATTRIBUTION_BAR_FLAG,
 } from '../utils/entitlementLicenseKey';
 import { getKeyTiers } from '../utils/licenseCapabilities/tiers';
 import type {
@@ -602,14 +602,14 @@ export type LicenseStateKey = LicenseLifecycleFacet['state'];
 /**
  * The resolved license state handed to the UI and the feature gates: the lifecycle facet (what the
  * license IS right now), the channels it leaves open (where it may say so), and the tiers it names
- * (what it UNLOCKS). `badge` says the Handsontable entry carries the `badge` flag - the "Powered by"
+ * (what it UNLOCKS). `attributionBar` says the Handsontable entry carries the `attribution-bar` flag - the "Powered by"
  * bar the licensee agreed to show. It is branding, not a channel, so no silencing flag closes it;
  * every key outside the entitlement format, and an unreadable one, has none.
  */
 export interface LicenseStateDescriptor {
   lifecycle: LicenseLifecycleFacet;
   channels: LicenseChannels;
-  badge: boolean;
+  attributionBar: boolean;
   /**
    * The license tiers the Handsontable entry names (`tier:<name>` tokens), in order. Only a tier
    * restricts: `null` (no tier) unlocks every feature, and a list unlocks the features whose tiers
@@ -713,7 +713,7 @@ export function _getLicenseState(rawKey?: string, releaseDate?: string): License
     return {
       lifecycle: _nonEntitlementLifecycle('legacy_valid'),
       channels: OPEN_CHANNELS,
-      badge: false,
+      attributionBar: false,
       tiers: null,
     };
   }
@@ -722,7 +722,7 @@ export function _getLicenseState(rawKey?: string, releaseDate?: string): License
     return {
       lifecycle: _classifyLegacyKey(key, releaseDate),
       channels: OPEN_CHANNELS,
-      badge: false,
+      attributionBar: false,
       tiers: null,
     };
   }
@@ -740,7 +740,7 @@ export function _getLicenseState(rawKey?: string, releaseDate?: string): License
     return {
       lifecycle: _nonEntitlementLifecycle('invalid'),
       channels: OPEN_CHANNELS,
-      badge: false,
+      attributionBar: false,
       tiers: null,
     };
   }
@@ -756,19 +756,19 @@ export function _getLicenseState(rawKey?: string, releaseDate?: string): License
   return {
     lifecycle,
     channels: resolveChannels(entitlement),
-    badge: _carriesBadge(entitlement),
+    attributionBar: _carriesAttributionBar(entitlement),
     tiers: getKeyTiers(entitlement.capabilities),
   };
 }

 /**
- * Tells whether a product entry asks for the "Powered by" bar (the `badge` flag).
+ * Tells whether a product entry asks for the "Powered by" bar (the `attribution-bar` flag).
  *
  * @param {ProductEntitlement} entitlement The Handsontable entry of a verified key.
  * @returns {boolean}
  */
-function _carriesBadge(entitlement: ProductEntitlement): boolean {
-  return entitlement.flags.indexOf(BADGE_FLAG) !== -1;
+function _carriesAttributionBar(entitlement: ProductEntitlement): boolean {
+  return entitlement.flags.indexOf(ATTRIBUTION_BAR_FLAG) !== -1;
 }

 /**
diff --git a/handsontable/src/plugins/autoColumnSize/__tests__/autoColumnSize.spec.js b/handsontable/src/plugins/autoColumnSize/__tests__/autoColumnSize.spec.js
index 5f6b37ef8d..5c6cc42f9b 100644
--- a/handsontable/src/plugins/autoColumnSize/__tests__/autoColumnSize.spec.js
+++ b/handsontable/src/plugins/autoColumnSize/__tests__/autoColumnSize.spec.js
@@ -447,6 +447,7 @@ describe('AutoColumnSize', () => {
     });

     spec().$container2.handsontable({
+      licenseKey: TEST_LICENSE_KEY,
       data: arrayOfObjects()
     });

@@ -552,9 +553,11 @@ describe('AutoColumnSize', () => {
   it('should consider CSS style of each instance separately', async() => {
     const $style = $('<style>.big .htCore td {font-size: 40px; line-height: 1.1;}</style>').appendTo('head');
     const $container1 = $('<div id="hot1"></div>').appendTo('body').handsontable({
+      licenseKey: TEST_LICENSE_KEY,
       data: arrayOfObjects()
     });
     const $container2 = $('<div id="hot2"></div>').appendTo('body').handsontable({
+      licenseKey: TEST_LICENSE_KEY,
       data: arrayOfObjects()
     });
     const hot1 = $container1.handsontable('getInstance');
@@ -1281,6 +1284,7 @@ describe('AutoColumnSize', () => {
       });

       spec().$container2.handsontable({
+        licenseKey: TEST_LICENSE_KEY,
         data: [['c'], ['d']],
         autoRowSize: true,
         autoColumnSize: true,
@@ -1314,6 +1318,7 @@ describe('AutoColumnSize', () => {
       });

       const hot2Instance = spec().$container2.handsontable({
+        licenseKey: TEST_LICENSE_KEY,
         data: [['=Sheet1!A1'], ['d'], ['e']],
         autoColumnSize: true,
         formulas: {
diff --git a/handsontable/src/plugins/autoRowSize/__tests__/autoRowSize.spec.js b/handsontable/src/plugins/autoRowSize/__tests__/autoRowSize.spec.js
index 94e9fe4574..88a9bebc8d 100644
--- a/handsontable/src/plugins/autoRowSize/__tests__/autoRowSize.spec.js
+++ b/handsontable/src/plugins/autoRowSize/__tests__/autoRowSize.spec.js
@@ -345,10 +345,12 @@ describe('AutoRowSize', () => {
   it('should consider CSS style of each instance separately', async() => {
     const $style = $('<style>.big .htCore td {font-size: 40px;line-height: 1.1}</style>').appendTo('head');
     const $container1 = $('<div id="hot1"></div>').appendTo('body').handsontable({
+      licenseKey: TEST_LICENSE_KEY,
       data: arrayOfObjects(),
       autoRowSize: true
     });
     const $container2 = $('<div id="hot2"></div>').appendTo('body').handsontable({
+      licenseKey: TEST_LICENSE_KEY,
       data: arrayOfObjects(),
       autoRowSize: true
     });
@@ -957,6 +959,7 @@ describe('AutoRowSize', () => {
       });

       spec().$container2.handsontable({
+        licenseKey: TEST_LICENSE_KEY,
         data: [['c'], ['d']],
         autoRowSize: true,
         autoColumnSize: true,
@@ -990,6 +993,7 @@ describe('AutoRowSize', () => {
       });

       const hot2Instance = spec().$container2.handsontable({
+        licenseKey: TEST_LICENSE_KEY,
         data: [['=Sheet1!A1'], ['d'], ['e']],
         autoRowSize: true,
         formulas: {
diff --git a/handsontable/src/plugins/autofill/__tests__/autofill.spec.js b/handsontable/src/plugins/autofill/__tests__/autofill.spec.js
index c31c3d6d8c..0030bece66 100644
--- a/handsontable/src/plugins/autofill/__tests__/autofill.spec.js
+++ b/handsontable/src/plugins/autofill/__tests__/autofill.spec.js
@@ -1311,12 +1311,14 @@ describe('AutoFill', () => {
       ];

       $container1 = $('<div id="hot1"></div>').appendTo('body').handsontable({
+        licenseKey: TEST_LICENSE_KEY,
         data: getData(),
         fillHandle: true,
         themeName: `ht-theme-${getLoadedTheme()}`
       });

       $container2 = $('<div id="hot2"></div>').appendTo('body').handsontable({
+        licenseKey: TEST_LICENSE_KEY,
         data: getData(),
         fillHandle: 'horizontal',
         themeName: `ht-theme-${getLoadedTheme()}`
diff --git a/handsontable/src/plugins/columnSorting/__tests__/columnSorting.spec.js b/handsontable/src/plugins/columnSorting/__tests__/columnSorting.spec.js
index 680b2f5d81..c3f5aeeef4 100644
--- a/handsontable/src/plugins/columnSorting/__tests__/columnSorting.spec.js
+++ b/handsontable/src/plugins/columnSorting/__tests__/columnSorting.spec.js
@@ -2087,7 +2087,7 @@ describe('ColumnSorting', () => {
     });

     spec().$container2 = $(`<div id='${id}-2'></div>`).appendTo('body');
-    spec().$container2.handsontable();
+    spec().$container2.handsontable({ licenseKey: TEST_LICENSE_KEY });

     await selectCell(0, 1);
     await keyDownUp('enter');
diff --git a/handsontable/src/plugins/comments/__tests__/comments.spec.js b/handsontable/src/plugins/comments/__tests__/comments.spec.js
index 61f8168a54..a98f596611 100644
--- a/handsontable/src/plugins/comments/__tests__/comments.spec.js
+++ b/handsontable/src/plugins/comments/__tests__/comments.spec.js
@@ -476,6 +476,7 @@ describe('Comments', () => {
       `).appendTo(spec().$container);

       const hot = new Handsontable(testContainer.find('#hot-container')[0], {
+        licenseKey: TEST_LICENSE_KEY,
         data: createSpreadsheetData(10, 10),
         width: 200,
         height: 150,
@@ -1358,6 +1359,7 @@ describe('Comments', () => {
   describe('Destroying the plugin with two instances of Handsontable', () => {
     it('should create two containers for comments for two HOT instances', async() => {
       const container1 = $('<div id="hot1"></div>').appendTo(spec().$container).handsontable({
+        licenseKey: TEST_LICENSE_KEY,
         data: createSpreadsheetData(6, 6),
         cell: [
           { row: 1, col: 1, comment: { value: 'Hello world!' } },
@@ -1369,6 +1371,7 @@ describe('Comments', () => {
       });

       const container2 = $('<div id="hot2"></div>').appendTo(spec().$container).handsontable({
+        licenseKey: TEST_LICENSE_KEY,
         data: createSpreadsheetData(6, 6),
         cell: [{ row: 1, col: 1, comment: { value: 'Hello world!' } }],
         rowHeaders: true,
@@ -1393,6 +1396,7 @@ describe('Comments', () => {

     it('should delete one container when one HOT instance is destroyed', async() => {
       const container1 = $('<div id="hot1"></div>').appendTo(spec().$container).handsontable({
+        licenseKey: TEST_LICENSE_KEY,
         data: createSpreadsheetData(6, 6),
         cell: [
           { row: 1, col: 1, comment: { value: 'Hello world!' } },
@@ -1404,6 +1408,7 @@ describe('Comments', () => {
       });

       const container2 = $('<div id="hot2"></div>').appendTo(spec().$container).handsontable({
+        licenseKey: TEST_LICENSE_KEY,
         data: createSpreadsheetData(6, 6),
         cell: [{ row: 1, col: 1, comment: { value: 'Hello world!' } }],
         rowHeaders: true,
diff --git a/handsontable/src/plugins/comments/__tests__/rtl/comments.spec.js b/handsontable/src/plugins/comments/__tests__/rtl/comments.spec.js
index 12c6c3f3fc..eed9f92fa7 100644
--- a/handsontable/src/plugins/comments/__tests__/rtl/comments.spec.js
+++ b/handsontable/src/plugins/comments/__tests__/rtl/comments.spec.js
@@ -269,6 +269,7 @@ describe('Comments (RTL mode)', () => {
         `).appendTo(spec().$container);

         const hot = new Handsontable(testContainer.find('#hot-container')[0], {
+          licenseKey: TEST_LICENSE_KEY,
           layoutDirection,
           data: createSpreadsheetData(20, 10),
           width: 400,
diff --git a/handsontable/src/plugins/contextMenu/__tests__/contextMenu.spec.js b/handsontable/src/plugins/contextMenu/__tests__/contextMenu.spec.js
index 9682ee8a21..c6493051e8 100644
--- a/handsontable/src/plugins/contextMenu/__tests__/contextMenu.spec.js
+++ b/handsontable/src/plugins/contextMenu/__tests__/contextMenu.spec.js
@@ -2585,6 +2585,7 @@ describe('ContextMenu', () => {
         height: 100
       });
       const hot2 = spec().$container2.handsontable({
+        licenseKey: TEST_LICENSE_KEY,
         contextMenu: true,
         height: 100
       }).handsontable('getInstance');
@@ -2644,6 +2645,7 @@ describe('ContextMenu', () => {
       });

       const hot2 = spec().$container2.handsontable({
+        licenseKey: TEST_LICENSE_KEY,
         contextMenu: true,
         height: 100
       }).handsontable('getInstance');
diff --git a/handsontable/src/plugins/contextMenu/__tests__/positioning.spec.js b/handsontable/src/plugins/contextMenu/__tests__/positioning.spec.js
index 86d37e9ab9..61426d939e 100644
--- a/handsontable/src/plugins/contextMenu/__tests__/positioning.spec.js
+++ b/handsontable/src/plugins/contextMenu/__tests__/positioning.spec.js
@@ -60,6 +60,7 @@ describe('ContextMenu', () => {
         const container = $('<div/>').css({ marginTop: '500px', marginLeft: '500px' }).appendTo(docInside.body);

         const hot = container.handsontable({
+          licenseKey: TEST_LICENSE_KEY,
           layoutDirection,
           contextMenu: {
             uiContainer: uiContainer[0],
diff --git a/handsontable/src/plugins/copyPaste/__tests__/generalFunctionality.spec.js b/handsontable/src/plugins/copyPaste/__tests__/generalFunctionality.spec.js
index 14561b03fd..b01c4e907a 100644
--- a/handsontable/src/plugins/copyPaste/__tests__/generalFunctionality.spec.js
+++ b/handsontable/src/plugins/copyPaste/__tests__/generalFunctionality.spec.js
@@ -53,7 +53,9 @@ describe('CopyPaste', () => {

     it('should disable copyPaste only in particular table', async() => {
       const hot1 = handsontable();
-      const hot2 = spec().$container2.handsontable({ copyPaste: false }).handsontable('getInstance');
+      const hot2 = spec().$container2
+        .handsontable({ licenseKey: TEST_LICENSE_KEY, copyPaste: false })
+        .handsontable('getInstance');

       expect(hot1.getPlugin('CopyPaste').isEnabled()).toBe(true);
       expect(hot2.getPlugin('CopyPaste').isEnabled()).toBe(false);
@@ -61,14 +63,14 @@ describe('CopyPaste', () => {

     it('should not create HandsontableCopyPaste element until the table will be selected', async() => {
       handsontable();
-      spec().$container2.handsontable();
+      spec().$container2.handsontable({ licenseKey: TEST_LICENSE_KEY });

       expect($('.HandsontableCopyPaste').length).toBe(0);
     });

     it('should not touch focusable element borrowed from cell editors', async() => {
       const hot1 = handsontable();
-      const hot2 = spec().$container2.handsontable().handsontable('getInstance');
+      const hot2 = spec().$container2.handsontable({ licenseKey: TEST_LICENSE_KEY }).handsontable('getInstance');

       hot1.selectCell(0, 0);
       hot2.selectCell(0, 0);
diff --git a/handsontable/src/plugins/dropdownMenu/__tests__/dropdownMenu.spec.js b/handsontable/src/plugins/dropdownMenu/__tests__/dropdownMenu.spec.js
index ead6148d88..38af1a8648 100644
--- a/handsontable/src/plugins/dropdownMenu/__tests__/dropdownMenu.spec.js
+++ b/handsontable/src/plugins/dropdownMenu/__tests__/dropdownMenu.spec.js
@@ -679,6 +679,7 @@ describe('DropdownMenu', () => {
         height: 100
       });
       let hot2 = spec().$container2.handsontable({
+        licenseKey: TEST_LICENSE_KEY,
         dropdownMenu: true,
         height: 100
       });
diff --git a/handsontable/src/plugins/exportFile/__tests__/types/xlsx/features.spec.js b/handsontable/src/plugins/exportFile/__tests__/types/xlsx/features.spec.js
index 0b801cb10d..bb06e014a4 100644
--- a/handsontable/src/plugins/exportFile/__tests__/types/xlsx/features.spec.js
+++ b/handsontable/src/plugins/exportFile/__tests__/types/xlsx/features.spec.js
@@ -189,7 +189,9 @@ import ExcelJS from 'exceljs';
         });

         hot2Container = $('<div></div>').appendTo('body');
-        hot2 = hot2Container.handsontable({ data: [['Sheet2-A1']] }).handsontable('getInstance');
+        hot2 = hot2Container
+          .handsontable({ licenseKey: TEST_LICENSE_KEY, data: [['Sheet2-A1']] })
+          .handsontable('getInstance');

         const sheets = await parseXlsxAllSheets({
           sheets: [
@@ -210,7 +212,9 @@ import ExcelJS from 'exceljs';
         });

         hot2Container = $('<div></div>').appendTo('body');
-        hot2 = hot2Container.handsontable({ data: [['Widget', 50]] }).handsontable('getInstance');
+        hot2 = hot2Container
+          .handsontable({ licenseKey: TEST_LICENSE_KEY, data: [['Widget', 50]] })
+          .handsontable('getInstance');

         const sheets = await parseXlsxAllSheets({
           sheets: [
@@ -234,7 +238,7 @@ import ExcelJS from 'exceljs';

         hot2Container = $('<div></div>').appendTo('body');
         hot2 = hot2Container
-          .handsontable({ data: createSpreadsheetData(1, 2), colHeaders: ['X', 'Y'] })
+          .handsontable({ licenseKey: TEST_LICENSE_KEY, data: createSpreadsheetData(1, 2), colHeaders: ['X', 'Y'] })
           .handsontable('getInstance');

         const sheets = await parseXlsxAllSheets({
@@ -259,7 +263,7 @@ import ExcelJS from 'exceljs';
         });

         hot2Container = $('<div></div>').appendTo('body');
-        hot2 = hot2Container.handsontable({ data: [['b']] }).handsontable('getInstance');
+        hot2 = hot2Container.handsontable({ licenseKey: TEST_LICENSE_KEY, data: [['b']] }).handsontable('getInstance');

         const sheets = await parseXlsxAllSheets({
           sheets: [
@@ -283,7 +287,9 @@ import ExcelJS from 'exceljs';
         });

         hot2Container = $('<div></div>').appendTo('body');
-        hot2 = hot2Container.handsontable({ data: [['first2']] }).handsontable('getInstance');
+        hot2 = hot2Container
+          .handsontable({ licenseKey: TEST_LICENSE_KEY, data: [['first2']] })
+          .handsontable('getInstance');

         const sheets1 = await parseXlsxAllSheets({
           sheets: [
diff --git a/handsontable/src/plugins/filters/__tests__/filtersUI.spec.js b/handsontable/src/plugins/filters/__tests__/filtersUI.spec.js
index 9fd29fde2b..29b1020077 100644
--- a/handsontable/src/plugins/filters/__tests__/filtersUI.spec.js
+++ b/handsontable/src/plugins/filters/__tests__/filtersUI.spec.js
@@ -138,6 +138,7 @@ describe('Filters UI', () => {

     document.body.appendChild(hot2Container);
     const hot2 = new Handsontable(hot2Container, {
+      licenseKey: TEST_LICENSE_KEY,
       data: getDataForFilters(),
       columns: getColumnsForFilters(),
       filters: true,
diff --git a/handsontable/src/plugins/formulas/__tests__/initialization.spec.js b/handsontable/src/plugins/formulas/__tests__/initialization.spec.js
index d495978e04..d32436e6b4 100644
--- a/handsontable/src/plugins/formulas/__tests__/initialization.spec.js
+++ b/handsontable/src/plugins/formulas/__tests__/initialization.spec.js
@@ -229,6 +229,7 @@ describe('Formulas general', () => {
       });

       const hot2 = spec().$container2.handsontable({
+        licenseKey: TEST_LICENSE_KEY,
         data: getDataSimpleExampleFormulas(),
         formulas: {
           engine: HyperFormula
@@ -286,6 +287,7 @@ describe('Formulas general', () => {
       });

       const hot2 = spec().$container2.handsontable({
+        licenseKey: TEST_LICENSE_KEY,
         data: getDataSimpleExampleFormulas(),
         formulas: {
           engine: hfInstance2
@@ -343,6 +345,7 @@ describe('Formulas general', () => {
         });

         const hot2 = spec().$container2.handsontable({
+          licenseKey: TEST_LICENSE_KEY,
           data: getDataSimpleExampleFormulas(),
           formulas: {
             engine: HyperFormula
@@ -384,6 +387,7 @@ describe('Formulas general', () => {
         });

         const hot2 = spec().$container2.handsontable({
+          licenseKey: TEST_LICENSE_KEY,
           data: getDataSimpleExampleFormulas(),
           formulas: {
             engine: hfInstance2
@@ -431,6 +435,7 @@ describe('Formulas general', () => {
         });

         const hot2 = spec().$container2.handsontable({
+          licenseKey: TEST_LICENSE_KEY,
           data: getDataSimpleExampleFormulas(),
           formulas: {
             engine: HyperFormula
@@ -461,6 +466,7 @@ describe('Formulas general', () => {
         });

         const hot2 = spec().$container2.handsontable({
+          licenseKey: TEST_LICENSE_KEY,
           data: getDataSimpleExampleFormulas(),
           formulas: {
             engine: hfInstance2
@@ -496,6 +502,7 @@ describe('Formulas general', () => {
         });

         const hot2 = spec().$container2.handsontable({
+          licenseKey: TEST_LICENSE_KEY,
           data: [
             ['Ford', 'Tesla'],
             ['Opel', '=Sheet1!B1'],
@@ -508,6 +515,7 @@ describe('Formulas general', () => {
         }).data('handsontable');

         const hot3 = spec().$container3.handsontable({
+          licenseKey: TEST_LICENSE_KEY,
           data: [
             ['=Sheet1!A2', 'Tesla'],
             ['=Sheet2!A1', '=Sheet2!B2'],
@@ -590,6 +598,7 @@ describe('Formulas general', () => {
         });

         const hot2 = spec().$container2.handsontable({
+          licenseKey: TEST_LICENSE_KEY,
           data: getDataSimpleExampleFormulas(),
           formulas: {
             engine: hot1.getPlugin('formulas').engine
@@ -627,6 +636,7 @@ describe('Formulas general', () => {
         });

         const hot2 = spec().$container2.handsontable({
+          licenseKey: TEST_LICENSE_KEY,
           data: getDataSimpleExampleFormulas(),
           formulas: {
             engine: hot1.getPlugin('formulas').engine
@@ -658,6 +668,7 @@ describe('Formulas general', () => {
         });

         const hot2 = spec().$container2.handsontable({
+          licenseKey: TEST_LICENSE_KEY,
           data: getDataSimpleExampleFormulas(),
           formulas: {
             engine: hot1.getPlugin('formulas').engine
@@ -1034,6 +1045,7 @@ describe('Formulas general', () => {

       // The sharing style the formulas guide recommends.
       const hot2 = spec().$container2.handsontable({
+        licenseKey: TEST_LICENSE_KEY,
         data: [['a'], ['b'], ['c'], ['d'], ['e']],
         formulas: {
           engine: hot1.getPlugin('formulas').engine,
@@ -1062,6 +1074,7 @@ describe('Formulas general', () => {
       });

       spec().$container2.handsontable({
+        licenseKey: TEST_LICENSE_KEY,
         data: [['a'], ['b'], ['c'], ['d'], ['e']],
         formulas: {
           engine,
@@ -1196,6 +1209,7 @@ describe('Formulas general', () => {
       });

       const hot2 = spec().$container2.handsontable({
+        licenseKey: TEST_LICENSE_KEY,
         data: [['=Sheet1!A1'], ['hello from sheet 2']],
         formulas: {
           engine: getPlugin('formulas').engine,
@@ -1217,6 +1231,7 @@ describe('Formulas general', () => {
       });

       const hot2 = spec().$container2.handsontable({
+        licenseKey: TEST_LICENSE_KEY,
         data: [['=Sheet1!A1'], ['hello from sheet 2']],
         formulas: {
           engine: getPlugin('formulas').engine,
diff --git a/handsontable/src/plugins/formulas/__tests__/memoryLeak.spec.js b/handsontable/src/plugins/formulas/__tests__/memoryLeak.spec.js
index ecdfc42c96..4dd576818a 100644
--- a/handsontable/src/plugins/formulas/__tests__/memoryLeak.spec.js
+++ b/handsontable/src/plugins/formulas/__tests__/memoryLeak.spec.js
@@ -128,6 +128,7 @@ describe('Formulas memory leak check', () => {
       },
     });
     const hot2 = spec().$container2.handsontable({
+      licenseKey: TEST_LICENSE_KEY,
       data: [['3', '4', '=A1+B1']],
       formulas: {
         engine: hfInstance,
@@ -155,6 +156,7 @@ describe('Formulas memory leak check', () => {
       },
     });
     const hot2 = spec().$container2.handsontable({
+      licenseKey: TEST_LICENSE_KEY,
       data: [['3', '4', '=A1+B1']],
       formulas: {
         engine: hfInstance,
@@ -239,6 +241,7 @@ describe('Formulas memory leak check', () => {
     });

     const hot2 = spec().$container2.handsontable({
+      licenseKey: TEST_LICENSE_KEY,
       data: [['=SheetA!A1']],
       formulas: {
         engine: hfInstance,
@@ -266,6 +269,7 @@ describe('Formulas memory leak check', () => {
       },
     });
     const hot2 = spec().$container2.handsontable({
+      licenseKey: TEST_LICENSE_KEY,
       data: [['bar'], ['Sheet1:A1']],
       formulas: {
         engine: hfInstance1,
@@ -307,6 +311,7 @@ describe('Formulas memory leak check', () => {
       },
     });
     const hot2 = spec().$container2.handsontable({
+      licenseKey: TEST_LICENSE_KEY,
       data: [['bar'], ['Sheet1:A1']],
       formulas: {
         engine: hot1.getPlugin('formulas').engine,
@@ -354,6 +359,7 @@ describe('Formulas memory leak check', () => {
       },
     });
     const hot2 = spec().$container2.handsontable({
+      licenseKey: TEST_LICENSE_KEY,
       data: [['bar'], ['Sheet1:A1']],
       formulas: {
         engine: hfInstance1,
@@ -405,6 +411,7 @@ describe('Formulas memory leak check', () => {
       },
     });
     const hot2 = spec().$container2.handsontable({
+      licenseKey: TEST_LICENSE_KEY,
       data: [['bar'], ['Sheet1:A1']],
       formulas: {
         engine: hot1.getPlugin('formulas').engine,
diff --git a/handsontable/src/plugins/formulas/__tests__/validation.spec.js b/handsontable/src/plugins/formulas/__tests__/validation.spec.js
index c9a8c090ff..18cab33857 100644
--- a/handsontable/src/plugins/formulas/__tests__/validation.spec.js
+++ b/handsontable/src/plugins/formulas/__tests__/validation.spec.js
@@ -521,6 +521,7 @@ describe('Formulas general', () => {
         validator: validator1,
       });
       spec().$container2.handsontable({
+        licenseKey: TEST_LICENSE_KEY,
         data: [
           ['=Sheet1!A1', 2, '=D1', 'D', '=A1+1']
         ],
diff --git a/handsontable/src/plugins/multiColumnSorting/__tests__/multiColumnSorting.spec.js b/handsontable/src/plugins/multiColumnSorting/__tests__/multiColumnSorting.spec.js
index 38ce65b603..3118ed5909 100644
--- a/handsontable/src/plugins/multiColumnSorting/__tests__/multiColumnSorting.spec.js
+++ b/handsontable/src/plugins/multiColumnSorting/__tests__/multiColumnSorting.spec.js
@@ -1793,7 +1793,7 @@ describe('MultiColumnSorting', () => {
     });

     spec().$container2 = $(`<div id='${id}-2'></div>`).appendTo('body');
-    spec().$container2.handsontable();
+    spec().$container2.handsontable({ licenseKey: TEST_LICENSE_KEY });

     await selectCell(0, 1);
     await keyDownUp('enter');
diff --git a/handsontable/src/plugins/multiColumnSorting/__tests__/sortingConflicts.spec.js b/handsontable/src/plugins/multiColumnSorting/__tests__/sortingConflicts.spec.js
index cb28c3eaa8..1ddbd7015b 100644
--- a/handsontable/src/plugins/multiColumnSorting/__tests__/sortingConflicts.spec.js
+++ b/handsontable/src/plugins/multiColumnSorting/__tests__/sortingConflicts.spec.js
@@ -67,6 +67,7 @@ describe('MultiColumnSorting cooperation with ColumnSorting', () => {
     const container2 = $(`<div id="${id}2"></div>`).appendTo('body');

     const hot2 = container2.handsontable({
+      licenseKey: TEST_LICENSE_KEY,
       data: arrayOfObjects(),
       colHeaders: true,
       multiColumnSorting: true,
diff --git a/handsontable/src/plugins/undoRedo/__tests__/UndoRedo.spec.js b/handsontable/src/plugins/undoRedo/__tests__/UndoRedo.spec.js
index b400cfdc6a..4fb39603d6 100644
--- a/handsontable/src/plugins/undoRedo/__tests__/UndoRedo.spec.js
+++ b/handsontable/src/plugins/undoRedo/__tests__/UndoRedo.spec.js
@@ -1002,6 +1002,7 @@ describe('UndoRedo', () => {
         });

         spec().$container2.handsontable({
+          licenseKey: TEST_LICENSE_KEY,
           data: [
             ['A'],
             ['B'],
@@ -1602,6 +1603,7 @@ describe('UndoRedo', () => {
         });

         spec().$container2.handsontable({
+          licenseKey: TEST_LICENSE_KEY,
           data: [
             ['A'],
             ['B'],
diff --git a/handsontable/src/selection/__tests__/general.spec.js b/handsontable/src/selection/__tests__/general.spec.js
index fd0492f310..2f47771adc 100644
--- a/handsontable/src/selection/__tests__/general.spec.js
+++ b/handsontable/src/selection/__tests__/general.spec.js
@@ -1730,7 +1730,7 @@ describe('Selection', () => {
     const hot1 = handsontable({});
     const container2 = $(`<div id="${id}2" style="width: 300px; height: 200px; overflow: auto"></div>`)
       .appendTo('body');
-    const hot2 = container2.handsontable().handsontable('getInstance');
+    const hot2 = container2.handsontable({ licenseKey: TEST_LICENSE_KEY }).handsontable('getInstance');

     hot1.selectCell(0, 0);

@@ -1795,7 +1795,9 @@ describe('Selection', () => {
     });

     it('should add `current` css class to selected cell', async() => {
-      const iframeHot = spec().$iframeContainer.handsontable().handsontable('getInstance');
+      const iframeHot = spec().$iframeContainer
+        .handsontable({ licenseKey: TEST_LICENSE_KEY })
+        .handsontable('getInstance');

       iframeHot.selectCell(1, 1);

@@ -1803,7 +1805,9 @@ describe('Selection', () => {
     });

     it('should set correct `wtBorder` top position of selected cell', async() => {
-      const iframeHot = spec().$iframeContainer.handsontable().handsontable('getInstance');
+      const iframeHot = spec().$iframeContainer
+        .handsontable({ licenseKey: TEST_LICENSE_KEY })
+        .handsontable('getInstance');

       iframeHot.selectCell(1, 1);

diff --git a/handsontable/src/shortcuts/__tests__/modifierKeyTracking.spec.js b/handsontable/src/shortcuts/__tests__/modifierKeyTracking.spec.js
index e428ab4644..7936494e8d 100644
--- a/handsontable/src/shortcuts/__tests__/modifierKeyTracking.spec.js
+++ b/handsontable/src/shortcuts/__tests__/modifierKeyTracking.spec.js
@@ -48,7 +48,7 @@ describe('ShortcutManager modifier-key tracking across instances (#12707)', () =

     await sleep(50);

-    $iframeContainer.handsontable({ data: createSpreadsheetData(5, 5) });
+    $iframeContainer.handsontable({ licenseKey: TEST_LICENSE_KEY, data: createSpreadsheetData(5, 5) });

     const iframeHot = $iframeContainer.handsontable('getInstance');

diff --git a/handsontable/src/shortcuts/__tests__/shortcutManager.spec.js b/handsontable/src/shortcuts/__tests__/shortcutManager.spec.js
index 469f060cc9..573d869474 100644
--- a/handsontable/src/shortcuts/__tests__/shortcutManager.spec.js
+++ b/handsontable/src/shortcuts/__tests__/shortcutManager.spec.js
@@ -691,7 +691,7 @@ describe('shortcutManager', () => {
     it('should forward the event to the other context within another HoT instance', async() => {
       const container2 = $('<div id="testContainer2"></div>').appendTo('body');
       const hot1 = handsontable();
-      const hot2 = new Handsontable(container2[0]);
+      const hot2 = new Handsontable(container2[0], { licenseKey: TEST_LICENSE_KEY });
       const shortcutManager1 = hot1.getShortcutManager();
       const shortcutManager2 = hot2.getShortcutManager();
       const context1 = shortcutManager1.addContext('hot1');
diff --git a/handsontable/src/styles/components/core/_license-branding.scss b/handsontable/src/styles/components/core/_license-branding.scss
index 8360e14e4a..69a5ef68f9 100644
--- a/handsontable/src/styles/components/core/_license-branding.scss
+++ b/handsontable/src/styles/components/core/_license-branding.scss
@@ -337,7 +337,7 @@ $license-badge-dot: "data:image/svg+xml;charset=utf-8,%3Csvg width='11.1415' hei
   }

   // The "Powered by Handsontable DataGrid" bar (DEV-3413, Figma `license-key`, node 1424:19574): shown
-  // for a trial key and a key with the `badge` flag, last in the bottom slot. It takes the license
+  // for a trial key and a key with the `attribution-bar` flag, last in the bottom slot. It takes the license
   // warning bar's tokens (`_license-notification.scss`), which resolve to the shared bar tokens - 8px x
   // 16px padding, 12px / 18px text at the default density. The literals are the no-theme fallbacks.
   // A flex row, so the line box adds no baseline space under the link: the bar is its padding plus the
diff --git a/handsontable/src/utils/__tests__/licenseBranding.unit.js b/handsontable/src/utils/__tests__/licenseBranding.unit.js
index c19f374292..e09daf2b38 100644
--- a/handsontable/src/utils/__tests__/licenseBranding.unit.js
+++ b/handsontable/src/utils/__tests__/licenseBranding.unit.js
@@ -130,14 +130,14 @@ function findShortcut(hotInstance, key) {
   return call?.[0];
 }

-function setLifecycle(state, extra = {}, channels = { console: true, ui: true }, badge = false) {
+function setLifecycle(state, extra = {}, channels = { console: true, ui: true }, attributionBar = false) {
   _getLicenseState.mockReturnValue({
     lifecycle: {
       state, isTrial: state.indexOf('trial') === 0, daysRemaining: null, licensedUntil: null, ...extra,
     },
     channels,
     tiers: null,
-    badge,
+    attributionBar,
   });
 }

@@ -328,7 +328,7 @@ describe('licenseBranding', () => {

   describe('the "Powered by Handsontable DataGrid" bar (DEV-3413)', () => {
     it.each(['trial_valid', 'trial_notice', 'trial_soft_stop', 'trial_hard_stop'])(
-      'should mount the bar for the "%s" state of a trial, which needs no `badge` flag',
+      'should mount the bar for the "%s" state of a trial, which needs no `attribution-bar` flag',
       (state) => {
         setLifecycle(state, { daysRemaining: 5, licensedUntil: '2026-09-26' });
         const hotInstance = createMockHotInstanceWithBottomSlot();
@@ -339,7 +339,7 @@ describe('licenseBranding', () => {
       }
     );

-    it('should mount the bar for a key with the `badge` flag', () => {
+    it('should mount the bar for a key with the `attribution-bar` flag', () => {
       setLifecycle('usage_valid', {}, { console: true, ui: true }, true);
       const hotInstance = createMockHotInstanceWithBottomSlot();

@@ -348,7 +348,7 @@ describe('licenseBranding', () => {
       expect(getPoweredByBar(hotInstance)).not.toBeNull();
     });

-    it('should mount the bar for a `badge` key with `no-ui-warns`: it is branding, not a warning', () => {
+    it('should mount the bar for an `attribution-bar` key with `no-ui-warns`: it is branding, not a warning', () => {
       setLifecycle('usage_valid', {}, { console: false, ui: false }, true);
       const hotInstance = createMockHotInstanceWithBottomSlot();

@@ -370,7 +370,7 @@ describe('licenseBranding', () => {
     it.each([
       'usage_valid', 'usage_notice', 'usage_soft_stop', 'usage_hard_stop', 'release_valid',
       'release_expired', 'legacy_valid', 'legacy_expired', 'invalid', 'missing',
-    ])('should mount no bar for the "%s" state of a key without the `badge` flag', (state) => {
+    ])('should mount no bar for the "%s" state of a key without the `attribution-bar` flag', (state) => {
       setLifecycle(state, { licensedUntil: '2011-05-24' });
       const hotInstance = createMockHotInstanceWithBottomSlot();

diff --git a/handsontable/src/utils/__tests__/licenseBrandingDestroy.unit.js b/handsontable/src/utils/__tests__/licenseBrandingDestroy.unit.js
index 8ba071c1db..ec9e553afb 100644
--- a/handsontable/src/utils/__tests__/licenseBrandingDestroy.unit.js
+++ b/handsontable/src/utils/__tests__/licenseBrandingDestroy.unit.js
@@ -9,7 +9,7 @@ jest.mock('../../helpers/mixed', () => ({
     lifecycle: { state: 'trial_valid', isTrial: true, daysRemaining: 5, licensedUntil: null },
     channels: { console: false, ui: true },
     tiers: null,
-    badge: false,
+    attributionBar: false,
   })),
 }));

diff --git a/handsontable/src/utils/entitlementLicenseKey/AGENTS.md b/handsontable/src/utils/entitlementLicenseKey/AGENTS.md
index 7d1e910d87..8fc4f3cd1c 100644
--- a/handsontable/src/utils/entitlementLicenseKey/AGENTS.md
+++ b/handsontable/src/utils/entitlementLicenseKey/AGENTS.md
@@ -2,8 +2,8 @@

 Rules for `src/utils/entitlementLicenseKey/` (the key reader), `src/utils/licenseBranding/` (badge, popover, lock screen), `src/utils/licenseNotification.ts`, and the license half of `src/helpers/mixed.ts`.

-- **Only a `tier:<name>` token restricts a key.** Whether a key restricts is decided by the tiers its Handsontable entry names: `getKeyTiers()` in `utils/licenseCapabilities/tiers.ts` reads every `tier:<name>` token from the entry's capabilities, and `_getLicenseState` (`helpers/mixed.ts`) exposes the list as `LicenseStateDescriptor.tiers` - `null` when the entry names no tier, which unlocks every feature. A key issued before tiers carries only `core` (or per-feature ids and the retired `listed-capabilities` flag), and a key issued since for no tier carries only `grid`, so each names no tier and keeps everything on: never read "no tier" or "no `xlsx:*` token" as "nothing unlocked". The flag, per-feature ids (`feat:filters`, `xlsx:styles`), `<namespace>:all`, and `core` in a key are ignored. With tiers, a plugin is on when its `LICENSE.tiers` lists one of them, and an xlsx feature when its `XLSX_TIERS_BY_ID` entry does (`resolveXlsxEntitlement(tiers)` in `utils/xlsxEngine/xlsxEntitlement.ts`); a tier this build does not know therefore turns every gated feature off, and the grid still renders with one console error and one bar. The license state has no `grants` facet any more: `{ lifecycle, channels, tiers, badge }`. `grants.ts` stays, because it is part of the port of the canonical reader. The tier is a capability token, not a payload field, on purpose: the key format does not change, so a key that names a tier is issued the way any other key is. The tier names and the feature-to-tier assignment live in the feature manifest (`src/featureManifest/AGENTS.md`, "Tiers").
+- **Only a `tier:<name>` token restricts a key.** Whether a key restricts is decided by the tiers its Handsontable entry names: `getKeyTiers()` in `utils/licenseCapabilities/tiers.ts` reads every `tier:<name>` token from the entry's capabilities, and `_getLicenseState` (`helpers/mixed.ts`) exposes the list as `LicenseStateDescriptor.tiers` - `null` when the entry names no tier, which unlocks every feature. A key issued before tiers carries only `core` (or per-feature ids and the retired `listed-capabilities` flag), and a key issued since for no tier carries only `grid`, so each names no tier and keeps everything on: never read "no tier" or "no `xlsx:*` token" as "nothing unlocked". The flag, per-feature ids (`feat:filters`, `xlsx:styles`), `<namespace>:all`, and `core` in a key are ignored. With tiers, a plugin is on when its `LICENSE.tiers` lists one of them, and an xlsx feature when its `XLSX_TIERS_BY_ID` entry does (`resolveXlsxEntitlement(tiers)` in `utils/xlsxEngine/xlsxEntitlement.ts`); a tier this build does not know therefore turns every gated feature off, and the grid still renders with one console error and one bar. The license state has no `grants` facet any more: `{ lifecycle, channels, tiers, attributionBar }`. `grants.ts` stays, because it is part of the port of the canonical reader. The tier is a capability token, not a payload field, on purpose: the key format does not change, so a key that names a tier is issued the way any other key is. The tier names and the feature-to-tier assignment live in the feature manifest (`src/featureManifest/AGENTS.md`, "Tiers").
 - **`__tests__/buildTestKey.js`, `__tests__/fixtures.js` and `__tests__/xlsxLicenseKeys.js` have an external consumer**: the Playwright fixture `tests/fixtures/xlsxLicenseKeys.ts` imports them through Playwright's loader, and `tests/fixtures/licenseTiers.ts` reaches them through it. Moving or renaming any of them breaks the license specs in `tests/e2e/` as well as the Jest suites; update those fixtures in the same change. Two helpers build tier keys. `keyWithTier(tiers, flags)` and `keyWithoutTier(tokens, flags)` in `xlsxLicenseKeys.js` are pure (no `jest`, no registry), so Playwright can import them; a `keyWithTier()` key is perpetual to 2099 so nothing depends on the clock, and a `keyWithoutTier()` key (perpetual to 2099 as well) proves that ids without a tier change nothing. `tierKeyWith(ids, flags, dates)` and `tierKeyWithout(ids, flags, dates)` in `__tests__/tierKeys.js` make a new made-up tier per call and add it to the features the key should unlock (a spy on each plugin's static `LICENSE` getter, and a frozen copy of `XLSX_TIERS_BY_ID` that stands in for the shipped, frozen table). Every suite that calls them calls `resetTierKeys()` in `afterEach`, and a suite that uses `jest.resetModules()` must `require()` the helper after the reset, or it patches a registry the code under test no longer reads. Tests never use the real tier names: a later change to the assignment must not break them.
-- **License key validation is inlined and layered**: an entitlement key (plain-English prose followed by a machine-readable `[...]` block) is read by `src/utils/entitlementLicenseKey/` (`detectFormat.ts` = which format a key is in → `extractKeyData.ts` = key reader → `classify.ts` = window evaluation + silencing flags → `grants.ts` = capability tokens) — a port of `src/entitlement-key/` from the private `handsontable/license-key` repo; never add that package as a dependency, and keep the reader byte-compatible with it (a key the canonical validator rejects must not read here). The obfuscated legacy 25-character block in `helpers/mixed.ts` is frozen — an entitlement key routes out BEFORE it via the trailing-block shape test, and legacy CONSOLE behavior (including exact message text) must never change. **One legacy DOM behavior did change, by product decision (DEV-2562):** a missing or invalid key no longer renders a bottom bar — it renders the blocking modal instead (see below). **One legacy console sentence was dropped, by product decision (PRO-1357):** the missing-key message (the console text and the bar text in `mixed.ts`, and the lock copy in `licenseBranding/content.ts`) no longer tells the developer to pass `'non-commercial-and-evaluation'`, because 19.0 reads that key as invalid. Do not bring the sentence back. **And the key itself stopped being recognized, by product decision (PRO-1356, 19.0):** `detectFormat.ts` recognizes no literal key, and the two legacy checks in `mixed.ts` (`_injectProductInfo` and `_classifyLegacyKey`) no longer compare `non-commercial-and-evaluation` or its second form `ht68e-1f2b7-47158-70b05-0842f`. Both reach the frozen legacy validator, fail its checksum, and read as `invalid`: the invalid-key lock and the invalid-key console warning, with no tiers (`tiers: null`, everything on) like every invalid key. The `non_commercial` state is gone from `NonEntitlementLifecycleState` and from both message tables. Do not add a literal key back here: the vendored reader takes its literal keys from the product (`detectLicenseKeyFormat(key, literalKeys)`), and Handsontable has none. Nothing else about the legacy path moved. **How a key is verified is documented in the private `license-key` repository, not here, and must stay out of this public file** - the key format and its versions in `.ai/ENTITLEMENT-KEY-FORMAT.md`, whose "Handsontable port" section holds the rules specific to this reader (18.1 compatibility, the keys already issued, the last sync). Read it before changing `extractKeyData.ts`; `vendor/entitlement-key-reader/` is copied into public repos, so nothing about the scheme goes there either, and keep the verification details out of this file, the code comments and pull request descriptions. The rules that matter here: change the reader only together with the canonical reader, and diff the port against `vendor/entitlement-key-reader` at the revision `__tests__/fixtures.js` names (`license-key` tag 6.4.0, whose reader is unchanged since 12b800468a, at the last sync); every key format must stay readable by Handsontable 18.1, and the keys already issued must keep reading (the website form issues trial keys every day), so never tighten a rule on its own here - a key the canonical reader accepts must read here, and one it rejects must not; read payload fields as own properties, never through the prototype chain; do not bring back the `license-key` 5.0.0 rule, which was never released and locked 18.1 out of new keys and this reader out of the keys already issued. Never cut a key down to its block or strip characters from it before reading. Copy `PROSE_WHITESPACE` and `ESCAPED_WHITESPACE` verbatim from the vendored reader, never as `\s`, and keep their `\u` escapes as escapes - the file must stay 7-bit ASCII, and a raw U+2028 ends the regex literal. Fixtures are whole keys from the generator (`__tests__/fixtures.js` names the commit), because `buildTestKey` uses this reader's own helpers and so cannot catch a mismatch with the generator. A key whose block a mail client wrapped reads here and does NOT read on 18.1 (it locks the grid there). Whitespace AROUND the whole key IS trimmed, by `_trimKey` at the head of both `_injectProductInfo` and `_getLicenseState`, because an untrimmed key reads as `invalid` and `invalid` now blocks — trim in one of the two and they desync). **No contract type in the payload**: which of `usage_until` / `release_until` is present decides how the license is measured, and the `trial` flag decides only how it is worded — a key may name tiers (`tier:<name>`, above), but code never branches on a specific tier name, mode or plan name: a tier is only ever compared with the `tiers` a feature's generated license lists. Exactly one of the two dates per product, a real bare `YYYY-MM-DD` STRING, or the key is invalid (`parseIsoDateToTimestamp` checks the type first: `['2027-08-12']` stringifies to a valid date, and an object with a non-function `toString` throws when stringified - a key must only ever read as data or as `null`, so never stringify a payload value before checking it is a string); `notice`/`grace` arrive IN the key (no behavioral constants in the library). Date rules that the specification's J-fixtures pin: `usage_until` is inclusive (valid until the UTC midnight that FOLLOWS it), the notice window is `notice > 0 && daysRemaining <= notice` with days counted UTC-midnight to UTC-midnight (60 at the window's open, 0 on the last licensed day), the hard stop is expiry + 1 day + `grace`, and `release_until` is compared to the build release date as TEXT (no clock, airgap-safe, fails OPEN when the build date is unavailable). Reading is STRICT about shape and LENIENT about vocabulary: an unknown product, capability token, flag or extra field is kept and ignored, never an error, or every token added on the issuing side would break builds already in the field. A key that grants another product but not `handsontable` is not a Handsontable license — it messages as invalid, and it names no tier (`tiers: null`). The `tiers` answer is uniform across key families: legacy/missing/invalid keys resolve to `tiers: null` (everything on), so capability gating can never take a feature away from an existing customer. **So does an entitlement key whose Handsontable entry names no tier** (`tiers: null`). Every key issued before tiers lists only `core` or feature ids, and the reader's `hasCapability()` answers `false` for every token an entry does not list, so a gate that read the reader's grants would turn off every paid feature of every customer. The rule lives in `mixed.ts` and `licenseCapabilities/tiers.ts`, never in the reader port, which stays byte-compatible with the canonical reader (whose own `AGENTS.md` says the same). The gate built on it is `src/utils/licenseCapabilities/` (resolve, check, report) plus the message half in `licenseNotification.ts`; its rules are in a bullet of their own below. The branding UI is a MODULE CATALOG (`src/utils/licenseBranding/`: `index.ts` = state routing (read once at init), `content.ts` = copy, `badge.ts` = corner badge + popover, `lockScreen.ts` = the blocking lock screen) — a core util, NOT a plugin (plugins can be absent or disabled; license UI must not be). The corner badge + popover render for TRIAL states ONLY (`POPOVER_CONTENT` in `content.ts` holds exactly `trial_valid`, `trial_notice`, `trial_soft_stop`). Every other state — expired legacy, a running or lapsed subscription, a perpetual license (and the two blocking states, which show the modal instead) — shows NO badge; its console message and any bottom bar still come from `initLicenseNotification`/`_injectProductInfo` (the legacy console/bar messaging stays untouched, and `_classifyLegacyKey` in `mixed.ts` mirrors the frozen checks read-only). The two silencing flags are per product and resolved once into `descriptor.channels`: `no-console-warns` closes the console, `no-ui-warns` closes every WARNING surface (badge, popover and bar) — that is what keeps license copy away from the end users of a customer's SaaS app, so never render a license *warning* without checking `channels.ui`. **The `badge` flag (`BADGE_FLAG`) is not a channel, and no channel closes it:** it says the licensee agreed to show the "Powered by Handsontable DataGrid" bar, a term of any contract type (a perpetual key carries it as well as a subscription one), which is branding, not a warning, so the bar renders outside the `channels.ui` gate, with or without `no-ui-warns`. The reader only keeps the flag in the entry's `flags`; `resolveChannels` ignores it, and the surface that shows the bar (DEV-3413) reads it from the entry itself. A key issued for external use carries `no-ui-warns` AND `badge` (fixture `SPONSORED_BADGE_EXTERNAL_KEY`), which is exactly the case the flag exists for. The text of a `badge` key may say nothing about the bar (an empty badge clause, `BADGE_EMPTY_CLAUSE_KEY`): the flag in the payload decides, never the sentence, so never look for the bar sentence in the prose. Do not confuse it with the trial corner badge, which `no-ui-warns` does close. **It does NOT close the LOCK (DEV-2709).** The flag covers UI *warnings*; the hard stop is the *enforcement* of a license that has stopped — so `mountBrandingSurface` routes `LOCK_CONTENT` BEFORE the channel gate, and only the badge sits behind it. What this fixed is external/SaaS **trials**: they are the only externally-issued keys that can be blocked at all (a lapsed subscription `usage_hard_stop` has no `LOCK_CONTENT` entry and blocks nothing, and `release_expired` never blocks). Only `trial_hard_stop` changes in practice — `invalid` and `missing` describe keys whose flags could not be read, so both always resolve to open channels and reached the lock either way. **This is a product decision, not a reading the specification states:** §4.1 heads its behavior column "Behaviour (unless `silent`)" over a hard-stop row reading "Trial: block", which read literally puts the block inside the silenced set, while §2.3's `trial` row separates "Trial messages" from "hard-stop block". The spec still needs amending to record the split — do not revert this from §4.1 alone. The same caveat is repeated at `NO_UI_WARNS_FLAG` (`entitlementLicenseKey/constants.ts`) and on `LicenseChannels` (`types.ts`), because those are the definition sites a maintainer reads first. The corner badge is click-through (`pointer-events: none`) so the corner header keeps its native select-all — hover is detected by delegation (`is-corner-hover` class), and the glyph itself is pure CSS - an `::after` inside the corner header cell, gated by BOTH `ht-license-badge-on` (on the root element) and `ht-license-badge-corner` (a class JS stamps on THIS grid's own corner-clone table, resolved via the Walkontable overlay); the glyph CSS keys off that marker, NEVER the structural `.ht_clone_top_inline_start_corner` class, which also matches a nested grid's corner clone and would paint a stray badge there. So it can never overflow or drift out of the corner; never rebuild it as a measured overlay (the overlay version broke visual tests with misaligned badges) - JS measurement exists only to anchor the popover. The mask carries the whole logomark (the "H" and its dot) in one color, in the corner glyph and in the lock-screen strip alike; the lock box has the mark's own 11.1415:16 proportions so its "H" starts at the start padding in RTL too. Only the corner glyph paints the blue dot, as a second `background-image` layer (`$license-badge-dot` in `_license-branding.scss`) drawn in the same viewBox, so both sized `contain` and centered land on each other - draw any new layer in that viewBox, keep `background-position: center`, and keep the brand blue inside the image. The popover is a PURELY VISUAL floating element: no focus scope, no shortcuts, badge/link/close all `tabindex="-1"`, visibility is pointer-only, close is mouse-click only (the info is duplicated in the console + bottom bar). The hard stop renders the CORE-OWNED lock screen (`lockScreen.ts`) — NEVER the Dialog plugin (a shared surface an app legitimately uses: any `show` would replace the lock, any hide would look like a dismissal, and `dialog: true` setups would never tear it down); the lock instead REUSES the confirm-dialog CSS by wearing its class names (`ht-dialog ht-dialog--confirm handsontable ...` — the stylesheet always ships in full, so styling is inherited without importing the plugin) and copies its width sizing (pin `style.width` to the table workspace width on `afterViewRender`, or the `.ht-dialog` box spans the whole root wrapper, not the grid). The lock DOES use the focus manager (modal scope) + shortcut manager (Tab trap only - the lock is non-dismissable, so there is no Escape/close). THREE states render the lock, and `LOCK_CONTENT` in `content.ts` IS that routing — adding a state to that table is what makes it block: `trial_hard_stop`, `invalid`, and `missing`. The last two are the specification's §4.5 shape, whose message text was answered by the product owner as 'the sentences the bottom bar used to carry', so those two states now show the modal INSTEAD of a bar (`_rendersBlockingModal`/`_BLOCKING_MODAL_STATES` in `mixed.ts` withhold the bar in both emitters; the console message is untouched, and the two locks point at support@ rather than sales@ because both are install faults, and carry the bar's documentation link as a real anchor inside the description). A hard-stopped subscription (`usage_hard_stop`) still blocks nothing and shows nothing: it repeats its soft-stop console error and that is all (18.1 never blocks a paying customer). **The soft-stopped trial deliberately shows BOTH a bar and its auto-opening popover, carrying the same two sentences — do not "de-duplicate" it (tried and reverted under DEV-2709).** The bar is the only license surface with a focusable link and a registered focus scope (`licenseNotification.ts`), while the popover is pointer-only by design (`tabIndex = -1` throughout, no focus scope, no `aria-live`); and the bar is the only surface that survives dismissal — on a grid with no corner cell, `is-cornerless` kills the hover path and every CSS rule that reopens the popover, so once the X is clicked the message is gone for the instance's life. Removing the bar there needs the popover to become keyboard-reachable and re-openable first. **Consequence for tests: a grid built with no `licenseKey` is now BLOCKED** — the lock deselects the cell and takes the keyboard, so every test grid must declare a key (the Jasmine helper injects `TEST_LICENSE_KEY` from `test/helpers/licenseKey.js` already; jsdom unit tests that call `new Handsontable` directly must import it and set it themselves, or selection-dependent assertions fail for no visible reason). Each suite reads its key from one place: `test/helpers/licenseKey.js` here, `tests/fixtures/demo/test-license-key.js` (`window.htTestLicenseKey`) in the Playwright fixtures, and a `licenseKey.ts` or `license-key.ts` in each wrapper's tests. Only a test of the license behavior itself writes a key out, and `scripts/__tests__/test-license-key.test.mjs` (root `test:tooling`) fails on a literal key in any other test file. The license key is read ONCE at init (like the console message and the bottom bar) — `updateSettings({licenseKey})` does NOT re-brand; applying a new key needs a fresh instance. Expiry compares against the build's release date, read BARE as `process.env.HOT_RELEASE_DATE` (in `licenseNotification.ts` and `licenseBranding/index.ts`) — the bundler (rspack DefinePlugin for `dist/`, SWC `inlineEnvVars` for `tmp/`) replaces it with a string literal, so NEVER wrap it in a `typeof process` guard: the guard is not inlined, compiles to `false` in browser bundles, blanks the date, and silently disables expired-key detection (an 18.0.0 regression). The badge reads its corner clone through the Walkontable API (`getOverlayByName`), NEVER a CSS `querySelector` on the root subtree (a nested grid — handsontable cell type — has its own corner clone earlier in document order that a selector would wrongly match). `extractEntitlementKeyData` memoizes on the key string (it is read twice per init) and returns frozen data, as the canonical reader does - copy an array before sorting or changing it. User-facing sentences repeated across surfaces (bar, popover, lock) live once as constants in `mixed.ts` (e.g. `_LICENSE_EXPIRED_TITLE`; every license symbol there is underscore-prefixed, because `index.ts` copies each non-underscore export of that module onto the public `Handsontable.helper`) — edit the constant, not each surface; every message is transcribed from the license specification, so reword it there first. Dates print as bare `YYYY-MM-DD`, with the `(UTC)` marker on console messages for `usage_until` and none on `release_until` (no clock takes part) or on the end-user-facing UI. The state-keyed tables (console/DOM notifications in `mixed.ts`, badge/lock content in `content.ts`) are typed `Partial<Record<LicenseStateKey, …>>`, NOT `Record<string, …>` — a typoed or unknown state key is then a compile error instead of a silently dropped entry. Test fixtures: real generator-produced keys in `src/utils/entitlementLicenseKey/__tests__/fixtures.js` (one per worked example of the specification) plus a test-only key builder (`buildTestKey.js`) for the shapes the generator refuses to produce; it must never be imported from `src/`.
+- **License key validation is inlined and layered**: an entitlement key (plain-English prose followed by a machine-readable `[...]` block) is read by `src/utils/entitlementLicenseKey/` (`detectFormat.ts` = which format a key is in → `extractKeyData.ts` = key reader → `classify.ts` = window evaluation + silencing flags → `grants.ts` = capability tokens) — a port of `src/entitlement-key/` from the private `handsontable/license-key` repo; never add that package as a dependency, and keep the reader byte-compatible with it (a key the canonical validator rejects must not read here). The obfuscated legacy 25-character block in `helpers/mixed.ts` is frozen — an entitlement key routes out BEFORE it via the trailing-block shape test, and legacy CONSOLE behavior (including exact message text) must never change. **One legacy DOM behavior did change, by product decision (DEV-2562):** a missing or invalid key no longer renders a bottom bar — it renders the blocking modal instead (see below). **One legacy console sentence was dropped, by product decision (PRO-1357):** the missing-key message (the console text and the bar text in `mixed.ts`, and the lock copy in `licenseBranding/content.ts`) no longer tells the developer to pass `'non-commercial-and-evaluation'`, because 19.0 reads that key as invalid. Do not bring the sentence back. **And the key itself stopped being recognized, by product decision (PRO-1356, 19.0):** `detectFormat.ts` recognizes no literal key, and the two legacy checks in `mixed.ts` (`_injectProductInfo` and `_classifyLegacyKey`) no longer compare `non-commercial-and-evaluation` or its second form `ht68e-1f2b7-47158-70b05-0842f`. Both reach the frozen legacy validator, fail its checksum, and read as `invalid`: the invalid-key lock and the invalid-key console warning, with no tiers (`tiers: null`, everything on) like every invalid key. The `non_commercial` state is gone from `NonEntitlementLifecycleState` and from both message tables. Do not add a literal key back here: the vendored reader takes its literal keys from the product (`detectLicenseKeyFormat(key, literalKeys)`), and Handsontable has none. Nothing else about the legacy path moved. **How a key is verified is documented in the private `license-key` repository, not here, and must stay out of this public file** - the key format and its versions in `.ai/ENTITLEMENT-KEY-FORMAT.md`, whose "Handsontable port" section holds the rules specific to this reader (18.1 compatibility, the keys already issued, the last sync). Read it before changing `extractKeyData.ts`; `vendor/entitlement-key-reader/` is copied into public repos, so nothing about the scheme goes there either, and keep the verification details out of this file, the code comments and pull request descriptions. The rules that matter here: change the reader only together with the canonical reader, and diff the port against `vendor/entitlement-key-reader` at the revision `__tests__/fixtures.js` names (`license-key` PR #18, released as 7.0.0, at the last sync: the reader changed there only by renaming the `badge` flag to `attribution-bar`, DEV-4153); every key format must stay readable by Handsontable 18.1, and the keys already issued must keep reading (the website form issues trial keys every day), so never tighten a rule on its own here - a key the canonical reader accepts must read here, and one it rejects must not; read payload fields as own properties, never through the prototype chain; do not bring back the `license-key` 5.0.0 rule, which was never released and locked 18.1 out of new keys and this reader out of the keys already issued. Never cut a key down to its block or strip characters from it before reading. Copy `PROSE_WHITESPACE` and `ESCAPED_WHITESPACE` verbatim from the vendored reader, never as `\s`, and keep their `\u` escapes as escapes - the file must stay 7-bit ASCII, and a raw U+2028 ends the regex literal. Fixtures are whole keys from the generator (`__tests__/fixtures.js` names the commit), because `buildTestKey` uses this reader's own helpers and so cannot catch a mismatch with the generator. A key whose block a mail client wrapped reads here and does NOT read on 18.1 (it locks the grid there). Whitespace AROUND the whole key IS trimmed, by `_trimKey` at the head of both `_injectProductInfo` and `_getLicenseState`, because an untrimmed key reads as `invalid` and `invalid` now blocks — trim in one of the two and they desync). **No contract type in the payload**: which of `usage_until` / `release_until` is present decides how the license is measured, and the `trial` flag decides only how it is worded — a key may name tiers (`tier:<name>`, above), but code never branches on a specific tier name, mode or plan name: a tier is only ever compared with the `tiers` a feature's generated license lists. Exactly one of the two dates per product, a real bare `YYYY-MM-DD` STRING, or the key is invalid (`parseIsoDateToTimestamp` checks the type first: `['2027-08-12']` stringifies to a valid date, and an object with a non-function `toString` throws when stringified - a key must only ever read as data or as `null`, so never stringify a payload value before checking it is a string); `notice`/`grace` arrive IN the key (no behavioral constants in the library). Date rules that the specification's J-fixtures pin: `usage_until` is inclusive (valid until the UTC midnight that FOLLOWS it), the notice window is `notice > 0 && daysRemaining <= notice` with days counted UTC-midnight to UTC-midnight (60 at the window's open, 0 on the last licensed day), the hard stop is expiry + 1 day + `grace`, and `release_until` is compared to the build release date as TEXT (no clock, airgap-safe, fails OPEN when the build date is unavailable). Reading is STRICT about shape and LENIENT about vocabulary: an unknown product, capability token, flag or extra field is kept and ignored, never an error, or every token added on the issuing side would break builds already in the field. A key that grants another product but not `handsontable` is not a Handsontable license — it messages as invalid, and it names no tier (`tiers: null`). The `tiers` answer is uniform across key families: legacy/missing/invalid keys resolve to `tiers: null` (everything on), so capability gating can never take a feature away from an existing customer. **So does an entitlement key whose Handsontable entry names no tier** (`tiers: null`). Every key issued before tiers lists only `core` or feature ids, and the reader's `hasCapability()` answers `false` for every token an entry does not list, so a gate that read the reader's grants would turn off every paid feature of every customer. The rule lives in `mixed.ts` and `licenseCapabilities/tiers.ts`, never in the reader port, which stays byte-compatible with the canonical reader (whose own `AGENTS.md` says the same). The gate built on it is `src/utils/licenseCapabilities/` (resolve, check, report) plus the message half in `licenseNotification.ts`; its rules are in a bullet of their own below. The branding UI is a MODULE CATALOG (`src/utils/licenseBranding/`: `index.ts` = state routing (read once at init), `content.ts` = copy, `badge.ts` = corner badge + popover, `lockScreen.ts` = the blocking lock screen) — a core util, NOT a plugin (plugins can be absent or disabled; license UI must not be). The corner badge + popover render for TRIAL states ONLY (`POPOVER_CONTENT` in `content.ts` holds exactly `trial_valid`, `trial_notice`, `trial_soft_stop`). Every other state — expired legacy, a running or lapsed subscription, a perpetual license (and the two blocking states, which show the modal instead) — shows NO badge; its console message and any bottom bar still come from `initLicenseNotification`/`_injectProductInfo` (the legacy console/bar messaging stays untouched, and `_classifyLegacyKey` in `mixed.ts` mirrors the frozen checks read-only). The two silencing flags are per product and resolved once into `descriptor.channels`: `no-console-warns` closes the console, `no-ui-warns` closes every WARNING surface (badge, popover and bar) — that is what keeps license copy away from the end users of a customer's SaaS app, so never render a license *warning* without checking `channels.ui`. **The `attribution-bar` flag (`ATTRIBUTION_BAR_FLAG`) is not a channel, and no channel closes it:** it says the licensee agreed to show the "Powered by Handsontable DataGrid" bar, a term of any contract type (a perpetual key carries it as well as a subscription one), which is branding, not a warning, so the bar renders outside the `channels.ui` gate, with or without `no-ui-warns`. The reader only keeps the flag in the entry's `flags`; `resolveChannels` ignores it, and the surface that shows the bar (DEV-3413) reads it from the entry itself. A key issued for external use carries `no-ui-warns` AND `attribution-bar` (fixture `SPONSORED_ATTRIBUTION_BAR_EXTERNAL_KEY`), which is exactly the case the flag exists for. The text of an `attribution-bar` key may say nothing about the bar (an empty attribution bar clause, `ATTRIBUTION_BAR_EMPTY_CLAUSE_KEY`): the flag in the payload decides, never the sentence, so never look for the bar sentence in the prose. Do not confuse it with the trial corner badge, which `no-ui-warns` does close. **The flag was called `badge` until `license-key` 7.0.0 (DEV-4153, a product decision of 2026-11-23); the old name is not an alias.** A reader no longer shows the bar for `badge`: it is an unknown flag, ignored like any other, and `SPONSORED_RETIRED_BADGE_FLAG_KEY` (a key issued with the old name) pins it. Do not read both names. **It does NOT close the LOCK (DEV-2709).** The flag covers UI *warnings*; the hard stop is the *enforcement* of a license that has stopped — so `mountBrandingSurface` routes `LOCK_CONTENT` BEFORE the channel gate, and only the badge sits behind it. What this fixed is external/SaaS **trials**: they are the only externally-issued keys that can be blocked at all (a lapsed subscription `usage_hard_stop` has no `LOCK_CONTENT` entry and blocks nothing, and `release_expired` never blocks). Only `trial_hard_stop` changes in practice — `invalid` and `missing` describe keys whose flags could not be read, so both always resolve to open channels and reached the lock either way. **This is a product decision, not a reading the specification states:** §4.1 heads its behavior column "Behaviour (unless `silent`)" over a hard-stop row reading "Trial: block", which read literally puts the block inside the silenced set, while §2.3's `trial` row separates "Trial messages" from "hard-stop block". The spec still needs amending to record the split — do not revert this from §4.1 alone. The same caveat is repeated at `NO_UI_WARNS_FLAG` (`entitlementLicenseKey/constants.ts`) and on `LicenseChannels` (`types.ts`), because those are the definition sites a maintainer reads first. The corner badge is click-through (`pointer-events: none`) so the corner header keeps its native select-all — hover is detected by delegation (`is-corner-hover` class), and the glyph itself is pure CSS - an `::after` inside the corner header cell, gated by BOTH `ht-license-badge-on` (on the root element) and `ht-license-badge-corner` (a class JS stamps on THIS grid's own corner-clone table, resolved via the Walkontable overlay); the glyph CSS keys off that marker, NEVER the structural `.ht_clone_top_inline_start_corner` class, which also matches a nested grid's corner clone and would paint a stray badge there. So it can never overflow or drift out of the corner; never rebuild it as a measured overlay (the overlay version broke visual tests with misaligned badges) - JS measurement exists only to anchor the popover. The mask carries the whole logomark (the "H" and its dot) in one color, in the corner glyph and in the lock-screen strip alike; the lock box has the mark's own 11.1415:16 proportions so its "H" starts at the start padding in RTL too. Only the corner glyph paints the blue dot, as a second `background-image` layer (`$license-badge-dot` in `_license-branding.scss`) drawn in the same viewBox, so both sized `contain` and centered land on each other - draw any new layer in that viewBox, keep `background-position: center`, and keep the brand blue inside the image. The popover is a PURELY VISUAL floating element: no focus scope, no shortcuts, badge/link/close all `tabindex="-1"`, visibility is pointer-only, close is mouse-click only (the info is duplicated in the console + bottom bar). The hard stop renders the CORE-OWNED lock screen (`lockScreen.ts`) — NEVER the Dialog plugin (a shared surface an app legitimately uses: any `show` would replace the lock, any hide would look like a dismissal, and `dialog: true` setups would never tear it down); the lock instead REUSES the confirm-dialog CSS by wearing its class names (`ht-dialog ht-dialog--confirm handsontable ...` — the stylesheet always ships in full, so styling is inherited without importing the plugin) and copies its width sizing (pin `style.width` to the table workspace width on `afterViewRender`, or the `.ht-dialog` box spans the whole root wrapper, not the grid). The lock DOES use the focus manager (modal scope) + shortcut manager (Tab trap only - the lock is non-dismissable, so there is no Escape/close). THREE states render the lock, and `LOCK_CONTENT` in `content.ts` IS that routing — adding a state to that table is what makes it block: `trial_hard_stop`, `invalid`, and `missing`. The last two are the specification's §4.5 shape, whose message text was answered by the product owner as 'the sentences the bottom bar used to carry', so those two states now show the modal INSTEAD of a bar (`_rendersBlockingModal`/`_BLOCKING_MODAL_STATES` in `mixed.ts` withhold the bar in both emitters; the console message is untouched, and the two locks point at support@ rather than sales@ because both are install faults, and carry the bar's documentation link as a real anchor inside the description). A hard-stopped subscription (`usage_hard_stop`) still blocks nothing and shows nothing: it repeats its soft-stop console error and that is all (18.1 never blocks a paying customer). **The soft-stopped trial deliberately shows BOTH a bar and its auto-opening popover, carrying the same two sentences — do not "de-duplicate" it (tried and reverted under DEV-2709).** The bar is the only license surface with a focusable link and a registered focus scope (`licenseNotification.ts`), while the popover is pointer-only by design (`tabIndex = -1` throughout, no focus scope, no `aria-live`); and the bar is the only surface that survives dismissal — on a grid with no corner cell, `is-cornerless` kills the hover path and every CSS rule that reopens the popover, so once the X is clicked the message is gone for the instance's life. Removing the bar there needs the popover to become keyboard-reachable and re-openable first. **Consequence for tests: a grid built with no `licenseKey` is now BLOCKED** — the lock deselects the cell and takes the keyboard, so every test grid must declare a key (the Jasmine helper injects `TEST_LICENSE_KEY` from `test/helpers/licenseKey.js` already; jsdom unit tests that call `new Handsontable` directly must import it and set it themselves, or selection-dependent assertions fail for no visible reason). Each suite reads its key from one place: `test/helpers/licenseKey.js` here, `tests/fixtures/demo/test-license-key.js` (`window.htTestLicenseKey`) in the Playwright fixtures, and a `licenseKey.ts` or `license-key.ts` in each wrapper's tests. Only a test of the license behavior itself writes a key out, and `scripts/__tests__/test-license-key.test.mjs` (root `test:tooling`) fails on a literal key in any other test file. The license key is read ONCE at init (like the console message and the bottom bar) — `updateSettings({licenseKey})` does NOT re-brand; applying a new key needs a fresh instance. Expiry compares against the build's release date, read BARE as `process.env.HOT_RELEASE_DATE` (in `licenseNotification.ts` and `licenseBranding/index.ts`) — the bundler (rspack DefinePlugin for `dist/`, SWC `inlineEnvVars` for `tmp/`) replaces it with a string literal, so NEVER wrap it in a `typeof process` guard: the guard is not inlined, compiles to `false` in browser bundles, blanks the date, and silently disables expired-key detection (an 18.0.0 regression). The badge reads its corner clone through the Walkontable API (`getOverlayByName`), NEVER a CSS `querySelector` on the root subtree (a nested grid — handsontable cell type — has its own corner clone earlier in document order that a selector would wrongly match). `extractEntitlementKeyData` memoizes on the key string (it is read twice per init) and returns frozen data, as the canonical reader does - copy an array before sorting or changing it. User-facing sentences repeated across surfaces (bar, popover, lock) live once as constants in `mixed.ts` (e.g. `_LICENSE_EXPIRED_TITLE`; every license symbol there is underscore-prefixed, because `index.ts` copies each non-underscore export of that module onto the public `Handsontable.helper`) — edit the constant, not each surface; every message is transcribed from the license specification, so reword it there first. Dates print as bare `YYYY-MM-DD`, with the `(UTC)` marker on console messages for `usage_until` and none on `release_until` (no clock takes part) or on the end-user-facing UI. The state-keyed tables (console/DOM notifications in `mixed.ts`, badge/lock content in `content.ts`) are typed `Partial<Record<LicenseStateKey, …>>`, NOT `Record<string, …>` — a typoed or unknown state key is then a compile error instead of a silently dropped entry. Test fixtures: real generator-produced keys in `src/utils/entitlementLicenseKey/__tests__/fixtures.js` (one per worked example of the specification) plus a test-only key builder (`buildTestKey.js`) for the shapes the generator refuses to produce; it must never be imported from `src/`.
 - **The capability gate (`src/utils/licenseCapabilities/`, DEV-3658).** A key that names tiers (the first bullet) unlocks every REGISTERED plugin whose static `LICENSE.tiers` lists one of them: the tiers come from each plugin class's `LICENSE` (generated from its `feature.json`, see `../../featureManifest/AGENTS.md`), never from a global table, so moving a feature between tiers is a manifest edit and an unregistered plugin adds nothing. There is no `implies` at run time and no `<namespace>:all`: the generator already refuses a tier that includes a feature without what it requires. The result is cached per key string AND the registered plugin count, because a plugin registered later changes the answer; the count comes from `countRegisteredPlugins()` (`plugins/registry.ts`), never `getPluginsNames().length`, which copies and sorts the registry on every check (every plugin asks on every `updateSettings()`, and CheckboxHeader on every render). A nested grid (menus, the Filters value list, a grid inside a cell) is never checked (`isRootInstance`). Three places check it: `BasePlugin#isLicenseBlocked()` for `gate: 'enable'` plugins, at the init turn, in `onUpdateSettings` and in the `enablePlugin()` lifecycle wrapper, so a direct call from an app is checked too (the rules, and why a plugin the key keeps off blocks no hard-conflict partner, are in `../../plugins/base/AGENTS.md`), `assertLicensedCall()` at the top of the public methods of the `gate: 'call'` plugins that are on in every grid (ExportFile, ImportFile, ViewState: report, write the message, then THROW the same text; an async method rejects), and `isLicensedUse()` where a check runs during a render and must not throw (CheckboxHeader's `hasHeaderCheckbox()`). **The message is batched, never written per plugin.** A check records the feature (`reportMissingCapability()`, per root grid and key). A plugin the key keeps off at enable passes a check of its own (option still on, plugin still not running), and `pruneMissingCapabilities()` drops it from the list once that fails, so turning the option off takes it out of the bar; a feature refused on a call stays, because the key still leaves it out. `flushMissingCapabilities()` in `licenseNotification.ts` writes the list: from an `init` listener that `initLicenseNotification` adds (after every plugin's init turn during `beforeInit` and its ready step, before the first render), from an `afterUpdateSettings` listener at order index 1000 (after every plugin's own default-order listener, so one `updateSettings()` gives one message), at once from a throwing call gate, and from a microtask after a render. It does nothing before that `init` listener ran (`readyGrids`), whatever asked for it: a gated call from an `afterLoadData` listener runs during init, before the lifecycle bar, and a bar mounted there registered the focus scope that the lifecycle bar then registered again, which throws; and a user `init` listener (added before this one) that calls `updateSettings()` or a gated method would print a short list. The `init` write names everything reported until then. **A feature checked during a render is reported from the settings before it**: CheckboxHeader's `hasHeaderCheckbox()` runs in the header render, which draws only the columns in view and draws nothing in a hidden grid, so the plugin checks every column from its ready step and on `afterUpdateSettings` (`#reportUnlicensedColumns()`, skipped when the key covers the feature); a check only from the render printed a second, longer error once the header was drawn. The bar mounts after `initLicenseBranding`'s height pass, so core reserves the bottom slot's new height right after the `init` hook and before the first render (`reserveSlotsChangedAtInit` in `core.ts`: `reapplyPixelRootHeight()` and the slot observer's seed), and once more after the first render, which sets the slot to the table's width and can wrap the bar onto more lines (rendering again only when the height moved; both before `afterInit`); without it the first render and a pixel `height` read right after the constructor counted the bar's room as grid until the slot observer rendered a frame later. Pinned by `tests/e2e/license-capabilities.spec.ts` and `__tests__/callGates.unit.js` in `../licenseCapabilities/`. The record compares the set of tokens it last wrote, not a count, because one pass can drop one feature and add another. The list is sorted by display name, because the bar shows names only; every new feature prints the whole current list again, so the latest error alone names everything the key leaves out. The console error prints once per page per key and set of features (`printedMissingFeatures`), and only when the list gained a feature (a shorter list updates the bar alone); and `no-console-warns` / `no-ui-warns` close their surface only: the feature stays off. **One bar per grid.** The text goes into the grid's one `.hot-display-license-info` element as a second `_inner` block (`hot-display-license-info_missing-features`) when a lifecycle message already holds the bar (a perpetual key that names tiers, past its maintenance date), and a grid with no bar gets one through `mountBottomLicenseBar()`; never mount a second bar, because `getNotificationElement()` reads the first and the focus scope is one per grid. Build the bar and its blocks with `_createLicenseBar()` and `_createLicenseBarBlock()` (`mixed.ts`); the frozen legacy emitter keeps its own inline copy of the same shape. A key passed later that leaves nothing out takes the block away (and the bar, when it holds no lifecycle message), and forgets the list, so a later restricting key shows it again. The bar the gate built is kept per grid (`ownBars`) and put back rather than built again: its focus scope is registered once, and `registerScope()` throws on the same id twice. The sales address is a `mailto:` link, which is what the bar's focus scope lands on from the keyboard. **The gate never writes the plugin's setting** (unlike a hard conflict at init), so `getSettings()` keeps what the user wrote and a later key whose tiers include the feature turns it on. The cost is that a blocked plugin's `isEnabled()` answers `true`, so code that asks another plugin whether it RUNS reads `.enabled`, everywhere in `src/`: `test/__tests__/crossPluginIsEnabled.unit.js` fails on any `.isEnabled()` call whose receiver is not `this` or `super`, and its allowlist holds the one read that means the option (Loading's `enablePlugin()` switching the Dialog option on). The reads it replaced were not harmless: an XLSX export threw on a blocked ColumnSummary (no endpoints, like MergeCells' missing collection), an import wrote live formulas and `'`-escaped text for a blocked Formulas, and ManualRowResize kept a resized row at its declared height for a blocked AutoRowSize. **A blocked plugin's public methods are not checked**, and they behave exactly as the methods of a plugin turned off by its option, because neither ran `enablePlugin()`: measured on 2026-11-02 over 17 calls in 10 plugins, every result matched, and the ones that throw a bare `TypeError` (MergeCells `merge()`, HiddenRows `hideRow()`, ColumnSorting `sort()`, NestedRows `collapsingUI`) throw it with the option off too. The gate adds no new failure, but an app that set the option expects the methods to work; the license guide tells it not to call them. Checking every method of the 45 `gate: 'enable'` plugins would be a change of its own. Cell types are not checked (`gate: "report"`; they are sold in every tier). Message copy: `_buildMissingFeaturesMessage()` in `mixed.ts`, transcribed from the specification (rev 6, section 10.4). It returns two forms of the list: the console text, which is also what a refused call throws, names each feature as `<display name> (<token>)` for the developer, and the bar names it by display name only, because the bar can reach the end users of an app; keep tokens out of anything rendered in the grid. Fixtures: tier keys from the helpers in the second bullet. The three flagged keys left in `__tests__/fixtures.js` (license-key 6.2.0: `FLAGGED_BASE_KEY`, `FLAGGED_FEAT_ALL_KEY`, `UNFLAGGED_WITH_TOKENS_KEY`) stay only to prove that the retired flag and per-feature ids change nothing (`licenseCapabilities/__tests__/resolveLicenseCapabilities.unit.js`). The E2E demo page `tests/fixtures/demo/license-capabilities.html` applies made-up tiers by redefining each sold plugin's static `LICENSE` getter (`tests/AGENTS.md`).
-- **The "Powered by Handsontable DataGrid" bar (`src/utils/licenseBranding/poweredByBar.ts`, DEV-3413).** `initLicenseBranding` mounts it when the Handsontable entry is a trial (`lifecycle.isTrial`, every trial state) or carries the `badge` flag (`LicenseStateDescriptor.badge`, set by `_getLicenseState` from `BADGE_FLAG`; `false` for every key outside the format, an unreadable one, and under the `*.handsontable.com` bypass). Five rules. (1) **It is branding, not a warning**, so it is mounted BEFORE the lock and outside the `channels.ui` gate: `no-ui-warns` keeps it, which also means an external trial now shows it (a product decision taken in DEV-3413). No option turns it off. (2) **It is its own element (`.ht-license-powered-by`), never a block of the warning bar (`.hot-display-license-info`)**: the warning bar is a `no-ui-warns` surface, its `_inner` blocks and `hideMissingFeaturesInBar()` would treat it as a message, and the specs assert "no warning bar" for a running trial. Like the warning bar it is a foreign node of the bottom slot (never registered with the `LayoutManager`, so the `layout` setting cannot remove it) with a focus scope of its own (`licensePoweredBy`); the warning bar's `appendBarLast()` inserts in FRONT of it, so the branding stays the last line whichever mounts later. (3) **The link's rules are scoped under the bar** (`.ht-license-powered-by .ht-license-powered-by__link`): the bar carries the `handsontable` class, and `.handsontable a` / `a:hover` would otherwise paint the text and the "H" in the link color and underline them. Figma (`JXZaX61arXLhlAi0WK3YNj`, node 1424:19574) draws no hover state for the bar, the text in the bar's color and the "H" in the brand's black (`light-dark(#000, #fff)`, a fixed logo color like the blue dot, not a token). (4) **A license bar mounted at init must be counted against a pixel `height`.** `updateSettings()` writes the height while the slots are empty, the bars mount after it, and the slot observer is seeded with the height they leave, so it never re-applied: the grid grew past its declared height by the bar (35px on the main theme). `core.ts` re-applies the height once after `initLicenseBranding` when the license UI changed the slots' height; this covers the lifecycle warning bar too. The missing-features block is written later, on the `init` hook, and core reserves it again right after that hook and after the first render (`reserveSlotsChangedAtInit`). (5) The bar's geometry follows the license tokens (8px x 16px padding and 12px / 18px text at the default density, 4px x 8px and 11px / 16px on classic), and the logomark is centered on the FIRST line, so a grid narrower than the text wraps it without the mark drifting. Pinned by `tests/e2e/license-branding.spec.ts` ("the Powered by Handsontable DataGrid bar"), `src/utils/__tests__/licenseBranding.unit.js` and the `license-powered-by` page of the axe scan.
+- **The "Powered by Handsontable DataGrid" bar (`src/utils/licenseBranding/poweredByBar.ts`, DEV-3413).** `initLicenseBranding` mounts it when the Handsontable entry is a trial (`lifecycle.isTrial`, every trial state) or carries the `attribution-bar` flag (`LicenseStateDescriptor.attributionBar`, set by `_getLicenseState` from `ATTRIBUTION_BAR_FLAG`; `false` for every key outside the format, an unreadable one, and under the `*.handsontable.com` bypass). Five rules. (1) **It is branding, not a warning**, so it is mounted BEFORE the lock and outside the `channels.ui` gate: `no-ui-warns` keeps it, which also means an external trial now shows it (a product decision taken in DEV-3413). No option turns it off. (2) **It is its own element (`.ht-license-powered-by`), never a block of the warning bar (`.hot-display-license-info`)**: the warning bar is a `no-ui-warns` surface, its `_inner` blocks and `hideMissingFeaturesInBar()` would treat it as a message, and the specs assert "no warning bar" for a running trial. Like the warning bar it is a foreign node of the bottom slot (never registered with the `LayoutManager`, so the `layout` setting cannot remove it) with a focus scope of its own (`licensePoweredBy`); the warning bar's `appendBarLast()` inserts in FRONT of it, so the branding stays the last line whichever mounts later. (3) **The link's rules are scoped under the bar** (`.ht-license-powered-by .ht-license-powered-by__link`): the bar carries the `handsontable` class, and `.handsontable a` / `a:hover` would otherwise paint the text and the "H" in the link color and underline them. Figma (`JXZaX61arXLhlAi0WK3YNj`, node 1424:19574) draws no hover state for the bar, the text in the bar's color and the "H" in the brand's black (`light-dark(#000, #fff)`, a fixed logo color like the blue dot, not a token). (4) **A license bar mounted at init must be counted against a pixel `height`.** `updateSettings()` writes the height while the slots are empty, the bars mount after it, and the slot observer is seeded with the height they leave, so it never re-applied: the grid grew past its declared height by the bar (35px on the main theme). `core.ts` re-applies the height once after `initLicenseBranding` when the license UI changed the slots' height; this covers the lifecycle warning bar too. The missing-features block is written later, on the `init` hook, and core reserves it again right after that hook and after the first render (`reserveSlotsChangedAtInit`). (5) The bar's geometry follows the license tokens (8px x 16px padding and 12px / 18px text at the default density, 4px x 8px and 11px / 16px on classic), and the logomark is centered on the FIRST line, so a grid narrower than the text wraps it without the mark drifting. Pinned by `tests/e2e/license-branding.spec.ts` ("the Powered by Handsontable DataGrid bar"), `src/utils/__tests__/licenseBranding.unit.js` and the `license-powered-by` page of the axe scan.
diff --git a/handsontable/src/utils/entitlementLicenseKey/__tests__/classify.unit.js b/handsontable/src/utils/entitlementLicenseKey/__tests__/classify.unit.js
index 00bff6adc6..b4616fba83 100644
--- a/handsontable/src/utils/entitlementLicenseKey/__tests__/classify.unit.js
+++ b/handsontable/src/utils/entitlementLicenseKey/__tests__/classify.unit.js
@@ -10,9 +10,9 @@ import {
   CUSTOM_FLAG_KEY,
   TRIAL_KEY,
   PERPETUAL_KEY,
-  SPONSORED_BADGE_KEY,
-  SPONSORED_BADGE_EXTERNAL_KEY,
-  SPONSORED_NO_BADGE_KEY,
+  SPONSORED_ATTRIBUTION_BAR_KEY,
+  SPONSORED_ATTRIBUTION_BAR_EXTERNAL_KEY,
+  SPONSORED_NO_ATTRIBUTION_BAR_KEY,
 } from './fixtures';

 const BUILD_DATE = '2026-08-12';
@@ -223,30 +223,31 @@ describe('entitlementLicenseKey/classify', () => {
       expect(resolveChannels(entitlementOf(CUSTOM_FLAG_KEY))).toEqual({ console: true, ui: true });
     });

-    it('should leave the channels to the silencing flags, with or without the badge flag', () => {
-      expect(resolveChannels(entitlementOf(SPONSORED_BADGE_KEY))).toEqual({ console: true, ui: true });
-      expect(resolveChannels(entitlementOf(SPONSORED_NO_BADGE_KEY))).toEqual({ console: true, ui: true });
-      expect(resolveChannels(entitlementOf(SPONSORED_BADGE_EXTERNAL_KEY))).toEqual({ console: false, ui: false });
+    it('should leave the channels to the silencing flags, with or without the attribution-bar flag', () => {
+      expect(resolveChannels(entitlementOf(SPONSORED_ATTRIBUTION_BAR_KEY))).toEqual({ console: true, ui: true });
+      expect(resolveChannels(entitlementOf(SPONSORED_NO_ATTRIBUTION_BAR_KEY))).toEqual({ console: true, ui: true });
+      expect(resolveChannels(entitlementOf(SPONSORED_ATTRIBUTION_BAR_EXTERNAL_KEY)))
+        .toEqual({ console: false, ui: false });
     });
   });

-  describe('the badge flag', () => {
+  describe('the attribution-bar flag', () => {
     it('should measure a sponsored key as a usage license, whether or not it carries the flag', () => {
-      const withBadge = at(entitlementOf(SPONSORED_BADGE_KEY), '2027-01-01T00:00:00Z');
-      const withoutBadge = at(entitlementOf(SPONSORED_NO_BADGE_KEY), '2027-01-01T00:00:00Z');
+      const withAttributionBar = at(entitlementOf(SPONSORED_ATTRIBUTION_BAR_KEY), '2027-01-01T00:00:00Z');
+      const withoutAttributionBar = at(entitlementOf(SPONSORED_NO_ATTRIBUTION_BAR_KEY), '2027-01-01T00:00:00Z');

-      expect(withBadge.state).toBe('usage_valid');
-      expect(withBadge.isTrial).toBe(false);
-      expect(withBadge.licensedUntil).toBe('2027-11-04');
-      expect(withBadge).toEqual(withoutBadge);
+      expect(withAttributionBar.state).toBe('usage_valid');
+      expect(withAttributionBar.isTrial).toBe(false);
+      expect(withAttributionBar.licensedUntil).toBe('2027-11-04');
+      expect(withAttributionBar).toEqual(withoutAttributionBar);
     });

     it('should run the same notice window with the flag as without it', () => {
-      const withBadge = at(entitlementOf(SPONSORED_BADGE_KEY), '2027-10-01T00:00:00Z');
-      const withoutBadge = at(entitlementOf(SPONSORED_NO_BADGE_KEY), '2027-10-01T00:00:00Z');
+      const withAttributionBar = at(entitlementOf(SPONSORED_ATTRIBUTION_BAR_KEY), '2027-10-01T00:00:00Z');
+      const withoutAttributionBar = at(entitlementOf(SPONSORED_NO_ATTRIBUTION_BAR_KEY), '2027-10-01T00:00:00Z');

-      expect(withBadge.state).toBe('usage_notice');
-      expect(withBadge).toEqual(withoutBadge);
+      expect(withAttributionBar.state).toBe('usage_notice');
+      expect(withAttributionBar).toEqual(withoutAttributionBar);
     });
   });
 });
diff --git a/handsontable/src/utils/entitlementLicenseKey/__tests__/extractKeyData.unit.js b/handsontable/src/utils/entitlementLicenseKey/__tests__/extractKeyData.unit.js
index 6b82647a28..9f9549d212 100644
--- a/handsontable/src/utils/entitlementLicenseKey/__tests__/extractKeyData.unit.js
+++ b/handsontable/src/utils/entitlementLicenseKey/__tests__/extractKeyData.unit.js
@@ -21,14 +21,15 @@ import {
   MIXED_KEY,
   SUBSCRIPTION_UNTIL,
   TRIAL_UNTIL,
-  SPONSORED_BADGE_KEY,
-  SPONSORED_BADGE_EXTERNAL_KEY,
-  SPONSORED_NO_BADGE_KEY,
-  PERPETUAL_BADGE_KEY,
-  PERPETUAL_BADGE_NO_UI_WARNS_KEY,
-  BADGE_EMPTY_CLAUSE_KEY,
+  SPONSORED_ATTRIBUTION_BAR_KEY,
+  SPONSORED_ATTRIBUTION_BAR_EXTERNAL_KEY,
+  SPONSORED_NO_ATTRIBUTION_BAR_KEY,
+  PERPETUAL_ATTRIBUTION_BAR_KEY,
+  PERPETUAL_ATTRIBUTION_BAR_NO_UI_WARNS_KEY,
+  ATTRIBUTION_BAR_EMPTY_CLAUSE_KEY,
+  SPONSORED_RETIRED_BADGE_FLAG_KEY,
 } from './fixtures';
-import { BADGE_FLAG } from '../index';
+import { ATTRIBUTION_BAR_FLAG } from '../index';

 /**
  * A well-formed Handsontable product entry, with the fields a test does not care about filled in.
@@ -133,69 +134,91 @@ describe('entitlementLicenseKey/extractKeyData', () => {
       expect(entitlement.flags).toEqual(['no-console-warns', 'no-ui-warns']);
     });

-    it('should read a sponsored key and keep its badge flag', () => {
-      const entitlement = getProductEntitlement(extractEntitlementKeyData(SPONSORED_BADGE_KEY), 'handsontable');
+    it('should read a sponsored key and keep its attribution-bar flag', () => {
+      const entitlement = getProductEntitlement(
+        extractEntitlementKeyData(SPONSORED_ATTRIBUTION_BAR_KEY),
+        'handsontable',
+      );

-      expect(BADGE_FLAG).toBe('badge');
+      expect(ATTRIBUTION_BAR_FLAG).toBe('attribution-bar');
       expect(entitlement).toEqual({
         capabilities: ['core'],
         usage_until: '2027-11-04',
         notice: 60,
         grace: 90,
-        flags: [BADGE_FLAG],
+        flags: [ATTRIBUTION_BAR_FLAG],
       });
     });

-    it('should keep the badge flag next to both silencing flags', () => {
+    it('should keep the attribution-bar flag next to both silencing flags', () => {
+      const entitlement = getProductEntitlement(
+        extractEntitlementKeyData(SPONSORED_ATTRIBUTION_BAR_EXTERNAL_KEY),
+        'handsontable',
+      );
+
+      expect(entitlement.flags).toEqual(['no-console-warns', 'no-ui-warns', ATTRIBUTION_BAR_FLAG]);
+    });
+
+    it('should read the retired `badge` flag as an unknown flag: kept on the entry, and not the attribution-bar flag', () => {
       const entitlement = getProductEntitlement(
-        extractEntitlementKeyData(SPONSORED_BADGE_EXTERNAL_KEY),
+        extractEntitlementKeyData(SPONSORED_RETIRED_BADGE_FLAG_KEY),
         'handsontable',
       );

-      expect(entitlement.flags).toEqual(['no-console-warns', 'no-ui-warns', BADGE_FLAG]);
+      expect(entitlement.flags).toEqual(['badge']);
+      expect(entitlement.flags).not.toContain(ATTRIBUTION_BAR_FLAG);
     });

-    it('should read a sponsored key without the badge flag as a plain usage entry', () => {
-      const entitlement = getProductEntitlement(extractEntitlementKeyData(SPONSORED_NO_BADGE_KEY), 'handsontable');
+    it('should read a sponsored key without the attribution-bar flag as a plain usage entry', () => {
+      const entitlement = getProductEntitlement(
+        extractEntitlementKeyData(SPONSORED_NO_ATTRIBUTION_BAR_KEY),
+        'handsontable',
+      );

       expect(entitlement.usage_until).toBe('2027-11-04');
       expect(entitlement.flags).toEqual([]);
     });

-    it('should keep the badge flag on a `release_until` entry (a perpetual key)', () => {
-      const entitlement = getProductEntitlement(extractEntitlementKeyData(PERPETUAL_BADGE_KEY), 'handsontable');
+    it('should keep the attribution-bar flag on a `release_until` entry (a perpetual key)', () => {
+      const entitlement = getProductEntitlement(
+        extractEntitlementKeyData(PERPETUAL_ATTRIBUTION_BAR_KEY),
+        'handsontable',
+      );

       expect(entitlement).toEqual({
         capabilities: ['core'],
         release_until: '2099-12-31',
         notice: 60,
         grace: 90,
-        flags: [BADGE_FLAG],
+        flags: [ATTRIBUTION_BAR_FLAG],
       });
       expect(entitlement.usage_until).toBeUndefined();
     });

-    it('should keep the badge flag of a perpetual key next to `no-ui-warns`', () => {
+    it('should keep the attribution-bar flag of a perpetual key next to `no-ui-warns`', () => {
       const entitlement = getProductEntitlement(
-        extractEntitlementKeyData(PERPETUAL_BADGE_NO_UI_WARNS_KEY),
+        extractEntitlementKeyData(PERPETUAL_ATTRIBUTION_BAR_NO_UI_WARNS_KEY),
         'handsontable',
       );

       expect(entitlement.release_until).toBe('2099-12-31');
-      expect(entitlement.flags).toEqual([BADGE_FLAG, 'no-ui-warns']);
+      expect(entitlement.flags).toEqual([ATTRIBUTION_BAR_FLAG, 'no-ui-warns']);
     });

-    it('should read a badge key whose badge clause is empty, and keep its flag', () => {
-      expect(BADGE_EMPTY_CLAUSE_KEY).not.toContain('Powered by');
+    it('should read an attribution-bar key whose clause is empty, and keep its flag', () => {
+      expect(ATTRIBUTION_BAR_EMPTY_CLAUSE_KEY).not.toContain('Powered by');

-      const entitlement = getProductEntitlement(extractEntitlementKeyData(BADGE_EMPTY_CLAUSE_KEY), 'handsontable');
+      const entitlement = getProductEntitlement(
+        extractEntitlementKeyData(ATTRIBUTION_BAR_EMPTY_CLAUSE_KEY),
+        'handsontable',
+      );

       expect(entitlement).toEqual({
         capabilities: ['core'],
         usage_until: '2027-11-04',
         notice: 60,
         grace: 90,
-        flags: [BADGE_FLAG],
+        flags: [ATTRIBUTION_BAR_FLAG],
       });
     });

diff --git a/handsontable/src/utils/entitlementLicenseKey/__tests__/fixtures.js b/handsontable/src/utils/entitlementLicenseKey/__tests__/fixtures.js
index 344b83a46f..e10d1eb2d8 100644
--- a/handsontable/src/utils/entitlementLicenseKey/__tests__/fixtures.js
+++ b/handsontable/src/utils/entitlementLicenseKey/__tests__/fixtures.js
@@ -15,10 +15,10 @@
  * They were generated by the `license-key` generator released as 5.1.0 (the same output as its
  * pre-release commit 4c166fd) from the same records as the earlier fixtures, so the text and the
  * products are unchanged; the reader matches the canonical reader of `license-key` at commit
- * tag 6.4.0, which reads keys as 5.1.0 did and only adds two flags: `listed-capabilities`
- * (6.2.0) and `badge` (12b800468a). Its reader is unchanged since 12b800468a, so the keys for
- * each flag at the end of this file keep the generator that added it, and the last three are
- * from 6.4.0. The
+ * tag 7.0.0, which reads keys as 5.1.0 did and only adds two flags: `listed-capabilities`
+ * (6.2.0) and `attribution-bar` (called `badge` before 7.0.0, DEV-4153). The keys for each flag at
+ * the end of this file keep the generator that added it, and the ones with `attribution-bar` are
+ * from the PR #18 branch of `license-key`, which became 7.0.0. The
  * `V1_*` keys were generated by `license-key` 4.0.1, in the earlier format - the one
  * the trial keys already issued use. Handsontable 18.1 reads both formats.
  *
@@ -277,84 +277,98 @@ export const UNFLAGGED_WITH_TOKENS_KEY = `This is a Handsontable license key for
 [eyJwcm9kdWN0cyI6eyJoYW5kc29udGFibGUiOnsiY2FwYWJpbGl0aWVzIjpbImNvcmUiLCJmZWF0OmZpbHRlcnMiXSwicmVsZWFzZV91bnRpbCI6IjIwOTktMTItMzEiLCJub3RpY2UiOjYwLCJncmFjZSI6OTAsImZsYWdzIjpbXX19LCJ2IjoyLCJwcm9zZSI6IjQ3ZjFmNGFjMzMxNmFhYWEyZjA4YzA5YzAyZDg1YWRmZjFlYzQ1NTM3MWI2YmJkZjAwMDU2M2E5MjZmOTFmNDcifQ4e0268ab74bd2007338c648e15223554426c4a883fe5d3052225fb5e7c93b32d5010c7691157f24b901b8052c27c950cb84783429a38da82df4cbbb61d69279a]`;

 /*
- * Sponsored keys, with and without the `badge` flag. Generated by the `license-key` generator at
- * commit 12b800468a (the merge of the `badge` flag, after 6.2.0) from its default schema, which
- * prints the bar sentence for a license carrying the flag.
+ * Sponsored keys, with and without the `attribution-bar` flag. Generated by the `license-key`
+ * generator of the branch that renames the flag (PR #18, released as 7.0.0) from its default schema,
+ * which prints the bar sentence for a license carrying the flag.
  */

 /**
- * Sponsored, with the bar: `usage_until` 2027-11-04, notice 60, grace 90, flag `badge`.
+ * Sponsored, with the bar: `usage_until` 2027-11-04, notice 60, grace 90, flag `attribution-bar`.
  *
  * @type {string}
  */
-export const SPONSORED_BADGE_KEY = `This is a Handsontable license key for Test Fixture, issued on 2026-11-04 for the "Fixture Project" project. It includes 1 license:
+export const SPONSORED_ATTRIBUTION_BAR_KEY = `This is a Handsontable license key for Test Fixture, issued on 2026-11-04 for the "Fixture Project" project. It includes 1 license:

 > 1. Sponsored license under Handsontable Subscription License Agreement 2.0 of 2022-05-21, for Handsontable, for internal use, valid until 2027-11-04 (UTC). Issued free of charge for non-commercial use. Use after that date is not permitted. To renew, contact sales@handsontable.com. The grid must display the "Powered by Handsontable DataGrid" bar.

-[eyJwcm9kdWN0cyI6eyJoYW5kc29udGFibGUiOnsiY2FwYWJpbGl0aWVzIjpbImNvcmUiXSwidXNhZ2VfdW50aWwiOiIyMDI3LTExLTA0Iiwibm90aWNlIjo2MCwiZ3JhY2UiOjkwLCJmbGFncyI6WyJiYWRnZSJdfX0sInYiOjIsInByb3NlIjoiODJjNTVkZWU2MDE5OWVhN2MyMTk5ZjJjNjM2NjhlOWRjZTVhZDZiMzQ2NDEwZTc4ZmZjMzdjZTQ1YTkzNzEwYiJ95716456604582d8de0c19837584475d5035693918c6fc8ec0d46be733eb5aaf73bb6aa51201b5deb5418a15d01383bead2fa14f9eb10895679efc6c0952a8cc2]`;
+[eyJwcm9kdWN0cyI6eyJoYW5kc29udGFibGUiOnsiY2FwYWJpbGl0aWVzIjpbImNvcmUiXSwidXNhZ2VfdW50aWwiOiIyMDI3LTExLTA0Iiwibm90aWNlIjo2MCwiZ3JhY2UiOjkwLCJmbGFncyI6WyJhdHRyaWJ1dGlvbi1iYXIiXX19LCJ2IjoyLCJwcm9zZSI6IjgyYzU1ZGVlNjAxOTllYTdjMjE5OWYyYzYzNjY4ZTlkY2U1YWQ2YjM0NjQxMGU3OGZmYzM3Y2U0NWE5MzcxMGIifQ99d10a32bd349c604ad7c60c5ff83462865f830c72d14aa3fc5b68d93be1a16979feb380af60994954d244ac06fb59d29d8247d430116f710bcdd867bfcf2429]`;

 /**
- * SPONSORED_BADGE_KEY issued for external use, so it also carries both silencing flags. The case
+ * SPONSORED_ATTRIBUTION_BAR_KEY issued for external use, so it also carries both silencing flags. The case
  * the flag exists for: a free product that redistributes the grid closes every warning and still
  * shows the bar.
  *
  * @type {string}
  */
-export const SPONSORED_BADGE_EXTERNAL_KEY = `This is a Handsontable license key for Test Fixture, issued on 2026-11-04 for the "Fixture Project" project. It includes 1 license:
+export const SPONSORED_ATTRIBUTION_BAR_EXTERNAL_KEY = `This is a Handsontable license key for Test Fixture, issued on 2026-11-04 for the "Fixture Project" project. It includes 1 license:

 > 1. Sponsored license under Handsontable Subscription License Agreement 2.0 of 2022-05-21, for Handsontable, for external use, valid until 2027-11-04 (UTC). Issued free of charge for non-commercial use. Use after that date is not permitted. To renew, contact sales@handsontable.com. The grid must display the "Powered by Handsontable DataGrid" bar.

-[eyJwcm9kdWN0cyI6eyJoYW5kc29udGFibGUiOnsiY2FwYWJpbGl0aWVzIjpbImNvcmUiXSwidXNhZ2VfdW50aWwiOiIyMDI3LTExLTA0Iiwibm90aWNlIjo2MCwiZ3JhY2UiOjkwLCJmbGFncyI6WyJuby1jb25zb2xlLXdhcm5zIiwibm8tdWktd2FybnMiLCJiYWRnZSJdfX0sInYiOjIsInByb3NlIjoiNWIxNzA1ZDU1OTM3ODNjYjE4NmFiMjEyZGVhMTEyN2Y4Yzc0YmFjM2Y0YzdkNWY2NDQwZTBiOTllZWUxYTA5MiJ901bca5a4753a01a3969a575bf75b2e85576a3754ee040791ad03803a881ed6940bf172c09c0b216ac7ee2d0802c96cf42b3075047da75d1ff08a2261538147ee]`;
+[eyJwcm9kdWN0cyI6eyJoYW5kc29udGFibGUiOnsiY2FwYWJpbGl0aWVzIjpbImNvcmUiXSwidXNhZ2VfdW50aWwiOiIyMDI3LTExLTA0Iiwibm90aWNlIjo2MCwiZ3JhY2UiOjkwLCJmbGFncyI6WyJuby1jb25zb2xlLXdhcm5zIiwibm8tdWktd2FybnMiLCJhdHRyaWJ1dGlvbi1iYXIiXX19LCJ2IjoyLCJwcm9zZSI6IjViMTcwNWQ1NTkzNzgzY2IxODZhYjIxMmRlYTExMjdmOGM3NGJhYzNmNGM3ZDVmNjQ0MGUwYjk5ZWVlMWEwOTIifQ52c193b971aac9426d5d4765067167957ccf67bc4d86400bac92924f70b9076afa584706098eac4a42e6ec47e51526bb0489ea9ec2690532ba7c8c6f94a112b8]`;

 /**
- * SPONSORED_BADGE_KEY without the bar: a sponsored license issued without the `badge` term.
+ * SPONSORED_ATTRIBUTION_BAR_KEY without the bar: a sponsored license issued without the `attribution-bar` term.
  *
  * @type {string}
  */
-export const SPONSORED_NO_BADGE_KEY = `This is a Handsontable license key for Test Fixture, issued on 2026-11-04 for the "Fixture Project" project. It includes 1 license:
+export const SPONSORED_NO_ATTRIBUTION_BAR_KEY = `This is a Handsontable license key for Test Fixture, issued on 2026-11-04 for the "Fixture Project" project. It includes 1 license:

 > 1. Sponsored license under Handsontable Subscription License Agreement 2.0 of 2022-05-21, for Handsontable, for internal use, valid until 2027-11-04 (UTC). Issued free of charge for non-commercial use. Use after that date is not permitted. To renew, contact sales@handsontable.com.

 [eyJwcm9kdWN0cyI6eyJoYW5kc29udGFibGUiOnsiY2FwYWJpbGl0aWVzIjpbImNvcmUiXSwidXNhZ2VfdW50aWwiOiIyMDI3LTExLTA0Iiwibm90aWNlIjo2MCwiZ3JhY2UiOjkwLCJmbGFncyI6W119fSwidiI6MiwicHJvc2UiOiIzOTc0ODA3OWY1ZWRhOTUwN2JlMWE4NzgzMTg0Y2I4ZmVlOWU5N2NjYjM3NDVmZWU1NGM1MzkwZjJhZWU1ODAyIn083b8a845e760b50f12cae3de85d5c119e6375730a5a54682eb64d6a3371db34320c545a929c11d7f3c423806472083b4ec4282a97b9f8e251220f70519f626bd]`;

 /*
- * Keys from the `license-key` generator at tag 6.4.0, from its default schema, holder and issue date
- * as the sponsored keys above. `badge` is a flag of any contract type, so two of them are perpetual
- * (`release_until` 2099-12-31, notice 60, grace 90), and the third has an empty badge clause.
+ * Keys from the same generator, from its default schema, holder and issue date as the sponsored keys
+ * above. `attribution-bar` is a flag of any contract type, so two of them are perpetual
+ * (`release_until` 2099-12-31, notice 60, grace 90), and the third has an empty attribution bar clause.
  */

 /**
- * A perpetual license with the bar: `release_until` 2099-12-31, flag `badge`. The text states the
+ * A perpetual license with the bar: `release_until` 2099-12-31, flag `attribution-bar`. The text states the
  * bar.
  *
  * @type {string}
  */
-export const PERPETUAL_BADGE_KEY = `This is a Handsontable license key for Test Fixture, issued on 2026-11-04 for the "Fixture Project" project. It includes 1 license:
+export const PERPETUAL_ATTRIBUTION_BAR_KEY = `This is a Handsontable license key for Test Fixture, issued on 2026-11-04 for the "Fixture Project" project. It includes 1 license:

 > 1. Perpetual license under Handsontable Perpetual License Agreement 6.0 of 2022-09-01, for Handsontable, for internal use, with maintenance until 2099-12-31 (UTC). Updates released after that date are not covered. To renew maintenance, contact sales@handsontable.com. The grid must display the "Powered by Handsontable DataGrid" bar.

-[eyJwcm9kdWN0cyI6eyJoYW5kc29udGFibGUiOnsiY2FwYWJpbGl0aWVzIjpbImNvcmUiXSwicmVsZWFzZV91bnRpbCI6IjIwOTktMTItMzEiLCJub3RpY2UiOjYwLCJncmFjZSI6OTAsImZsYWdzIjpbImJhZGdlIl19fSwidiI6MiwicHJvc2UiOiJlM2IyNDhmYjFhZmY1NjQ4ZTYxNjdkMGI1MWYzMzY1NTVhZjA4OWM4NTM3MmNlZTg0YTE5OGM0MTU4MjYxYTMxIn0bb6541f7f65931f3d5065abe9247912624278f21ee735d429de7776f641a44f96064185e4a1a754ff7aa85894e34c31f34f58858f5129b9f9fbe714a32ec3ee8]`;
+[eyJwcm9kdWN0cyI6eyJoYW5kc29udGFibGUiOnsiY2FwYWJpbGl0aWVzIjpbImNvcmUiXSwicmVsZWFzZV91bnRpbCI6IjIwOTktMTItMzEiLCJub3RpY2UiOjYwLCJncmFjZSI6OTAsImZsYWdzIjpbImF0dHJpYnV0aW9uLWJhciJdfX0sInYiOjIsInByb3NlIjoiZTNiMjQ4ZmIxYWZmNTY0OGU2MTY3ZDBiNTFmMzM2NTU1YWYwODljODUzNzJjZWU4NGExOThjNDE1ODI2MWEzMSJ9eb0e726fec7f8c2828ab226c3281bf208ab508efabb95ab6d909c063a36f9acb9cf241644534c70fbd5e77bf207c9d8b15a0f507207d0293719864d21e1ee77f]`;

 /**
- * PERPETUAL_BADGE_KEY with `no-ui-warns` as well: the UI is silenced and the bar stays, because
+ * PERPETUAL_ATTRIBUTION_BAR_KEY with `no-ui-warns` as well: the UI is silenced and the bar stays, because
  * it is branding, not a warning.
  *
  * @type {string}
  */
-export const PERPETUAL_BADGE_NO_UI_WARNS_KEY = `This is a Handsontable license key for Test Fixture, issued on 2026-11-04 for the "Fixture Project" project. It includes 1 license:
+export const PERPETUAL_ATTRIBUTION_BAR_NO_UI_WARNS_KEY = `This is a Handsontable license key for Test Fixture, issued on 2026-11-04 for the "Fixture Project" project. It includes 1 license:

 > 1. Perpetual license under Handsontable Perpetual License Agreement 6.0 of 2022-09-01, for Handsontable, for internal use, with maintenance until 2099-12-31 (UTC). Updates released after that date are not covered. To renew maintenance, contact sales@handsontable.com. The grid must display the "Powered by Handsontable DataGrid" bar.

-[eyJwcm9kdWN0cyI6eyJoYW5kc29udGFibGUiOnsiY2FwYWJpbGl0aWVzIjpbImNvcmUiXSwicmVsZWFzZV91bnRpbCI6IjIwOTktMTItMzEiLCJub3RpY2UiOjYwLCJncmFjZSI6OTAsImZsYWdzIjpbImJhZGdlIiwibm8tdWktd2FybnMiXX19LCJ2IjoyLCJwcm9zZSI6ImUzYjI0OGZiMWFmZjU2NDhlNjE2N2QwYjUxZjMzNjU1NWFmMDg5Yzg1MzcyY2VlODRhMTk4YzQxNTgyNjFhMzEifQcaec24d6c7aaf82da0335b91e5e24dc269b1439f5d7aa3b4ca26cb5e1e248f0f11c8f725607bb4e03ed1168335ffa65dc1228df79de44d1b7c3241dae992a63a]`;
+[eyJwcm9kdWN0cyI6eyJoYW5kc29udGFibGUiOnsiY2FwYWJpbGl0aWVzIjpbImNvcmUiXSwicmVsZWFzZV91bnRpbCI6IjIwOTktMTItMzEiLCJub3RpY2UiOjYwLCJncmFjZSI6OTAsImZsYWdzIjpbImF0dHJpYnV0aW9uLWJhciIsIm5vLXVpLXdhcm5zIl19fSwidiI6MiwicHJvc2UiOiJlM2IyNDhmYjFhZmY1NjQ4ZTYxNjdkMGI1MWYzMzY1NTVhZjA4OWM4NTM3MmNlZTg0YTE5OGM0MTU4MjYxYTMxIn0fb23bea9a0838511466fdb4d32909722a8dfab5c2994f8c0f4b5e2f38e1143c8986e7a366a19f34586b218b7c74527a5ec700c966e6ebbcdebc028660ab43b14]`;

 /**
- * A subscription key (`usage_until` 2027-11-04, notice 60, grace 90) with flag `badge` whose badge
+ * A subscription key (`usage_until` 2027-11-04, notice 60, grace 90) with flag `attribution-bar` whose attribution bar
  * clause is empty: its text says nothing about the bar and the flag is still in the payload.
  *
  * @type {string}
  */
-export const BADGE_EMPTY_CLAUSE_KEY = `This is a Handsontable license key for Test Fixture, issued on 2026-11-04 for the "Fixture Project" project. It includes 1 license:
+export const ATTRIBUTION_BAR_EMPTY_CLAUSE_KEY = `This is a Handsontable license key for Test Fixture, issued on 2026-11-04 for the "Fixture Project" project. It includes 1 license:

 > 1. Subscription license under Handsontable Subscription License Agreement 2.0 of 2022-05-21, for Handsontable, for internal use, valid until 2027-11-04 (UTC). Use after that date is not permitted. To renew, contact sales@handsontable.com.

-[eyJwcm9kdWN0cyI6eyJoYW5kc29udGFibGUiOnsiY2FwYWJpbGl0aWVzIjpbImNvcmUiXSwidXNhZ2VfdW50aWwiOiIyMDI3LTExLTA0Iiwibm90aWNlIjo2MCwiZ3JhY2UiOjkwLCJmbGFncyI6WyJiYWRnZSJdfX0sInYiOjIsInByb3NlIjoiZjhiM2Y1MzkyZTg2NjRmZGY2NjA4MmJkMWRkMjFkMDU3YzRkNmQ4MDEyZDFkNTYyMzFiYzE2NGYzZGFmOWYzNyJ95ab1561dbc805d7bfeb01fea505cd69b518d06b3907347539f3fa004408fe27fc0f93c5097e1768e37d029d29fb8da8a0b9dad3a2dad382816700dbed30c8cd5]`;
+[eyJwcm9kdWN0cyI6eyJoYW5kc29udGFibGUiOnsiY2FwYWJpbGl0aWVzIjpbImNvcmUiXSwidXNhZ2VfdW50aWwiOiIyMDI3LTExLTA0Iiwibm90aWNlIjo2MCwiZ3JhY2UiOjkwLCJmbGFncyI6WyJhdHRyaWJ1dGlvbi1iYXIiXX19LCJ2IjoyLCJwcm9zZSI6ImY4YjNmNTM5MmU4NjY0ZmRmNjYwODJiZDFkZDIxZDA1N2M0ZDZkODAxMmQxZDU2MjMxYmMxNjRmM2RhZjlmMzcifQb48a574efa6c9fe87ac11b9d2fe6a93842788a0127378f0a63f894ffe5d450d367e7538a82a3fa21aafca36f7ef54672f06483dcac60c4a81fd26a29edd6c0e4]`;
+
+/**
+ * A sponsored key with the flag as it was called before `license-key` 7.0.0: `badge`, the same record
+ * as SPONSORED_ATTRIBUTION_BAR_KEY, generated by `license-key` at commit 12b800468a (6.x). The reader
+ * knows no such flag any more, so it is an unknown flag, ignored like every other one, and the key
+ * shows no "Powered by" bar.
+ *
+ * @type {string}
+ */
+export const SPONSORED_RETIRED_BADGE_FLAG_KEY = `This is a Handsontable license key for Test Fixture, issued on 2026-11-04 for the "Fixture Project" project. It includes 1 license:
+
+> 1. Sponsored license under Handsontable Subscription License Agreement 2.0 of 2022-05-21, for Handsontable, for internal use, valid until 2027-11-04 (UTC). Issued free of charge for non-commercial use. Use after that date is not permitted. To renew, contact sales@handsontable.com. The grid must display the "Powered by Handsontable DataGrid" bar.
+
+[eyJwcm9kdWN0cyI6eyJoYW5kc29udGFibGUiOnsiY2FwYWJpbGl0aWVzIjpbImNvcmUiXSwidXNhZ2VfdW50aWwiOiIyMDI3LTExLTA0Iiwibm90aWNlIjo2MCwiZ3JhY2UiOjkwLCJmbGFncyI6WyJiYWRnZSJdfX0sInYiOjIsInByb3NlIjoiODJjNTVkZWU2MDE5OWVhN2MyMTk5ZjJjNjM2NjhlOWRjZTVhZDZiMzQ2NDEwZTc4ZmZjMzdjZTQ1YTkzNzEwYiJ95716456604582d8de0c19837584475d5035693918c6fc8ec0d46be733eb5aaf73bb6aa51201b5deb5418a15d01383bead2fa14f9eb10895679efc6c0952a8cc2]`;
diff --git a/handsontable/src/utils/entitlementLicenseKey/constants.ts b/handsontable/src/utils/entitlementLicenseKey/constants.ts
index c7f909b005..b0ffeabd9e 100644
--- a/handsontable/src/utils/entitlementLicenseKey/constants.ts
+++ b/handsontable/src/utils/entitlementLicenseKey/constants.ts
@@ -59,7 +59,7 @@ export const NO_CONSOLE_WARNS_FLAG = 'no-console-warns';
  * Closes the UI WARNING surfaces: no corner badge, no popover, no bottom bar.
  * Both this flag and the one above are the default for a key issued for
  * external, end-user-facing use. It does not close the "Powered by" bar a
- * `badge` key asks for - see `BADGE_FLAG`.
+ * `attribution-bar` key asks for - see `ATTRIBUTION_BAR_FLAG`.
  *
  * It does NOT close the hard-stop lock screen. The lock is enforcement rather
  * than a warning, so `mountBrandingSurface` (`utils/licenseBranding/index.ts`)
@@ -83,7 +83,7 @@ export const NO_UI_WARNS_FLAG = 'no-ui-warns';
  *
  * @type {string}
  */
-export const BADGE_FLAG = 'badge';
+export const ATTRIBUTION_BAR_FLAG = 'attribution-bar';

 /**
  * The number of milliseconds in a day, used to walk from one UTC midnight to
diff --git a/handsontable/src/utils/entitlementLicenseKey/index.ts b/handsontable/src/utils/entitlementLicenseKey/index.ts
index b8262e3c94..f30da7cea0 100644
--- a/handsontable/src/utils/entitlementLicenseKey/index.ts
+++ b/handsontable/src/utils/entitlementLicenseKey/index.ts
@@ -9,7 +9,7 @@ import {
   hasCapability,
 } from './grants';

-export { HANDSONTABLE_PRODUCT, BADGE_FLAG } from './constants';
+export { HANDSONTABLE_PRODUCT, ATTRIBUTION_BAR_FLAG } from './constants';

 export type {
   LicenseKeyFormat,
diff --git a/handsontable/src/utils/entitlementLicenseKey/types.ts b/handsontable/src/utils/entitlementLicenseKey/types.ts
index 0342d63fcc..b1c7bbcd8e 100644
--- a/handsontable/src/utils/entitlementLicenseKey/types.ts
+++ b/handsontable/src/utils/entitlementLicenseKey/types.ts
@@ -89,7 +89,7 @@ export interface LicenseLifecycle {
  * `ui` governs warnings only. The hard-stop lock screen is enforcement and is
  * mounted regardless - see `NO_UI_WARNS_FLAG` in `./constants` and the routing
  * note in `utils/licenseBranding/index.ts`. So is the "Powered by" bar a
- * `badge` key asks for: it is branding, not a warning - see `BADGE_FLAG` in
+ * `attribution-bar` key asks for: it is branding, not a warning - see `ATTRIBUTION_BAR_FLAG` in
  * `./constants`. A new surface reading this field has to decide which of the
  * three it is before honoring it.
  */
diff --git a/handsontable/src/utils/licenseBranding/index.ts b/handsontable/src/utils/licenseBranding/index.ts
index b8fedc3990..6c4151f9c3 100644
--- a/handsontable/src/utils/licenseBranding/index.ts
+++ b/handsontable/src/utils/licenseBranding/index.ts
@@ -65,18 +65,18 @@ function mountBrandingSurface(

 /**
  * Tells whether a license shows the "Powered by Handsontable DataGrid" bar: a trial (every trial state,
- * the `trial` flag needs no `badge`) or a key whose Handsontable entry carries the `badge` flag.
+ * the `trial` flag needs no `attribution-bar`) or a key whose Handsontable entry carries the `attribution-bar` flag.
  *
  * The bar is branding the licensee agreed to, not a license warning, so no channel closes it -
  * `no-ui-warns` included - and no option turns it off. Every other key (a regular or sponsored key
- * without `badge`, a legacy key, the non-commercial key, a missing or unreadable key) shows none, and
+ * without `attribution-bar`, a legacy key, the non-commercial key, a missing or unreadable key) shows none, and
  * neither does a grid on `*.handsontable.com`, which `_getLicenseState` resolves before this.
  *
  * @param {LicenseStateDescriptor} descriptor The resolved license state descriptor.
  * @returns {boolean}
  */
 function showsPoweredByBar(descriptor: LicenseStateDescriptor): boolean {
-  return descriptor.lifecycle.isTrial || descriptor.badge;
+  return descriptor.lifecycle.isTrial || descriptor.attributionBar;
 }

 /**
diff --git a/handsontable/test/__tests__/jestExpectedConsole.unit.js b/handsontable/test/__tests__/jestExpectedConsole.unit.js
index 3579453a43..a9d0cf62ff 100644
--- a/handsontable/test/__tests__/jestExpectedConsole.unit.js
+++ b/handsontable/test/__tests__/jestExpectedConsole.unit.js
@@ -1,4 +1,12 @@
-import { EXPECTED_MESSAGES, isExpected } from '../jestExpectedConsole';
+import {
+  EXPECTED_MESSAGES,
+  LICENSE_KEY_MESSAGE,
+  assertNoUnexpectedLicenseMessage,
+  isExpected,
+  isLicenseTestFile,
+} from '../jestExpectedConsole';
+import Handsontable from '../../src';
+import { TEST_LICENSE_KEY } from '../helpers/licenseKey';

 /**
  * Pins the Jest-only console allowlist (see `test/jestExpectedConsole.js`).
@@ -40,4 +48,46 @@ describe('Jest expected console allowlist', () => {
     // console output is filtered.
     expect(calls).toEqual(['Something nobody expected', 'Theme "x" is already registered. Registration skipped.']);
   });
+
+  describe('license key messages', () => {
+    it('should recognize the missing, invalid and expired key messages, and nothing else', () => {
+      expect(LICENSE_KEY_MESSAGE.test('The license key for Handsontable is missing. Use your purchased key'))
+        .toBe(true);
+      expect(LICENSE_KEY_MESSAGE.test('The license key for Handsontable is invalid. If you need any help'))
+        .toBe(true);
+      expect(LICENSE_KEY_MESSAGE.test('The license key for Handsontable expired on May 23, 2011, and is not'))
+        .toBe(true);
+
+      expect(LICENSE_KEY_MESSAGE.test('Your Handsontable subscription license expired on')).toBe(false);
+      expect(LICENSE_KEY_MESSAGE.test(' The license key for Handsontable is missing.')).toBe(false);
+    });
+
+    it('should let only the license tests log them', () => {
+      expect(isLicenseTestFile('/repo/handsontable/src/core/__tests__/license.unit.js')).toBe(true);
+      expect(isLicenseTestFile('C:\\repo\\handsontable\\src\\utils\\entitlementLicenseKey\\__tests__\\a.unit.js'))
+        .toBe(true);
+
+      expect(isLicenseTestFile('/repo/handsontable/src/__tests__/core/core.unit.js')).toBe(false);
+      expect(isLicenseTestFile(expect.getState().testPath)).toBe(false);
+    });
+
+    it('should fail a test that builds a grid without a key', () => {
+      const grid = new Handsontable(document.createElement('div'), {});
+
+      // The core prints the legacy message once per test file, so this is the file's first one.
+      expect(() => assertNoUnexpectedLicenseMessage())
+        .toThrow(/built without the test license key and logged "The license key for Handsontable is missing/);
+      expect(() => assertNoUnexpectedLicenseMessage()).not.toThrow();
+
+      grid.destroy();
+    });
+
+    it('should let a grid built with the test key pass', () => {
+      const grid = new Handsontable(document.createElement('div'), { licenseKey: TEST_LICENSE_KEY });
+
+      expect(() => assertNoUnexpectedLicenseMessage()).not.toThrow();
+
+      grid.destroy();
+    });
+  });
 });
diff --git a/handsontable/test/__tests__/testLicenseKey.unit.js b/handsontable/test/__tests__/testLicenseKey.unit.js
new file mode 100644
index 0000000000..b4fb492b2a
--- /dev/null
+++ b/handsontable/test/__tests__/testLicenseKey.unit.js
@@ -0,0 +1,64 @@
+import { TEST_LICENSE_KEY } from '../helpers/licenseKey';
+import { _getLicenseState } from '../../src/helpers/mixed';
+import {
+  extractEntitlementKeyData,
+  getProductEntitlement,
+} from '../../src/utils/entitlementLicenseKey/extractKeyData';
+
+/**
+ * Pins what every test suite assumes about the internal test key: it reads as valid for this build, names
+ * no tier, and carries no flag, so a grid built with it is unlocked, unrestricted and silent. A renewed key
+ * that names a tier or a flag would restrict or decorate every grid of every suite, with nothing but a
+ * console line to show for it; this test fails first.
+ */
+describe('The internal test license key', () => {
+  // Set by `hot.config.js` (dd/mm/yyyy), the date the bundles inline.
+  const releaseDate = process.env.HOT_RELEASE_DATE;
+
+  /**
+   * Reads the key's Handsontable entry.
+   *
+   * @returns {object}
+   */
+  function readEntry() {
+    const data = extractEntitlementKeyData(TEST_LICENSE_KEY);
+
+    expect(data).not.toBeNull();
+
+    return getProductEntitlement(data, 'handsontable');
+  }
+
+  it('should read as an entitlement key with a Handsontable entry', () => {
+    expect(readEntry()).not.toBeNull();
+  });
+
+  it('should name no tier and carry no flag', () => {
+    const entry = readEntry();
+
+    expect(entry.capabilities.filter(token => token.startsWith('tier:'))).toEqual([]);
+    expect(entry.flags).toEqual([]);
+  });
+
+  it('should leave this build unlocked, unrestricted and silent', () => {
+    expect(releaseDate).toMatch(/^\d{2}\/\d{2}\/\d{4}$/);
+
+    const state = _getLicenseState(TEST_LICENSE_KEY, releaseDate);
+
+    expect(state.lifecycle.state).toBe('release_valid');
+    expect(state.lifecycle.isTrial).toBe(false);
+    expect(state.tiers).toBeNull();
+    expect(state.attributionBar).toBe(false);
+    expect(state.channels).toEqual({ console: true, ui: true });
+  });
+
+  it('should cover builds released at least a year after this one', () => {
+    // The key works for builds released on or before its `release_until`. Renew it before that comes
+    // within a year of the build, so every suite does not lock at once on the first build past it.
+    const { release_until: releaseUntil } = readEntry();
+    const [day, month, year] = releaseDate.split('/').map(Number);
+    const oneYearAfterBuild = Date.UTC(year + 1, month - 1, day);
+
+    expect(releaseUntil).toMatch(/^\d{4}-\d{2}-\d{2}$/);
+    expect(Date.parse(`${releaseUntil}T00:00:00Z`)).toBeGreaterThanOrEqual(oneYearAfterBuild);
+  });
+});
diff --git a/handsontable/test/jestExpectedConsole.js b/handsontable/test/jestExpectedConsole.js
index e7ebb594e1..ea217ad1f4 100644
--- a/handsontable/test/jestExpectedConsole.js
+++ b/handsontable/test/jestExpectedConsole.js
@@ -49,8 +49,6 @@ const EXPECTED_MESSAGES = [
   /^The "data" setting is ignored when "hasExternalDataSource" returns `true`\.$/,
   /^The `data` setting is ignored when `sheetsBar\.sheets` declares a workbook/,
   /^The sheet "[^"]+" passes the HyperFormula class with a sheetName\./,
-  // The license specs build keys that are invalid or that lack a token.
-  /^The license key for Handsontable is invalid\./,
   // `docsExamples.unit.js` runs the getting-started demo, which logs
   // `Handsontable: v${version} (${buildDate})` itself.
   /^Handsontable: v\d+\.\d+\.\d+\S* \(/,
@@ -78,14 +76,92 @@ function isExpected(args) {
   return EXPECTED_MESSAGES.some(pattern => pattern.test(message));
 }

+/**
+ * The message a grid logs for a missing, an invalid, or an expired legacy license key. Every test grid
+ * takes the internal test key (`test/helpers/licenseKey.js`), which logs nothing, so a test that logs
+ * one built a grid without it, and that grid sits behind the license lock.
+ */
+const LICENSE_KEY_MESSAGE = /^The license key for Handsontable (?:is missing|is invalid|expired)\b/;
+
+/**
+ * The test files that build such keys on purpose: they test how a key is read, what a key unlocks,
+ * or what an export or an import does without a valid key. A path matches when it contains one of
+ * these fragments.
+ */
+const LICENSE_TEST_FILES = [
+  '/utils/entitlementLicenseKey/',
+  '/utils/licenseCapabilities/',
+  '/utils/__tests__/licenseBranding',
+  '/utils/__tests__/licenseNotification',
+  '/helpers/__tests__/mixed.unit',
+  '/helpers/__tests__/entitlementLicenseInfo',
+  '/core/__tests__/license.unit',
+  '/plugins/base/__tests__/licenseGate',
+  '/utils/xlsxEngine/__tests__/licenseCapabilities',
+  '/utils/xlsxEngine/__tests__/xlsxEntitlement',
+  '/plugins/exportFile/__tests__/exportFile.unit',
+  '/plugins/exportFile/__tests__/xlsxLicenseGates',
+  '/plugins/exportFile/__tests__/xlsxProtectionOption',
+  '/plugins/importFile/__tests__/importFile.unit',
+  '/plugins/importFile/__tests__/importLicenseGates',
+];
+
+/**
+ * Tells whether the running test file may log a license key message.
+ *
+ * @param {string} testPath The absolute path of the running test file.
+ * @returns {boolean}
+ */
+function isLicenseTestFile(testPath) {
+  const path = String(testPath).split('\\').join('/');
+
+  return LICENSE_TEST_FILES.some(fragment => path.includes(fragment));
+}
+
+// The license key messages logged since the last check, by a file that is not a license test.
+const unexpectedLicenseMessages = [];
+
 ['warn', 'error', 'log', 'info'].forEach((level) => {
   const original = console[level];

   console[level] = (...args) => {
+    if (LICENSE_KEY_MESSAGE.test(String(args[0]))) {
+      if (!isLicenseTestFile(expect.getState().testPath)) {
+        unexpectedLicenseMessages.push(String(args[0]));
+      }
+
+      return;
+    }
+
     if (!isExpected(args)) {
       original.apply(console, args);
     }
   };
 });

-module.exports = { EXPECTED_MESSAGES, isExpected };
+/**
+ * Throws when a test that is not a license test logged a license key message since the last call,
+ * and forgets the messages either way.
+ */
+function assertNoUnexpectedLicenseMessage() {
+  if (unexpectedLicenseMessages.length > 0) {
+    const message = unexpectedLicenseMessages.splice(0)[0];
+
+    throw new Error(`A grid in this test was built without the test license key and logged "${message}" `
+      + 'Pass `licenseKey: TEST_LICENSE_KEY` (import it from `test/helpers/licenseKey.js`). A test of the '
+      + 'license behavior itself goes in LICENSE_TEST_FILES in `test/jestExpectedConsole.js`.');
+  }
+}
+
+// The legacy message prints once per test file (the core keeps a module-level flag), so this finds the
+// first grid built without a key in a file, which is enough to fail it.
+afterEach(assertNoUnexpectedLicenseMessage);
+
+module.exports = {
+  EXPECTED_MESSAGES,
+  LICENSE_KEY_MESSAGE,
+  LICENSE_TEST_FILES,
+  assertNoUnexpectedLicenseMessage,
+  isExpected,
+  isLicenseTestFile,
+};
diff --git a/scripts/__tests__/test-license-key.test.mjs b/scripts/__tests__/test-license-key.test.mjs
index d05236b14c..20a223cae9 100644
--- a/scripts/__tests__/test-license-key.test.mjs
+++ b/scripts/__tests__/test-license-key.test.mjs
@@ -262,6 +262,167 @@ test('the retired-key scan catches a code line and passes a comment', () => {
   assert.deepEqual(codeLinesWithRetiredKey(text), [code, upperCase]);
 });

+// A grid constructor: `new Handsontable(`, `new Handsontable.Core(`, `new Core(`, or jQuery's `.handsontable(`.
+const GRID_CONSTRUCTOR = /new\s+(?:Handsontable(?:\.Core|\.default)?|Core)\s*\(|\.handsontable\s*\(/g;
+
+/**
+ * Returns the index of the parenthesis that closes the one at `open`, or the text length.
+ *
+ * @param {string} text The text.
+ * @param {number} open The index of an opening parenthesis.
+ * @returns {number}
+ */
+function closingParen(text, open) {
+  let depth = 0;
+
+  for (let index = open; index < text.length; index++) {
+    if (text[index] === '(') {
+      depth += 1;
+    } else if (text[index] === ')') {
+      depth -= 1;
+
+      if (depth === 0) {
+        return index;
+      }
+    }
+  }
+
+  return text.length;
+}
+
+/**
+ * Whether an index sits inside a quoted string on its line, as a constructor named in a test title does.
+ *
+ * @param {string} text The text.
+ * @param {number} at The index.
+ * @returns {boolean}
+ */
+function isInsideString(text, at) {
+  let quote = null;
+
+  for (let index = text.lastIndexOf('\n', at - 1) + 1; index < at; index++) {
+    const char = text[index];
+
+    if (char === '\\') {
+      index += 1;
+    } else if (quote) {
+      quote = char === quote ? null : quote;
+    } else if (char === '\'' || char === '"' || char === '`') {
+      quote = char;
+    }
+  }
+
+  return quote !== null;
+}
+
+/**
+ * Returns the options argument of a constructor call: the second argument of `new …(element, options)`,
+ * the first of `.handsontable(options)`, or `null` when the call passes none.
+ *
+ * @param {string} args The text between the call's parentheses.
+ * @param {boolean} isJquery Whether the call is jQuery's `.handsontable(`.
+ * @returns {string | null}
+ */
+function optionsArgument(args, isJquery) {
+  if (isJquery) {
+    return args.trim() === '' ? null : args.trim();
+  }
+
+  let depth = 0;
+
+  for (let index = 0; index < args.length; index++) {
+    const char = args[index];
+
+    if ('([{'.includes(char)) {
+      depth += 1;
+    } else if (')]}'.includes(char)) {
+      depth -= 1;
+    } else if (char === ',' && depth === 0) {
+      return args.slice(index + 1).trim() || null;
+    }
+  }
+
+  return null;
+}
+
+/**
+ * Finds the grids a test file builds without a license key, by line. A call passes when its options name
+ * `licenseKey`, when they are a jQuery method call (`.handsontable('getInstance')`), or when they are not a
+ * plain object literal (a variable, a spread, `Object.assign()`) in a file that sets a license key somewhere.
+ *
+ * @param {string} text The file's text.
+ * @returns {number[]} The line numbers of the keyless calls.
+ */
+function keylessGridLines(text) {
+  const fileSetsKey = /licenseKey/.test(text);
+
+  return [...text.matchAll(GRID_CONSTRUCTOR)]
+    .filter(match => !isInsideString(text, match.index))
+    .filter((match) => {
+      const open = match.index + match[0].length - 1;
+      const args = text.slice(open + 1, closingParen(text, open));
+      const options = optionsArgument(args, match[0].startsWith('.'));
+
+      if (/licenseKey/.test(args) || /^\s*['"`]/.test(args)) {
+        return false;
+      }
+
+      if (options === null) {
+        return true;
+      }
+
+      const isPlainLiteral = options.startsWith('{') && !/\.\.\.|Object\.assign/.test(options);
+
+      return isPlainLiteral || !fileSetsKey;
+    })
+    .map(match => text.slice(0, match.index).split('\n').length);
+}
+
+// The files that build grids without a key on purpose, with the reason. Empty today: the license specs
+// build their keyless grids through the Jasmine helper (`handsontable({}, true)`), which this scan does
+// not read, or through a fixture page that takes its key from the spec.
+const KEYLESS_ALLOWED = {};
+
+test('every grid a spec or a fixture builds takes a license key', () => {
+  // Since 19.0 a grid built without a valid key sits behind the license lock: API calls still work, so a
+  // spec that only reads the grid passes, while clicks, focus, screenshots and axe scans meet the lock.
+  // Jest unit tests are left to the console guard in `handsontable/test/jestExpectedConsole.js`, which
+  // fails a unit test whose grid logs a license key message.
+  const scanned = testFiles.filter(path => !/\.unit\.[jt]sx?$|\.types\.ts$|\.test\.mjs$/.test(path));
+  const offenders = scanned.filter(path => !(path in KEYLESS_ALLOWED))
+    .map(path => [path, keylessGridLines(readFromRoot(path))])
+    .filter(([, lines]) => lines.length > 0)
+    .map(([path, lines]) => `${path}:${lines.join(',')}`);
+
+  assert.deepEqual(offenders, [], 'These specs or fixtures build a grid without a license key. Pass '
+    + '`licenseKey: TEST_LICENSE_KEY` (a global in Jasmine specs) or `licenseKey: window.htTestLicenseKey` (a '
+    + 'Playwright fixture). A test of a missing key itself goes in KEYLESS_ALLOWED, with the reason.');
+  assert.ok(scanned.some(path => path.endsWith('.spec.js')), 'The keyless scan found no Jasmine spec.');
+  assert.deepEqual(Object.keys(KEYLESS_ALLOWED).filter(path => keylessGridLines(readFromRoot(path)).length === 0), [],
+    'KEYLESS_ALLOWED names files that no longer build a grid without a key. Remove them.');
+});
+
+test('the keyless scan catches a grid built without a key and passes one built with it', () => {
+  // The control of the test above: without it, a scan that matched nothing would pass.
+  const text = [
+    'const a = new Handsontable(container, { data });',
+    'const b = new Handsontable(container);',
+    'const c = $("<div>").appendTo("body").handsontable();',
+    'const d = $container.handsontable({ data: [] });',
+    'const f = $container.handsontable(\'getInstance\');',
+    'it(\'fires between `new Handsontable.Core()` and `init()`\', () => {});',
+    'const g = new Handsontable(container, { ...base, data });',
+  ].join('\n');
+
+  assert.deepEqual(keylessGridLines(text), [1, 2, 3, 4, 7],
+    'Without a licenseKey anywhere in the file, a spread cannot carry one either.');
+  assert.deepEqual(keylessGridLines([
+    text,
+    'const base = { licenseKey: TEST_LICENSE_KEY };',
+    'const e = new Handsontable(container, { licenseKey: TEST_LICENSE_KEY, data });',
+  ].join('\n')), [1, 2, 3, 4]);
+});
+
 test('the scan finds a literal key it is given, in every spelling', () => {
   // The guard's own control: without it, a scan that read no file would pass the first test.
   const demo = `${VISUAL_DEMOS}/js/demo/src/demos/new/index.js`;
diff --git a/tests/AGENTS.md b/tests/AGENTS.md
index abf8471f23..44a3d99151 100644
--- a/tests/AGENTS.md
+++ b/tests/AGENTS.md
@@ -369,6 +369,15 @@ test('fills its container', { tag: THEMES_TAG }, async({ page, theme, bundle })

 ## Fixture contract (never get these wrong)

+- **Every grid takes the internal test key, and a lock fails the test.** A fixture loads
+  `/tests/fixtures/demo/test-license-key.js` before the grid and passes `licenseKey: window.htTestLicenseKey`,
+  and so does a grid a spec builds in `page.evaluate`. Since 19.0 a grid without a valid key mounts behind
+  the license lock: API reads pass while clicks, focus, screenshots and axe scans meet the lock. The `page`
+  fixture in `fixtures/test.ts` fails a test that passed with a `.ht-license-lock` on its page, in any frame.
+  A page asks for a license state on purpose in one of two ways: it is one of the license pages
+  (`license-branding`, `license-bar`, `license-capabilities`, `xlsx-license`), or it is opened with a
+  `?license=` value other than `test` (`trusted-types.html?license=invalid`). A new page that needs a lock
+  takes the second way.
 - Fixtures are standalone HTML under `fixtures/demo/`, served statically. Every
   fixture MUST copy the fail-loud param block from `demo/grid.html`:
   `?theme=`/`?bundle=` map through fixed allowlists to LITERALS (no XSS); an
@@ -516,6 +525,22 @@ test('fills its container', { tag: THEMES_TAG }, async({ page, theme, bundle })
   `LICENSE` getter so its `tiers` also list the presets that include it. A case
   no tier can express (a plugin without what it requires, which the generator
   refuses) belongs in a unit test, not here; no license spec is skipped.
+- **`e2e/license-built-bundle.spec.ts` is the one plugin spec on the build's real tiers, on purpose.**
+  Every other license spec either redefines the plugins' tiers or runs in jsdom on the
+  sources, so only it can see what the shipped bundle does: the static `LICENSE` of each
+  sold plugin against the manifest (`soldPluginLicenses()`), a key naming each real tier
+  (`manifestTiers()`, `featureTiers()`, never a name written out), a perpetual key against
+  the release date the build inlined (`releaseKeyUntil()`, with the date read from
+  `hot.config.js`, never from the bundle, so a build that inlined no date fails), and the
+  `*.handsontable.com` bypass (`LicenseBuildPage.goto({ host })` serves the fixture under
+  another host through `page.route()`, so the core reads that host from `location.host`).
+  A host with more than one label before `handsontable.com` is left unpinned until the
+  product decides whether it is bypassed. It declares `BUNDLES_TAG`, because minification
+  is what could drop a token or inline the date wrong. Both page objects of
+  `demo/license-capabilities.html` (`LicenseCapabilitiesPage`, `LicenseBuildPage`) extend
+  `fixtures/pages/LicenseFixturePage.ts`, which owns the fixture URL, the waits, the license surfaces,
+  the console capture and the host routing: a change to the fixture's contract goes there once, or one of
+  the two specs keeps passing on a stale wait or locator.

 ## Two clicks on the same cell are a double click

diff --git a/tests/a11y/pages.mjs b/tests/a11y/pages.mjs
index e7460017b8..92a2351d32 100644
--- a/tests/a11y/pages.mjs
+++ b/tests/a11y/pages.mjs
@@ -74,8 +74,8 @@ export const A11Y_PAGES = [
   { id: 'license-missing-features', fixture: 'license-capabilities.html', query: 'plugins=filters',
     licensePreset: 'tier-base', state: 'none',
     surface: 'the license bar naming the features a license key leaves out, and its sales link' },
-  { id: 'license-powered-by', fixture: 'license-branding.html', query: 'key=sponsored-badge', state: 'none',
-    surface: 'the "Powered by Handsontable DataGrid" bar of a key with the badge flag, its link and text contrast' },
+  { id: 'license-powered-by', fixture: 'license-branding.html', query: 'key=sponsored-attribution-bar', state: 'none',
+    surface: 'the "Powered by Handsontable DataGrid" bar of a key with the attribution-bar flag, its link and text contrast' },
   // Menus, opened from the keyboard.
   { id: 'context-menu', fixture: 'context-menu-checked-items.html', state: 'context-menu',
     surface: 'the context menu opened with Shift+F10: items, checkable items, separators' },
diff --git a/tests/e2e/license-branding.spec.ts b/tests/e2e/license-branding.spec.ts
index 7284b262e3..d7774e7ce9 100644
--- a/tests/e2e/license-branding.spec.ts
+++ b/tests/e2e/license-branding.spec.ts
@@ -438,7 +438,7 @@ test.describe('entitlement license key branding', { tag: THEMES_TAG }, () => {
     }
   });

-  // DEV-3413: a trial key and a key with the `badge` flag show a "Powered by Handsontable DataGrid"
+  // DEV-3413: a trial key and a key with the `attribution-bar` flag show a "Powered by Handsontable DataGrid"
   // bar last in the bottom slot. It is branding, not a license warning, so `no-ui-warns` does not hide
   // it, and it is a separate element from the warning bar (`license.bar`).
   test.describe('the "Powered by Handsontable DataGrid" bar', () => {
@@ -456,7 +456,8 @@ test.describe('entitlement license key branding', { tag: THEMES_TAG }, () => {
     });

     for (const key of [
-      'sponsored-badge', 'sponsored-badge-external', 'perpetual-badge', 'perpetual-badge-no-ui-warns',
+      'sponsored-attribution-bar', 'sponsored-attribution-bar-external', 'perpetual-attribution-bar',
+      'perpetual-attribution-bar-no-ui-warns',
     ] as const) {
       test(`shows for a "${key}" key, with no corner badge and no warning bar`, async () => {
         await license.goto(INSTANT.duringTrial, { key });
@@ -469,14 +470,14 @@ test.describe('entitlement license key branding', { tag: THEMES_TAG }, () => {
     }

     test('shows for a trial issued for external use, whose `no-ui-warns` still hides the corner badge', async () => {
-      // O-6: DEV-3413 keeps the bar on under `no-ui-warns`, for a trial as for a `badge` key.
+      // O-6: DEV-3413 keeps the bar on under `no-ui-warns`, for a trial as for an `attribution-bar` key.
       await license.goto(INSTANT.duringTrial, { key: 'trial-external' });

       await expect(license.poweredByLink).toBeVisible();
       await expect(license.badge).toHaveCount(0);
     });

-    for (const key of ['sponsored-no-badge', 'subscription', 'legacy-expired'] as const) {
+    for (const key of ['sponsored-no-attribution-bar', 'sponsored-retired-badge-flag', 'subscription', 'legacy-expired'] as const) {
       test(`does not show for a "${key}" key`, async () => {
         await license.goto(INSTANT.duringTrial, { key });

@@ -488,7 +489,7 @@ test.describe('entitlement license key branding', { tag: THEMES_TAG }, () => {
     }

     for (const [key, instant] of [
-      ['sponsored-badge', INSTANT.duringTrial],
+      ['sponsored-attribution-bar', INSTANT.duringTrial],
       ['trial', INSTANT.trialSoftStop],
     ] as const) {
       test(`keeps the grid at its declared height of 200px, the bars inside it (a "${key}" key)`, async () => {
@@ -519,7 +520,7 @@ test.describe('entitlement license key branding', { tag: THEMES_TAG }, () => {
     });

     test('follows the Figma frame on main and horizon, and the compact bar density on classic', async ({ theme }) => {
-      await license.goto(INSTANT.duringTrial, { key: 'sponsored-badge' });
+      await license.goto(INSTANT.duringTrial, { key: 'sponsored-attribution-bar' });

       const geometry = await license.poweredByGeometry();

@@ -568,7 +569,7 @@ test.describe('entitlement license key branding', { tag: THEMES_TAG }, () => {
     });

     test('changes nothing on hover: Figma draws no hover state for the bar', async () => {
-      await license.goto(INSTANT.duringTrial, { key: 'sponsored-badge' });
+      await license.goto(INSTANT.duringTrial, { key: 'sponsored-attribution-bar' });

       const readText = () => license.poweredByLink.evaluate((link) => {
         const style = getComputedStyle(link.querySelector('.ht-license-powered-by__text') as HTMLElement);
@@ -585,7 +586,7 @@ test.describe('entitlement license key branding', { tag: THEMES_TAG }, () => {
     });

     test('paints the logomark: a dark "H" with the brand-blue dot at its foot', async () => {
-      await license.goto(INSTANT.duringTrial, { key: 'sponsored-badge' });
+      await license.goto(INSTANT.duringTrial, { key: 'sponsored-attribution-bar' });

       const { blue, ink } = await license.poweredByLogoPaint();

@@ -598,7 +599,7 @@ test.describe('entitlement license key branding', { tag: THEMES_TAG }, () => {

     for (const part of ['logo', 'text'] as const) {
       test(`opens handsontable.com in a new tab when its ${part} is clicked`, async ({ page }) => {
-        await license.goto(INSTANT.duringTrial, { key: 'sponsored-badge' });
+        await license.goto(INSTANT.duringTrial, { key: 'sponsored-attribution-bar' });

         const opened = await license.clickPoweredBy(part);

@@ -609,7 +610,7 @@ test.describe('entitlement license key branding', { tag: THEMES_TAG }, () => {
     }

     test('is reached with Tab from the grid\'s last cell, and Shift+Tab goes back into the grid', async ({ page }) => {
-      await license.goto(INSTANT.duringTrial, { key: 'sponsored-badge' });
+      await license.goto(INSTANT.duringTrial, { key: 'sponsored-attribution-bar' });

       await license.selectCell(3, 2);
       await page.keyboard.press('Tab');
diff --git a/tests/e2e/license-built-bundle.spec.ts b/tests/e2e/license-built-bundle.spec.ts
new file mode 100644
index 0000000000..4d06d57909
--- /dev/null
+++ b/tests/e2e/license-built-bundle.spec.ts
@@ -0,0 +1,178 @@
+import { readFileSync } from 'node:fs';
+import { fileURLToPath } from 'node:url';
+import { test, expect, BUNDLES_TAG } from '../fixtures/test';
+import { LicenseBuildPage } from '../fixtures/pages/LicenseBuildPage';
+import { keyWithTier } from '../fixtures/xlsxLicenseKeys';
+import { featureTiers, manifestTiers, releaseKeyUntil, soldPluginLicenses } from '../fixtures/licenseTiers';
+
+// What only the built bundle can answer: the tokens its plugin classes carry after minification, the
+// real tiers of the shipped manifest, the release date the build inlined, and the host name the core
+// reads. The unit suites read the TypeScript sources, made-up tiers and a date passed as an argument,
+// and `license-capabilities.spec.ts` redefines every plugin's tiers, so a build that dropped a token,
+// shipped a tier list the keys do not name, or inlined no date passes all of them.
+
+const DAY_MS = 24 * 60 * 60 * 1000;
+
+/**
+ * The release date the build inlines (`HOT_RELEASE_DATE`, dd/mm/yyyy), read from the config the build
+ * reads it from, never from the bundle: a bundle that inlined no date must fail here, not agree with itself.
+ *
+ * @returns {Date} Midnight UTC of that day.
+ */
+function buildReleaseDate(): Date {
+  const config = readFileSync(fileURLToPath(new URL('../../hot.config.js', import.meta.url)), 'utf8');
+  const match = config.match(/HOT_RELEASE_DATE:\s*'(\d{2})\/(\d{2})\/(\d{4})'/);
+
+  if (!match) {
+    throw new Error('hot.config.js holds no HOT_RELEASE_DATE in dd/mm/yyyy.');
+  }
+
+  const [, day, month, year] = match;
+
+  return new Date(Date.UTC(Number(year), Number(month) - 1, Number(day)));
+}
+
+/**
+ * Formats a date as the ISO day a key's `release_until` holds.
+ *
+ * @param {Date} date The date.
+ * @returns {string}
+ */
+function isoDay(date: Date): string {
+  return date.toISOString().slice(0, 10);
+}
+
+/**
+ * Sorts a license's tiers, so two lists compare as sets.
+ *
+ * @param {object} license A license token.
+ * @param {string[]} license.tiers Its tiers.
+ * @returns {object}
+ */
+function withSortedTiers<T extends { tiers: string[] }>(license: T): T {
+  return { ...license, tiers: [...license.tiers].sort() };
+}
+
+/**
+ * A tier name no build knows, built from the real ones so it can never collide with one.
+ *
+ * @returns {string}
+ */
+function unknownTier(): string {
+  return `${manifestTiers().join('-')}-unknown`;
+}
+
+test.describe('License checks on the built bundle', { tag: BUNDLES_TAG }, () => {
+  let grid: LicenseBuildPage;
+
+  test.beforeEach(({ page, theme, bundle, baseURL }) => {
+    grid = new LicenseBuildPage(page, baseURL as string, theme, bundle);
+  });
+
+  test('every sold plugin in the bundle carries the license token the manifest lists', async() => {
+    await grid.goto({ licenseKey: keyWithTier(manifestTiers()) });
+
+    const bundled = (await grid.pluginLicenses()).map(withSortedTiers);
+    const expected = soldPluginLicenses().map(withSortedTiers);
+
+    // A minifier that dropped or renamed a static LICENSE would leave that plugin out of the gate entirely.
+    expect(expected.length).toBeGreaterThan(0);
+    expect(bundled.map(({ capability }) => capability).sort())
+      .toEqual(expected.map(({ capability }) => capability).sort());
+
+    expected.forEach((license) => {
+      expect(bundled.find(({ capability }) => capability === license.capability), license.capability)
+        .toEqual(license);
+    });
+  });
+
+  test('a key that names a real tier turns on the plugins the manifest puts in that tier', async() => {
+    const tiers = manifestTiers();
+
+    expect(tiers.length).toBeGreaterThan(0);
+
+    for (const [index, tier] of tiers.entries()) {
+      await grid.goto({ licenseKey: keyWithTier([tier]) });
+
+      const filtersIncluded = featureTiers('feat:filters').includes(tier);
+      const columnMenuIncluded = featureTiers('feat:dropdown_menu').includes(tier);
+      const label = `the manifest's tier at index ${index}`;
+
+      expect(await grid.isPluginEnabled('filters'), `Filters under ${label}`).toBe(filtersIncluded);
+      expect(await grid.isPluginEnabled('dropdownMenu'), `DropdownMenu under ${label}`).toBe(columnMenuIncluded);
+      await expect(grid.lock, label).toHaveCount(0);
+
+      if (filtersIncluded && columnMenuIncluded) {
+        expect(grid.licenseMessages(), label).toEqual([]);
+        await expect(grid.bar, label).toHaveCount(0);
+      } else {
+        await expect.poll(() => grid.licenseMessages().join('\n'), label).toMatch(/does not include these features/);
+      }
+    }
+  });
+
+  test('a key that names only a tier this build does not know turns the sold plugins off', async() => {
+    await grid.goto({ licenseKey: keyWithTier([unknownTier()]) });
+
+    expect(await grid.isPluginEnabled('filters')).toBe(false);
+    expect(await grid.isPluginEnabled('dropdownMenu')).toBe(false);
+    await expect(grid.bar).toBeVisible();
+    await expect(grid.lock).toHaveCount(0);
+    await expect.poll(() => grid.licenseMessages().join('\n')).toMatch(/does not include these features/);
+  });
+
+  test('a perpetual key reads as expired only for a build released after it', async() => {
+    const releaseDate = buildReleaseDate();
+
+    // Covers this build: nothing to say.
+    await grid.goto({ licenseKey: releaseKeyUntil(isoDay(releaseDate)), plugins: 'filters' });
+
+    await expect(grid.bar).toHaveCount(0);
+    await expect(grid.lock).toHaveCount(0);
+    expect(grid.licenseMessages()).toEqual([]);
+
+    // Ends the day before this build was released: only the date the build inlined can tell.
+    await grid.goto({
+      licenseKey: releaseKeyUntil(isoDay(new Date(releaseDate.getTime() - DAY_MS))),
+      plugins: 'filters',
+    });
+
+    await expect(grid.bar).toBeVisible();
+    await expect(grid.bar).toContainText('expired');
+    await expect(grid.lock).toHaveCount(0);
+    await expect.poll(() => grid.licenseMessages().join('\n')).toMatch(/license key for Handsontable expired/);
+    // A key past its maintenance date keeps every feature the version it covers had.
+    expect(await grid.isPluginEnabled('filters')).toBe(true);
+  });
+
+  test('a grid on a handsontable.com host needs no key', async() => {
+    for (const host of ['handsontable.com', 'www.handsontable.com', 'demos.handsontable.com']) {
+      await grid.goto({ host });
+
+      expect(await grid.host()).toBe(host);
+      await expect(grid.lock, host).toHaveCount(0);
+      await expect(grid.bar, host).toHaveCount(0);
+      expect(grid.licenseMessages(), host).toEqual([]);
+      expect(await grid.isPluginEnabled('filters'), host).toBe(true);
+    }
+  });
+
+  test('a host that only looks like handsontable.com gets the lock', async() => {
+    for (const host of ['evilhandsontable.com', 'handsontable.com.evil.test']) {
+      await grid.goto({ host });
+
+      expect(await grid.host()).toBe(host);
+      await expect(grid.lock, host).toHaveCount(1);
+      await expect.poll(() => grid.licenseMessages().join('\n'), host).toMatch(/license key for Handsontable is missing/);
+    }
+  });
+
+  test('on a handsontable.com host a key that names an unknown tier restricts nothing', async() => {
+    await grid.goto({ host: 'demos.handsontable.com', licenseKey: keyWithTier([unknownTier()]) });
+
+    expect(await grid.isPluginEnabled('filters')).toBe(true);
+    expect(await grid.isPluginEnabled('dropdownMenu')).toBe(true);
+    await expect(grid.bar).toHaveCount(0);
+    expect(grid.licenseMessages()).toEqual([]);
+  });
+});
diff --git a/tests/fixtures/demo/license-branding.html b/tests/fixtures/demo/license-branding.html
index 3e4e69953f..eb59236652 100644
--- a/tests/fixtures/demo/license-branding.html
+++ b/tests/fixtures/demo/license-branding.html
@@ -69,15 +69,18 @@
       'trial-external': 'This is a Handsontable license key for Test Fixture, issued on 2026-08-12 for the "Fixture Project" project. It includes 1 license: > 1. Trial license under Handsontable Evaluation License Agreement 4.0 of 2026-03-02, for Handsontable on the Enterprise package, for internal use, valid until 2026-09-26 (UTC). Not licensed for production use. To purchase a license, contact sales@handsontable.com. [eyJwcm9kdWN0cyI6eyJoYW5kc29udGFibGUiOnsiY2FwYWJpbGl0aWVzIjpbImNvcmUiXSwidXNhZ2VfdW50aWwiOiIyMDI2LTA5LTI2Iiwibm90aWNlIjo0NSwiZ3JhY2UiOjE1LCJmbGFncyI6WyJ0cmlhbCIsIm5vLXVpLXdhcm5zIl19fSwidiI6MiwicHJvc2UiOiIzODczNjE5MTljNzVhNDQ1MDg0ZmY2YzUyZjAyYzRkMmM2YzIxNWFjNzZiMWQwZGJhNmIwOTM4MWYwOTA2ODVhIn0c1dccd7855f9004db2a062d37bdec85f616193de27387b34733659025c4b89e39d18db26e78546db6a8406bc791ae32ecdca985330896764429cc1cf4b1b80b5]',
       subscription: 'This is a Handsontable license key for Test Fixture, issued on 2026-08-12 for the "Fixture Project" project. It includes 1 license: > 1. Subscription license under Handsontable Subscription License Agreement 2.0 of 2022-05-21, for Handsontable on the Enterprise package, for internal use, valid until 2027-08-12 (UTC). Use after that date is not permitted. To renew, contact sales@handsontable.com. [eyJwcm9kdWN0cyI6eyJoYW5kc29udGFibGUiOnsiY2FwYWJpbGl0aWVzIjpbImNvcmUiXSwidXNhZ2VfdW50aWwiOiIyMDI3LTA4LTEyIiwibm90aWNlIjo2MCwiZ3JhY2UiOjkwLCJmbGFncyI6W119fSwidiI6MiwicHJvc2UiOiIwNjIzNWUxYjY5ZmQ1YjNmNjg2NjdhNTcxNmU5YWY5YWU5YTkxYjNkNzc5ZTBlY2FkODIyMjQ2NDU1YjUxZTA0In0e9c5c2a5838f3daf149124a7ad1a4e30710d8367b4814bb1a0092032677fa10fb605cb4325db23ae9078a30024d5df992c12074ab7a31321ef237d22573316fc]',
       // DEV-3413: the sponsored keys of `src/utils/entitlementLicenseKey/__tests__/fixtures.js`
-      // (license-key 12b800468a), usage_until 2027-11-04, notice 60, grace 90. With the `badge` flag,
-      // with `badge` plus both silencing flags (external use), and without `badge`.
-      'sponsored-badge': 'This is a Handsontable license key for Test Fixture, issued on 2026-11-04 for the "Fixture Project" project. It includes 1 license: > 1. Sponsored license under Handsontable Subscription License Agreement 2.0 of 2022-05-21, for Handsontable, for internal use, valid until 2027-11-04 (UTC). Issued free of charge for non-commercial use. Use after that date is not permitted. To renew, contact sales@handsontable.com. The grid must display the "Powered by Handsontable DataGrid" bar. [eyJwcm9kdWN0cyI6eyJoYW5kc29udGFibGUiOnsiY2FwYWJpbGl0aWVzIjpbImNvcmUiXSwidXNhZ2VfdW50aWwiOiIyMDI3LTExLTA0Iiwibm90aWNlIjo2MCwiZ3JhY2UiOjkwLCJmbGFncyI6WyJiYWRnZSJdfX0sInYiOjIsInByb3NlIjoiODJjNTVkZWU2MDE5OWVhN2MyMTk5ZjJjNjM2NjhlOWRjZTVhZDZiMzQ2NDEwZTc4ZmZjMzdjZTQ1YTkzNzEwYiJ95716456604582d8de0c19837584475d5035693918c6fc8ec0d46be733eb5aaf73bb6aa51201b5deb5418a15d01383bead2fa14f9eb10895679efc6c0952a8cc2]',
-      'sponsored-badge-external': 'This is a Handsontable license key for Test Fixture, issued on 2026-11-04 for the "Fixture Project" project. It includes 1 license: > 1. Sponsored license under Handsontable Subscription License Agreement 2.0 of 2022-05-21, for Handsontable, for external use, valid until 2027-11-04 (UTC). Issued free of charge for non-commercial use. Use after that date is not permitted. To renew, contact sales@handsontable.com. The grid must display the "Powered by Handsontable DataGrid" bar. [eyJwcm9kdWN0cyI6eyJoYW5kc29udGFibGUiOnsiY2FwYWJpbGl0aWVzIjpbImNvcmUiXSwidXNhZ2VfdW50aWwiOiIyMDI3LTExLTA0Iiwibm90aWNlIjo2MCwiZ3JhY2UiOjkwLCJmbGFncyI6WyJuby1jb25zb2xlLXdhcm5zIiwibm8tdWktd2FybnMiLCJiYWRnZSJdfX0sInYiOjIsInByb3NlIjoiNWIxNzA1ZDU1OTM3ODNjYjE4NmFiMjEyZGVhMTEyN2Y4Yzc0YmFjM2Y0YzdkNWY2NDQwZTBiOTllZWUxYTA5MiJ901bca5a4753a01a3969a575bf75b2e85576a3754ee040791ad03803a881ed6940bf172c09c0b216ac7ee2d0802c96cf42b3075047da75d1ff08a2261538147ee]',
-      'sponsored-no-badge': 'This is a Handsontable license key for Test Fixture, issued on 2026-11-04 for the "Fixture Project" project. It includes 1 license: > 1. Sponsored license under Handsontable Subscription License Agreement 2.0 of 2022-05-21, for Handsontable, for internal use, valid until 2027-11-04 (UTC). Issued free of charge for non-commercial use. Use after that date is not permitted. To renew, contact sales@handsontable.com. [eyJwcm9kdWN0cyI6eyJoYW5kc29udGFibGUiOnsiY2FwYWJpbGl0aWVzIjpbImNvcmUiXSwidXNhZ2VfdW50aWwiOiIyMDI3LTExLTA0Iiwibm90aWNlIjo2MCwiZ3JhY2UiOjkwLCJmbGFncyI6W119fSwidiI6MiwicHJvc2UiOiIzOTc0ODA3OWY1ZWRhOTUwN2JlMWE4NzgzMTg0Y2I4ZmVlOWU5N2NjYjM3NDVmZWU1NGM1MzkwZjJhZWU1ODAyIn083b8a845e760b50f12cae3de85d5c119e6375730a5a54682eb64d6a3371db34320c545a929c11d7f3c423806472083b4ec4282a97b9f8e251220f70519f626bd]',
-      // DEV-4142: the perpetual `badge` keys of the same fixtures file (license-key 6.4.0),
-      // release_until 2099-12-31, notice 60, grace 90: with `badge`, and with `badge` plus `no-ui-warns`.
-      'perpetual-badge': 'This is a Handsontable license key for Test Fixture, issued on 2026-11-04 for the "Fixture Project" project. It includes 1 license: > 1. Perpetual license under Handsontable Perpetual License Agreement 6.0 of 2022-09-01, for Handsontable, for internal use, with maintenance until 2099-12-31 (UTC). Updates released after that date are not covered. To renew maintenance, contact sales@handsontable.com. The grid must display the "Powered by Handsontable DataGrid" bar. [eyJwcm9kdWN0cyI6eyJoYW5kc29udGFibGUiOnsiY2FwYWJpbGl0aWVzIjpbImNvcmUiXSwicmVsZWFzZV91bnRpbCI6IjIwOTktMTItMzEiLCJub3RpY2UiOjYwLCJncmFjZSI6OTAsImZsYWdzIjpbImJhZGdlIl19fSwidiI6MiwicHJvc2UiOiJlM2IyNDhmYjFhZmY1NjQ4ZTYxNjdkMGI1MWYzMzY1NTVhZjA4OWM4NTM3MmNlZTg0YTE5OGM0MTU4MjYxYTMxIn0bb6541f7f65931f3d5065abe9247912624278f21ee735d429de7776f641a44f96064185e4a1a754ff7aa85894e34c31f34f58858f5129b9f9fbe714a32ec3ee8]',
-      'perpetual-badge-no-ui-warns': 'This is a Handsontable license key for Test Fixture, issued on 2026-11-04 for the "Fixture Project" project. It includes 1 license: > 1. Perpetual license under Handsontable Perpetual License Agreement 6.0 of 2022-09-01, for Handsontable, for internal use, with maintenance until 2099-12-31 (UTC). Updates released after that date are not covered. To renew maintenance, contact sales@handsontable.com. The grid must display the "Powered by Handsontable DataGrid" bar. [eyJwcm9kdWN0cyI6eyJoYW5kc29udGFibGUiOnsiY2FwYWJpbGl0aWVzIjpbImNvcmUiXSwicmVsZWFzZV91bnRpbCI6IjIwOTktMTItMzEiLCJub3RpY2UiOjYwLCJncmFjZSI6OTAsImZsYWdzIjpbImJhZGdlIiwibm8tdWktd2FybnMiXX19LCJ2IjoyLCJwcm9zZSI6ImUzYjI0OGZiMWFmZjU2NDhlNjE2N2QwYjUxZjMzNjU1NWFmMDg5Yzg1MzcyY2VlODRhMTk4YzQxNTgyNjFhMzEifQcaec24d6c7aaf82da0335b91e5e24dc269b1439f5d7aa3b4ca26cb5e1e248f0f11c8f725607bb4e03ed1168335ffa65dc1228df79de44d1b7c3241dae992a63a]',
+      // (license-key PR #18, 7.0.0), usage_until 2027-11-04, notice 60, grace 90. With the `attribution-bar`
+      // flag, with `attribution-bar` plus both silencing flags (external use), and without it.
+      'sponsored-attribution-bar': 'This is a Handsontable license key for Test Fixture, issued on 2026-11-04 for the "Fixture Project" project. It includes 1 license: > 1. Sponsored license under Handsontable Subscription License Agreement 2.0 of 2022-05-21, for Handsontable, for internal use, valid until 2027-11-04 (UTC). Issued free of charge for non-commercial use. Use after that date is not permitted. To renew, contact sales@handsontable.com. The grid must display the "Powered by Handsontable DataGrid" bar. [eyJwcm9kdWN0cyI6eyJoYW5kc29udGFibGUiOnsiY2FwYWJpbGl0aWVzIjpbImNvcmUiXSwidXNhZ2VfdW50aWwiOiIyMDI3LTExLTA0Iiwibm90aWNlIjo2MCwiZ3JhY2UiOjkwLCJmbGFncyI6WyJhdHRyaWJ1dGlvbi1iYXIiXX19LCJ2IjoyLCJwcm9zZSI6IjgyYzU1ZGVlNjAxOTllYTdjMjE5OWYyYzYzNjY4ZTlkY2U1YWQ2YjM0NjQxMGU3OGZmYzM3Y2U0NWE5MzcxMGIifQ99d10a32bd349c604ad7c60c5ff83462865f830c72d14aa3fc5b68d93be1a16979feb380af60994954d244ac06fb59d29d8247d430116f710bcdd867bfcf2429]',
+      'sponsored-attribution-bar-external': 'This is a Handsontable license key for Test Fixture, issued on 2026-11-04 for the "Fixture Project" project. It includes 1 license: > 1. Sponsored license under Handsontable Subscription License Agreement 2.0 of 2022-05-21, for Handsontable, for external use, valid until 2027-11-04 (UTC). Issued free of charge for non-commercial use. Use after that date is not permitted. To renew, contact sales@handsontable.com. The grid must display the "Powered by Handsontable DataGrid" bar. [eyJwcm9kdWN0cyI6eyJoYW5kc29udGFibGUiOnsiY2FwYWJpbGl0aWVzIjpbImNvcmUiXSwidXNhZ2VfdW50aWwiOiIyMDI3LTExLTA0Iiwibm90aWNlIjo2MCwiZ3JhY2UiOjkwLCJmbGFncyI6WyJuby1jb25zb2xlLXdhcm5zIiwibm8tdWktd2FybnMiLCJhdHRyaWJ1dGlvbi1iYXIiXX19LCJ2IjoyLCJwcm9zZSI6IjViMTcwNWQ1NTkzNzgzY2IxODZhYjIxMmRlYTExMjdmOGM3NGJhYzNmNGM3ZDVmNjQ0MGUwYjk5ZWVlMWEwOTIifQ52c193b971aac9426d5d4765067167957ccf67bc4d86400bac92924f70b9076afa584706098eac4a42e6ec47e51526bb0489ea9ec2690532ba7c8c6f94a112b8]',
+      'sponsored-no-attribution-bar': 'This is a Handsontable license key for Test Fixture, issued on 2026-11-04 for the "Fixture Project" project. It includes 1 license: > 1. Sponsored license under Handsontable Subscription License Agreement 2.0 of 2022-05-21, for Handsontable, for internal use, valid until 2027-11-04 (UTC). Issued free of charge for non-commercial use. Use after that date is not permitted. To renew, contact sales@handsontable.com. [eyJwcm9kdWN0cyI6eyJoYW5kc29udGFibGUiOnsiY2FwYWJpbGl0aWVzIjpbImNvcmUiXSwidXNhZ2VfdW50aWwiOiIyMDI3LTExLTA0Iiwibm90aWNlIjo2MCwiZ3JhY2UiOjkwLCJmbGFncyI6W119fSwidiI6MiwicHJvc2UiOiIzOTc0ODA3OWY1ZWRhOTUwN2JlMWE4NzgzMTg0Y2I4ZmVlOWU5N2NjYjM3NDVmZWU1NGM1MzkwZjJhZWU1ODAyIn083b8a845e760b50f12cae3de85d5c119e6375730a5a54682eb64d6a3371db34320c545a929c11d7f3c423806472083b4ec4282a97b9f8e251220f70519f626bd]',
+      // DEV-4142: the perpetual `attribution-bar` keys of the same fixtures file (license-key 7.0.0),
+      // release_until 2099-12-31, notice 60, grace 90: with `attribution-bar`, and with it plus `no-ui-warns`.
+      'perpetual-attribution-bar': 'This is a Handsontable license key for Test Fixture, issued on 2026-11-04 for the "Fixture Project" project. It includes 1 license: > 1. Perpetual license under Handsontable Perpetual License Agreement 6.0 of 2022-09-01, for Handsontable, for internal use, with maintenance until 2099-12-31 (UTC). Updates released after that date are not covered. To renew maintenance, contact sales@handsontable.com. The grid must display the "Powered by Handsontable DataGrid" bar. [eyJwcm9kdWN0cyI6eyJoYW5kc29udGFibGUiOnsiY2FwYWJpbGl0aWVzIjpbImNvcmUiXSwicmVsZWFzZV91bnRpbCI6IjIwOTktMTItMzEiLCJub3RpY2UiOjYwLCJncmFjZSI6OTAsImZsYWdzIjpbImF0dHJpYnV0aW9uLWJhciJdfX0sInYiOjIsInByb3NlIjoiZTNiMjQ4ZmIxYWZmNTY0OGU2MTY3ZDBiNTFmMzM2NTU1YWYwODljODUzNzJjZWU4NGExOThjNDE1ODI2MWEzMSJ9eb0e726fec7f8c2828ab226c3281bf208ab508efabb95ab6d909c063a36f9acb9cf241644534c70fbd5e77bf207c9d8b15a0f507207d0293719864d21e1ee77f]',
+      'perpetual-attribution-bar-no-ui-warns': 'This is a Handsontable license key for Test Fixture, issued on 2026-11-04 for the "Fixture Project" project. It includes 1 license: > 1. Perpetual license under Handsontable Perpetual License Agreement 6.0 of 2022-09-01, for Handsontable, for internal use, with maintenance until 2099-12-31 (UTC). Updates released after that date are not covered. To renew maintenance, contact sales@handsontable.com. The grid must display the "Powered by Handsontable DataGrid" bar. [eyJwcm9kdWN0cyI6eyJoYW5kc29udGFibGUiOnsiY2FwYWJpbGl0aWVzIjpbImNvcmUiXSwicmVsZWFzZV91bnRpbCI6IjIwOTktMTItMzEiLCJub3RpY2UiOjYwLCJncmFjZSI6OTAsImZsYWdzIjpbImF0dHJpYnV0aW9uLWJhciIsIm5vLXVpLXdhcm5zIl19fSwidiI6MiwicHJvc2UiOiJlM2IyNDhmYjFhZmY1NjQ4ZTYxNjdkMGI1MWYzMzY1NTVhZjA4OWM4NTM3MmNlZTg0YTE5OGM0MTU4MjYxYTMxIn0fb23bea9a0838511466fdb4d32909722a8dfab5c2994f8c0f4b5e2f38e1143c8986e7a366a19f34586b218b7c74527a5ec700c966e6ebbcdebc028660ab43b14]',
+      // DEV-4153: the sponsored key with the flag as it was called before license-key 7.0.0 (`badge`).
+      // The flag is unknown now, so the key shows no bar.
+      'sponsored-retired-badge-flag': 'This is a Handsontable license key for Test Fixture, issued on 2026-11-04 for the "Fixture Project" project. It includes 1 license: > 1. Sponsored license under Handsontable Subscription License Agreement 2.0 of 2022-05-21, for Handsontable, for internal use, valid until 2027-11-04 (UTC). Issued free of charge for non-commercial use. Use after that date is not permitted. To renew, contact sales@handsontable.com. The grid must display the "Powered by Handsontable DataGrid" bar. [eyJwcm9kdWN0cyI6eyJoYW5kc29udGFibGUiOnsiY2FwYWJpbGl0aWVzIjpbImNvcmUiXSwidXNhZ2VfdW50aWwiOiIyMDI3LTExLTA0Iiwibm90aWNlIjo2MCwiZ3JhY2UiOjkwLCJmbGFncyI6WyJiYWRnZSJdfX0sInYiOjIsInByb3NlIjoiODJjNTVkZWU2MDE5OWVhN2MyMTk5ZjJjNjM2NjhlOWRjZTVhZDZiMzQ2NDEwZTc4ZmZjMzdjZTQ1YTkzNzEwYiJ95716456604582d8de0c19837584475d5035693918c6fc8ec0d46be733eb5aaf73bb6aa51201b5deb5418a15d01383bead2fa14f9eb10895679efc6c0952a8cc2]',
       // The trial key as license-key 4.x issued it, in the earlier format - the shape of the
       // trial keys already in the field. It must read exactly like `trial`.
       'trial-v1': 'This is a Handsontable license key for Test Fixture, issued on 2026-08-12 for the "Fixture Project" project. It includes 1 license: > 1. Trial license under Handsontable Evaluation License Agreement 4.0 of 2026-03-02, for Handsontable on the Enterprise package, for internal use, valid until 2026-09-26 (UTC). Not licensed for production use. To purchase a license, contact sales@handsontable.com. [eyJwcm9kdWN0cyI6eyJoYW5kc29udGFibGUiOnsiY2FwYWJpbGl0aWVzIjpbImNvcmUiXSwidXNhZ2VfdW50aWwiOiIyMDI2LTA5LTI2Iiwibm90aWNlIjo0NSwiZ3JhY2UiOjE1LCJmbGFncyI6WyJ0cmlhbCJdfX19a687a9f4d0d496c1ec86d97d58e971b458995f1a68ca117a6b406fa2f179923dcd42a789e3c56426690cf12c89e70abfbb6f45b96ba55fe49386d9e1b0080f2c]',
diff --git a/tests/fixtures/licenseTiers.ts b/tests/fixtures/licenseTiers.ts
index 718021fe56..d441766a5b 100644
--- a/tests/fixtures/licenseTiers.ts
+++ b/tests/fixtures/licenseTiers.ts
@@ -1,6 +1,7 @@
 import { readFileSync } from 'node:fs';
 import { fileURLToPath } from 'node:url';
 import { keyWithTier } from './xlsxLicenseKeys';
+import { buildTestKey } from '../../handsontable/src/utils/entitlementLicenseKey/__tests__/buildTestKey';

 /**
  * The license tiers of the build under test, read from `handsontable/dist/manifest.json` when a test
@@ -9,6 +10,20 @@ import { keyWithTier } from './xlsxLicenseKeys';
  */
 interface ManifestCapability {
   id: string;
+  kind: string;
+  name: string;
+  licensing: string;
+  gate: string | null;
+  tiers: string[];
+}
+
+/**
+ * A sold plugin's license token as the manifest lists it, in the shape of the plugin's static `LICENSE`.
+ */
+export interface PluginLicenseEntry {
+  capability: string;
+  name: string;
+  gate: string;
   tiers: string[];
 }

@@ -64,6 +79,49 @@ export function manifestTiers(): string[] {
   return [...readManifest().tiers];
 }

+/**
+ * The tiers the manifest lists for a feature.
+ *
+ * @param {string} id The feature id, for example `'feat:filters'`.
+ * @returns {string[]}
+ */
+export function featureTiers(id: string): string[] {
+  return [...tiersOf(id)];
+}
+
+/**
+ * Every plugin the manifest sells (`kind: 'plugin'`, `licensing: 'token'`), with the token, the display
+ * name, the gate and the tiers its static `LICENSE` must carry in the built bundle.
+ *
+ * @returns {PluginLicenseEntry[]}
+ */
+export function soldPluginLicenses(): PluginLicenseEntry[] {
+  return readManifest().capabilities
+    .filter(entry => entry.kind === 'plugin' && entry.licensing === 'token')
+    .map(entry => ({ capability: entry.id, name: entry.name, gate: entry.gate as string, tiers: [...entry.tiers] }));
+}
+
+/**
+ * A perpetual key that names no tier and covers the builds released on or before `releaseUntil`. Whether
+ * a build is past it is decided by the release date the build inlined, never by the clock.
+ *
+ * @param {string} releaseUntil The last covered release day, `YYYY-MM-DD`.
+ * @returns {string}
+ */
+export function releaseKeyUntil(releaseUntil: string): string {
+  return buildTestKey({
+    products: {
+      handsontable: {
+        capabilities: ['core'],
+        release_until: releaseUntil,
+        notice: 60,
+        grace: 90,
+        flags: [],
+      },
+    },
+  });
+}
+
 /**
  * The first tier of the manifest that does not list a feature.
  *
diff --git a/tests/fixtures/pages/LicenseBrandingPage.ts b/tests/fixtures/pages/LicenseBrandingPage.ts
index 27553a2f07..36028a6fbb 100644
--- a/tests/fixtures/pages/LicenseBrandingPage.ts
+++ b/tests/fixtures/pages/LicenseBrandingPage.ts
@@ -17,8 +17,8 @@ export const INSTANT = {
 type LicenseKeyName = 'trial' | 'trial-external' | 'subscription' |
   'tampered' | 'legacy-expired' | 'legacy-expired-padded' | 'non-commercial' | 'missing' |
   'edited-prose' | 'subscription-pasted' | 'subscription-wrapped' | 'subscription-padded' | 'trial-v1' |
-  'sponsored-badge' | 'sponsored-badge-external' | 'sponsored-no-badge' |
-  'perpetual-badge' | 'perpetual-badge-no-ui-warns';
+  'sponsored-attribution-bar' | 'sponsored-attribution-bar-external' | 'sponsored-no-attribution-bar' |
+  'sponsored-retired-badge-flag' | 'perpetual-attribution-bar' | 'perpetual-attribution-bar-no-ui-warns';
 export interface PixelBox { minX: number; maxX: number; minY: number; maxY: number }

 type Variant = 'default' | 'no-row-headers' | 'no-headers-frozen' | 'narrow-corner' | 'dialog' |
diff --git a/tests/fixtures/pages/LicenseBuildPage.ts b/tests/fixtures/pages/LicenseBuildPage.ts
new file mode 100644
index 0000000000..a23af5319d
--- /dev/null
+++ b/tests/fixtures/pages/LicenseBuildPage.ts
@@ -0,0 +1,95 @@
+import { type Page, type Locator } from '@playwright/test';
+import { type Bundle } from '../bundle';
+import { LicenseFixturePage, type LicensePluginsName } from './LicenseFixturePage';
+
+/**
+ * A plugin's license token as the built bundle carries it (`static LICENSE`).
+ */
+export interface BundledPluginLicense {
+  capability: string;
+  name: string;
+  gate: string;
+  tiers: string[];
+}
+
+/**
+ * Page Object for the license capabilities fixture opened with a key the spec builds itself, and
+ * optionally under another host name. It reads what the built bundle decided: the license surfaces,
+ * the console messages, which plugins run, and the license token each plugin class carries.
+ */
+export class LicenseBuildPage extends LicenseFixturePage {
+  readonly baseURL: string;
+  readonly poweredBy: Locator;
+
+  constructor(page: Page, baseURL: string, theme = 'main', bundle: Bundle = 'umd') {
+    super(page, theme, bundle);
+    this.baseURL = baseURL;
+    this.poweredBy = page.locator('.ht-license-powered-by');
+  }
+
+  /**
+   * Opens the fixture with a key and the options the grid asks for, and waits for the grid. Each load
+   * reads its own messages: a spec that loads the page several times compares one load's.
+   *
+   * @param {object} options The fixture options.
+   * @param {string} [options.licenseKey] The key, or nothing for a grid built without one.
+   * @param {string} [options.plugins] The options the grid asks for.
+   * @param {string} [options.host] The host name to serve the page under.
+   */
+  async goto({ licenseKey, plugins = 'column-menu', host }: {
+    licenseKey?: string, plugins?: LicensePluginsName, host?: string,
+  } = {}): Promise<void> {
+    const query = new URLSearchParams({ plugins });
+
+    if (licenseKey !== undefined) {
+      query.set('licenseKey', licenseKey);
+    }
+
+    this.consoleMessages.length = 0;
+    await this.open(query, host ? { host, baseURL: this.baseURL } : undefined);
+  }
+
+  /**
+   * The console messages that name a license key or the features a key leaves out.
+   *
+   * @returns {string[]}
+   */
+  licenseMessages(): string[] {
+    return this.consoleMessages
+      .filter(({ text }) => /licen[cs]e|does not include these features/i.test(text))
+      .map(({ type, text }) => `[${type}] ${text}`);
+  }
+
+  /**
+   * The host name the page reads, as the core's license check reads it.
+   *
+   * @returns {Promise<string>}
+   */
+  async host(): Promise<string> {
+    return this.page.evaluate(() => location.host);
+  }
+
+  /**
+   * The license token of every plugin the bundle registers, as its class carries it.
+   *
+   * @returns {Promise<BundledPluginLicense[]>}
+   */
+  async pluginLicenses(): Promise<BundledPluginLicense[]> {
+    return this.page.evaluate(() => {
+      const registries = (window as unknown as { Handsontable: { _registries: {
+        getPluginsNames(): string[],
+        getPlugin(name: string): { LICENSE?: { capability: string, name: string, gate: string, tiers: string[] } },
+      } } }).Handsontable._registries;
+
+      return registries.getPluginsNames()
+        .map(name => registries.getPlugin(name).LICENSE)
+        .filter(license => license && typeof license.capability === 'string')
+        .map(license => ({
+          capability: license!.capability,
+          name: license!.name,
+          gate: license!.gate,
+          tiers: [...license!.tiers],
+        }));
+    });
+  }
+}
diff --git a/tests/fixtures/pages/LicenseCapabilitiesPage.ts b/tests/fixtures/pages/LicenseCapabilitiesPage.ts
index a3c3304029..e91acf9465 100644
--- a/tests/fixtures/pages/LicenseCapabilitiesPage.ts
+++ b/tests/fixtures/pages/LicenseCapabilitiesPage.ts
@@ -1,8 +1,7 @@
 import { type Page, type Locator, expect } from '@playwright/test';
-import { awaitBundle, awaitFixtureBuilt, type Bundle } from '../bundle';
+import { type Bundle } from '../bundle';
 import { presetKey, presetQuery, type LicensePresetName } from '../licenseTiers';
-
-type PluginsName = 'filters' | 'column-menu' | 'header-checkbox';
+import { LicenseFixturePage, type LicensePluginsName } from './LicenseFixturePage';

 /**
  * Page Object for the license capabilities fixture: a grid built with a license key that names a
@@ -10,38 +9,20 @@ type PluginsName = 'filters' | 'column-menu' | 'header-checkbox';
  * made-up tier the features of its preset (`LICENSE_PRESETS`). A plugin the key's tier leaves out stays
  * off, and one console error and the license bar say which.
  */
-export class LicenseCapabilitiesPage {
-  readonly page: Page;
-  readonly theme: string;
-  readonly bundle: Bundle;
-  readonly grid: Locator;
-  readonly bar: Locator;
+export class LicenseCapabilitiesPage extends LicenseFixturePage {
   readonly missingFeatures: Locator;
   readonly salesLink: Locator;
   readonly columnMenuButtons: Locator;
   readonly openColumnMenu: Locator;
   readonly valueList: Locator;
-  readonly consoleErrors: string[] = [];

   constructor(page: Page, theme = 'main', bundle: Bundle = 'umd') {
-    this.page = page;
-    this.theme = theme;
-    this.bundle = bundle;
-    this.grid = page.getByTestId('grid');
-    this.bar = page.locator('.hot-display-license-info');
+    super(page, theme, bundle);
     this.missingFeatures = page.locator('.hot-display-license-info_missing-features');
     this.salesLink = this.missingFeatures.getByRole('link', { name: 'sales@handsontable.com' });
     this.columnMenuButtons = page.locator('.ht_clone_top button.changeType');
     this.openColumnMenu = page.locator('.htDropdownMenu:not([class*="htDropdownMenuSub_"]):visible');
     this.valueList = this.openColumnMenu.locator('.htUIMultipleSelectHot');
-
-    // Registered once, from before the first navigation: the license message prints while the grid is
-    // built. A listener added per `goto()` recorded every later error once more for each call.
-    page.on('console', (message) => {
-      if (message.type() === 'error') {
-        this.consoleErrors.push(message.text());
-      }
-    });
   }

   /**
@@ -52,14 +33,8 @@ export class LicenseCapabilitiesPage {
    * @param {string} options.key The preset whose key the grid is built with.
    * @param {string} [options.plugins] The options the grid asks for.
    */
-  async goto({ key, plugins = 'filters' }: { key: LicensePresetName; plugins?: PluginsName }): Promise<void> {
-    await this.page.goto(
-      `/tests/fixtures/demo/license-capabilities.html?theme=${this.theme}&bundle=${this.bundle}` +
-      `&${presetQuery(key, plugins)}`
-    );
-    await awaitBundle(this.page);
-    await awaitFixtureBuilt(this.page);
-    await expect(this.grid.locator('.ht_master td').first()).toBeVisible();
+  async goto({ key, plugins = 'filters' }: { key: LicensePresetName; plugins?: LicensePluginsName }): Promise<void> {
+    await this.open(new URLSearchParams(presetQuery(key, plugins)));
   }

   /**
@@ -83,18 +58,6 @@ export class LicenseCapabilitiesPage {
     }).sizeAtConstruction);
   }

-  /**
-   * Whether a plugin of the grid is on.
-   *
-   * @param {string} pluginName The plugin key.
-   * @returns {Promise<boolean>}
-   */
-  async isPluginEnabled(pluginName: string): Promise<boolean> {
-    return this.page.evaluate(name => (window as unknown as {
-      hot: { getPlugin(n: string): { enabled: boolean } };
-    }).hot.getPlugin(name).enabled, pluginName);
-  }
-
   /**
    * The grid's own `filters` setting.
    *
diff --git a/tests/fixtures/pages/LicenseFixturePage.ts b/tests/fixtures/pages/LicenseFixturePage.ts
new file mode 100644
index 0000000000..65f1130f1e
--- /dev/null
+++ b/tests/fixtures/pages/LicenseFixturePage.ts
@@ -0,0 +1,116 @@
+import { type Page, type Locator, expect } from '@playwright/test';
+import { assertKnownBundle, awaitBundle, awaitFixtureBuilt, type Bundle } from '../bundle';
+
+/**
+ * The options the license capabilities fixture builds its grid with (`?plugins=`, an allowlist in the fixture).
+ */
+export type LicensePluginsName = 'filters' | 'column-menu' | 'header-checkbox';
+
+/**
+ * Where a page is served from when it is opened under another host name: the host the browser shows, and
+ * the local server that answers for it.
+ */
+export interface ServedHost {
+  host: string;
+  baseURL: string;
+}
+
+/**
+ * The plumbing both license page objects share for `demo/license-capabilities.html`: the fixture URL, the
+ * waits for the bundle and the grid, the license surfaces, the console messages and which plugins run.
+ * `LicenseCapabilitiesPage` opens it with a made-up tier's preset; `LicenseBuildPage` with a key the spec
+ * builds and, optionally, under another host name. A change to the fixture's contract is made here once.
+ */
+export class LicenseFixturePage {
+  readonly page: Page;
+  readonly theme: string;
+  readonly bundle: Bundle;
+  readonly grid: Locator;
+  readonly bar: Locator;
+  readonly lock: Locator;
+  readonly consoleMessages: { type: string; text: string }[] = [];
+  readonly #routedHosts = new Set<string>();
+
+  constructor(page: Page, theme = 'main', bundle: Bundle = 'umd') {
+    assertKnownBundle(bundle, '(page, theme, bundle)');
+    this.page = page;
+    this.theme = theme;
+    this.bundle = bundle;
+    this.grid = page.getByTestId('grid');
+    this.bar = page.locator('.hot-display-license-info');
+    this.lock = page.locator('.ht-license-lock');
+
+    // Registered once, from before the first navigation: the license messages print while the grid is
+    // built. A listener added per load recorded every later message once more for each call.
+    page.on('console', (message) => {
+      this.consoleMessages.push({ type: message.type(), text: message.text() });
+    });
+  }
+
+  /**
+   * The messages printed with `console.error`.
+   *
+   * @returns {string[]}
+   */
+  get consoleErrors(): string[] {
+    return this.consoleMessages.filter(({ type }) => type === 'error').map(({ text }) => text);
+  }
+
+  /**
+   * Whether a plugin of the grid runs.
+   *
+   * @param {string} pluginName The plugin key.
+   * @returns {Promise<boolean>}
+   */
+  async isPluginEnabled(pluginName: string): Promise<boolean> {
+    return this.page.evaluate(name => (window as unknown as {
+      hot: { getPlugin(n: string): { enabled: boolean } };
+    }).hot.getPlugin(name).enabled, pluginName);
+  }
+
+  /**
+   * Opens the fixture with the theme, the bundle and the given query, and waits for the bundle and the grid.
+   * With `served`, the page is served under `https://<host>` (`page.route()` answers from the local server,
+   * so no DNS is needed), and the core reads that host from `location.host`.
+   *
+   * @param {URLSearchParams} query The fixture's own params, after the theme and the bundle.
+   * @param {ServedHost} [served] The host name to serve the page under.
+   */
+  protected async open(query: URLSearchParams, served?: ServedHost): Promise<void> {
+    const params = new URLSearchParams({ theme: this.theme, bundle: this.bundle });
+
+    query.forEach((value, key) => params.append(key, value));
+
+    const path = `/tests/fixtures/demo/license-capabilities.html?${params}`;
+
+    if (served) {
+      await this.#routeHost(served);
+      await this.page.goto(`https://${served.host}${path}`);
+    } else {
+      await this.page.goto(path);
+    }
+
+    await awaitBundle(this.page);
+    await awaitFixtureBuilt(this.page);
+    await expect(this.grid.locator('.ht_master td').first()).toBeVisible();
+  }
+
+  /**
+   * Answers every request to a host from the local server, once per host.
+   *
+   * @param {ServedHost} served The host and the server that answers for it.
+   */
+  async #routeHost({ host, baseURL }: ServedHost): Promise<void> {
+    if (this.#routedHosts.has(host)) {
+      return;
+    }
+
+    this.#routedHosts.add(host);
+    await this.page.route(`https://${host}/**`, async(route) => {
+      const requested = new URL(route.request().url());
+      const local = new URL(`${requested.pathname}${requested.search}`, baseURL).href;
+
+      await route.fulfill({ response: await route.fetch({ url: local }) });
+    });
+  }
+}
diff --git a/tests/fixtures/test.ts b/tests/fixtures/test.ts
index 7aedd946a2..219648a5ad 100644
--- a/tests/fixtures/test.ts
+++ b/tests/fixtures/test.ts
@@ -69,9 +69,63 @@ export { THEMES_TAG, BUNDLES_TAG } from '../lib/leg-declarations.mjs';
  */
 export const MOTION_TAG = '@motion';

+/**
+ * The fixture pages that show a license surface on purpose: the license specs build their keys there.
+ */
+const LICENSE_PAGES = /\/(?:license-branding|license-bar|license-capabilities|xlsx-license)\.html(?:[?#]|$)/;
+
+/**
+ * Whether a page in this frame asks for a license state on purpose: one of the license pages, or a page
+ * opened with a `?license=` query other than `test` (`trusted-types.html?license=invalid`).
+ *
+ * @param {string} url The frame's URL.
+ * @returns {boolean}
+ */
+function asksForLicenseState(url: string): boolean {
+  if (LICENSE_PAGES.test(url)) {
+    return true;
+  }
+
+  try {
+    const license = new URL(url).searchParams.get('license');
+
+    return license !== null && license !== 'test';
+  } catch {
+    return false;
+  }
+}
+
 export const test = base.extend<TestOptions>({
   theme: ['main', { option: true }],
   bundle: ['umd', { option: true }],
+  // Since 19.0 a grid built without a valid key sits behind the license lock. API calls still work, so
+  // a test that only reads the grid passes, while its clicks, focus moves and screenshots meet the lock.
+  // Every grid a test builds therefore takes the internal test key (`demo/test-license-key.js`), and a
+  // lock left on a page that did not ask for one fails the test, after it ran and only when it passed.
+  page: async({ page }, use, testInfo) => {
+    await use(page);
+
+    if (page.isClosed() || testInfo.status !== testInfo.expectedStatus) {
+      return;
+    }
+
+    const locked: string[] = [];
+
+    for (const frame of page.frames()) {
+      if (!asksForLicenseState(frame.url())) {
+        const count = await frame.evaluate(() => document.querySelectorAll('.ht-license-lock').length)
+          .catch(() => 0);
+
+        if (count > 0) {
+          locked.push(frame.url());
+        }
+      }
+    }
+
+    expect(locked, 'A grid on this page shows the license lock, so it was built without the test key. '
+      + 'Load /tests/fixtures/demo/test-license-key.js before the grid and pass '
+      + '`licenseKey: window.htTestLicenseKey`.').toEqual([]);
+  },
 });

 export { expect };
diff --git a/visual-tests/AGENTS.md b/visual-tests/AGENTS.md
index 1bfa07d487..dc0c6b7c55 100644
--- a/visual-tests/AGENTS.md
+++ b/visual-tests/AGENTS.md
@@ -56,6 +56,7 @@ spec-side `test.skip(` are both lint errors. The axes, the default, and the two
 - Screenshots: Always use `helpers.screenshotPath()` for consistent naming
 - Organization: `tests/js-only/`, `tests/multi-frameworks/`, `tests/cross-browser/`
 - Examples for testing live in `examples/next/visual-tests/<framework>/demo/` (the docs tree `examples/next/docs/` is the documentation examples; nothing here serves it)
+- Every demo grid reads `TEST_LICENSE_KEY` from its app's `src/test-license-key` file, never a written-out key: without a valid key the grid renders behind the license lock, and the golden photographs the lock. The root `test:tooling` fails on a literal key or a grid constructor without `licenseKey` (`handsontable/.ai/TESTING.md`, "The license key every test grid takes")

 ## Decision rule

diff --git a/visual-tests/tests/js-only/license-powered-by/powered-by-bar.spec.ts b/visual-tests/tests/js-only/license-powered-by/powered-by-bar.spec.ts
index eef84b1926..08e5650013 100644
--- a/visual-tests/tests/js-only/license-powered-by/powered-by-bar.spec.ts
+++ b/visual-tests/tests/js-only/license-powered-by/powered-by-bar.spec.ts
@@ -1,11 +1,11 @@
 import { visualTest, expect, JS_VARIANTS } from '../../../src/test-runner';
 import { helpers } from '../../../src/helpers';

-type DemoKey = 'badge' | 'trial';
+type DemoKey = 'attribution-bar' | 'trial';

 /**
  * The instant both keys are judged at: inside the fixture trial, which runs to 2026-09-26, and before the
- * badge key's renewal notice, which starts in 2027. It is `INSTANT.duringTrial` of
+ * attribution-bar key's renewal notice, which starts in 2027. It is `INSTANT.duringTrial` of
  * `tests/fixtures/pages/LicenseBrandingPage.ts`. The clock is fixed before the page loads, so what the
  * grid shows never depends on the day the suite runs.
  */
@@ -19,7 +19,7 @@ const DURING_TRIAL = new Date('2026-09-16T00:00:00Z');
  * with no second declaration. On every other run the param stays `HOT_THEME`'s.
  */
 const BARE_RUN_THEME: Record<DemoKey, string> = {
-  badge: 'classic',
+  'attribution-bar': 'classic',
   trial: 'classic-dark',
 };

@@ -37,7 +37,7 @@ function demoUrl(key: DemoKey): string {

 /**
  * Checks how the "Powered by Handsontable DataGrid" bar looks under the grid in every theme, light and
- * dark: its padding, type, colors and logomark (Figma 1424:19574). Capture 1 is a key with the `badge`
+ * dark: its padding, type, colors and logomark (Figma 1424:19574). Capture 1 is a key with the `attribution-bar`
  * flag, which shows the bar alone; capture 2 is a running trial, which shows the bar beside the corner
  * badge in the corner header cell. On the bare run they show the classic theme, light and dark (see
  * `BARE_RUN_THEME`). When the bar shows, its link, its place last in the bottom slot, its geometry per
@@ -55,8 +55,8 @@ visualTest(__filename, {

   await tablePage.clock.setFixedTime(DURING_TRIAL);

-  // State 1: a `badge` key. The bar shows, and nothing else of the license UI does.
-  await goto(demoUrl('badge'));
+  // State 1: an `attribution-bar` key. The bar shows, and nothing else of the license UI does.
+  await goto(demoUrl('attribution-bar'));

   await expect(poweredBy).toBeVisible();
   await expect(badge).toHaveCount(0);
diff --git a/wrappers/angular-wrapper/projects/hot-table/src/lib/hot-table-license.spec.ts b/wrappers/angular-wrapper/projects/hot-table/src/lib/hot-table-license.spec.ts
new file mode 100644
index 0000000000..2a6d86ff48
--- /dev/null
+++ b/wrappers/angular-wrapper/projects/hot-table/src/lib/hot-table-license.spec.ts
@@ -0,0 +1,98 @@
+import { ComponentFixture, TestBed } from '@angular/core/testing';
+import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
+import { HotTableModule } from './hot-table.module';
+import { HotTableComponent } from './hot-table.component';
+import { HOT_GLOBAL_CONFIG, HotGlobalConfig } from './services/hot-global-config.service';
+import { GridSettings } from './models/grid-settings';
+import { TEST_LICENSE_KEY } from './test-helpers/license-key';
+
+/**
+ * A key no reader accepts, so a grid built with it is locked.
+ */
+const UNREADABLE_KEY = 'not-a-handsontable-license-key';
+
+/**
+ * The license key through the Angular wrapper. The core reads the key once, while the grid is built, so
+ * a key the wrapper passed later (in an `updateSettings()` after the constructor) would leave the grid
+ * behind the license lock. The key comes from the `settings` input or from `HOT_GLOBAL_CONFIG.license`,
+ * and the input wins.
+ */
+describe('HotTableComponent license key', () => {
+  let fixture: ComponentFixture<HotTableComponent>;
+  let warn: jest.SpyInstance;
+
+  beforeEach(() => {
+    // The core prints its license message once per page, so only the first grid of a file would show it:
+    // these tests read the lock, which every grid draws on its own, and the spy keeps the output quiet.
+    warn = jest.spyOn(console, 'warn').mockImplementation(() => undefined);
+  });
+
+  afterEach(() => {
+    fixture?.destroy();
+    warn.mockRestore();
+  });
+
+  /**
+   * Builds the wrapper with a global configuration and a `settings` input, and returns its instance.
+   *
+   * @param globalConfig The `HOT_GLOBAL_CONFIG` value.
+   * @param settings The `settings` input.
+   * @returns The Handsontable instance.
+   */
+  function createGrid(globalConfig: HotGlobalConfig, settings: GridSettings) {
+    TestBed.configureTestingModule({
+      imports: [HotTableModule],
+      schemas: [CUSTOM_ELEMENTS_SCHEMA],
+      providers: [{ provide: HOT_GLOBAL_CONFIG, useValue: globalConfig }],
+    }).compileComponents();
+
+    fixture = TestBed.createComponent(HotTableComponent);
+    fixture.componentInstance.settings = settings;
+    fixture.detectChanges();
+
+    return fixture.componentInstance.hotInstance;
+  }
+
+  /**
+   * Whether the grid shows the license lock. The root wrapper is asserted first: a grid with no wrapper
+   * would otherwise read as locked or unlocked without any lock being checked.
+   *
+   * @param hot The instance.
+   * @param hot.rootElement The instance's root element.
+   * @returns `true` when the lock is in the grid's root wrapper.
+   */
+  function isLocked(hot: { rootElement: HTMLElement }): boolean {
+    const wrapper = hot.rootElement.closest('.ht-root-wrapper');
+
+    expect(wrapper).not.toBeNull();
+
+    return wrapper?.querySelector('.ht-license-lock') !== null;
+  }
+
+  it('should build a grid without a key behind the license lock', () => {
+    const hot = createGrid({}, { data: [['A1', 'B1']] });
+
+    expect(isLocked(hot)).toBe(true);
+  });
+
+  it('should build a grid with the key from `HOT_GLOBAL_CONFIG.license` unlocked', () => {
+    const hot = createGrid({ license: TEST_LICENSE_KEY }, { data: [['A1', 'B1']] });
+
+    expect(hot.getSettings().licenseKey).toBe(TEST_LICENSE_KEY);
+    expect(isLocked(hot)).toBe(false);
+  });
+
+  it('should build a grid with the key from the `settings` input over the global one', () => {
+    const hot = createGrid({ license: UNREADABLE_KEY }, { data: [['A1', 'B1']], licenseKey: TEST_LICENSE_KEY });
+
+    expect(hot.getSettings().licenseKey).toBe(TEST_LICENSE_KEY);
+    expect(isLocked(hot)).toBe(false);
+  });
+
+  it('should lock a grid whose `settings` key is unreadable, whatever the global key', () => {
+    const hot = createGrid({ license: TEST_LICENSE_KEY }, { data: [['A1', 'B1']], licenseKey: UNREADABLE_KEY });
+
+    expect(hot.getSettings().licenseKey).toBe(UNREADABLE_KEY);
+    expect(isLocked(hot)).toBe(true);
+  });
+});
diff --git a/wrappers/angular-wrapper/projects/hot-table/src/lib/hot-table.component.spec.ts b/wrappers/angular-wrapper/projects/hot-table/src/lib/hot-table.component.spec.ts
index 6d2bca1005..f2db1ecabd 100644
--- a/wrappers/angular-wrapper/projects/hot-table/src/lib/hot-table.component.spec.ts
+++ b/wrappers/angular-wrapper/projects/hot-table/src/lib/hot-table.component.spec.ts
@@ -27,7 +27,10 @@ describe('HotTableComponent', () => {
   beforeEach(() => {
     TestBed.configureTestingModule({
       imports: [HotTableModule],
-      schemas: [CUSTOM_ELEMENTS_SCHEMA]
+      schemas: [CUSTOM_ELEMENTS_SCHEMA],
+      // Every grid of this file gets the test key, including the ones built with `settings = {}`
+      // or no settings at all: without a valid key the grid sits behind the license lock.
+      providers: [{ provide: HOT_GLOBAL_CONFIG, useValue: { license: TEST_LICENSE_KEY } }],
     }).compileComponents();

   });
diff --git a/wrappers/react-wrapper/test/licenseLock.spec.tsx b/wrappers/react-wrapper/test/licenseLock.spec.tsx
new file mode 100644
index 0000000000..e5ab2eb5af
--- /dev/null
+++ b/wrappers/react-wrapper/test/licenseLock.spec.tsx
@@ -0,0 +1,66 @@
+import { registerAllModules } from 'handsontable/registry';
+import { renderHotTableWithProps } from './_helpers';
+import { TEST_LICENSE_KEY } from './licenseKey';
+
+registerAllModules();
+
+// The core reads the key once, while the grid is built, so a wrapper that passed it any later (in an
+// `updateSettings()` after the constructor) would leave every grid behind the license lock. These tests
+// build the grid through the component and read what the core decided.
+describe('The license key through HotTable', () => {
+  let warn: jest.SpyInstance;
+
+  beforeEach(() => {
+    // The core prints its license message once per page, so only the first grid of a file would show it:
+    // these tests read the lock, which every grid draws on its own, and the spy keeps the output quiet.
+    warn = jest.spyOn(console, 'warn').mockImplementation(() => undefined);
+  });
+
+  afterEach(() => {
+    warn.mockRestore();
+  });
+
+  it('should build a grid without a key behind the license lock', async() => {
+    const hotTableRef = renderHotTableWithProps({
+      data: [['A1', 'B1']],
+      autoRowSize: false,
+      autoColumnSize: false,
+    });
+    const hot = hotTableRef.current!.hotInstance!;
+
+    expect(hot.rootElement.closest('.ht-root-wrapper')!.querySelector('.ht-license-lock')).not.toBeNull();
+  });
+
+  it('should build a grid with the test key unlocked and without a license message', async() => {
+    const hotTableRef = renderHotTableWithProps({
+      data: [['A1', 'B1']],
+      licenseKey: TEST_LICENSE_KEY,
+      autoRowSize: false,
+      autoColumnSize: false,
+    });
+    const hot = hotTableRef.current!.hotInstance!;
+
+    expect(hot.getSettings().licenseKey).toBe(TEST_LICENSE_KEY);
+    expect(hot.rootElement.closest('.ht-root-wrapper')!.querySelector('.ht-license-lock')).toBeNull();
+    expect(hot.rootElement.closest('.ht-root-wrapper')!.querySelector('.hot-display-license-info')).toBeNull();
+  });
+
+  it('should keep the key on the grid when another prop changes', async() => {
+    const props = {
+      data: [['A1', 'B1']],
+      licenseKey: TEST_LICENSE_KEY,
+      autoRowSize: false,
+      autoColumnSize: false,
+    };
+    const hotTableRef = renderHotTableWithProps(props);
+
+    renderHotTableWithProps({ ...props, colHeaders: ['First', 'Second'] }, true, hotTableRef);
+
+    const hot = hotTableRef.current!.hotInstance!;
+
+    expect(hot.getColHeader(0)).toBe('First');
+    expect(hot.getSettings().licenseKey).toBe(TEST_LICENSE_KEY);
+    expect(hot.rootElement.closest('.ht-root-wrapper')!.querySelector('.ht-license-lock')).toBeNull();
+  });
+});
+
diff --git a/wrappers/vue3/test/licenseLock.spec.ts b/wrappers/vue3/test/licenseLock.spec.ts
new file mode 100644
index 0000000000..04cc1e8d19
--- /dev/null
+++ b/wrappers/vue3/test/licenseLock.spec.ts
@@ -0,0 +1,85 @@
+import { mount, config } from '@vue/test-utils';
+import HotTable from '../src/HotTable.vue';
+import './_helpers';
+import { TEST_LICENSE_KEY } from './licenseKey';
+
+config.renderStubDefaultSlot = true;
+
+// The core reads the key once, while the grid is built, so a wrapper that passed it any later (in an
+// `updateSettings()` after the constructor) would leave every grid behind the license lock. These tests
+// build the grid through the component, with the key as a prop and inside `settings`, and read what the
+// core decided.
+describe('The license key through HotTable', () => {
+  let testWrapper: ReturnType<typeof mount> | null = null;
+  let warn: jest.SpyInstance;
+
+  beforeEach(() => {
+    document.body.innerHTML = '<div id="app"></div>';
+    // The core prints its license message once per page, so only the first grid of a file would show it:
+    // these tests read the lock, which every grid draws on its own, and the spy keeps the output quiet.
+    warn = jest.spyOn(console, 'warn').mockImplementation(() => undefined);
+  });
+
+  afterEach(() => {
+    testWrapper?.unmount();
+    testWrapper = null;
+    warn.mockRestore();
+  });
+
+  /**
+   * Mounts a grid from a template and returns its instance.
+   *
+   * @param {string} template The template.
+   * @param {object} [data] What the template binds.
+   * @returns {object}
+   */
+  function mountGrid(template: string, data: Record<string, unknown> = {}) {
+    const App = {
+      components: { HotTable },
+      template,
+      data: () => ({ rows: [['A1', 'B1']], ...data }),
+    };
+
+    testWrapper = mount(App, { attachTo: document.getElementById('app') as HTMLElement });
+
+    return testWrapper.getComponent(HotTable).vm.hotInstance;
+  }
+
+  /**
+   * The license lock of a grid, or `null`. The root wrapper is asserted first: a grid with no wrapper
+   * would otherwise read as unlocked without any lock being checked.
+   *
+   * @param {object} hot The instance.
+   * @param {HTMLElement} hot.rootElement The instance's root element.
+   * @returns {Element | null}
+   */
+  function lockOf(hot: { rootElement: HTMLElement }): Element | null {
+    const wrapper = hot.rootElement.closest('.ht-root-wrapper');
+
+    expect(wrapper).not.toBeNull();
+
+    return wrapper?.querySelector('.ht-license-lock') ?? null;
+  }
+
+  it('should build a grid without a key behind the license lock', () => {
+    const hot = mountGrid('<HotTable :data="rows"></HotTable>');
+
+    expect(lockOf(hot)).not.toBeNull();
+  });
+
+  it('should build a grid with the key as a prop unlocked', () => {
+    const hot = mountGrid('<HotTable :data="rows" :licenseKey="testLicenseKey"></HotTable>');
+
+    expect(hot.getSettings().licenseKey).toBe(TEST_LICENSE_KEY);
+    expect(lockOf(hot)).toBeNull();
+  });
+
+  it('should build a grid with the key in `settings` unlocked', () => {
+    const hot = mountGrid('<HotTable :settings="settings"></HotTable>', {
+      settings: { data: [['A1', 'B1']], licenseKey: TEST_LICENSE_KEY },
+    });
+
+    expect(hot.getSettings().licenseKey).toBe(TEST_LICENSE_KEY);
+    expect(lockOf(hot)).toBeNull();
+  });
+});