@starci/eslint-grammar-core 0.24.0 → 0.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.25.0 - 2026-11-07
4
+
5
+ - A minor of the Grammar family: rule sources (`freestyle.ts`, `status-colors.ts`, `surface-depth.ts`, `lib/rule-contract.ts`, `lib/why.ts`) changed their text, so the family moves to 0.25.0 (`contexts/grammars/contributing.md` "Patch or minor").
6
+ - Peers `@starci/hfs` ~6.0.0. Comments, rule docs, bundled knowledge and messages cite rules by their ids and carry no ruling history.
7
+
3
8
  ## 0.24.0 - 2026-11-06
4
9
 
5
10
  - Added: `no-button-view-switch` (R380, `FE_GROUPED_CHOICE_CONTROL`): two or more adjacent `Button` or `IconButton` elements, or one in a `.map`, carrying `aria-pressed`, `isSelected` or `isActive` are joined buttons or pills acting as tabs; use `Tabs` in the block's `filter` header zone. `docs/choice-controls.md` says which component switches what.
@@ -17,11 +22,11 @@
17
22
 
18
23
  ## 0.23.0 - 2026-11-05
19
24
 
20
- - Changed: with `@starci/grammar` 0.23.0; requires `@starci/eslint-canon-fe` `~9.15.0` and peers `@starci/hfs` `~5.13.0`, whose runtime it reads at run time instead of a bundled copy (decision release-only-what-changed); `runtime/` keeps only the knowledge it cites.
25
+ - Changed: with `@starci/grammar` 0.23.0; requires `@starci/eslint-canon-fe` `~9.15.0` and peers `@starci/hfs` `~5.13.0`, whose runtime it reads at run time instead of a bundled copy; `runtime/` keeps only the knowledge it cites.
21
26
 
22
27
  ## 0.22.0 - 2026-11-05
23
28
 
24
- - Changed: version stamp only, with `@starci/grammar` 0.22.0; requires `@starci/eslint-canon-fe` 9.14.4. The runtime copies carry the same-minor range of the canon pins (decision grammar-patch-range), R15 and the canon pins of `@starci/hfs` 5.12.0.
29
+ - Changed: version stamp only, with `@starci/grammar` 0.22.0; requires `@starci/eslint-canon-fe` 9.14.4. The runtime copies carry the same-minor range of the canon pins, R15 and the canon pins of `@starci/hfs` 5.12.0.
25
30
 
26
31
  ## 0.21.38 - 2026-11-05
27
32
 
@@ -201,8 +206,8 @@
201
206
 
202
207
  ## 0.20.2 - 2026-11-01
203
208
 
204
- - Changed: `status-text-uses-soft-foreground` follows the owner's pair rule. It refuses a solid tone painted as text on a `bg-<tone>-soft` tint of the same element (message `onTint`: use `text-<tone>-soft-foreground`) and the soft foreground with no `bg-<tone>-soft` behind it on its element or on an enclosing element of the file (message `alone`: use `text-<tone>`). A bare `text-<tone>`, which the rule refused before, is no longer a finding. Constants and `classes` entries are judged for the first finding only.
205
- - Changed: with `offset-pop` as the selected Grammar the `alone` finding is not reported (its light theme keeps the soft foreground for a bare mark, owner choice "1. Pastel").
209
+ - Changed: `status-text-uses-soft-foreground` follows the status pair rule. It refuses a solid tone painted as text on a `bg-<tone>-soft` tint of the same element (message `onTint`: use `text-<tone>-soft-foreground`) and the soft foreground with no `bg-<tone>-soft` behind it on its element or on an enclosing element of the file (message `alone`: use `text-<tone>`). A bare `text-<tone>`, which the rule refused before, is no longer a finding. Constants and `classes` entries are judged for the first finding only.
210
+ - Changed: with `offset-pop` as the selected Grammar the `alone` finding is not reported (its light theme keeps the soft foreground for a bare mark, the Pastel choice).
206
211
  - Changed: the bundled rule catalog carries R351 to R354 and the new R61 law text.
207
212
  - Changed: moves with `@starci/grammar` 0.20.2 (the stat strip's dividers) and requires `@starci/eslint-canon-fe` 9.8.5; the bundled canon pins follow; the status rule changes (below).
208
213
 
@@ -246,8 +251,8 @@
246
251
  ## 0.16.3 - 2026-10-31
247
252
 
248
253
  - Changed: the peer moves to eslint-canon-fe 9.6.3; the bundled canon pins name the 0.16.3 cohort (@starci/grammar, eslint-grammar-core and eslint-grammar-offset-pop 0.16.3, eslint-canon-fe 9.6.3, eslint-canon-be 3.9.3, stylelint-canon 2.3.0, jest-preset 2.6.0, hfs 4.13.0); ChatWorkspace and PaneLayout are removed with no alias; PaneGrid and Pane are the one generic pane grid: grammar names are generic. The core playbook names PaneGrid in its layout-frame and container lists.
249
- - Added: starci-grammar/freestyle-has-reason (R341, FE_FREESTYLE_REASON_MISSING): a `<Freestyle>` region names a non-empty string-literal `reason`. no-raw-structural-element, no-fractional-step, generated-art-in-mascot-or-media-frame and no-inline-svg-outside-brand-mark-leaf do not report the raw elements inside a Freestyle subtree (owner ruling grammar-freestyle-region). Specs: src/freestyle.spec.ts.
250
- - Added: `crossFileInputs` for the lint result cache of `starci app check` (ruling app-check-cache): the files each grammar rule reads beyond the linted file.
254
+ - Added: starci-grammar/freestyle-has-reason (R341, FE_FREESTYLE_REASON_MISSING): a `<Freestyle>` region names a non-empty string-literal `reason`. no-raw-structural-element, no-fractional-step, generated-art-in-mascot-or-media-frame and no-inline-svg-outside-brand-mark-leaf do not report the raw elements inside a Freestyle subtree. Specs: src/freestyle.spec.ts.
255
+ - Added: `crossFileInputs` for the lint result cache of `starci app check`: the files each grammar rule reads beyond the linted file.
251
256
 
252
257
  ## 0.16.2 - 2026-10-31
253
258
 
@@ -342,7 +347,7 @@
342
347
 
343
348
  ## 0.15.15 - 2026-10-29
344
349
 
345
- - Changed: the peer moves to the 0.15.15 cohort (eslint-canon-fe 9.5.4); the bundled slot manifest 3.13.0 admits `pgmq` in `ruleParams.db.extensions` (the lite event bus, ruling lite-pgmq-bus-bullmq-jobs), retires `ruleParams.db.queueOutbox` and `sides.be.queueOutbox` with the pg_cron half of R258, lists `public.event_bus_send`, `public.event_bus_read`, `public.event_bus_archive`, `public.event_bus_bury`, `public.event_bus_dead_letters` and `public.event_bus_requeue` in place of `public.event_bus_write` in `ruleParams.be.dbFunctions`, and moves slot `app.db.image` to `.starcistacks/images/db/Dockerfile` (ruling lite-db-image-in-stacks, admitted by the lite `app.starcistacks` allows); the bundled rule catalog keeps R258 `DB_PGMQ_DECLARED` as the event-bus law, retires `DB_CRON_OWNED` and adds R336 `BE_EVENT_BUS_LITE_SHAPE`; the bundled canon pins name hfs 4.11.3, eslint-canon-be 3.8.2, eslint-canon-fe 9.5.4 and the Grammar family 0.15.15. No rule changed.
350
+ - Changed: the peer moves to the 0.15.15 cohort (eslint-canon-fe 9.5.4); the bundled slot manifest 3.13.0 admits `pgmq` in `ruleParams.db.extensions` (the lite event bus), retires `ruleParams.db.queueOutbox` and `sides.be.queueOutbox` with the pg_cron half of R258, lists `public.event_bus_send`, `public.event_bus_read`, `public.event_bus_archive`, `public.event_bus_bury`, `public.event_bus_dead_letters` and `public.event_bus_requeue` in place of `public.event_bus_write` in `ruleParams.be.dbFunctions`, and moves slot `app.db.image` to `.starcistacks/images/db/Dockerfile` (admitted by the lite `app.starcistacks` allows); the bundled rule catalog keeps R258 `DB_PGMQ_DECLARED` as the event-bus law, retires `DB_CRON_OWNED` and adds R336 `BE_EVENT_BUS_LITE_SHAPE`; the bundled canon pins name hfs 4.11.3, eslint-canon-be 3.8.2, eslint-canon-fe 9.5.4 and the Grammar family 0.15.15. No rule changed.
346
351
 
347
352
  ## 0.15.14 - 2026-10-29
348
353
 
@@ -372,14 +377,14 @@
372
377
 
373
378
  ## 0.15.8 - 2026-10-29
374
379
 
375
- - Changed: `starci-grammar/route-page-is-one-page` (R325) follows the owner ruling `page-frame` as rewritten: a route segment `layout` whose owner (`fe.feature`, kind `layouts`), its pure half or its one root block draws a `Page` whose `header` carries `tabs` is the one `Page` of every route under it. The rule finds the route `page` files that mount a page owner, walks up through the `layout` files of their segments and resolves each layout's owner one level deep. A page owner every route of which is so framed is not judged `missing`; one that draws a `Page` (or a root block that draws one) under such a layout is `twice`, and the message names the layout. A layout whose `Page` carries no `tabs` frames no segment.
380
+ - Changed: `starci-grammar/route-page-is-one-page` (R325): a route segment `layout` whose owner (`fe.feature`, kind `layouts`), its pure half or its one root block draws a `Page` whose `header` carries `tabs` is the one `Page` of every route under it. The rule finds the route `page` files that mount a page owner, walks up through the `layout` files of their segments and resolves each layout's owner one level deep. A page owner every route of which is so framed is not judged `missing`; one that draws a `Page` (or a root block that draws one) under such a layout is `twice`, and the message names the layout. A layout whose `Page` carries no `tabs` frames no segment.
376
381
  - Changed: R325 also judges layout owners (`fe.feature`, kind `layouts`): a `Page` they draw has nothing beside it (`sibling`; a `PageHeader` block beside the segment's `Page` belongs in its `header`), no `Page` inside another (`twice`), and no bare `PageHeader` or `PageContainer` (`part`). A layout owner that draws no `Page` is never `missing`.
377
382
  - Changed: `@starci/eslint-canon-fe` 9.4.7 is the peer dependency; versioned together with Grammar 0.15.8; the bundled canon pins name the Grammar family 0.15.8 (grammar, eslint-grammar-core, eslint-grammar-offset-pop), eslint-canon-fe 9.4.7 and eslint-canon-be 3.6.6.
378
383
  - Spec: `src/page.spec.ts`, `src/page-owners.spec.ts` (layout cases on the project fixture); docs: `docs/page.md`.
379
384
 
380
385
  ## 0.15.7 - 2026-10-29
381
386
 
382
- - Changed: `starci-grammar/route-page-is-one-page` (R325) follows the owner ruling that a route draws exactly one `Page`, drawn by the page owner, its pure half (`./component`), or the one connected block (`fe.components`, kind `blocks`) the owner renders as its root, read one level deep (the block's connected half and its own pure half). A server page owner whose header needs client data renders that block and passes the page body as its children. An element that draws the `Page` with an element sibling stays `sibling`; a `Page` (or a block that draws one) inside another is the new finding `twice`.
387
+ - Changed: `starci-grammar/route-page-is-one-page` (R325): a route draws exactly one `Page`, drawn by the page owner, its pure half (`./component`), or the one connected block (`fe.components`, kind `blocks`) the owner renders as its root, read one level deep (the block's connected half and its own pure half). A server page owner whose header needs client data renders that block and passes the page body as its children. An element that draws the `Page` with an element sibling stays `sibling`; a `Page` (or a block that draws one) inside another is the new finding `twice`.
383
388
  - Changed: R325 does not judge a page owner as `missing` when every route `page` file that imports it lies under the route group `(auth)` with its own `layout`: that layout draws the auth frame, the page frame of its sign-in, sign-up, password and callback pages. A page owner that draws no JSX (it only calls `redirect()` or `notFound()`, or returns null) stays unjudged. Workbench pages get no exemption.
384
389
  - Changed: `@starci/eslint-canon-fe` 9.4.6 is the peer dependency; versioned together with Grammar 0.15.7; the bundled canon pins name the Grammar family 0.15.7 (grammar, eslint-grammar-core, eslint-grammar-offset-pop) and eslint-canon-fe 9.4.6.
385
390
  - Spec: `src/page.spec.ts`, `src/page-owners.spec.ts` (new, cross-file); docs: `docs/page.md`.
@@ -431,7 +436,7 @@
431
436
 
432
437
  - Changed: `@starci/eslint-canon-fe` is a peer dependency (9.2.0), installed by the app beside this package, instead of a nested dependency.
433
438
  - Changed: the package lives in github.com/starci183/starci-harness under `packages/` and publishes from there; its bundled `runtime/` is committed source, edited in place (no generator, no `prepack`/`pretest` hook).
434
- - Changed: owner ruling: there are exactly two Grammar families, `core` and `offset-pop`. This package is renamed from
439
+ - Changed: there are exactly two Grammar families, `core` and `offset-pop`. This package is renamed from
435
440
  `@starci/eslint-grammar-starci` to `@starci/eslint-grammar-core`, and its factory from `starciGrammarConfig` to
436
441
  `coreGrammarConfig`, which loads for `sides.fe.grammar: core`.
437
442
  - Removed: the ids `starci` and `starci-core` are not families and have no alias; an app that names them is refused.
package/dist/freestyle.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { isProductSource } from "@starci/eslint-canon-fe/lib/scope.mjs";
2
2
  import { defineFamilyRules, defineRule } from "./lib/rule-contract.js";
3
3
  /**
4
- * The Freestyle law (HFS R341 `FE_FREESTYLE_REASON_MISSING`; owner ruling `grammar-freestyle-region`): Freestyle is the one
4
+ * The Freestyle law (HFS R341 `FE_FREESTYLE_REASON_MISSING`): Freestyle is the one
5
5
  * sanctioned escape hatch of the Grammar, a region where the app writes its own plain elements and app CSS because no
6
6
  * Grammar component fits. It is a last resort, so it always says why: `reason` is a non-empty string literal such as
7
7
  * `"sign-in brand art"`, and the Grammar stamps it on the DOM (`data-grammar-freestyle-reason`).
@@ -9,8 +9,8 @@ export declare const RULE_OWNERSHIP = "knowledge/patterns/fe/index.yaml#FE-RULE-
9
9
  */
10
10
  export declare const defineRule: (definition: RuleDefinition) => Rule.RuleModule;
11
11
  /**
12
- * A rule that leaves the raw elements of a Freestyle subtree alone (owner ruling grammar-freestyle-region): a finding about a
13
- * plain element, or its class or style, inside `<Freestyle>` is dropped; a Grammar component inside it is judged as before.
12
+ * A rule that leaves the raw elements of a Freestyle subtree alone: a finding about a
13
+ * plain element, or its class or style, inside `<Freestyle>` is dropped; a Grammar component inside it is judged.
14
14
  */
15
15
  export declare const exemptFreestyle: (rule: Rule.RuleModule) => Rule.RuleModule;
16
16
  /** Attach the governing ownership rule and the rule's behavioral source without changing enforcement. */
@@ -11,8 +11,8 @@ export const defineRule = (definition) => ({
11
11
  create: (context) => definition.create(context),
12
12
  });
13
13
  /**
14
- * A rule that leaves the raw elements of a Freestyle subtree alone (owner ruling grammar-freestyle-region): a finding about a
15
- * plain element, or its class or style, inside `<Freestyle>` is dropped; a Grammar component inside it is judged as before.
14
+ * A rule that leaves the raw elements of a Freestyle subtree alone: a finding about a
15
+ * plain element, or its class or style, inside `<Freestyle>` is dropped; a Grammar component inside it is judged.
16
16
  */
17
17
  export const exemptFreestyle = (rule) => ({
18
18
  ...rule,
package/dist/lib/why.js CHANGED
@@ -131,7 +131,7 @@ export const why = {
131
131
  },
132
132
  "status-text-uses-soft-foreground": {
133
133
  code: "FE_STYLE_TOKEN_ONLY",
134
- en: "`<file>` colours status content against the owner's pair rule (`<what>`): content on a `bg-<tone>-soft` tint paints with the solid tone (e.g. `bg-success-soft text-success`), or a mark with no tint behind it paints with the soft foreground (e.g. `text-success-soft-foreground` alone).",
134
+ en: "`<file>` colours status content against the status pair rule (`<what>`): content on a `bg-<tone>-soft` tint paints with the solid tone (e.g. `bg-success-soft text-success`), or a mark with no tint behind it paints with the soft foreground (e.g. `text-success-soft-foreground` alone).",
135
135
  fix: "Content on a background of the tone takes the pair: `bg-<tone>-soft` with `text-<tone>-soft-foreground`. A mark that stands alone, with no background of the tone, takes the tone itself: `text-<tone>`. A solid fill takes `bg-<tone>` with `text-<tone>-foreground`.",
136
136
  },
137
137
  };
@@ -3,7 +3,7 @@ import { defineFamilyRules, defineRule } from "./lib/rule-contract.js";
3
3
  * The rule that holds `status-colors.md` (HFS R61 `FE_STYLE_TOKEN_ONLY`, the status-pair rule for class names; no gate
4
4
  * judges the colours an app's theme gives the pair).
5
5
  *
6
- * A STATUS TONE x PAINTS IN TWO WAYS (owner ruling `status-soft-pair-on-background`). Content that sits ON A BACKGROUND OF THE
6
+ * A STATUS TONE x PAINTS IN TWO WAYS. Content that sits ON A BACKGROUND OF THE
7
7
  * TONE uses the pair `x-soft` and `x-soft-foreground`, the way a HeroUI flat Chip does. A mark that STANDS ALONE, with no
8
8
  * background of the tone behind it, uses `x` itself. A solid fill takes `x-foreground`.
9
9
  *
@@ -19,8 +19,8 @@ import { defineFamilyRules, defineRule } from "./lib/rule-contract.js";
19
19
  * enclosing element of the same file sets `bg-x-soft`. A mark with no tint behind it takes `text-x`. A constant, an array in
20
20
  * a constant or a `classes` entry is not judged for this finding, since the element that wears it is not in view.
21
21
  *
22
- * OFFSET POP. The family's light-theme tones are pastel fills (1.3 to 1.5:1 as bare text), and the owner chose to keep them
23
- * ("1. Pastel"): a bare mark wears the soft foreground there. When the selected Grammar is `offset-pop` the ALONE finding is
22
+ * OFFSET POP. The family's light-theme tones are pastel fills (1.3 to 1.5:1 as bare text), and they stay
23
+ * pastel: a bare mark wears the soft foreground there. When the selected Grammar is `offset-pop` the ALONE finding is
24
24
  * not reported; the ON A TINT finding still is.
25
25
  *
26
26
  * WHAT IT LEAVES ALONE: a bare solid tone (`text-success` with no `bg-success-soft` on the element), the soft pair on its tint, a
@@ -166,7 +166,7 @@ export const statusTextUsesSoftForeground = defineRule({
166
166
  },
167
167
  create(context) {
168
168
  // A `classes` entry inside a constant is reached twice (as part of the constant, and as the entry): one finding per string.
169
- // Offset Pop's light theme draws a bare mark with the soft foreground (owner choice "1. Pastel"), so the lone soft foreground is not judged there.
169
+ // Offset Pop's light theme draws a bare mark with the soft foreground, so the lone soft foreground is not judged there.
170
170
  const aloneJudged = grammarOf(context.settings) !== "offset-pop";
171
171
  const seen = new Set();
172
172
  const fresh = (strings) => [...strings].filter(({ node }) => !seen.has(node) && seen.add(node));
@@ -4,8 +4,8 @@ import { defineFamilyRules, defineRule } from "./lib/rule-contract.js";
4
4
  /**
5
5
  * The surface nesting law (HFS R340 `FE_RAISED_SURFACE_IN_SURFACE`): a surface never stands inside another surface. A
6
6
  * `SurfaceCard` inside another `SurfaceCard`, inside a `Pane surface`, or inside a `Dialog`, `Drawer`, `AlertDialog` or
7
- * `Popover` is refused; the Grammar has one depth, raised, and draws no nested edge (owner decision: surface in surface is
8
- * banned totally, dialogs and drawers included). The Grammar throws the same refusal in development; this is its
7
+ * `Popover` is refused; the Grammar has one depth, raised, and draws no nested edge: a surface never
8
+ * sits in a surface, dialogs and drawers included. The Grammar throws the same refusal in development; this is its
9
9
  * same-file half, and R356 closes it across files.
10
10
  *
11
11
  * WHAT IT READS. A `SurfaceCard` element (or `<ns>.SurfaceCard`) imported from `@starci/grammar` that a `SurfaceCard`,
@@ -2,7 +2,7 @@
2
2
 
3
3
  Law module: `status-colors.ts`. Catalogue: R61 FE_STYLE_TOKEN_ONLY (the status-pair rule for class names; no gate judges the colours an app's theme gives the pair).
4
4
 
5
- A status tone `x` (`success`, `warning`, `danger`, `info`, read from `lib/status-tones.generated.ts`, which is generated from the grammar with the stylelint vocabulary) paints in two ways. Content that sits on a background of the tone uses the pair `x-soft` and `x-soft-foreground`, the way a HeroUI flat Chip does. A mark that stands alone, with no background of the tone behind it, uses `x` itself. A solid fill takes `x-foreground`. The owner's words: "TEXT TRÊN BG THÌ X-SOFT VÀ X-SOFT-FOREGROUND, CÒN NẾU X ĐỘC LẬP THÌ ĐỂ X LUN" (ruling `status-soft-pair-on-background`).
5
+ A status tone `x` (`success`, `warning`, `danger`, `info`, read from `lib/status-tones.generated.ts`, which is generated from the grammar with the stylelint vocabulary) paints in two ways. Content that sits on a background of the tone uses the pair `x-soft` and `x-soft-foreground`, the way a HeroUI flat Chip does. A mark that stands alone, with no background of the tone behind it, uses `x` itself. A solid fill takes `x-foreground`.
6
6
 
7
7
  Every rule below is an error in `coreGrammarConfig`; none can be switched off or suppressed inline.
8
8
 
@@ -13,7 +13,7 @@ Two findings, both read from `className`/`class`, from `cn()`/`clsx()` arguments
13
13
  - **on a tint** (message `onTint`): a class string that sets `bg-<tone>-soft` and also paints text, an icon or a text decoration with the solid tone of the same tone: `text-<tone>`, `fill-<tone>`, `stroke-<tone>`, `decoration-<tone>`. The content on the tint takes `text-<tone>-soft-foreground`.
14
14
  - **alone** (message `alone`): `text-<tone>-soft-foreground` (or `fill-`, `stroke-`, `decoration-`) in the `className` of an element when neither that element nor an element that encloses it in the same file sets `bg-<tone>-soft`. A mark with no tint behind it takes `text-<tone>`. A constant, an array in a constant or a `classes` entry is not judged for this finding, since the element that wears it is not in view; a component that receives its tint from another file is judged where the tint is written.
15
15
 
16
- On Offset Pop (`settings.starci.hfs.grammar` is `offset-pop`) the **alone** finding is not reported: the family's light-theme tones are pastel fills and a bare mark wears the soft foreground there (owner choice "1. Pastel"); its dark theme keeps bare x, which the rule does not refuse either.
16
+ On Offset Pop (`settings.starci.hfs.grammar` is `offset-pop`) the **alone** finding is not reported: the family's light-theme tones are pastel fills and a bare mark wears the soft foreground there; its dark theme keeps bare x, which the rule does not refuse either.
17
17
 
18
18
  A bare solid tone (`text-success` with no `bg-success-soft` on the element), the pair on its tint, a solid fill with its own ink, a solid border, ring or outline, and a tone beside a tint of another tone are not findings.
19
19
 
@@ -36,7 +36,7 @@ A bare solid tone (`text-success` with no `bg-success-soft` on the element), the
36
36
 
37
37
  **Finding code:** `FE_STYLE_TOKEN_ONLY`
38
38
 
39
- **Why:** `<file>` colours status content against the owner's pair rule (`<what>`): content on a `bg-<tone>-soft` tint paints with the solid tone, or a mark with no tint behind it paints with the soft foreground.
39
+ **Why:** `<file>` colours status content against the status pair rule (`<what>`): content on a `bg-<tone>-soft` tint paints with the solid tone, or a mark with no tint behind it paints with the soft foreground.
40
40
 
41
41
  **Fix:** Content on a background of the tone takes the pair: `bg-<tone>-soft` with `text-<tone>-soft-foreground`. A mark that stands alone, with no background of the tone, takes the tone itself: `text-<tone>`. A solid fill takes `bg-<tone>` with `text-<tone>-foreground`.
42
42
 
@@ -3,8 +3,7 @@
3
3
  Law module: `surface-card.ts`. Catalogue: R355 FE_SURFACE_CARD_KIND, R366 FE_LABEL_IN_GRID.
4
4
 
5
5
  `SurfaceCard` is one component whose `kind` the compiler checks: `body` (the default), `figures`, `list`, `accordion`
6
- and `tile`; any kind may carry typed `headers` and `footers` zones. What a kind draws is not drawn by hand around it, and where the name sits follows the kind (ruling
7
- `card-label-by-kind`): a card that heads a section has a `label` outside the material, a tile names itself inside.
6
+ and `tile`; any kind may carry typed `headers` and `footers` zones. What a kind draws is not drawn by hand around it, and where the name sits follows the kind: a card that heads a section has a `label` outside the material, a tile names itself inside.
8
7
 
9
8
  Every rule below is an error in `coreGrammarConfig`; none can be switched off or suppressed inline. It applies to product
10
9
  source; a script or a file no slot owns is not judged.
@@ -3,8 +3,8 @@
3
3
  Law module: `surface-depth.ts`. Catalogue: R340 FE_RAISED_SURFACE_IN_SURFACE.
4
4
 
5
5
  The Grammar draws one depth, raised, and no nested edge: a `SurfaceCard` inside another `SurfaceCard`, inside a
6
- `Pane surface`, or inside a `Dialog`, `Drawer`, `AlertDialog` or `Popover` is refused (owner decision: surface in surface
7
- is banned totally, dialogs and drawers included). Development throws the same refusal from the Grammar itself; this rule is
6
+ `Pane surface`, or inside a `Dialog`, `Drawer`, `AlertDialog` or `Popover` is refused: a surface
7
+ never sits in a surface, dialogs and drawers included. Development throws the same refusal from the Grammar itself; this rule is
8
8
  its same-file half and R356 closes it across files.
9
9
 
10
10
  Every rule below is an error in `coreGrammarConfig`; none can be switched off or suppressed inline. It applies to product
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@starci/eslint-grammar-core",
3
- "version": "0.24.0",
3
+ "version": "0.25.0",
4
4
  "description": "ESLint rules for the core Grammar's component, token and composition contracts.",
5
5
  "keywords": [
6
6
  "eslint",
@@ -42,7 +42,7 @@
42
42
  },
43
43
  "peerDependencies": {
44
44
  "@starci/eslint-canon-fe": "~9.16.0",
45
- "@starci/hfs": "~5.13.0",
45
+ "@starci/hfs": "~6.0.0",
46
46
  "eslint": ">=9",
47
47
  "typescript": ">=5.9"
48
48
  },
@@ -35,33 +35,25 @@ rules:
35
35
  One kit keeps one design language and one token source.
36
36
  cases:
37
37
  - id: case-1
38
- date: "2026-10-13"
39
- source: owner
40
38
  when: A feature needs a visual capability the selected Grammar lacks
41
39
  write: Extend and release the owning Grammar before consuming it; keep one visual language in the app.
42
40
  - id: case-2
43
- date: "2026-10-25"
44
- source: owner
45
41
  when: A conversation or group identity represents several people
46
42
  write: |-
47
43
  Show a composite identity based on the actual members, distinguish it from an individual,
48
44
  and follow COLLECTION-3 in knowledge/ui/composition/collection.yaml. The selected family
49
45
  owns its renderer, cell geometry, overflow treatment and fallback API.
50
46
  - id: case-3
51
- date: "2026-10-25"
52
- source: owner
53
47
  when: A person or identity needs an avatar
54
48
  write: |-
55
49
  Pass the uploaded image when one exists; otherwise the selected Grammar's identity renderer uses
56
50
  bundled DiceBear initials from the first and last words of the name, with colour seeded by the
57
- user or identity id when present and by the name otherwise (owner:avatar-default-dicebear-initials).
58
- Agent names follow the same free-text rule and add the Grammar's bot badge
59
- (owner:agent-avatar-initials-bot-badge). Apps neither declare nor import an avatar-generation
51
+ user or identity id when present and by the name otherwise.
52
+ Agent names follow the same free-text rule and add the Grammar's bot badge.
53
+ Apps neither declare nor import an avatar-generation
60
54
  library and draw no avatar visuals; the family owns the renderer API (the StarCi recipe is
61
55
  groupIdentity in its playbook).
62
56
  - id: case-4
63
- date: "2026-10-30"
64
- source: owner
65
57
  when: A screen shows generated character art (a mascot)
66
58
  write: |-
67
59
  Render it with the selected Grammar's Mascot at a step of its size scale (sm, md, lg, or hero for a split
@@ -69,8 +61,6 @@ rules:
69
61
  or illustration is framed by MediaFrame. Generated art under /images/ never renders through a bare Image or
70
62
  img (R338, R339).
71
63
  - id: case-5
72
- date: "2026-10-31"
73
- source: owner
74
64
  when: A screen places content in a PaneGrid
75
65
  write: |-
76
66
  Compose a PaneGrid of Pane elements (never a wrapper component), give each Pane PaneSection bands (never a raw
@@ -15,7 +15,7 @@ provenance:
15
15
  - knowledge/patterns/fe/index.yaml
16
16
  - knowledge/ui/composition/layout.yaml
17
17
  limitations: |-
18
- The owner will refine these rules. Static checks prove source composition only; keyboard behavior,
18
+ Static checks prove source composition only; keyboard behavior,
19
19
  scrolling, responsive visibility, rendered geometry and menu contents require inspection of the running shell.
20
20
  rules:
21
21
  - id: FE-APP-SHELL-1
@@ -77,7 +77,7 @@ rules:
77
77
  choice clear and names each supported language by its autonym. The theme control exposes its
78
78
  current setting accessibly. Notifications expose an unread count and open their own region.
79
79
  The account control shows the user's uploaded identity or the selected Grammar's bundled DiceBear
80
- initials fallback (owner:avatar-default-dicebear-initials): the first and last words of the name
80
+ initials fallback: the first and last words of the name
81
81
  supply its letters, and the user id seeds its colour, falling back to the name when no id exists.
82
82
  - id: case-2
83
83
  when: The account control opens its menu
@@ -62,8 +62,7 @@ rules:
62
62
  A field or choice control sits inside a painted surface: a card, panel, modal, drawer,
63
63
  popover or navigation region
64
64
  observe: |-
65
- Owner ruling 2026-10-25 (owner:surfacecard-always-painted; ruling:R318/case-1): the selected
66
- Grammar supplies a nested treatment that separates the control from its owning painted
65
+ The selected Grammar supplies a nested treatment that separates the control from its owning painted
67
66
  surface, and every card surface paints a face. A control placed outside a surface uses the
68
67
  treatment for that layer. Unpainted grouping containers pass their parent's context through.
69
68
  Applications compose the published surface and control and omit the field variant, allowing