Skip to content

Workbench MVP: declare the platform built-in app com.objectstack.workbench (menu 首页 / 任务 / 备忘 / 审批) and register it in the framework assembly roots #39882

Description

@objectstack-fleet

repo:objectstack@hotlong · hotlong · session_2d709547c1624199b93584a53fbaaca2

维护者速读

Parent: #39871. Cloud registration is its own card (see the epic).

What to build

  1. The app, declared like Account (packages/apps/account/src/index.ts:27-64, packages/platform-objects/src/apps/account.app.ts): scope: 'system', protection.lock: 'full', no requiredPermissions. isPlatformBuiltinApp (ui/packages/app-shell/src/utils/platformApp.ts:24) already treats com.objectstack.* as built-in.
  2. Menu, phase 1 (the existing app shell draws it; no bespoke frame):
    • 首页 — a type: 'component' nav item (Account's precedent, account.app.ts:71-77) that mounts the home page of the home card.
    • 任务 — sys_task views assigned_to_me / created_by_me / all (packages/platform-objects/src/work/sys-task.object.ts:63-100).
    • 备忘 — sys_note mine / all (work/sys-note.object.ts:44-61).
    • 审批 — the approvals inbox component (approvals:inbox).
    • Not in the menu: 通知 (the sidebar bell and its 「查看全部」 own it) and AI 对话 (the 「问 AI」 drawer, objectstack#34608).
  3. Registration in every framework assembly root that registers platform apps today (packages/cli/src/commands/serve.ts:4774-4777 and its siblings), so os dev, os serve and the examples all carry it.
  4. The workbench may be recorded as the person's last app (ui.app.last) like any app — the maintainer ruled this fine on 2026-12-06.
  5. It cannot be hidden by a permission set: /me/apps keeps it for every signed-in user.

Acceptance

  • A fresh os dev environment lists 工作台 among its apps; its four menu items open the platform's own views.
  • Uninstall and Studio edit are refused (protection.lock: 'full').
  • A permission set cannot hide it; a test pins this.
  • zh-Hans + en labels.

Activity

  1. added
    enhancement
    priority:p1
    domain:ui
    on Dec 6, 2026
  2. objectstack-fleet commented on Dec 6, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:cloud@hotlong · hotlong · session_01Q4EjjQzFqHGjUAXt8kBQhV

    Claim: PM loop · 2026-12-06T09:44Z
    Session: session_01Q4EjjQzFqHGjUAXt8kBQhV
    Thread session: session_01Q4EjjQUpXQxLLpg5wLVEGx
    Account: hotlong
    Branch: claude/project-thread-5ywu7k (from objectstack origin/main 4064fb6)
    Worktree: objectstack-issue-39882
    Domain: domain:ui
    Seat: repo:cloud@hotlong (scope extended for the eight phase-1 cards of #39871 by the account owner, ruling A, comment 7455301888)
    File surface: packages/apps/workbench/ (reason: the new app package, one app per package as Account), packages/platform-objects/src/apps/workbench.app.ts, packages/platform-objects/scripts/i18n-extract.config.ts, packages/cli/src/commands/serve.ts, packages/plugins/plugin-dev/src/dev-plugin.ts, packages/plugins/plugin-dev/vitest.config.ts, packages/plugins/plugin-security/src/objects/default-permission-sets.ts, packages/qa/dogfood/vitest.config.ts, pnpm-lock.yaml (stop on breach; explain in the report)
    Container & model: M, mode:thread, model: default (no path-derived mandate expected; a packages/spec/src/** touch stops the thread), effort: high (reason: maintainer standing order 2026-11-27 13:03Z, dispatched threads run at high)
    Clause-②: no
    Metadata-protocol: none
    Responsibility: the platform declares and registers its own built-in apps (Account precedent) | every environment's entry point for the phase-1 workbench | #39872, #39883, #39885 and cloud#5486 build on this declaration
    Thread-read: none
    Premise: holds (no com.objectstack.workbench on main at 4064fb6; Account's declaration and registration sites exist as the card cites)
    Serial constraints cleared: none (first card of the epic's MVP)
    Resume-from: none

    Order: project file pm-orders/objectstack/seat-cloud-hotlong/order-39882.md.

  3. added
    pm:dispatched
    on Dec 6, 2026
  4. objectstack-fleet commented on Dec 6, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:cloud@hotlong · hotlong · session_01Q4EjjQzFqHGjUAXt8kBQhV

    Maintainer ruling — the workbench is not a kernel package (2026-12-06T09:57Z)

    • Who / where: the maintainer (account owner), on a decision card in the project thread of this card, 2026-12-06 (~09:55Z), option 「可改可隐藏,不给停用」. It supersedes his earlier pick that same morning (「第一期锁定,后面再开放」).
    • Verbatim: 「工作台可以不用定位为内核包吧?」「不需要他保证它卸不掉」「如果客户就是不想要呢?」
    • Reading, built to by this card: a booted platform app, manifest scope project, no protection lock, customizable through its ADR-0146 .custom pair, visible to all by default and hideable by a permission set for some or all people; no disable switch. It stays uninstallable-in-fact only because every booted code package is read-only (isWritablePackage); that is not a promise.

    This card's text is superseded where it says otherwise:

    Knock-ons: #39872/#39885 are told. cloud#5486 is unaffected. #39891 no longer needs a lock-exception ruling. Spec touch: PLATFORM_PROVIDED_APP_NAMES gains workbench, which owes L2 at CONTRACT_REVIEW_TIER. The seat runs it.

  5. objectstack-fleet commented on Dec 6, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:cloud@hotlong · hotlong · session_01Q4EjjQzFqHGjUAXt8kBQhV

    Maintainer ruling — a built-in occupying the name workbench ships as a widening (2026-12-06T10:52Z)

    • Who / where: the maintainer (account owner), on a decision card in this card's project thread, 2026-12-06T10:52Z. This closes must-fix 1 of the L2 record on feat(workbench): the built-in Workbench app (工作台), served by os dev and os serve #39896 (7456161763).
    • Option chosen (card text): 「照设置/账户的先例,写清即可」, i.e. follow the Setup/Account precedent and state the collision clearly.
    • Reading: the workbench takes the namespace and bare app name workbench in every stock environment, the same way setup and account do. That stays Clause-②: yes (widening) / Metadata-protocol: added, not a narrowing. The changeset, the PR body and the docs row must state the collision (a stack's own package with namespace workbench, or its own app named workbench, collides at install or boot and on bare reads) and the remedy (rename it). No in-tree or known customer stack uses the name.
  6. removed
    pm:dispatched
    on Dec 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:uxdomain:uienhancementpriority:p1

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions