Skip to content

docs(skills): objectstack-ui teaches that a select badge is coloured only when its option declares color - #37985

Merged
os-zhuang merged 2 commits into
mainfrom
claude/project-thread-j3qp1s
Nov 27, 2026
Merged

os-zhuang merged 2 commits into
mainfrom
claude/project-thread-j3qp1s

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Tesla · project thread

Fixes #37406

Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户能看到什么变化:用 AI 搭应用的人,让 AI 给下拉选项(如状态、优先级)上色时,AI 会直接在选项上写明颜色;以前技能里没讲这件事,AI 可能以为颜色会自动出现,结果界面一片灰。
  • 为什么做:属于「下拉选项颜色只认声明」这次裁决(「A 全部去掉,没配就灰」)的收尾,界面已改完,这里补上对外技能里的那一句说明。
  • 出错会怎样:只多了一句说明文字,不改任何运行行为;写错了最多是 AI 少配或多配颜色,直接撤回这次合并即可。
  • 要你做什么:无。

What changes

  • skills/objectstack-ui/rules/list-views.md, under Column Features: one sentence. A select badge is coloured only when its option declares color, with the tiny option shape, the accepted values, and "any other option renders neutral".
  • scripts/check-skills-token-ratchet.mjs: the list-views.md row moves 4448 to 4510, pinned at the measurement, with the provenance comment.
  • .changeset/37406-ui-skill-select-option-colour.md: @objectstack/skills patch.

The accepted values were read from the renderer, not from the card: BADGE_COLOR_MAP in ui/packages/fields/src/index.tsx keys exactly gray, red, orange, yellow, green, blue, indigo, purple, pink; resolveColorName passes those through and sends a value starting with # to the hex path; everything else, no declaration included, falls to NEUTRAL_BADGE_CLASSES in getBadgeColorClasses. The sentence claims that and no more.

Nothing was removed: on origin/main 0b539b6, grep -rniE 'colou?r' skills/objectstack-ui has no line about a select option's colour and none implying a colour derived from the value, so the card's "remove or correct" half had nothing to act on.

Skill length readings

Reading Before After
skills/objectstack-ui/rules/list-views.md, lines 410 414
same file, bytes / tokens (ceil(bytes / 4)) 17792 / 4448 18039 / 4510
every published SKILL.md, lines summed 4958 4958
every published skill .md, lines summed 18795 18799
ratcheted (authored) bundle, tokens 199685 199747

Net on skills/objectstack-ui/**: +4 lines (one blank, three of text), 0 deleted.

Why the ratchet row rises instead of being paid by deletion

The file sat at zero headroom, and the standing ruling on this ratchet is 「A:先削重复,余额按实测提高」. There is no restatement to cut for this sentence: option colour was untaught in the skill (0 hits), so nothing in the file says the same thing twice. The raise runs on the ratchet header's other clause, "a ruling of record that orders text into a file still authorises its own measured delta": ruling record 7178358629 on #36882 (maintainer verbatim 「A 全部去掉,没配就灰」), term (5), orders "Skills-docs: a line that colour is declared via color", and its analysis names skills/objectstack-ui as the place. The row moves by the sentence's own measured delta (+62 tokens) and by no more.

Tests

No runtime behaviour changes, so there is no test to add and no ablation. Local gate readings on head 790d10b4:

Token ratchet and its self-test
✓ check-skills-token-ratchet: skills/objectstack-ui/rules/list-views.md is 4510 tokens (ceiling 4510; headroom 0).
✓ check-skills-token-ratchet: 61 authored bundle file(s) within their ceilings; 11 generator-owned file(s) and 42 eval fixture(s) measured, not ratcheted.
✓ check-skills-token-ratchet self-test: 111 cases pass.

Before the row moved, the same gate was red on this file alone: "is 4522 tokens; the ratchet ceiling is 4448" on the first draft, which was then tightened to the 4510 that landed.

Derived gate set: 66 commands, 61 exit 0, 5 not measured

node scripts/pm/dispatch-gates.mjs --commands on the committed tree derives 66 commands. 61 ran and exited 0, among them check:skill-links, check:skill-identifier-liveness, check:skill-compatibility, check:skill-frame-sync, check:skill-served-sections, check:doc-authoring, check:role-word, check:ratchet-remedy-authority, check:published-files, check:pm-dispatch-gates, check:nul-bytes, check-empty-changeset, check-changeset-no-major, check-adr-0087-registration, check-declaration-mirrors.

NOT MEASURED, five families that exit 3 with PREREQUISITE NOT MET because they read built dist/ output and this worktree was not built (the diff touches no package source, so no build was owed): check:doc-formula-expressions, check:dts-closure, check:dual-build-cjs-loads, check:lean-entry-closure, check:sourcemap-no-sources-content. CI's build jobs carry them.

Acceptance notes

  • Card acceptance 1, "colour on a select option badge appears only when the option declares color (family name or hex), and undeclared options render neutral": the sentence says it, with the family names as the renderer keys them.
  • Card acceptance 2, "remove or correct any text that implies automatic colouring by value": 0 such lines in skills/objectstack-ui on the base commit.
  • A declared color that is neither one of the nine names nor a # hex also renders neutral; the sentence's "any other option" covers it. The warning for that case is tracked on the Select options with no declared colour: render neutral instead of a semantic-table / hash-assigned colour #36882 line of work and is not part of this change.
  • scripts/check-skills-token-ratchet.mjs is also edited by the open pull request 37947 (a different row); overlap-check.mjs --pr=37947 answers "merges cleanly" against both origin/main and that head.
  • Governed surface (skills/**): this pull request stays draft and is landed by its tier's record, not by its author.

Verification

Read first, by risk:

  1. skills/objectstack-ui/rules/list-views.md, the one added paragraph under Column Features: is every listed value one the renderer honours.
  2. scripts/check-skills-token-ratchet.mjs, the list-views.md row: 4510 equals ceil(18039 / 4), and the authority comment.
  3. .changeset/37406-ui-skill-select-option-colour.md.

Two-minute check: node scripts/check-skills-token-ratchet.mjs, expected last line "61 authored bundle file(s) within their ceilings" and the list-views.md line at "4510 tokens (ceiling 4510; headroom 0)".


Generated by Claude Code

…only when its option declares color

One sentence under Column Features in rules/list-views.md, the token ratchet row
raised by the sentence's measured delta, and the patch changeset.

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

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1

Contract-review-claim: session_01L9qibwSEecrzDjKjbk24r1 · head 790d10b · 2026-11-27T14:08Z

L1-a (the seat's L1 thread) runs the isolated CONTRACT_REVIEW_TIER review on this head (rules face: skills/objectstack-ui/rules/list-views.md, with its token-ratchet row), with its L1 beside it.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 790d10b44668a9a8c712bf794c5629aaba84474f
Local-runs: none
Scope: skills/objectstack-ui/rules/list-views.md + scripts/check-skills-token-ratchet.mjs
Security-touching: no

PR #37985, card #37406. Read: the card body and its five comments, the PR body and its three files against merge base 0b539b6a, ruling 7178358629 (on #36882) with the analysis section it executes (7178076533, "Execution after the ruling (A)"), and the check-runs on this head. The renderer, the spec and the ratchet header were read on main at 57ab0876; list-views.md is byte-identical there to the merge base (17792 bytes), and main's two later ratchet rows are other files.

Check-runs at 2026-11-27T14:11Z. Concluded success: Check Changeset, Check PR Size, Governed Surface Queue Guard, PR-body guards, Build Core, Lint · ESLint, Test UI, Live E2E UI, Dogfood Regression Gate, Plan Test Core shards, Auto Label, filter. Still pending when read, so no verdict is taken from them: Lint · repo & tooling gates (the family that runs the token ratchet and its self-test), Lint · PM dispatch-gates, Lint · docs & code guards, Lint · CI, release & engine gates, Lint · scoped · tooling self-tests, Lint · scoped · query-options erasure, Lint · scoped · slot lookup & corpus, Type Check · workspace, Type Check · source gates, Type Check · consumer gates, Type Check · debt ledger, Test Core 1/10 to 3/10. This PASS is the design verdict; the seat adopting it still owes a read of those runs once they conclude.

① Derived judgments

  • Accept-set: unchanged. No schema, validator or renderer file is in the diff; SelectOption.color stays z.string().optional() (packages/spec/src/data/field.zod.ts). Right.
  • Public surface: one published skill paragraph (+4 lines, 0 deleted, 17792 to 18039 bytes) and one ratchet row. The skill now states a behaviour main already has since Select options with no declared colour: render neutral instead of a semantic-table / hash-assigned colour #36882; it widens nothing an author may write. Right.
  • Ratchet row: 4448 to 4510. ceil(18039 / 4) is 4510, the base row was at zero headroom (17792 / 4 is 4448 exactly), so the +62 is the measured delta and the row is pinned at the measurement. Right. Authority is judged in ④.
  • No eval fixture is added. The card names no eval prompt and the change adds no protocol member, so none was owed.

② Semver level

@objectstack/skills patch. That is the package that ships skills/**, and a teaching sentence with no behaviour change is a patch. Clause-②: no and Metadata-protocol: none on both the PR body and the changeset match the diff: nothing is accepted or refused that was not before. The ruling's "changeset minor" in term (5) priced the renderer change of #36882 and does not bind this follow-up. Right.

③ Boundary flags

  • Dev deviation, five dist-reading gate families not measured locally: accepted, CI carries them; they were pending at this read (see above).
  • Dev deviation, ratchet raised with no same-file deletion: answered in ④, allowed.
  • Dev deviation, shared file with PR 37947 (scripts/check-skills-token-ratchet.mjs, a different row): accepted. The head is 9 behind main; main's changes to that script since the merge base touch the objectstack-ai and objectstack-ask rows only.
  • Dev deviation, renderer read from the tree and not from the feat(fields,plugins,platform-objects): a select option is coloured only when its author declared a colour #37427 merge commit: accepted, and repeated here on main.
  • open_questions: none.
  • SQL push-down: not applicable, no query or data-access code in the diff.

④ Design judgment

No must-fix, no should-fix.

skills/objectstack-ui/rules/list-views.md, the four added lines against the code on main:

  • "coloured only when its option declares color": holds. getBadgeColorClasses(color, _value) in ui/packages/fields/src/index.tsx never consults the value; an undeclared option gets NEUTRAL_BADGE_CLASSES. Every other surface that colours a select badge goes through the same two functions with the option's color: plugin-grid/src/ObjectGrid.tsx (group rows), plugin-kanban/src/ObjectKanban.tsx (both call sites), plugin-list/src/conditions/FilterValuePanel.tsx, and the cell renderer itself. No value-derived table or hash remains.
  • The nine names: BADGE_COLOR_MAP keys exactly gray, red, orange, yellow, green, blue, indigo, purple, pink, in that order. resolveColorName passes those through and nothing else by name (teal and amber, which the data skill lists for object tiles, render neutral here, so the enumeration is load-bearing).
  • "or a # hex": holds. getBadgeHexAppearance paints a declared hex exactly; resolveColorName sends a # value to the nearest family where a caller does not ask for the exact path.
  • "Any other option renders neutral": holds for no declaration, an unknown name, a wrong-case name and an unparseable hex.
  • The option shape { value: 'won', label: 'Won', color: 'green' } is valid against SelectOption (label and value required, color optional string, lowercase value).
  • Against the card: acceptance 1 is stated in full. Acceptance "remove or correct text implying automatic colouring": skills/objectstack-ui on main carries no line on select option colour, so there was nothing to correct.

scripts/check-skills-token-ratchet.mjs, the raise against the gate's own rules:

  • The header gives a raise two routes. The standing 2026-10-27 route needs a same-file deletion of restatement. The other is the clause "a ruling of record that orders text into a file still authorises its own measured delta". This PR takes the second, and the PR body quotes the ruling.
  • Ruling 7178358629 term (5) reads "Skills-docs: a line that colour is declared via color", and the ruling executes analysis 7178076533 section "Execution after the ruling (A)", whose item 2 names the place: "a line in skills/objectstack-ui". That is a maintainer ruling of record ordering this text into the published skill. Allowed under the clause as written. The ruling names the skill, not the file; earlier rows of this map apply the same clause to rulings that order text "into the published skills", so the reading has precedent, and Column Features in list-views.md is where the badge is rendered.
  • "Its own measured delta and no more": the added text is the ordered statement with the values that make it actionable, as the card's acceptance spells them (family name or hex, undeclared neutral). Nothing else rides along. +62 matches the bytes.
  • Same-file deletion: not owed on this route. The 10402 principle is respected at one sentence. This review did not audit the whole file for unrelated restatement, and the PR's "nothing to cut" claim covers colour text only; that would matter on the standing route, not on this one.

Nits (no effect on correctness or the contract; left as accepted deviations, since a fix in the gate script moves the head):

  • N1 (nit): the row comment says "17790 to 18039 bytes (+249)" (its arrow spelled out here). The file at the merge base is 17792 bytes, as the PR body says, so the delta is +247. The pinned number and the +62 are unaffected.
  • N2 (nit): the row comment says term (5) "orders this line into skills/objectstack-ui". Term (5) itself names no directory; the place comes from the analysis section the ruling executes. The PR body states it accurately.
  • N3 (nit): "a # hex" means 3 or 6 hex digits (hexBadgePalette.ts, hexToPaletteName). An 8-digit hex with alpha renders neutral, which "any other option" covers without saying so.
  • N4 (nit): the inline option example repeats a shape skills/objectstack-data/rules/field-types.md already shows; about 12 tokens that a later pass on this file could reclaim.

Implemented-by: claude/project-thread-j3qp1s
Reviewed-by: session_01L9qibwSEecrzDjKjbk24r1

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1

The filled brief the record above was rendered from (L1-a, isolated CONTRACT_REVIEW_TIER subagent):

Contract review brief — PR #37985 @ 790d10b44668a9a8c712bf794c5629aaba84474f (card #37406)

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 skills/objectstack-ui/rules/list-views.md — with a PASS or FAIL verdict, and post it as ONE comment
on the PR or its card.

Inputs — these and nothing else:
· card #37406: its body and EVERY comment (rulings and earlier records included)
· PR #37985: its body, its file list, and the net diff against main at 0b539b6abbb0c30825f2f02530a3b3e96d87f106 (the merge base)
· the check-runs on 790d10b44668a9a8c712bf794c5629aaba84474f: 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: skills/objectstack-ui/rules/list-views.md;
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.

Security — a hits path sits on the low-risk skills arm: when the change teaches security, auth or permission
behaviour the path name doesn't show, the record says so and the seat adopting the record adds the security label.
The record says so on its Security-touching: line, and the arm lands on no alone: write no ONLY when no changed
hunk teaches permission, sharing, credential, token, authentication or other security behaviour, else yes.

⛔ 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/166e2125-4268-552f-a555-2b7c43a99f0f/scratchpad/pr-37985/ 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.
----- to here -----

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1
2026-11-27T14:31Z

L1 ACCEPT at 790d10b44668a9a8c712bf794c5629aaba84474f (L1-a for the seat). Tier H (check-governed-merges: the ratchet script takes it out of the low-risk skills arm), so it goes to the seat's hand-off for the maintainer, not to the queue.

Contract review. The isolated CONTRACT_REVIEW_TIER record 7220490991 (claim 7220411219, brief 7220511037) is a PASS on this head: no must-fix, no should-fix, four nits. verify-review-tier PASS on the reviewer's transcript.

  • The four added lines in skills/objectstack-ui/rules/list-views.md match the renderer on main. BADGE_COLOR_MAP keys exactly the nine names, a declared # hex is painted (or snapped to the nearest family where a caller asks for that), and anything else gets NEUTRAL_BADGE_CLASSES. The grid, kanban, filter panel and cell renderer all go through the same two functions.
  • SelectOption.color is z.string().optional() in the spec.

The ratchet raise (asked for a ruling). It is allowed. list-views.md goes from 4448 to 4510 (+62), with no deletion in the same file, on the ratchet header's own route: "a ruling of record that orders text into a file still authorises its own measured delta".

Face. l1-face: Fixes #37406 (the card asked for this one line, and the record finds no other colour text in skills/objectstack-ui to correct); @objectstack/skills patch with Clause-②: no · Metadata-protocol: none is right (the ruling's "minor" priced the #36882 renderer change, not this follow-up). Overlap with #37947 is on different ratchet rows. CI at this head: 29 success · 16 expected skip · 0 failed · 0 pending, including Lint · repo & tooling gates, which runs the token ratchet (pending when the record was read, green now).

Nits (prose; fold in before the hand-off without moving a non-prose face, or leave).

  • N1: the row comment's "17790 to 18039 bytes (+249)" should read 17792 (+247). The pinned number is unaffected.
  • N2: the row comment credits term (5) with the directory, which comes from the analysis section. The body says it right.
  • N3: an 8-digit hex with alpha renders neutral, which "any other option" covers without saying so.
  • N4: the inline option example repeats a shape objectstack-data/rules/field-types.md already shows (about 12 tokens).

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1

Contract-review-claim: session_01L9qibwSEecrzDjKjbk24r1 · head 899796e · 2026-11-27T14:45Z

L1-a runs the merge delta of record 7220490991 on this head, by the same CONTRACT_REVIEW_TIER reviewer (the main merge after #37937, the ratchet script and the list-views.md row), with the L1 beside it.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 899796e87638236380987373f75ae71f077b5751
Local-runs: none
Scope: skills/objectstack-ui/rules/list-views.md + scripts/check-skills-token-ratchet.mjs
Security-touching: no

Merge delta of record 7220490991 (PASS on 790d10b44668a9a8c712bf794c5629aaba84474f). This head is a merge commit with two parents: the reviewed head 790d10b4 and main at 4de4e3e9 (after #37937). No authored change rides the merge: the three PR files are the same on both sides of it, and the only ratchet-script lines that differ from the reviewed head are main's own rows.

Check-runs at 2026-11-27T14:46Z. Concluded success: Check Changeset, Check PR Size, Governed Surface Queue Guard, PR-body guards, Build Core, Type Check · workspace, Type Check · debt ledger, Test UI, Dogfood Regression Gate, Auto Label, filter. Still pending when read, so no verdict is taken from them: Lint · repo & tooling gates (the family that runs the token ratchet and its self-test), Lint · PM dispatch-gates, Lint · ESLint, Lint · docs & code guards, Lint · CI, release & engine gates, Lint · scoped · tooling self-tests, Lint · scoped · query-options erasure, Lint · scoped · slot lookup & corpus, Type Check · source gates, Type Check · consumer gates, Live E2E UI, Plan Test Core shards (the Test Core shards had not been created yet). This PASS is the design verdict; the seat adopting it still owes a read of those runs once they conclude.

① Derived judgments

② Semver level

Unchanged: @objectstack/skills patch, Clause-②: no, Metadata-protocol: none. The changeset file is identical to the reviewed one. Right.

③ Boundary flags

  • The earlier note "the head is 9 behind main" is closed: 0 behind.
  • Shared file with other PRs (scripts/check-skills-token-ratchet.mjs): the merge took main's rows and this PR's row side by side, with no line of either rewritten.
  • No new dev flag and no open_questions entry on this head.
  • SQL push-down: not applicable, no query or data-access code in the diff.

④ Design judgment

No must-fix, no should-fix.

  • skills/objectstack-ui/rules/list-views.md: the four added lines are unchanged and the code they describe is unchanged on main; the judgment of record 7220490991 carries over whole.
  • scripts/check-skills-token-ratchet.mjs: the raise route is unchanged. The header clause relied on is intact, ruling 7178358629 term (5) with analysis 7178076533 still orders the line into skills/objectstack-ui, the +62 still matches the bytes, and no same-file deletion is owed on this route. main's new rows are shrink-only lowerings and say nothing about this one.
  • Nits N1 to N4 of record 7220490991 stand as accepted deviations; the merge neither fixed nor worsened them, and no new nit arises.

Implemented-by: claude/project-thread-j3qp1s
Reviewed-by: session_01L9qibwSEecrzDjKjbk24r1

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1
2026-11-27T15:02Z

L1 ACCEPT (merge delta) at 899796e87638236380987373f75ae71f077b5751 (L1-a for the seat), after ACCEPT 7220901984 on 790d10b4. Tier H, so it goes to the seat's hand-off.

Contract review. The same reviewer's merge delta 7221236124 (claim 7221202198) on this head is a PASS: no must-fix, no should-fix, nothing new. verify-review-tier PASS. It builds on record 7220490991.

Face. CI at this head: 29 success · 16 expected skip · 0 failed · 0 pending, the token-ratchet lint family included; mergeable_state clean. Nits N1–N4 stand as accepted deviations.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU

Recorded 2026-11-27T15:04Z.

  • 改了什么:技能 skills/objectstack-ui/rules/list-views.md 的「列特性」下加了 4 行教学:下拉选项只有在选项上声明了 color(如 { value: 'won', label: 'Won', color: 'green' })时,徽章才有颜色;可用值为 gray、red、orange、yellow、green、blue、indigo、purple、pink 九个色名或 # 十六进制,其他一律中性色。token 棘轮表里该文件那行 4448→4510(实测 +62)。另有 @objectstack/skills patch changeset。3 个文件,+24 / −1。
  • 为什么:Select options with no declared colour: render neutral instead of a semantic-table / hash-assigned colour #36882(PR feat(fields,plugins,platform-objects): a select option is coloured only when its author declared a colour #37427 已合)定下「选项不声明颜色就不上色」,那个 PR 留了 Skills-docs: follow-up #37406。技能里一直没讲选项颜色,智能体写选项时会以为颜色自动有。
  • 风险:只加教学文字,不碰运行时,可撤回。九个色名和十六进制、中性回退都对过 ui/packages/fields/src/index.tsx 的 BADGE_COLOR_MAP(:1577)、resolveColorName(:1640)、getBadgeColorClasses(:1760)。
  • 要你做什么:请审阅并合并(skills/** 受管;因为同时改了棘轮脚本,不属于低风险技能放权,所以是 Tier H)。契约审核 PASS 7220490991,合 main 后增量 PASS 7221236124,Head-sha: 899796e87638236380987373f75ae71f077b5751。

席位意见:可以合。棘轮上调没有同文件删减抵消,L1-a 判定走棘轮头注自己的路线:有裁定指名要这行教学(7178358629 第 (5) 条),就授权它实测的增量;+62 与字节一致(ceil(18039/4)=4510)。起草按强制档在隔离的 claude-fable-5-2 子代理里做,effort medium,与认领一致。C1s #37937 合并后真合了一次 main(无冲突,棘轮其他行与 main 一致,本行仍 4510)。

席位核对 — ACCEPT · repo:objectstack#3 · head 899796e87638236380987373f75ae71f077b5751

  1. 形态:Fixes #37406;Clause-②: no、Metadata-protocol: none;changeset @objectstack/skills patch;3 个文件 +24 / −1,教学净增 +4 行(在认领的 ≤+4 预算内)。
  2. 前提实测:Select options with no declared colour: render neutral instead of a semantic-table / hash-assigned colour #36882 经 PR feat(fields,plugins,platform-objects): a select option is coloured only when its author declared a colour #37427 关闭,正文写有 Skills-docs: follow-up #37406;main 上 skills/objectstack-ui 没有任何选项颜色的教学;spec color: z.string().optional() 在 packages/spec/src/data/field.zod.ts:426。
  3. 门禁 check-runs:29 success、0 失败、0 pending,mergeable_state clean(L1-a 7221570445 读)。合并后 token 棘轮及其 self-test(111 例)和技能、changeset 各族门禁本地 exit 0;overlap-check 对 docs(skills): the checked action examples drop their locations key #37947 干净(同改棘轮脚本,不同行)。check-governed-merges ⇒ GOVERNED,Tier H。
  4. 接受的偏差:棘轮上调无同文件删减(按裁定授权路线,L1-a 接受);nit N1(行注释里 17790(+249) 应为 17792(+247))不改,以免动 head,钉值不受影响。L1 ACCEPT 7220901984,合 main 后 7221570445。
  5. 范围外去向:无新增。docs(skills): the checked action examples drop their locations key #37947(同一技能目录的 rules/actions.md)另走自己的 Tier H 交接。
  6. 落地条款:Tier H ⇒ 维护者亲手合并,或 GOVERNED_APPROVERS(os-zhuang)批准后本席照落地前检落地。若合并前 main 又改到棘轮脚本,需再合一次 main 并补增量。

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU

维护者速读

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 27, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 27, 2026 16:53
@os-zhuang
os-zhuang enabled auto-merge November 27, 2026 16:53
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 27, 2026
Merged via the queue into main with commit 64f2d7a Nov 27, 2026
51 checks passed
@os-zhuang
os-zhuang deleted the claude/project-thread-j3qp1s branch November 27, 2026 17:23
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 pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue size/s 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.

skills: objectstack-ui teaches that a select option is coloured only when it declares color (after #36882)

3 participants