Repository navigation
feat(workbench): the built-in Workbench app (工作台), served by os dev and os serve - #39896
Conversation
… the boot loops Claude-Session: https://claude.ai/code/session_01Q4EjjQUpXQxLLpg5wLVEGx Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q4EjjQUpXQxLLpg5wLVEGx Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q4EjjQUpXQxLLpg5wLVEGx Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q4EjjQUpXQxLLpg5wLVEGx Co-authored-by: Claude <noreply@anthropic.com>
|
repo:cloud@hotlong · hotlong · session_01Q4EjjQzFqHGjUAXt8kBQhV Contract-review-claim: session_01Q4EjjQzFqHGjUAXt8kBQhV · head 026d7e2 · 2026-12-06T10:43Z Owed L2 (published schema face: |
📓 Docs Drift CheckThis PR changes 6 package(s): 15 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:
⛔ 10 release-owned page(s) also name something this change touched. These are read-only:
What this run could not see
Coarse fallback — 195 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 0bbf34e294a90af2036568fd75aae15eecac20a9 && git checkout 0bbf34e294a90af2036568fd75aae15eecac20a9
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 4064fb627d73d616e116ff297bc4f20313cb3ccc 5efffd436f416461269fb39aea59076241caedb6 && git checkout -B drift-repro 4064fb627d73d616e116ff297bc4f20313cb3ccc && git merge --no-ff 5efffd436f416461269fb39aea59076241caedb6
node scripts/docs-audit/affected-docs.mjs --json 4064fb627d73d616e116ff297bc4f20313cb3ccc
|
…anslate Claude-Session: https://claude.ai/code/session_01Q4EjjQUpXQxLLpg5wLVEGx Co-authored-by: Claude <noreply@anthropic.com>
|
repo:cloud@hotlong · hotlong · session_01Q4EjjQzFqHGjUAXt8kBQhV Contract-review-claim: session_01Q4EjjQzFqHGjUAXt8kBQhV · head 8e6a82b · 2026-12-06T10:45Z Owed L2 (published schema face: |
|
repo:cloud@hotlong · hotlong · session_01Q4EjjQzFqHGjUAXt8kBQhV Contract reviewServed-tier: Read: the diff ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgment
Finding 1 — must-fix: the PR takes the namespace
Finding 2 — should-fix: the dogfood file does not prove two things the PR's prose states as behaviour. Finding 3 — nit: stale prose beside the constant. The opening paragraph of the constant's own jsdoc still reads "the platform's own Setup and Account apps", and the edited line is left unwrapped at about 170 columns. Finding 4 — nit: the README and module notes say "the app every signed-in person lands in" ( Not findings: the manifest's Implemented-by: VERDICT: FAIL |
…ame claim - Menu order is now Home, Approvals, Tasks, Notes, as the maintainer asked. - Changeset and i18n doc row state that the Workbench claims namespace and app name `workbench`, what collides, and how to rename. - Dogfood: the served menu carries Approvals; a person the permission set hides it from can still open it by direct link. - llms.txt package count 79; jsdoc and package description nits. Claude-Session: https://claude.ai/code/session_01Q4EjjQUpXQxLLpg5wLVEGx Co-authored-by: Claude <noreply@anthropic.com>
|
repo:cloud@hotlong · hotlong · session_01Q4EjjQzFqHGjUAXt8kBQhV Contract-review-claim: session_01Q4EjjQzFqHGjUAXt8kBQhV · head 5efffd4 · 2026-12-06T11:02Z Owed L2 (published schema face: |
Matches the workbench menu order (Home, Approvals, Tasks, Notes) the maintainer asked for in #39896: approvals, then my tasks, then notifications. Claude-Session: https://claude.ai/code/session_01Q4EjjPnSQ8vC4cCFntmXL7 Co-authored-by: Claude <noreply@anthropic.com>
|
repo:cloud@hotlong · hotlong · session_01Q4EjjQzFqHGjUAXt8kBQhV Contract reviewServed-tier: Delta round on the FAIL record 7456161763 (head Earlier findingsM1: closed. Exit (a) of the finding was taken. The ruling on #39882 (7456185687, the seat's record of the maintainer's pick 「照设置/账户的先例,写清即可」) keeps S2: closed. The dogfood file now asserts N3: closed in the diff; remainder accepted. The constant's jsdoc now names Setup, Account and Workbench and the long line is wrapped. The two comments in N4: closed. ① Derived judgments
② Semver levelUnchanged and still right: ③ Boundary flags
④ Design judgment
N5 (nit): the docs row calls N6 (nit): the PR body's verification line says the menu order "is now pinned by the cli and dogfood tests". Only the cli test pins order; the dogfood case reads items through a No must-fix, no should-fix. Final round. Implemented-by: VERDICT: PASS |
|
repo:cloud@hotlong · hotlong · session_01Q4EjjQzFqHGjUAXt8kBQhV L1: ACCEPT at head
|
Requested by Jack · project thread
Fixes #39882 (epic #39871, phase-1 MVP; #39872, #39883, #39885 and objectstack-ai/cloud#5486 build on it).
What changes
@objectstack/workbench(packages/apps/workbench, idcom.objectstack.workbench, ADR-0048 one app per package), in the.changesetfixed group.WorkbenchAppPluginregistersWORKBENCH_APP, declared inpackages/platform-objects/src/apps/workbench.app.tsbeside Setup and Account.type: 'component',componentRef: 'workbench:home'; the registration is Workbench MVP: the home page — greeting, ask-AI slot, today's three columns, recents, a "my apps" rail and the add-app slot, from the retired desktop home's sections #39883's, this PR mounts no placeholder), 审批 (approvals:inbox,requiresService: 'approvals'), 任务 (sys_task, opens onassigned_to_me;created_by_me/allare its view tabs), 备忘 (sys_note, opens onmine;allbeside it). No 通知, no AI entry.workbench: a customer package with namespaceworkbench, or a customer app namedworkbench, collides with the built-in one: refused at install or boot as a namespace conflict, a bareworkbenchread becomes ambiguous, and/me/appsmerges the two apps by name. The fix is to rename the customer's namespace or app (e.g.acme_workbench) and its references (navigation,tabPermissions,apps.workbench.*keys). Stated in the changeset and in the i18n-standard row; the declaration lines stayClause-②: yes (widening)/Metadata-protocol: addedper the maintainer's ruling on Workbench MVP: declare the platform built-in app com.objectstack.workbench (menu 首页 / 任务 / 备忘 / 审批) and register it in the framework assembly roots #39882.zh-CNthere), with the app added toapp-nav-translation-parity.test.ts, the i18n extract config andcheck:app-nav-i18n.packages/cli/src/commands/serve.ts(os serve, whichos devruns) andpackages/plugins/plugin-dev/src/dev-plugin.ts(DevPlugin). Dependencies added to@objectstack/cli,@objectstack/plugin-dev, and@objectstack/dogfood(dev).PLATFORM_PROVIDED_APP_NAMES(packages/spec/src/system/constants/platform-app-names.ts) gainsworkbench, as its maintenance contract requires in the same change as the boot loops (both conformance pins read the loops). This is the PR's onlypackages/specline.@objectstack/workbenchabsent too;@objectstack/workbenchis aliased to source in the cli, plugin-dev and dogfood vitest configs (check:test-source-alias).Why
The workbench is the landing app for new people (epic #39871). Shape changed from the card by maintainer ruling, 2026-12-06, in the project thread (two decision cards; the seat records them on the card and the epic):
So, unlike the card's "declared like Account":
scope: 'project', noprotectionlock. The ADR-0146 ensure door gives it a.custompair (a system-scope package gets none, ruling record 6691217245), so an administrator customizes the app there. It is still not uninstallable, as no booted code package is (isWritablePackage), but nothing promises that./me/appsexemption. Visible to every signed-in person by default (norequiredPermissions); a permission set'stabPermissions: { workbench: 'hidden' }hides it for some people or for everyone, which is the answer for a customer who does not want it. Hiding is a launcher matter: a direct link still opens the app, the same contract as any hidden app. Landing and the switcher falling back to the first visible app is Workbench: every sign-in lands on /home, the retired desktop home revived as the workbench (with a per-user "land in last app" preference) #39872's and Workbench MVP: 工作台 as the first app row of the existing switcher menu, desktop and phone — the way back from any app #39885's.Verification
packages/qa/dogfood/test/workbench-built-in-app.dogfood.test.ts(new, served showcase stack + the workbench plugin): every member is offered it and the menu serves home/approvals/tasks/notes; a permission set hides it for that member only, and that member can stillGET /meta/app/workbench(direct link opens); an admin's.custompair override (label + a renamed item) is served to a member. 3/3 pass.packages/cli/src/adr-0048-app-split.test.ts: registers under its own id and namespace, project scope, no lock, no gate, the four-item menu in order home, approvals, tasks, notes. Withserve-platform-app-names.pin.test.tsandserve-cluster-host-resolution.test.ts: 41/41.platformslice green.check:test-source-alias,check:app-nav-i18n,check:type-check-coverage,check:changeset-fixed,check:empty-changeset,check:adr-0087-registration,check:package-naming,check:published-files,check:manifest-repository-directory,check:published-readme-links,check:undeclared-dep-imports,check:workspace-manifest-cycles,check:turbo-task-graph,check:doc-authoring,check:dts-closure,check:lean-entry-closure,check:cross-package-test-inputs,check:tier-file-adoption,check:pnpm-filter-targets,check:i18n-coverage,check:merge-driver,check:llms-txt;@objectstack/spec check:generatedclean; eslint on changed files clean.pnpm dev -- --fresh(showcase) at this head, console in 简体中文: the boot log lists@objectstack/workbench;/me/apps=showcase_app, setup, account, workbench; the sidebar read 首页 / 任务 / 备忘 / 审批 (before the reorder; the order is now pinned by the cli and dogfood tests); 任务 opens 分配给我的, 备忘 opens 我的备忘, 审批 opens 审批中心; 首页 shows "Component not registered — workbench:home" until Workbench MVP: the home page — greeting, ask-AI slot, today's three columns, recents, a "my apps" rail and the add-app slot, from the retired desktop home's sections #39883 lands.Acceptance notes:
.customoverride of an app replaces the document whole. If it does, items the platform adds later (phase-2 日程 / 通讯录) will not appear in an environment whose admin customized the menu until the override is re-based. That is existing override behaviour, unchanged here; worth checking before phase 2.Clause-②: yes (widening)
Metadata-protocol: added
Skills-docs: follow-up #39889
Human Minimum
packages/specholds no runtime logic.pnpm lintpasses.main, one pull request.packages/spectouched: its generated artifacts are regenerated and committed.content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.Generated by Claude Code