Skip to content

feat(platform-objects): the built-in Task object draws its icon in blue and Note in amber - #39916

Merged
objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/project-thread-4d67so
Dec 6, 2026
Merged

objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/project-thread-4d67so

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Dec 6, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Jack · project thread

Fixes #39913

What changes

  • sys_task declares color: 'blue'; sys_note declares color: 'amber'. No other object changes.
  • work-objects.test.ts pins both (icon and color).
  • Changeset: @objectstack/platform-objects patch.

Why

Neither object declared a color, so both icons showed the gray fallback (OBJECT_COLORS default) in the workbench menu and on record headers. The maintainer agreed to blue for tasks and amber for notes (2026-12-06); the other platform objects without a color are out of scope.

Verification

Clause-②: no
Metadata-protocol: none

  • packages/platform-objects: full vitest run, 137 files / 2467 tests green; pnpm typecheck green.
  • check:empty-changeset, check:changeset-fixed, check:adr-0087-registration green.
  • No other pin lists these objects' colors (searched the repo for both icons and object names).
  • Browser, os dev (showcase, this branch, which includes the workbench app from feat(workbench): the built-in Workbench app (工作台), served by os dev and os serve #39896), console proxied to it, signed in as the seeded admin at 1280 px: the workbench menu draws Tasks on a blue tile and Notes on an amber tile; Home and Approvals keep the neutral tile.

Human Minimum

  • 1. Schemas start as Zod; packages/spec holds no runtime logic.
  • 2. Every name I added uses the casing for its kind.
  • 3. No formatter ran; pnpm lint passes.
  • 4. One issue, one branch off an up-to-date main, one pull request.
  • 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset.
  • 6. packages/spec touched: its generated artifacts are regenerated and committed. (not touched)
  • 7. No hand edits to content/docs/references/, packages/*/CHANGELOG.md or content/docs/releases/.
  • 8. Title, body and comments are in English.
  • The Before Submitting list in CONTRIBUTING.md is done.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Q4EjjQp2BkjvMG4gHSDwk3

…ue and Note in amber

sys_task and sys_note declared no color, so both icons showed the gray
fallback in the workbench menu and on record headers.

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

github-actions Bot commented Dec 6, 2026

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

Nothing in this diff resolved to a documentable surface (no symbol, route or SDK anchor derived from 1 changed package(s)), so this run has no opinion about the docs.

What this run could not see

Coarse fallback — 4 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 ac67006a3c0421318719491acaed2f77fe4c53a4 → packageMentionDocs.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

Test Core (11/12) did not fail a test: the runner received a shutdown signal mid-run (Process completed with exit code 143, then The runner has received a shutdown signal, job 146075281219), while @objectstack/organizations and @objectstack/verify tests were still passing. This PR only adds color to sys_task / sys_note and a pin in work-objects.test.ts. I will re-run the failed leg once when the CI run completes.


Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:cloud@hotlong · hotlong · session_01Q4EjjQzFqHGjUAXt8kBQhV

L1: ACCEPT at head 99134fb4 · reviewer of record repo:cloud@hotlong · read 2026-12-06T12:16Z.

  • Card. p1 Workbench: give sys_task and sys_note an object color (blue, amber) so their icons are not gray #39913 (epic Workbench and first-run: every sign-in lands on a platform workbench whose start wizard installs a scenario app; the Starter auto-install retires #39871): give the built-in Task and Note objects a color so their icons stop drawing the gray fallback. Fixes #39913.
  • Diff. sys_task declares color: 'blue', sys_note declares color: 'amber' (the maintainer agreed to both, 2026-12-06); work-objects.test.ts pins icon and color; changeset @objectstack/platform-objects patch. No other object moves.
  • Declaration. Clause-②: no / Metadata-protocol: none: color is an existing optional object property; no schema or published response changes. No L2 owed.
  • Evidence. platform-objects 137 files / 2467 tests green, typecheck green, check:empty-changeset, check:changeset-fixed and check:adr-0087-registration green; no other pin lists these colors. Browser on os dev (showcase) as admin at 1280 px: the workbench menu draws Tasks on a blue tile and Notes on an amber tile, Home and Approvals stay neutral.
  • CI. Test Core (11/12) failed on a runner shutdown signal (exit 143, every slice before it green), not a test; re-run once the run finishes.
  • Landing. Ready with auto-merge.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review December 6, 2026 12:17
@objectstack-fleet
objectstack-fleet Bot enabled auto-merge December 6, 2026 12:17
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Dec 6, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Dec 6, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:cloud@hotlong · hotlong · session_01Q4EjjQzFqHGjUAXt8kBQhV

L1: ACCEPT (re-arm) at head 99134fb4 · reviewer of record repo:cloud@hotlong · read 2026-12-06T12:57Z.

  • Queue kick. Test Core (11/12) got a runner shutdown signal again in the merge-group run (job 146088341216, exit 143, no test failed); the other slices were cancelled after it. The PR-side re-run of that slice is green and main's last two runs are green. Same head, so the ACCEPT above carries over.
  • Watch. Two shutdowns of the same slice in one hour. If a third head is kicked by it, this becomes a queue-flake card.
  • Landing. Re-armed.

@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Dec 6, 2026
@github-actions

github-actions Bot commented Dec 6, 2026

Copy link
Copy Markdown
Contributor

⛔ merge queue 构建失败 — 先分诊,再决定要不要重排

队列构建 47651287820 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集),
所以失败的测试可能在本 PR 没碰过的包里 —— 那不是重排能修的。每次盲目重排都会让排在后面的所有 PR 重建一轮。

分类:failure —— 按下面的日志分诊。

失败的 job(日志抽取,best effort):

  • Test Core (11/12) — 失败步骤: Run this shard's tests(日志不可读,点进 job 看)

↳ 失败原因 是判读的关键:超时(Test timed out in … / Hook timed out in …)多半是负载/时序,不是本 PR 的回归;
断言(AssertionError: …)才指向真实的行为改变。两者的 FAIL 行长得一模一样,只有这一行能区分。

⚠️ 断言这一侧有一类例外,判据是断言在测什么,不是它是不是 AssertionError。 断言的对象是产品行为(一个值、一个形状、一次拒收)⇒ 照上面读:真实的行为改变,去查,⛔ 不要重排掉;
断言的对象是这次实验自身的有效性前提(跑完的耗时、负载下的先后、任何只在时间预算内才成立的条件)⇒ 它跟超时是同一类,同样对负载敏感,重排一次是合法的判别手段。
识别是机械的:断言的消息或它比较的值本身点名了一段时长、一个时间戳、一个耗时计数。实测过的一对 —— AssertionError: SecurityPlugin.init() ran: expected false to be true 测的是产品行为(真回归);
AssertionError: this run took over a second, so second-precision stamps could have differed too: expected 1006 to be less than 1000 测的是实验前提:它守护的那条不变式当时是绿的,同一个 head 原样重排一次即成功。
穿着 AssertionError 外衣的时间测量,仍然是时间测量。(⛔ 这只改「怎么读一次红」,不改「哪些测试可以重排」——后者由别处管。)

跨 PR 相同签名(24h,按失败测试文件聚合):

  • ⚠️ 本次没有可用的聚合签名(日志里没有能解析出测试文件名的 FAIL 行)—— 这不是「没有同签名的其他 PR」,是这一轮没测到。跨 PR 聚合本次不可用,请手工比对其他 PR 的同类评论。
  • ⚠️ 24h 评论账本没读完(超过 5 页仍未读到窗口尽头),所以上面的「不同 PR 数」是下界,不是全量。

历史信号:

  • 本 PR 过去 24h 无队列失败记录(首次)。
  • 过去 24h 队列共有 3 个失败构建(不含本次)。

分诊清单:

  1. 失败测试在本 PR 改动的包里 → 真回归,修 PR。
  2. 失败测试与本 PR 无关 → 看上面的「跨 PR 相同签名」;已有汇总 issue ⇒ flaky/环境问题实锤,去那张 issue 上谈,修好前重排只会再烧一轮全队列。
  3. 两者都不是 → 可能与同组 PR 语义冲突;等前面的 PR 落地或失败出队后再重排一次即可,不要连续重排。

Generated by Claude Code · merge-queue-triage workflow (#4859)

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 size/s 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.

Workbench: give sys_task and sys_note an object color (blue, amber) so their icons are not gray

2 participants