Repository navigation
docs(skills): objectstack-ui teaches that a select badge is coloured only when its option declares color - #37985
Conversation
…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
|
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 |
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 Contract reviewServed-tier: PR #37985, card #37406. Read: the card body and its five comments, the PR body and its three files against merge base 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
② Semver level
③ Boundary flags
④ Design judgmentNo must-fix, no should-fix.
Nits (no effect on correctness or the contract; left as accepted deviations, since a fix in the gate script moves the head):
Implemented-by: VERDICT: PASS |
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 The filled brief the record above was rendered from (L1-a, isolated Contract review brief — PR #37985 @
|
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 L1 ACCEPT at Contract review. The isolated
The ratchet raise (asked for a ruling). It is allowed.
Face. Nits (prose; fold in before the hand-off without moving a non-prose face, or leave).
|
|
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 |
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 Contract reviewServed-tier: Merge delta of record 7220490991 (PASS on 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 levelUnchanged: ③ Boundary flags
④ Design judgmentNo must-fix, no should-fix.
Implemented-by: VERDICT: PASS |
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 L1 ACCEPT (merge delta) at 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.
Face. CI at this head: 29 success · 16 expected skip · 0 failed · 0 pending, the token-ratchet lint family included; |
|
repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU Recorded 2026-11-27T15:04Z.
席位意见:可以合。棘轮上调没有同文件删减抵消,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
|
|
repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU 维护者速读
|
Requested by Tesla · project thread
Fixes #37406
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
skills/objectstack-ui/rules/list-views.md, under Column Features: one sentence. Aselectbadge is coloured only when its option declarescolor, with the tiny option shape, the accepted values, and "any other option renders neutral".scripts/check-skills-token-ratchet.mjs: thelist-views.mdrow moves 4448 to 4510, pinned at the measurement, with the provenance comment..changeset/37406-ui-skill-select-option-colour.md:@objectstack/skillspatch.The accepted values were read from the renderer, not from the card:
BADGE_COLOR_MAPinui/packages/fields/src/index.tsxkeys exactlygray,red,orange,yellow,green,blue,indigo,purple,pink;resolveColorNamepasses those through and sends a value starting with#to the hex path; everything else, no declaration included, falls toNEUTRAL_BADGE_CLASSESingetBadgeColorClasses. The sentence claims that and no more.Nothing was removed: on
origin/main0b539b6,grep -rniE 'colou?r' skills/objectstack-uihas 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
skills/objectstack-ui/rules/list-views.md, linesceil(bytes / 4))SKILL.md, lines summed.md, lines summedNet 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 viacolor", and its analysis namesskills/objectstack-uias 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
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 --commandson the committed tree derives 66 commands. 61 ran and exited 0, among themcheck: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
color(family name or hex), and undeclared options render neutral": the sentence says it, with the family names as the renderer keys them.skills/objectstack-uion the base commit.colorthat 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.mjsis also edited by the open pull request 37947 (a different row);overlap-check.mjs --pr=37947answers "merges cleanly" against bothorigin/mainand that head.skills/**): this pull request stays draft and is landed by its tier's record, not by its author.Verification
Read first, by risk:
skills/objectstack-ui/rules/list-views.md, the one added paragraph under Column Features: is every listed value one the renderer honours.scripts/check-skills-token-ratchet.mjs, thelist-views.mdrow: 4510 equalsceil(18039 / 4), and the authority comment..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 thelist-views.mdline at "4510 tokens (ceiling 4510; headroom 0)".Generated by Claude Code