Skip to content

feat(workbench): the built-in Workbench app (工作台), served by os dev and os serve - #39896

Merged
objectstack-fleet[bot] merged 6 commits into
mainfrom
claude/project-thread-5ywu7k
Dec 6, 2026
Merged

objectstack-fleet[bot] merged 6 commits into
mainfrom
claude/project-thread-5ywu7k

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

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

  • New package @objectstack/workbench (packages/apps/workbench, id com.objectstack.workbench, ADR-0048 one app per package), in the .changeset fixed group. WorkbenchAppPlugin registers WORKBENCH_APP, declared in packages/platform-objects/src/apps/workbench.app.ts beside Setup and Account.
  • Menu, phase 1, in this order (approvals first after the home, as the maintainer asked): 首页 (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 on assigned_to_me; created_by_me / all are its view tabs), 备忘 (sys_note, opens on mine; all beside it). No 通知, no AI entry.
  • Claims the namespace and app name workbench: a customer package with namespace workbench, or a customer app named workbench, collides with the built-in one: refused at install or boot as a namespace conflict, a bare workbench read becomes ambiguous, and /me/apps merges 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 stay Clause-②: yes (widening) / Metadata-protocol: added per 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.
  • Labels in all 11 platform locales (the platform bundle's tags, so zh-CN there), with the app added to app-nav-translation-parity.test.ts, the i18n extract config and check:app-nav-i18n.
  • Registration in both stock boot loops: packages/cli/src/commands/serve.ts (os serve, which os dev runs) and packages/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) gains workbench, as its maintenance contract requires in the same change as the boot loops (both conformance pins read the loops). This is the PR's only packages/spec line.
  • Tests that mock the app packages absent in plugin-dev now mock @objectstack/workbench absent too; @objectstack/workbench is 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):

「工作台可以不用定位为内核包吧?」「不需要他保证它卸不掉」「如果客户就是不想要呢?」 — chose 「可改可隐藏,不给停用」

So, unlike the card's "declared like Account":

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 still GET /meta/app/workbench (direct link opens); an admin's .custom pair 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. With serve-platform-app-names.pin.test.ts and serve-cluster-host-resolution.test.ts: 41/41.
  • plugin-dev suite 91/91; platform-objects parity test 93/93; lint package platform slice green.
  • Typecheck: workbench, platform-objects, plugin-dev, dogfood, cli — clean (test-typecheck ledgers unchanged).
  • Gates 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:generated clean; eslint on changed files clean.
  • Browser, fresh 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:

Clause-②: yes (widening)
Metadata-protocol: added
Skills-docs: follow-up #39889

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.
  • 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 by Claude Code

@github-actions github-actions Bot added size/l dependencies Pull requests that update a dependency file documentation Improvements or additions to documentation protocol:system tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Dec 6, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:cloud@hotlong · hotlong · session_01Q4EjjQzFqHGjUAXt8kBQhV

Contract-review-claim: session_01Q4EjjQzFqHGjUAXt8kBQhV · head 026d7e2 · 2026-12-06T10:43Z

Owed L2 (published schema face: PLATFORM_PROVIDED_APP_NAMES; Clause-②: yes (widening)), at CONTRACT_REVIEW_TIER, by the dispatching seat.

@github-actions

github-actions Bot commented Dec 6, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 6 package(s): @objectstack/workbench, @objectstack/cli, @objectstack/platform-objects, @objectstack/plugin-dev, @objectstack/dogfood, @objectstack/spec, touching 20 documentable anchor(s). ⚠️ 12 changed file(s) yielded no anchor (packages/apps/workbench/LICENSE, packages/apps/workbench/README.md, packages/apps/workbench/package.json, …), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

15 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:

  • content/docs/automation/flows.mdx (via isDefault (symbol, a field of const object WORKBENCH_APP))
  • content/docs/getting-started/build-with-claude-code.mdx (via sys_note (literal, a string literal in navigation), sys_task (literal, a string literal in navigation))
  • content/docs/getting-started/your-first-project.mdx (via sys_note (literal, a string literal in navigation), sys_task (literal, a string literal in navigation))
  • content/docs/kernel/services-checklist.mdx (via DevPlugin (symbol, a top-level class), isDefault (symbol, a field of const object WORKBENCH_APP), com.objectstack.auth (literal, a string literal in a comment in WorkbenchAppPlugin; a string literal in dependencies))
  • content/docs/permissions/authentication.mdx (via isDefault (symbol, a field of const object WORKBENCH_APP))
  • content/docs/permissions/authorization.mdx (via isDefault (symbol, a field of const object WORKBENCH_APP))
  • content/docs/permissions/permission-metadata.mdx (via isDefault (symbol, a field of const object WORKBENCH_APP))
  • content/docs/permissions/permission-sets.mdx (via isDefault (symbol, a field of const object WORKBENCH_APP))
  • content/docs/permissions/positions.mdx (via isDefault (symbol, a field of const object WORKBENCH_APP))
  • content/docs/permissions/profiles.mdx (via isDefault (symbol, a field of const object WORKBENCH_APP))
  • content/docs/protocol/kernel/i18n-standard.mdx (via PLATFORM_PROVIDED_APP_NAMES (symbol, a top-level const object))
  • content/docs/protocol/objectui/layout-dsl.mdx (via isDefault (symbol, a field of const object WORKBENCH_APP))
  • content/docs/ui/apps.mdx (via isDefault (symbol, a field of const object WORKBENCH_APP))
  • content/docs/ui/pages.mdx (via isDefault (symbol, a field of const object WORKBENCH_APP))
  • content/docs/ui/print-pages.mdx (via isDefault (symbol, a field of const object WORKBENCH_APP))

⛔ 10 release-owned page(s) also name something this change touched. These are read-only:

  • content/docs/releases/implementation-status.mdx (via isDefault (symbol, a field of const object WORKBENCH_APP))
  • content/docs/releases/v13.mdx (via isDefault (symbol, a field of const object WORKBENCH_APP))
  • content/docs/releases/v15.mdx (via isDefault (symbol, a field of const object WORKBENCH_APP))
  • content/docs/releases/v17/17-0.mdx (via isDefault (symbol, a field of const object WORKBENCH_APP))
  • content/docs/releases/v17/17-5.mdx (via isDefault (symbol, a field of const object WORKBENCH_APP))
  • content/docs/releases/v17/17-7.mdx (via isDefault (symbol, a field of const object WORKBENCH_APP))
  • content/docs/releases/v18/18-0.mdx (via isDefault (symbol, a field of const object WORKBENCH_APP))
  • content/docs/releases/v18/18-2.mdx (via isDefault (symbol, a field of const object WORKBENCH_APP))
  • content/docs/releases/v18/18-6.mdx (via DevPlugin (symbol, a top-level class))
  • content/docs/releases/v19/index.mdx (via isDefault (symbol, a field of const object WORKBENCH_APP))

content/docs/releases/ is RELEASE-OWNED (AGENTS.md "Documentation Guardrails"): release
notes are written centrally at release time, and a code PR that edits them is the exact PR
that guardrail exists to stop. They are still audited — read-only. If one of them is actually
wrong, file an issue or open a dedicated docs-only PR; do not edit it here.

What this run could not see
  • 12 changed file(s) yielded no anchor (packages/apps/workbench/LICENSE, packages/apps/workbench/README.md, packages/apps/workbench/package.json, …) — pages documenting those are invisible to this run
  • 1 anchor(s) matched too much of the corpus to be a work list: os serve (command, 54 pages)
  • 12 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 71 of 255 client-bound route-ledger rows — the other 184 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 184: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 60 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 124 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 195 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 4064fb627d73d616e116ff297bc4f20313cb3ccc → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 0bbf34e294a90af2036568fd75aae15eecac20a9 — the merge of head 5efffd436f416461269fb39aea59076241caedb6 into base 4064fb627d73d616e116ff297bc4f20313cb3ccc, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# 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

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

Advisory only, and a precision-first one (#9192): a page is listed because it names a
symbol, wire route or SDK method this diff touched — not because it mentions a changed
package. Each row says which anchor put it there, so a wrong row is reportable rather than
merely annoying. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs 4064fb627d73d616e116ff297bc4f20313cb3ccc → pass the list as
args.docs, on the commit named under Which tree this was computed on.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:cloud@hotlong · hotlong · session_01Q4EjjQzFqHGjUAXt8kBQhV

Contract-review-claim: session_01Q4EjjQzFqHGjUAXt8kBQhV · head 8e6a82b · 2026-12-06T10:45Z

Owed L2 (published schema face: PLATFORM_PROVIDED_APP_NAMES; Clause-②: yes (widening)), at CONTRACT_REVIEW_TIER, by the dispatching seat.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:cloud@hotlong · hotlong · session_01Q4EjjQzFqHGjUAXt8kBQhV

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 8e6a82bae1d4f2c4f2608317a4e48d0269448065
Local-runs: none
Scope: packages/spec/src/system/constants/platform-app-names.ts + packages/cli/src/commands/serve.ts, packages/plugins/plugin-dev/src/dev-plugin.ts, packages/cli/src/commands/serve-platform-app-names.pin.test.ts, packages/plugins/plugin-dev/src/dev-plugin-literal-imports.pin.test.ts, packages/apps/workbench/src/index.ts, packages/platform-objects/src/apps/workbench.app.ts, packages/qa/dogfood/test/workbench-built-in-app.dogfood.test.ts, .changeset/39882-workbench-built-in-app.md
Security-touching: yes
Rule-change-verified: none

Read: the diff origin/main...8e6a82ba (48 files at 026d7e21, plus the one docs commit 8e6a82ba on content/docs/protocol/kernel/i18n-standard.mdx), the PR body, the rulings on #39882 (7455505667) and #39871 (7455516264), and the code the hit cites outside the diff (read, not reviewed): packages/lint/src/validate-translation-references.ts, packages/objectql/src/registry-packages.ts, packages/objectql/src/package-scoped-read.ts, packages/plugins/plugin-hono-server/src/current-user-endpoints.ts, packages/metadata-protocol/src/protocol.ts. Nothing was built or run. Check-runs on this head were still in progress when read (5 success, 7 skipped, 17 running, none failed); the all-green condition is the seat's to read before landing.

① Derived judgments

  • The constant's maintenance contract is kept. PLATFORM_PROVIDED_APP_NAMES gains workbench in the same change that adds ['@objectstack/workbench', 'createWorkbenchAppPlugin'] to both stock boot loops (serve.ts, dev-plugin.ts). Both conformance pins are extended (the static import, the APP_PACKAGES row, the lit control now naming three packages) and still assert set equality between the registry and what the loop's packages register. @objectstack/workbench is a declared dependency of @objectstack/cli and @objectstack/plugin-dev.
  • The one consumer of the constant only widens. validate-translation-references.ts (line 2425) is the single reader outside the pins. A stack that does not declare workbench and carries apps.workbench.* keys was an orphan error and now resolves, navigation subtree unjudged. A stack that declares its own workbench app has navIds and is not contributed-only, so the branch is not taken and it is judged against its own declaration exactly as before. At the save door (atSaveDoor) nothing changes. No previously accepted bundle is refused by this reader.
  • The declaration matches the ruling. Manifest scope: 'project'; WORKBENCH_APP has no protection block and no requiredPermissions; no disable switch; no /me/apps exemption is added (the handler's filter is tabs[app.name] === 'hidden' for every app, unchanged). Menu is 首页 (workbench:home) · 任务 (sys_task/assigned_to_me) · 备忘 (sys_note/mine) · 审批 (approvals:inbox, requiresService: 'approvals'). isDefault: false; landing is left to 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.
  • Customized label against the platform's translations. The platform bundle now ships apps.workbench.* in 11 locales while the app is the first platform app with a .custom pair. The label order for a declared override (pair translation, then the override's own label, then the base's translation; protocol.ts getPackaged*Base, ruling record 6631250894) already covers app, so an administrator's renamed label is not overwritten by the base translation. Read in code, not measured for this app.
  • The docs commit 8e6a82ba is accurate. Both table rows now name setup, account, workbench; the sentence "a stack that declares its own app under one of these names is judged against its own declaration" is true of the lint reader. See finding 1 for what it does not say about the runtime.

② Semver level

  • Clause-②: yes (widening) and Metadata-protocol: added are present line-initial in the PR body and the changeset; Skills-docs: follow-up #39889 is present. For the published-schema face alone the arm is right: the set gains a member and its reader accepts more.
  • Changeset: minor on @objectstack/workbench, @objectstack/platform-objects, @objectstack/spec, @objectstack/cli, @objectstack/plugin-dev. added owes at least minor on a package the diff moves: satisfied. @objectstack/workbench joins the fixed group at 19.0.0-next.5, the group's version. @objectstack/lint changes behaviour only through the spec constant and is in the fixed group. @objectstack/dogfood is test-only.
  • Finding 1 bears on this section: the diff also takes a namespace and an app name from every environment, which the declaration and the changeset do not mention.

③ Boundary flags

④ Design judgment

packages/spec/src/system/constants/platform-app-names.ts: the change holds against the cited code and the acceptance scenarios, with one gap.

Finding 1 — must-fix: the PR takes the namespace workbench and the bare app name workbench in every stock environment, and nothing declares it. Read in code, not run:

  • WorkbenchAppPlugin registers a manifest with namespace: 'workbench'. The install-time namespace gate (registry-packages.ts, ADR-0048 phase 1) throws NamespaceConflictError when a second, non-co-owner package holds a namespace, unless OS_METADATA_COLLISION=warn. An existing environment with a package whose namespace is workbench therefore loses one of the two at boot after this upgrade: its own package, or (inside the loops' best-effort try) the platform app silently. Which one depends on registration order, which was not measured.
  • app is a package-scoped read type (package-scoped-read.ts, "what this changes" item 1): a bare name two packages hold, read by a caller with no package, is refused naming both. An existing app named workbench in a customer package was served at /meta/app/workbench and /apps/workbench; with the platform's beside it those bare reads are refused.
  • /me/apps keys its list by app.name (current-user-endpoints.ts), so two apps named workbench collapse to one entry, and tabPermissions: { workbench: 'hidden' } hides both.
  • "工作台 / workbench" is a likely name for a customer's own app. No app or namespace named workbench exists in this repo's examples, hotcrm or cloud (grep), so nothing in-tree breaks; the exposure is external stacks.
  • By the letter of AGENTS.md Post-Task step 3, a value an author could write and that is now refused is narrowed, which outranks added and makes the changeset BREAKING with an ADR-0087 disposition. setup and account took their names the same way, so there is precedent for treating a built-in's name as not a narrowing, but that precedent is not written on this card.
  • To close, one of: (a) the changeset and PR body state the collision and the remedy for an upgrader (rename the app or namespace, or OS_METADATA_COLLISION=warn and what it does), and the seat records on Workbench MVP: declare the platform built-in app com.objectstack.workbench (menu 首页 / 任务 / 备忘 / 审批) and register it in the framework assembly roots #39882 the maintainer's word that a built-in app occupying a name keeps the widening/added declaration; or (b) the declaration becomes Clause-②: no (narrowing) / Metadata-protocol: narrowed with its migration and ADR-0087 marker. The docs row added in 8e6a82ba should then say that a stack's own app under one of these names collides with the served one at runtime. The choice between (a) and (b) is the maintainer's, not the reviewer's; phase 2 (and any later built-in) will meet the same question.

Finding 2 — should-fix: the dogfood file does not prove two things the PR's prose states as behaviour. workbench-built-in-app.dogfood.test.ts proves offered-to-all (member and admin), hidden for one person with a control before and another member unaffected, and a .custom override (label and one renamed item) served to a member. It does not prove (i) "Hiding is UI visibility, not access: the app keeps opening from a direct URL" (workbench.app.ts docblock, a statement in a security-adjacent sentence with no assertion behind it: add a GET /meta/app/workbench as the hidden member, or drop the sentence), and (ii) the 审批 item, which is absent from the served-menu assertions (assert it present where the approvals service runs, or absent with the reason). "Hidden for everyone" is the same mechanism as (hidden for one) and needs no separate case.

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. validate-translation-references.ts (docblock near line 225 and the comment above line 2425) still lists "(Setup, Account)"; it is outside the diff, so a follow-up or the same prose pass.

Finding 4 — nit: the README and module notes say "the app every signed-in person lands in" (package.json description) while isDefault is false and landing is #39872's. Reword to "can enter" until that card lands, as the README body already does.

Not findings: the manifest's dependencies: ['com.objectstack.plugin-auth'] and plugin dependency com.objectstack.auth mirror Account's; the i18n-extract config, check-app-nav-i18n roster and the parity test all gain the app; the plugin-dev mock additions and the three vitest source aliases follow the existing pattern.

Implemented-by: claude/project-thread-5ywu7k
Reviewed-by: session_01Q4EjjQzFqHGjUAXt8kBQhV

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>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:cloud@hotlong · hotlong · session_01Q4EjjQzFqHGjUAXt8kBQhV

Contract-review-claim: session_01Q4EjjQzFqHGjUAXt8kBQhV · head 5efffd4 · 2026-12-06T11:02Z

Owed L2 (published schema face: PLATFORM_PROVIDED_APP_NAMES; Clause-②: yes (widening)), at CONTRACT_REVIEW_TIER, by the dispatching seat.

hotlong pushed a commit that referenced this pull request Dec 6, 2026
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>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:cloud@hotlong · hotlong · session_01Q4EjjQzFqHGjUAXt8kBQhV

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 5efffd436f416461269fb39aea59076241caedb6
Local-runs: none
Scope: packages/spec/src/system/constants/platform-app-names.ts + packages/platform-objects/src/apps/workbench.app.ts, packages/cli/src/adr-0048-app-split.test.ts, packages/qa/dogfood/test/workbench-built-in-app.dogfood.test.ts, .changeset/39882-workbench-built-in-app.md
Security-touching: yes
Rule-change-verified: none

Delta round on the FAIL record 7456161763 (head 8e6a82ba). Read: the diff 8e6a82ba..5efffd43 (one commit, 8 files), the updated PR body, and the ruling the seat recorded on #39882 (7456185687). Everything the earlier record found to hold outside this delta is unchanged by it and stands. Nothing was built or run. Check-runs on this head were still in progress when read (13 success, 13 skipped, 30 running, none failed); the all-green condition is the seat's to read before landing.

Earlier findings

M1: closed. Exit (a) of the finding was taken. The ruling on #39882 (7456185687, the seat's record of the maintainer's pick 「照设置/账户的先例,写清即可」) keeps Clause-②: yes (widening) / Metadata-protocol: added for a built-in occupying the name, on the setup/account precedent, and requires the collision and remedy to be stated. They are: the changeset has a bullet naming the namespace and the app name, the three effects (package refused at install or boot as a namespace conflict, a bare workbench read ambiguous, /me/apps merging the two by name) and the remedy (rename, and update navigation, tabPermissions and apps.workbench.* keys); the PR body carries the same paragraph and points at the ruling; the apps.{app} row of i18n-standard.mdx now says a stack package or app of that name collides and should be renamed. The three stated effects match the code read last round. Both declaration lines are unchanged in the PR body and the changeset, as ruled.

S2: closed. The dogfood file now asserts nav_workbench_approvals (component, approvals:inbox) in the menu served to a member, with the reason it is present on this stack, and the hidden member's direct GET /meta/app/workbench answering 200 with name: 'workbench' after the launcher no longer offers it. The docblock sentence in workbench.app.ts now has an assertion behind it.

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 packages/lint/src/validate-translation-references.ts that list "(Setup, Account)" are outside this PR's diff and stay stale: accepted deviation, for the docs follow-up #39889 or any next touch of that file.

N4: closed. package.json description reads "offered to every signed-in person".

① Derived judgments

  • The published face is untouched in substance. The delta on platform-app-names.ts is jsdoc only; the set is the same three names, so both conformance pins and the lint reader are as reviewed.
  • Menu order. WORKBENCH_APP.navigation is now 首页, 审批, 任务, 备忘: the approvals entry moved, body unchanged (same id, componentRef, requiresService). adr-0048-app-split.test.ts pins the order with an ordered toEqual. Translation bundles key by id, so no locale file needs to move. The changeset, the module note and the PR body state the new order.
  • packages/spec/llms.txt counts 79 packages (was 78), matching the one package this PR adds. Not under packages/spec/src, so not part of the hit.

② Semver level

Unchanged and still right: Clause-②: yes (widening), Metadata-protocol: added, Skills-docs: follow-up #39889; minor on the five listed packages. The reorder of a new app's menu inside the PR that introduces it changes nothing shipped. The name claim is declared as ruled (M1).

③ Boundary flags

④ Design judgment

packages/spec/src/system/constants/platform-app-names.ts: holds. New findings from the delta, both nits:

N5 (nit): the docs row calls workbench "a reserved namespace". In this codebase that phrase already names PLATFORM_RESERVED_NAMESPACES (base, system, sys), which are the shareable ones, the opposite behaviour; and the sentence singles out workbench although setup and account collide the same way. Suggested wording: "Each of these names is also taken as a namespace and app name by the built-in app: a stack package or app of that name collides with it at install, boot and /me/apps, so rename it." Prose face only.

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 Map by id and asserts presence. Either reword the PR body or leave it; no code change is asked for.

No must-fix, no should-fix. Final round.

Implemented-by: claude/project-thread-5ywu7k
Reviewed-by: session_01Q4EjjQzFqHGjUAXt8kBQhV

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:cloud@hotlong · hotlong · session_01Q4EjjQzFqHGjUAXt8kBQhV

L1: ACCEPT at head 5efffd43 · reviewer of record repo:cloud@hotlong · read 2026-12-06T11:05Z.

Merged via the queue into main with commit ac67006 Dec 6, 2026
80 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-5ywu7k branch December 6, 2026 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file documentation Improvements or additions to documentation protocol:system size/l tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

2 participants