observability: ui-kit-term-tokens — the six --oc-term-* presentation tokens at the base layer #805

Closed
opened 2026-08-25 10:58:27 +00:00 by matou-build-agent · 2 comments

Parent

Feature spec: #791 — control-panel observability child spec: logs (P10) (DDR 0203).
Design ticket #760; slice-map fan-in #770; wayfinder map #7.
Slice ui-kit-term-tokens of docs/slices/observability.yaml; covers spec #791 stories 31–34 (token half).

What to build

The terminal vocabulary ports into the kit as six presentation tokens declared once at the
base layer :root: --oc-term-bg (#253D39), --oc-term-ink (#E9F0EE), --oc-term-dim
(#9AC7BF), --oc-term-ok (#9fd6ae), --oc-term-warn (#ffd9a0) and --oc-term-err
(#f0a49c).

These are product-language tokens, never community brand (the ADR 0122 split): the palette
seam is untouched and a community's brand kit cannot re-point them. The terminal panel is
deliberately dark in both themes, so only --oc-term-bg ever carries a theme variant — the
inner five need none.

A leaf root: consumed by ui-kit-logs-screen and by nothing else in the arc.

Acceptance criteria

  • (story 38) Given the kit's base layer :root, then it declares --oc-term-bg, --oc-term-ink, --oc-term-dim, --oc-term-ok, --oc-term-warn and --oc-term-err with the specified values.
  • (story 38) Given the ADR 0122 token split, then the theming-contract assertion proves these are product-language presentation tokens and not community-brand tokens — the palette seam is unchanged and a brand kit cannot re-point them.
  • (story 38) Given both themes, then the panel is dark in each and only --oc-term-bg carries a theme variant.
  • (story 9) Given any component that later renders terminal colour, then the theming contract's no-raw-hex rule covers it — the tokens are the only expression.

Blocked by

  • shell:ui-kit-mount-slot-contract (#29 — done, satisfied)

Task manifest

task: observability:ui-kit-term-tokens
interface: the kit base layer declares six `--oc-term-*` presentation tokens (bg / ink / dim / ok / warn
  / err), plus the theming-contract assertion that they are product language and not community brand
seam: 'the existing theming-contract tests (prior art `baseLayer.test.ts`, `themingContract.test.ts`):
  the six tokens exist at `:root`, are product-language not brand, the palette seam is untouched, and
  only `--oc-term-bg` varies by theme'
acceptance:
- given: the kit's base layer
  when: '`:root` is read'
  then: the six `--oc-term-*` tokens are declared with their specified values
- given: a community brand kit
  when: it re-points palette tokens
  then: the `--oc-term-*` tokens are unaffected — they are product language, not brand
- given: both themes
  when: the tokens are resolved
  then: only `--oc-term-bg` carries a theme variant
depends_on:
- shell:ui-kit-mount-slot-contract
out_of_scope:
- the dark-mode `--oc-term-bg` re-point to `#1c2f2b` — it rides the dark-mode slice (ADR 0122)
- the logs screen itself (`ui-kit-logs-screen`)
- any brand/palette seam change
needs_human_decision: []

Emitted by /to-tickets over docs/slices/observability.yaml in an unattended session under ADR 0174 (two-way-door posture — Ben's veto is asynchronous, never blocking). Advances #797.

## Parent Feature spec: **#791** — control-panel observability child spec: logs (P10) (DDR 0203). Design ticket #760; slice-map fan-in **#770**; wayfinder map #7. Slice `ui-kit-term-tokens` of `docs/slices/observability.yaml`; covers spec #791 stories 31–34 (token half). ## What to build The terminal vocabulary ports into the kit as **six presentation tokens** declared once at the base layer `:root`: `--oc-term-bg` (`#253D39`), `--oc-term-ink` (`#E9F0EE`), `--oc-term-dim` (`#9AC7BF`), `--oc-term-ok` (`#9fd6ae`), `--oc-term-warn` (`#ffd9a0`) and `--oc-term-err` (`#f0a49c`). These are **product-language tokens, never community brand** (the ADR 0122 split): the palette seam is untouched and a community's brand kit cannot re-point them. The terminal panel is deliberately dark in **both** themes, so only `--oc-term-bg` ever carries a theme variant — the inner five need none. A leaf root: consumed by `ui-kit-logs-screen` and by nothing else in the arc. ## Acceptance criteria - [ ] (story 38) Given the kit's base layer `:root`, then it declares `--oc-term-bg`, `--oc-term-ink`, `--oc-term-dim`, `--oc-term-ok`, `--oc-term-warn` and `--oc-term-err` with the specified values. - [ ] (story 38) Given the ADR 0122 token split, then the theming-contract assertion proves these are product-language presentation tokens and **not** community-brand tokens — the palette seam is unchanged and a brand kit cannot re-point them. - [ ] (story 38) Given both themes, then the panel is dark in each and only `--oc-term-bg` carries a theme variant. - [ ] (story 9) Given any component that later renders terminal colour, then the theming contract's no-raw-hex rule covers it — the tokens are the only expression. ## Blocked by - `shell:ui-kit-mount-slot-contract` (#29 — done, satisfied) ## Task manifest ```yaml task: observability:ui-kit-term-tokens interface: the kit base layer declares six `--oc-term-*` presentation tokens (bg / ink / dim / ok / warn / err), plus the theming-contract assertion that they are product language and not community brand seam: 'the existing theming-contract tests (prior art `baseLayer.test.ts`, `themingContract.test.ts`): the six tokens exist at `:root`, are product-language not brand, the palette seam is untouched, and only `--oc-term-bg` varies by theme' acceptance: - given: the kit's base layer when: '`:root` is read' then: the six `--oc-term-*` tokens are declared with their specified values - given: a community brand kit when: it re-points palette tokens then: the `--oc-term-*` tokens are unaffected — they are product language, not brand - given: both themes when: the tokens are resolved then: only `--oc-term-bg` carries a theme variant depends_on: - shell:ui-kit-mount-slot-contract out_of_scope: - the dark-mode `--oc-term-bg` re-point to `#1c2f2b` — it rides the dark-mode slice (ADR 0122) - the logs screen itself (`ui-kit-logs-screen`) - any brand/palette seam change needs_human_decision: [] ``` --- *Emitted by `/to-tickets` over `docs/slices/observability.yaml` in an unattended session under ADR 0174 (two-way-door posture — Ben's veto is asynchronous, never blocking). Advances #797.*
Author
Member

swarm-claim host=elitebook-distributed-server-03 run=10069
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=10069 (automated multi-host claim — lowest live claim id works this ticket)
Author
Member

close-report for #805 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 805,
  "status": "success",
  "commits": [
    "fed375dc2db62145577d3e13ad78abd878a1eed7"
  ],
  "changed_files": [
    "STATUS.md",
    "packages/ui-kit/src/baseLayer.css",
    "packages/ui-kit/src/brandTokens.ts",
    "packages/ui-kit/src/index.ts",
    "packages/ui-kit/tests/unit/termTokens.test.ts"
  ],
  "tests": [
    {
      "command": "CI=true pnpm --filter @idss/ui-kit exec vitest run",
      "exit_code": 0
    },
    {
      "command": "CI=true pnpm --filter @idss/ui-kit exec vue-tsc -p tsconfig.json",
      "exit_code": 0
    },
    {
      "command": "CI=true pnpm --filter ./app exec vitest run tests/unit/packagedBoot.test.ts",
      "exit_code": 0
    }
  ],
  "criteria": {
    "story 38 — :root declares the six --oc-term-* with the specified values": "packages/ui-kit/src/baseLayer.css :root declares --oc-term-bg #253d39 / --oc-term-ink #e9f0ee / --oc-term-dim #9ac7bf / --oc-term-ok #9fd6ae / --oc-term-warn #ffd9a0 / --oc-term-err #f0a49c; asserted by termTokens.test.ts 'declares all six with their specified values' and baseLayer.test.ts's OC_PRESENTATION_VARS loop",
    "story 38 — theming contract proves product-language, not community brand; palette seam unchanged, brand kit cannot re-point": "OC_TERM_VARS added to OC_PRESENTATION_VARS and kept disjoint from OC_COLOR_VARS and absent from DEFAULT_BRAND_TOKENS (brandTokens.ts); termTokens.test.ts 'no term token is a seam-compiled brand palette var' + 'a compiled brand kit carries no term token, so it cannot re-point one'",
    "story 38 — dark in both themes, only --oc-term-bg carries a theme variant": "OC_TERM_THEMED_VAR = '--oc-term-bg' (brandTokens.ts); termTokens.test.ts 'the panel ground is the dark Teal-Dark value', 'names --oc-term-bg as the sole themed term token', 'declares each token once — no inner-five re-point rides this slice'",
    "story 9 — no-raw-hex rule covers any surface rendering terminal colour; tokens are the only expression": "termTokens.test.ts 'flags a raw term hex in a <style> block' + 'leaves a term surface styled from the tokens clean', driving the repo eslint-rules/no-hex-color.mjs the way themingContract.test.ts does"
  },
  "summary": "Declared the six --oc-term-* presentation tokens once at the kit base-layer :root as product language (not community brand), with only --oc-term-bg theme-variable, and the seam tests proving the split and the no-raw-hex coverage.",
  "blockers": []
}
**close-report** for #805 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 805, "status": "success", "commits": [ "fed375dc2db62145577d3e13ad78abd878a1eed7" ], "changed_files": [ "STATUS.md", "packages/ui-kit/src/baseLayer.css", "packages/ui-kit/src/brandTokens.ts", "packages/ui-kit/src/index.ts", "packages/ui-kit/tests/unit/termTokens.test.ts" ], "tests": [ { "command": "CI=true pnpm --filter @idss/ui-kit exec vitest run", "exit_code": 0 }, { "command": "CI=true pnpm --filter @idss/ui-kit exec vue-tsc -p tsconfig.json", "exit_code": 0 }, { "command": "CI=true pnpm --filter ./app exec vitest run tests/unit/packagedBoot.test.ts", "exit_code": 0 } ], "criteria": { "story 38 — :root declares the six --oc-term-* with the specified values": "packages/ui-kit/src/baseLayer.css :root declares --oc-term-bg #253d39 / --oc-term-ink #e9f0ee / --oc-term-dim #9ac7bf / --oc-term-ok #9fd6ae / --oc-term-warn #ffd9a0 / --oc-term-err #f0a49c; asserted by termTokens.test.ts 'declares all six with their specified values' and baseLayer.test.ts's OC_PRESENTATION_VARS loop", "story 38 — theming contract proves product-language, not community brand; palette seam unchanged, brand kit cannot re-point": "OC_TERM_VARS added to OC_PRESENTATION_VARS and kept disjoint from OC_COLOR_VARS and absent from DEFAULT_BRAND_TOKENS (brandTokens.ts); termTokens.test.ts 'no term token is a seam-compiled brand palette var' + 'a compiled brand kit carries no term token, so it cannot re-point one'", "story 38 — dark in both themes, only --oc-term-bg carries a theme variant": "OC_TERM_THEMED_VAR = '--oc-term-bg' (brandTokens.ts); termTokens.test.ts 'the panel ground is the dark Teal-Dark value', 'names --oc-term-bg as the sole themed term token', 'declares each token once — no inner-five re-point rides this slice'", "story 9 — no-raw-hex rule covers any surface rendering terminal colour; tokens are the only expression": "termTokens.test.ts 'flags a raw term hex in a <style> block' + 'leaves a term surface styled from the tokens clean', driving the repo eslint-rules/no-hex-color.mjs the way themingContract.test.ts does" }, "summary": "Declared the six --oc-term-* presentation tokens once at the kit base-layer :root as product language (not community brand), with only --oc-term-bg theme-variable, and the seam tests proving the split and the no-raw-hex coverage.", "blockers": [] } ``` </details>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Matou/idss#805
No description provided.