Skip to content

feat(spec, ui): an object takes a colour from a fixed palette, and the navigation draws it as a white glyph on a square of that colour - #36012

Merged
objectstack-fleet[bot] merged 6 commits into
mainfrom
claude/project-thread-4obpun
Nov 21, 2026
Merged

objectstack-fleet[bot] merged 6 commits into
mainfrom
claude/project-thread-4obpun

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Sales · project thread

repo:objectstack#1 · os-sales · session_01L6bhgT9PKAmy86XfbYbZtW

Part of #35985
Clause-②: yes (widening)
Metadata-protocol: added
Skills-docs: follow-up — PR 3 of #35985 (domain:skills) names the nine colour names in skills/objectstack-data and the navigation rule in skills/objectstack-ui.

维护者速读

  • 对象多了一个「颜色」,只能从 9 个固定颜色里选(灰、蓝、青、绿、琥珀、橙、红、粉、紫),不能填色值;填 #ff0000 会被拒绝,报错里列出这 9 个名字。没设颜色的对象是灰色。
  • 左侧菜单、应用首页的菜单清单和手机上的菜单里,指向对象的每一项都变成「彩色圆角小方块 + 白色图标」;仪表盘、页面、链接这些菜单项还是原来的线条图标。设计器里给对象选图标时,选择器多了 9 个色块,网格里的图标按选中的颜色预览。
  • 这是卡 对象加颜色:从固定的一小组色板里选,图标画成彩色圆角小方块里的白色图标,菜单、标题、关联标签处处同一个样子 #35985 的第 1 个 PR(共 3 个):列表标题、记录页头部、快捷面板、关联标签等其余位置在第 2 个 PR 换;技能文档在第 3 个。
  • 风险:已有应用的对象全部从灰色线条变成灰色小方块(这是卡上要的样子);出问题只影响图标显示,不动数据,撤回即恢复。AI 搭建方案里也加了同名颜色字段并要求每个对象不同颜色,但把方案落成对象的那一步在 AI 服务里(不在本仓库),那边要把 color 像 icon 一样带过去。

What changes

  • ObjectSchema.color (new, optional, packages/spec). z.enum(OBJECT_COLORS) over nine hue names: gray, blue, teal, green, amber, orange, red, pink, purple. The names reuse the existing colour-variant hues (blue, teal, orange, purple) and their aliases (green, red, amber), plus gray and pink; the status names (success, danger, …) are deliberately absent. Declared once in src/data/object-icon.ts beside icon, exported as OBJECT_COLORS and ObjectColor from @objectstack/spec/data. Absent draws gray; nothing to migrate.
  • BlueprintObjectSchema.color. The same leaf (identity-pinned), required-but-nullable on SolutionBlueprintStrictSchema like icon. Its rule tells the model to colour every object and to give each object of one solution a different colour while the palette lasts. The strict-mirror fixtures in solution-blueprint.test.ts gain color: null.
  • ObjectIconTile (new, @object-ui/components). A white glyph on a rounded square of a palette colour, four sizes (16/20/24/32px). Colours are static Tailwind utilities per name, one light and one dark: value, no inline colour (ui/AGENTS.md Styling). Corner radii are pixel values, because the theme's rounded-* steps follow --radius and turned the 24px phone tile into a circle in the browser check. A host that already resolved the glyph (the navigation's resolveIcon) passes it as glyph, so the nav keeps exactly the glyph it drew before, generic one included.
  • Navigation. NavigationRenderer draws every object entry as the object's tile: glyph from resolveNavItemIcon (the entry's own icon, else the object's), colour from the new resolveTargetColor (NavTargetColorResolver). Other entry types keep the line icon. The console answers it with useNavTargetColor (same metadata-cache read as useNavTargetIcon), wired in UnifiedSidebar and in the app-home menu block nav-menu-renderer.tsx (desktop and phone).
  • Designer. IconPickerWidget takes optional tileColor / onTileColorChange; with them the dialog shows the nine swatches (a named radiogroup) and the trigger and every grid cell draw the tile in the chosen colour. ObjectDefaultInspector passes them (row label "Icon and color"); every other picker host (pages, apps, nav entries) is unchanged.
  • Generic object form. object.form.ts gains a color row (widget: 'color-picker', swatches derived from the enum), required by metadata-form-zod-reconciliation. Label and help text are translated in all ten locales; the two derived count pins move (+2 open leaves, +1 zh-CN label) with history lines. color-variant-field.tsx paints gray and pink swatches from a separate map, kept out of COLOR_VARIANTS so the alias rule there still holds.
  • Liveness. liveness/object.json records color as live, anchored on NavigationItemRenderer, useNavTargetColor, ObjectIconTile and ObjectDefaultInspector.

Surfaces this PR changes (card asks for the list)

Place File
Left sidebar, object entries (top level and inside groups) ui/packages/layout/src/NavigationRenderer.tsx, ui/packages/app-shell/src/layout/UnifiedSidebar.tsx
App-home menu list, desktop and phone ui/packages/app-shell/src/views/nav-menu-renderer.tsx
Designer: object Basics, icon + colour picker ui/packages/app-shell/src/views/metadata-admin/widgets.tsx, inspectors/ObjectDefaultInspector.tsx
Generic object form color row packages/spec/src/data/object.form.ts

PR 2 of #35985 switches the remaining places (list title, record header, record drawer, related lists, command palette and search, home recents, reference cells and hover card, designer object lists, approval page). It waits for #35918 (objectViewPageHeader.tsx).

Verification

Read first, by risk:

  1. packages/spec/src/data/object-icon.ts and the two blueprint keys: the contract face (L2).
  2. ui/packages/components/src/custom/object-icon-tile.tsx: palette → class map and the contrast pin.
  3. ui/packages/layout/src/NavigationRenderer.tsx: the leaf-row branch.

Tests added: packages/spec/src/data/object-color.test.ts (palette, refusal names all nine for #ff0000, Blue, success, default, ''), the blueprint object \color`block insolution-blueprint.test.ts, object-icon-tile-35985.test.tsx(one light + one dark class per name, white-glyph contrast ≥ 3:1 for every class, gray fallback, host glyph),NavigationRenderer.objectTile-35985.test.tsx(object rows tiles in their colour, in groups, authored icon keeps the object's colour, gray without colour/resolver, dashboard control),ObjectDefaultInspector.iconColor-35985.test.tsx` (swatches, preview, patch, control picker without colour). Existing tests adjusted: the inspector row label, the mobile tab-bar test's label selector (an object row's first span is now its tile).

White-glyph contrast (light / dark class): gray 4.83/4.83, blue 5.17/3.68, teal 3.74, green 3.30, amber 3.19, orange 3.56, red 4.83/3.76, pink 4.60/3.53, purple 5.38/3.96.

Browser evidence (Chromium, showcase app with nine objects coloured locally for the shot, not committed): light and dark sidebar, phone-width app-home menu, files after-sidebar-light*.png, after-sidebar-dark*.png, after-phone-app-home*.png in the project folder build-seat1/35985/.

Local gates
  • pnpm --filter @objectstack/spec test: 868 files; the one red on the first head (metadata-form-zod-reconciliation: color unauthorable in the form) is fixed by the form row; the affected files re-run green (9762 tests in src/system src/data src/ai).
  • pnpm --filter @objectstack/spec check:generated: 14 of 14 current after the merge of main.
  • pnpm --filter @objectstack/platform-objects test translations: 587 passed; node scripts/check-i18n-bundles.mjs: in sync.
  • turbo run type-check for @object-ui/components, @object-ui/layout, @object-ui/app-shell: exit 0.
  • vitest over ui/packages/components tile test, ui/packages/layout/src/__tests__, metadata-admin inspector / colour-variant / nav-menu files: 57 files, 445 tests passed.
  • pnpm --dir ui run check:i18n-keys, check:i18n-drift, check:spec-symbols, check:icon-record-names: green.
  • eslint on every changed file: 0 errors.
  • dispatch-gates --commands derives 122 commands; the rest are left to CI.

🤖 Generated with Claude Code

https://claude.ai/code/session_01L6bhgT9PKAmy86XfbYbZtW

…e navigation draws it as a white glyph on a square of that colour

- `ObjectSchema.color` and `BlueprintObjectSchema.color`: one leaf, a closed
  nine-name palette (`OBJECT_COLORS`); a free value is refused with the names
  listed.
- `ObjectIconTile` in `@object-ui/components`.
- Sidebar, app-home and phone menus draw object entries as tiles
  (`resolveTargetColor` / `useNavTargetColor`).
- Object designer: the icon picker carries the palette and previews tiles;
  the generic object form gains a `color` swatch row (10 locales).

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgT9PKAmy86XfbYbZtW
@github-actions github-actions Bot added size/l documentation Improvements or additions to documentation protocol:ai protocol:data tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 21, 2026
@github-actions

github-actions Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 3 package(s): @objectstack/metadata-core, @objectstack/platform-objects, @objectstack/spec, touching 8 documentable anchor(s). ⚠️ 7 changed file(s) yielded no anchor (packages/spec/api-surface/data.json, packages/spec/authorable-surface/ai.json, packages/spec/authorable-surface/data.json, …), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

1 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:

  • content/docs/concepts/metadata-driven.mdx (via ObjectSchemaBase (symbol, a top-level const object))
What this run could not see
  • 7 changed file(s) yielded no anchor (packages/spec/api-surface/data.json, packages/spec/authorable-surface/ai.json, packages/spec/authorable-surface/data.json, …) — pages documenting those are invisible to this run
  • 3 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 65 of 247 client-bound route-ledger rows — the other 182 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 182: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 123 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 174 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json 9b3227fe235beffbca5b22370af827a4a016deef → packageMentionDocs.

Which tree this was computed on

This run read content/docs from ddeda5ef4b8b7b09076a704efcd556854e1cf0ee — the merge of head 0fbfc45244563d5a4acd2e68cf48599b3ca83c3a into base 9b3227fe235beffbca5b22370af827a4a016deef, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin ddeda5ef4b8b7b09076a704efcd556854e1cf0ee && git checkout ddeda5ef4b8b7b09076a704efcd556854e1cf0ee
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 9b3227fe235beffbca5b22370af827a4a016deef 0fbfc45244563d5a4acd2e68cf48599b3ca83c3a && git checkout -B drift-repro 9b3227fe235beffbca5b22370af827a4a016deef && git merge --no-ff 0fbfc45244563d5a4acd2e68cf48599b3ca83c3a

node scripts/docs-audit/affected-docs.mjs --json 9b3227fe235beffbca5b22370af827a4a016deef

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

Advisory only, and a precision-first one (#9192): a page is listed because it names a
symbol, wire route or SDK method this diff touched — not because it mentions a changed
package. Each row says which anchor put it there, so a wrong row is reportable rather than
merely annoying. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs 9b3227fe235beffbca5b22370af827a4a016deef → pass the list as
args.docs, on the commit named under Which tree this was computed on.

…he object inspector tests

check:test-source-alias: the three ObjectDefaultInspector test files this
change edits reach celAuthoring's dynamic @objectstack/formula and
@objectstack/lint imports through the icon picker; a module-top side-effect
import moves that first load out of a case's clock.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgT9PKAmy86XfbYbZtW
…at it carries color

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgT9PKAmy86XfbYbZtW
…e table

A palette name names no field, so the FLS scrub keeps it as is.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgT9PKAmy86XfbYbZtW
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Posted 2026-11-21T07:47Z. The brief handed to the isolated reviewer at CONTRACT_REVIEW_TIER for PR #36012 (schema face: packages/spec paths). The record follows as its own comment.

Contract review brief — PR #36012 @ 834205699cf0979a6652aa3bc2de8137b8125c52 (card #35985)

You review at CONTRACT_REVIEW_TIER. Render ONE ## Contract review record on this head — its shape is
node scripts/pm/record-recognisers.mjs --template --paths packages/spec/src/ai/solution-blueprint.zod.ts packages/spec/src/data/index.ts packages/spec/src/data/object-icon.ts packages/spec/src/data/object.form.ts packages/spec/src/data/object.zod.ts — with a PASS or FAIL verdict, and post it as ONE comment
on the PR or its card.

Inputs — these and nothing else:
· card #35985: its body and EVERY comment (rulings and earlier records included)
· PR #36012: its body, its file list, and the net diff against main at 834205699cf0979a6652aa3bc2de8137b8125c52
· the check-runs on 834205699cf0979a6652aa3bc2de8137b8125c52: their conclusions ARE the gate verdicts
⛔ Not the dispatch order, ⛔ not the dispatching seat's own conclusions — this brief is adversarial by design.

Scope — the paths reviewFace returns as hits on this PR's file list: packages/spec/src/ai/solution-blueprint.zod.ts, packages/spec/src/data/index.ts, packages/spec/src/data/object-icon.ts, packages/spec/src/data/object.form.ts, packages/spec/src/data/object.zod.ts;
plus every file IN THIS DIFF that directly implements or enforces them — the gate that enforces a rule, the code
a jsdoc or schema line describes, the validator a skill teaches — reviewed for agreement with the contract.
Widen it freely, ⛔ never below hits; the record's Scope: line names the implementing files apart from hits.
The rest of the diff (tests, unrelated modules, lockfiles, generated output, changesets) is the lane seat's
ACCEPT at TIER_DEFAULT, exactly as a standalone PR of those files.
④ judges the hits files and those implementing files ONLY:
lockfiles, generated output, changesets and prose elsewhere in the PR are not reviewed;
code outside the diff is READ to judge them, never reviewed.

⛔ READ-ONLY. No worktree, no checkout, no build, no test run, no gate re-run, no ablation: the check-runs
on the head already answered every derived gate family, and a local run costs more than it returns.
If ONE probe is unavoidable, the record's Local-runs: line says probe — REASON; otherwise none.
Scratch space is /tmp/claude-0/-home-user/3d3cbaf6-4903-5fed-92d4-c2b94a45e868/scratchpad/pr-36012/ alone; nothing there you did not write this round is read.

Judge, in the record's own sections:
① Derived judgments — every accept-set and public-surface change the diff implies, each named right or wrong.
② Semver level — the changeset (or skip-changeset) matches what the diff publishes, and the Clause-②: line.
③ Boundary flags — every dev flag and every open_questions entry answered, or escalated.
On every face, SQL push-down: a new id materialisation or in-app join where SQL could push down is a
finding unless a reason is given (AGENTS.md, Prime Directive 5: SQL first).
④ Design judgment — for EVERY hits file: does the change hold against the code it cites and the
scenario it is accepted against? A skill file against the card's eval prompt and the spec it teaches
on main; a schema file against the ruling or ADR it implements and its first consumer; an ADR
against its first consumer and its execution plan. For EVERY implementing file in the diff: does the
code agree with the contract, sentence by sentence? Read the cited code in the live tree, and try to
break the design.
Grade each finding must-fix, should-fix or nit — a nit has no effect on correctness or the contract.
A must-fix is a FAIL; a must-fix or should-fix earns a delta review of its fix; nits alone end the round.
Spell a must-fix or should-fix with its id and grade, S1 (should-fix) — …, and a clean round as
No must-fix, no should-fix.: the queue guard reads a graded finding as OPEN on this head and
refuses the record; the delta record names those it closes by id alone, S1: closed.
A nit is fixed only on the prose faces, or left as an accepted deviation or a follow-up card: a fix
anywhere else moves the head, and this record no longer covers it.
⛔ Judge the tree, never the PR body's account of it.
Sign Implemented-by: with the dev's branch and Reviewed-by: with your session id — the value is the FIRST
thing after each colon.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUmopshYqDCrYekUj4

席位核对 — REWORK (text only) (L1-b)

Head-sha: 8342056 · read 2026-11-21T07:48Z

维护者速读

  • 内容本身可以合:
    • 对象可以从 9 种固定颜色里选一种。侧栏、应用首页菜单和手机菜单里的对象改成「彩色圆角方块 + 白色图标」,没设颜色的显示灰色。
    • 设计器里选图标时可以一起选颜色。
    • AI 生成方案时也会给每个对象配不同的颜色。
    • 不能填任意色值,所以每种颜色在浅色和深色主题下都清楚可辨。
  • 要返工的只有发版记录:@objectstack/platform-objects 这个包的 10 种语言表单文字(新增的「颜色」一栏)改了,但发版说明里没列这个包,发版时它不会带上新版本号。补一行就行,代码不用改。
  • 列表头、记录头、搜索等其他位置的图标在第 2 个 PR 改,AI 说明文字在第 3 个 PR 改。

Must-fix

  • M1 — the changeset misses @objectstack/platform-objects. This diff changes 13 files in that published package. The 10 *.metadata-forms.generated.ts packs ship the new color row's label and help text, so consumers get new form text with no version bump. The other two files there are the count pins. Add '@objectstack/platform-objects': minor (it ships a new row of an added key, matching spec's level), with one sentence on what it ships. l1-face flags it. The @objectstack/metadata-protocol flag is test-only (the property-count pin), so it needs no entry.

Should-fix

None.

Nits (optional)

  • N1: the object-icon.ts header still says the leaf "does not join the package's published exports". That was true of OBJECT_ICON_SCHEMA, but OBJECT_COLORS / ObjectColor are now exported from @objectstack/spec/data (the changeset says so). Add one line saying which names are exported.
  • N2: NavigationRenderer (published @object-ui/layout) now draws every object entry as a tile, even for a host that passes no resolveTargetColor. Such a host gets gray tiles where it had line icons. The changeset's "Navigation draws objects as tiles" covers it, and the bump is minor. Naming the no-resolver case (gray) in that bullet would tell other hosts what they will see.

Checked

  • l1-face at 83420569: one flag (M1 above). Otherwise:
    • CI is complete at this head: 61 success, 9 expected skip, 0 failed, mergeable clean.
    • Part of #35985 is right: there are two more PRs.
    • The declarations read Clause-②: yes (widening) · Metadata-protocol: added, and spec/components/layout/app-shell/i18n are at minor.
    • Skills-docs: follow-up points to PR 3.
  • Spec:
    • OBJECT_COLOR_SCHEMA is a closed z.enum of nine names, optional, and declared once beside icon.
    • ObjectSchema and BlueprintObjectSchema share the leaf. The strict mirror uses .unwrap().nullable(), the same pattern as icon.
    • #ff0000 is refused and the refusal lists the names (pinned).
    • The FLS reference table classifies color: keep.
    • The liveness entry is live, with in-repo evidence for both a reader (navigation) and a writer (inspector).
    • The generated references and baselines (api-surface, authorable-surface, export-origins, state-counts) moved with it, and their gates are green.
  • Form row: the 10 locale packs carry real text (read zh-CN), and the two echo-decision count pins are updated. That is the usual cost of a new form row.
  • ObjectIconTile: static palette utilities with explicit dark: variants, no inline colour (the styling rule holds). White on each square is ≥3:1, which is right for a glyph (non-text contrast), and it is pinned for both themes. objectColorOrDefault maps anything off-palette to gray. aria-hidden applies unless a title is given.
  • Navigation: the sidebar, the app-home menu and the phone menu use one tile for object entries. Dashboards, pages and links keep line icons. useNavTargetColor reads the colour from the same metadata cache useNavTargetIcon reads, so there is no new request.
  • The blueprint's applier sits outside this repo. Carrying color into the built object there is the opening PR 3 names, so nothing in-repo drops it.

Owed

  • A text-only head for M1. I'll read only the changeset delta.
  • Fable L2 is the seat's. This L1 does not replace it.

…t without a colour resolver sees

The object-icon leaf header now says which of its names are exported.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgT9PKAmy86XfbYbZtW
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 834205699cf0979a6652aa3bc2de8137b8125c52
Local-runs: none
Scope: packages/spec/src/ai/solution-blueprint.zod.ts, packages/spec/src/data/index.ts, packages/spec/src/data/object-icon.ts, packages/spec/src/data/object.form.ts, packages/spec/src/data/object.zod.ts + ui/packages/components/src/custom/object-icon-tile.tsx, ui/packages/components/src/custom/index.ts, ui/packages/layout/src/NavigationRenderer.tsx, ui/packages/app-shell/src/hooks/useNavTargetIcon.ts, ui/packages/app-shell/src/layout/UnifiedSidebar.tsx, ui/packages/app-shell/src/views/nav-menu-renderer.tsx, ui/packages/app-shell/src/views/metadata-admin/widgets.tsx, ui/packages/app-shell/src/views/metadata-admin/color-variant-field.tsx, ui/packages/app-shell/src/views/metadata-admin/inspectors/ObjectDefaultInspector.tsx, packages/metadata-core/src/object-schema-fls-references.ts, packages/spec/liveness/object.json

Inputs read: card #35985 (body, triage comment, claim comment; no ruling and no earlier record on it), the PR body, the 50-file list, the net diff origin/main...pr-36012 at the head above, and the head's check-runs. Every check-run that ran concluded success (Test Core 10/10, Test UI 16/16, both type checks, Lint and repo gates, Spec property liveness, Check Changeset, PR-body guards, Governed Surface Queue Guard, Build Docs, Build and E2E UI, Live E2E UI, Dogfood Regression Gate); the rest are skipped opt-in or schedule jobs. Nothing was built or run locally. The rest of the diff (tests, generated translations and baselines, docs reference pages, i18n bundles, the changeset prose) is the lane seat's ACCEPT at TIER_DEFAULT.

① Derived judgments

② Semver level

Clause-②: yes (widening). The PR body and the changeset both carry it, with Metadata-protocol: added, and they agree with the diff: a new authorable key is added, and added takes at least minor on the packages it moves. The changeset gives @objectstack/spec minor, @object-ui/components, @object-ui/layout, @object-ui/app-shell and @object-ui/i18n minor, and @objectstack/metadata-core patch. That matches what publishes: new exports and a new key in spec, new exports in components and layout, new props and a hook in app-shell, new keys in i18n, one table row in metadata-core. Nothing is removed, renamed or tombstoned, so no ADR-0087 disposition and no migration entry are owed. Check Changeset and the PR-body guards are green on the head.

Two remarks, neither changes the level: @objectstack/platform-objects ships the regenerated form translations and is not listed, but it sits in the fixed group with @objectstack/spec and takes the minor with it (earlier changesets are mixed on listing it); and nit N3 below.

③ Boundary flags

  • Claim flag 1, "liveness needs a live reader, so PR 1 also switches the shared navigation path": ANSWERED, holds. liveness/object.json anchors color on NavigationItemRenderer, useNavTargetColor, ObjectIconTile and ObjectDefaultInspector; all four exist in the tree at this head and read or write the key as the evidence line says. Spec property liveness is green.
  • Claim flag 2, "the step that turns a blueprint into objects is not in this repository": ANSWERED, holds. No file under packages/ or ui/packages/ outside packages/spec reads a blueprint object's icon or builds an object from one; the lenient parse carries color through and the test builds an ObjectSchema body from it. The end-to-end acceptance line ("AI builds three objects, three colours") therefore cannot be closed in this repository and stays open on the card for PR 3 and the AI service; the claim says so and the line is a coordinator addition, not the maintainer's words.
  • Claim flag 3, palette left to the dev: ANSWERED. The nine names are listed on the card in the claim comment, as the card asks, and the status names are kept out for a stated reason.
  • Claim flag 4, branch name claude/project-thread-4obpun instead of claude/issue-N-slug: not a contract question; left to the seat, which recorded it as a platform exception.
  • PR-body flag, Skills-docs: follow-up (PR 3): ACCEPTED for this head. No skill on main restates the object key list in a way the new key makes false; an additive key not yet taught is a gap, not a wrong statement. The card's "技能同步" line stays open until PR 3.
  • PR-body flag, existing apps change from gray line icons to gray tiles in navigation: ANSWERED; it is the card's second acceptance line, limited here to navigation, the rest in PR 2.
  • open_questions: none stated on the card or in the PR body.
  • SQL push-down (Prime Directive 5): no finding. The diff adds no query, no id materialisation and no in-app join; useNavTargetColor reads the object definition from the metadata cache the icon resolver already reads, by name.

④ Design judgment

No must-fix, no should-fix.

Per hits file:

  • packages/spec/src/data/object-icon.ts. Holds. One tuple, one type, one leaf; the leaf's describe lists the names from the tuple, so the docs and the refusal cannot drift from the enum. Against its first consumer: ObjectIconTile builds its palette set and its class map from OBJECT_COLORS (Record keyed by ObjectColor, so a tenth name fails type-check until it has a class), and falls back to gray for absent or unknown, which is what "Omit to draw the neutral gray" promises. Tried to break it: a stored hex from before the key existed cannot exist (the key was refused); a name from a newer spec draws gray instead of crashing; gray first in the tuple is pinned by test.
  • packages/spec/src/data/object.zod.ts. Holds. One line beside icon, the shared leaf, no refinement and no default, so parse output for existing objects is unchanged.
  • packages/spec/src/data/index.ts. Holds. A named re-export of the tuple and the type only.
  • packages/spec/src/data/object.form.ts. Holds against the code it cites. The comment says the swatch row reads its names off the closed enum: resolveRegisteredWidget sends color-picker through resolveColorWidgetKey, which reads schema.enum and so lands on the swatch radiogroup, not the free hex input. A free value therefore cannot be typed in the generic form either.
  • packages/spec/src/ai/solution-blueprint.zod.ts. Holds. Lenient and strict both take the leaf by reference (identity pinned by test), in the two spellings of "optional" the file uses everywhere else; the rule text is shared by both sides, and the strict one adds only the null meaning. The rule states the card's item 6 (a colour on every object, different while the palette lasts).

Per implementing file:

  • object-icon-tile.tsx: agrees. Name to class, static class strings, gray fallback, host glyph passthrough. index.ts exports match the changeset.
  • NavigationRenderer.tsx: agrees with its own jsdoc and the claim's scope sentence. Only type: 'object' entries with an objectName take the tile; the glyph is the entry's own icon else the object's, the colour is always the object's; other entry types keep the line icon. The resolver is threaded through groups.
  • useNavTargetIcon.ts, UnifiedSidebar.tsx, nav-menu-renderer.tsx: agree. Same read as the icon resolver; any non-palette string is narrowed to gray by the tile.
  • widgets.tsx, ObjectDefaultInspector.tsx: agree. The swatches iterate OBJECT_COLORS; the colour half is on only when the host passes onTileColorChange, so every other picker host is unchanged; a colour is patched only on a click.
  • color-variant-field.tsx: agrees. gray and pink are added to the CSS lookup only, spread first so no existing token changes value, and stay out of COLOR_VARIANTS.
  • object-schema-fls-references.ts, liveness/object.json: agree, as in ① and ③.

Nits (no effect on correctness or the contract; accepted deviations unless noted):

  • N1 (nit) — OBJECT_COLOR_SCHEMA's describe, which is published on the reference pages, says "one object looks the same wherever its icon appears". At this head that is true in navigation and the designer only; list and record headers, search and chips still draw the line icon until PR 2 of this card. The liveness note states the limit correctly. Closed by PR 2 landing, no change needed here.
  • N2 (nit) — the header of object-icon.ts still says the module is "outside the data barrel"; index.ts now re-exports two of its names. The leaves are still unexported, so the sentence is half stale, not wrong about what it protects. Follow-up wording.
  • N3 (nit) — the changeset says the strict key is "required-but-nullable ... like icon" but drops the sentence its predecessors carry for hand producers ("a producer of the STRICT shape must now send color on each object, null when it has none"). Changeset prose is the lane seat's face; it can be added there without touching the reviewed files.
  • N4 (nit) — neither picker can put a coloured object back to "no colour"; picking gray draws the same. And since gray is both a palette name and the unset neutral, the blueprint rule lets the model spend gray on an object, which then looks like an uncoloured one. Follow-up card if it matters in use.
  • N5 (nit) — the generic form's swatches paint with the colour-variant CSS values (for example blue #3b82f6), not the tile's values (blue-600), and with no value they show no swatch checked while the inspector's picker shows gray checked. Cosmetic.
  • N6 (nit) — in widgets.tsx the original IconPickerWidget docblock now sits directly above the new interface's docblock and is attached to neither declaration.
  • N7 (nit, outside the diff, read only) — the hand-written object table in packages/cli/src/commands/explain.ts lists icon and not color. Follow-up, with the skills text in PR 3.

Implemented-by: claude/project-thread-4obpun
Reviewed-by: isolated L2 sub-agent of seat session_01L6bhgUkbQqRUUFSiu2HGob

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUmopshYqDCrYekUj4

席位核对 — delta ACCEPT (L1-b)

Head-sha: 6fdcf3e · read 2026-11-21T07:53Z · delta from 83420569 (REWORK 7059502536)

维护者速读

  • 发版说明补上了漏掉的包,功能没有变化。CI 跑绿后就可以合。

Delta

One commit touching two files, both text only.

  • M1 done: '@objectstack/platform-objects': minor is added to the changeset, with a sentence saying it ships the color row's label and help text in all 10 locales. l1-face no longer flags platform-objects. The one flag left is @objectstack/metadata-protocol, which is test-only (the property-count pin), as noted at the previous head. No entry is owed for it.
  • N1 done: the object-icon.ts header now says the two leaves stay unexported and OBJECT_COLORS / ObjectColor are re-exported from @objectstack/spec/data. That matches data/index.ts.
  • N2 done: the navigation bullet names the no-resolver case (gray tiles where line icons were).

Must-fix / Should-fix

None.

Owed

  • CI was running at read time (20 pending, 0 failed). This L1 is final once CI is green on 6fdcf3ee. No further read is needed unless the code changes.
  • Fable L2 is the seat's. This L1 does not replace it.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Regen-provenance: contract-review record 7059551938 (PASS) · 834205699 → 6fdcf3ee9 · git diff 834205699 6fdcf3ee9 -- . ':!.changeset' → one doc-comment hunk in packages/spec/src/data/object-icon.ts (lines 11–17, inside the module's header block comment; no code, schema, describe string or export changes) · 2026-11-21T07:53Z

The head moved on prose only: L1-b's text rework added platform-objects to the changeset, and the header comment now says the palette (OBJECT_COLORS, ObjectColor) is re-exported from @objectstack/spec/data while the two schemas are not. That closes the record's N2. The record carries over to this head (contract-review.md L49).

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUmopshYqDCrYekUj4

席位核对 — text-only delta ACCEPT (L1-b)

Head-sha: 0fbfc45 · read 2026-11-21T07:54Z · delta from 6fdcf3ee (ACCEPT 7059558610)

维护者速读

  • 只改了一句发版说明:按严格格式生成方案的 AI 现在必须给每个对象写 color,没有就写 null。功能没有变化。

Delta

  • One line in .changeset/35985-object-color-tile.md (the L2's N3). I checked the new sentence against the code:
    • StrictObject.color is OBJECT_COLOR_SCHEMA.unwrap().nullable(), so the key is required and may be null.
    • BlueprintObjectSchema.color is the optional leaf, so a stored blueprint read leniently may omit it.
    • The sentence matches both. No other file changed.

Must-fix / Should-fix

None.

Owed

  • L1 is final once CI is green on 0fbfc452. Fable L2 is the seat's.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Regen-provenance: contract-review record 7059551938 (PASS), already carried to 6fdcf3ee9 · 6fdcf3ee9 → 0fbfc4524 · git diff 6fdcf3ee9 0fbfc4524 -- . ':!.changeset' → (empty) · 2026-11-21T08:31Z

The head moved on changeset prose only. The changeset now states that a hand producer of the strict blueprint shape must send color on every object (null when none), which closes the record's N3. The record carries over to this head (contract-review.md L49).

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Seat landing · 2026-11-21T08:32Z · #35985 PR 1: an object can declare a colour (ObjectSchema.color, one of the palette), and its icon draws as a coloured tile in navigation and the designer, with a picker in the object designer. Clause-②: yes (widening), Metadata-protocol: added, minor on @objectstack/spec. The schema-face contract review at CONTRACT_REVIEW_TIER read PASS 7059551938 on 83420569 (no must-fix, no should-fix, seven nits). Regen-provenance carried it to 6fdcf3ee9 (closing N2) and to 0fbfc4524 (this head, closing N3); both moves were prose only. L1-b ACCEPT 7059572091 on this head. The remaining nits are accepted or deferred: N1 closes with PR 2; N4 (clearing a colour, gray) gets a card if it bites; N5 and N6 are cosmetic; N7 (the CLI explain table) goes with the skills in PR 3. check-governed-merges --pr 36012 reads NOT governed (+829/−39). K read by hand: 11 since the merge base, under 15, and main since then touches neither translations/ nor skills/. On this head, 61 check-runs are success, 9 are skipped and none failed; mergeable clean. The seat readies this PR and arms auto-merge in the same step. The PR carries Part of #35985.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 21, 2026 08:33
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 21, 2026
Merged via the queue into main with commit a23164e Nov 21, 2026
71 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-4obpun branch November 21, 2026 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation protocol:ai protocol:data size/l tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants