Skip to content

refactor(example-starter): rename the Starter namespace from starter to biz - #38405

Merged
objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/issue-38371-starter-namespace-biz
Nov 29, 2026
Merged

objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/issue-38371-starter-namespace-biz

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Leehom · project thread
Fixes #38371
Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户能看到什么变化:新工作区装上的基础模板应用里,公司、联系人、应用、仪表盘和两个数据集的接口名前缀从 starter 换成 biz,界面上的显示名称不变。
  • 为什么做:维护者裁定模板应用的前缀改为 biz,替看接口名的搭建者和 AI 去掉像临时代号的前缀,赶在下一次版本发布把模板推上预发市场之前。
  • 出错会怎样:只影响新装的模板应用;已经装过旧版的环境保留原有对象不受影响,本改动可以直接撤回。
  • 要你做什么:无。

What changes

The Starter app (examples/app-starter) now declares namespace: 'biz', and every API name that carried starter_ carries biz_:

Was Now
starter_company biz_company
starter_contact biz_contact
starter_app biz_app
starter_overview_dashboard biz_overview_dashboard
starter_company_metrics biz_company_metrics
starter_contact_metrics biz_contact_metrics

Every reference follows: the contact's company lookup, the company's related list, the views' data.object, the menu, the dashboard widgets' datasets, the translation keys in both locales, the README listing text and the boot test. Unchanged, per the ruling: manifest.id (com.example.starter), the package name, file names and the display name. No alias and no retirement window (the Starter installs unmanaged, ADR-0131 D6).

The blank-template parity test (packages/create-objectstack/src/blank-template-starter-parity.test.ts) now guards the Starter's namespace as 'biz'; the blank template itself keeps blank_* and namespace: 'blank'. The publish script's self-test fixture spells the same namespace. One patch changeset for @objectstack/example-starter.

The cloud half is carried by objectstack-ai/cloud#5282; the knowledge-article card #38372 starts from this branch.

First read (by risk):

  1. examples/app-starter/src/translations/starter.translation.ts: the nested object, app, dataset and dashboard keys in both locales; a missed key would surface as an untranslated label.
  2. packages/create-objectstack/src/blank-template-starter-parity.test.ts: the namespace guard is the one assertion that changed value.
  3. examples/app-starter/test/boot.test.ts: the install, menu and uninstall paths now read biz_*.

Tests

  • pnpm --filter @objectstack/example-starter validate: Validation passed.
  • pnpm --filter @objectstack/example-starter test: Test Files 1 passed (1), Tests 5 passed (5) (installs unmanaged, reads the menu, uninstalls).
  • pnpm --filter @objectstack/example-starter typecheck: exit 0.
  • pnpm --filter create-objectstack exec vitest run --maxWorkers=2 src/blank-template-starter-parity.test.ts: Tests 9 passed (9); pnpm --filter create-objectstack typecheck: exit 0.
  • node scripts/ci/publish-starter-marketplace.mjs --self-test: 20 cases pass.
  • After building the Starter, --dry-run prints "namespace": "biz" and "manifest_id": "com.example.starter"; the built dist/objectstack.json holds 0 starter_ names.

All readings at head d11655c.

Acceptance notes

  • git grep -n "starter_" -- examples/app-starter ':!examples/app-starter/CHANGELOG.md' prints nothing at d11655c.
  • Outside examples/app-starter, the only remaining starter_company spellings are the two standalone fixtures the card puts out of scope (packages/spec/src/stack-nav-platform-object-requires-object.test.ts, packages/lint/src/validate-object-references.test.ts); neither reads the Starter.

Verification

Two-minute check: pnpm --filter @objectstack/example-starter test shows 5 passed, and the menu assertion lists biz_company, biz_contact, sys_task, sys_note.

Derived local gate subset (dispatch-gates --commands at d11655c)

81 derived; 78 run with exit 0 (check-plugin-teardown-shape --self-test first exited 3 on the shallow clone, then 0 after fetching its pinned fixture commit; check:i18n-coverage first refused on missing builds, then OK after building its prerequisite closure: 15 configs, none new). NOT MEASURED, left to CI: check:dual-build-cjs-loads (needs a whole-workspace build), check:type-check-debt (whole-workspace sweep) and check:pm-dispatch-gates (beyond the foreground cap). Dogfood: not owed (no ! title, no narrowing arm).


Generated by Claude Code

🤖 Generated with Claude Code

…r to biz

The two objects, the app, the dashboard, the two datasets and their
translation keys move from starter_* to biz_*; every reference (lookup,
related list, view data.object, menu, dashboard widgets, both locales)
follows. The manifest id com.example.starter, the package name, the file
names and the display name are unchanged. The blank-template parity test's
namespace guard now reads 'biz'; the publish script's self-test fixture
spells the same namespace.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEkQ5oQLfL8thb6wtUHnTb
@github-actions github-actions Bot added size/m 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 Nov 29, 2026
@github-actions

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 0 changed package(s)), so this run has no opinion about the docs.

What this run could not see

Coarse fallback — 0 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 f42bcc18c6de5f44916ac3eee73725d699c48ba3 → packageMentionDocs.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-project-manager · session_01FEkQ5oQLfL8thb6wtUHnTb

Final green head for L1: d11655c — 40 success, 17 skipped, 0 failed; mergeable clean. 15 files, +64 −54. Not governed; Clause-②: no, Metadata-protocol: none, so no contract review is owed. Dev report: card #38371 comment 7247818029. L1 requested from thread L1-a. Time-bound: must merge before the next Version Packages PR (#38192, still open).

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-project-manager · session_01FEkQ5nNJM8FQkBco82NDFb

席位核对

L1 (thread L1-a, for area o5-ai37000) · read 2026-11-29T00:30Z · Head-sha: d11655caedaf1c02967d2e531e6eada555471b87 · verdict ACCEPT

This is the first L1 record on this PR, a full review.

Checklist (l1-face --pr 38405 at d11655c: one flag, all else ok)

  • Flag changeset (create-objectstack touched, no entry): judged not owed. The only create-objectstack file in the diff is src/blank-template-starter-parity.test.ts, which changes its namespace guard ('starter' → 'biz') and three comments. create-objectstack's files is dist, README.md and CHANGELOG.md, built by tsup, so a test file ships nothing and no entry is owed. The PR carries a changeset for @objectstack/example-starter (patch), as the card asks.
  • Shape: open, draft, base main. Fixes objectstack-ai/objectstack#38371 is right: every acceptance line is met (below). 15 files, +64/−54, all on the card's File surface. Not governed, Clause-②: no · Metadata-protocol: none. No contract face, so no L2 is owed.
  • Changeset read sentence by sentence against the diff: it lists six renamed API names, starter_* → biz_* (objects biz_company / biz_contact, app biz_app, dashboard biz_overview_dashboard, datasets biz_company_metrics / biz_contact_metrics), plus their translation keys. All six are in the hunks. "The manifest id stays com.example.starter": objectstack.config.ts:25 at head. "Package name and display name unchanged": yes. "No alias … an environment that already installed it keeps its starter_* objects": this matches the card (unmanaged copy, ADR-0131 D6; both publish workflows had 0 runs when the card was filed).
  • Gates at d11655c: 40 success, 17 expected skip, 0 failed, 0 pending; mergeable_state clean. In the Test Core shard logs I found create-objectstack:test ✓ src/blank-template-starter-parity.test.ts (9 tests) and @objectstack/example-starter:test ✓ test/boot.test.ts (5 tests).

Acceptance, line by line (read at this head)

  • namespace: 'biz', manifest id unchanged: ✓ (objectstack.config.ts:25-26).
  • git grep -n "starter_" -- examples/app-starter ':!examples/app-starter/CHANGELOG.md' → prints nothing ✓.
  • Every reference moved: lookup Field.lookup('biz_company'), related list biz_contact, view data.object, the three menu entries, six dashboard widget datasets, the dataset objects, and translation keys ✓.
  • README (the listing text) names biz_company / biz_contact ✓. Parity guard reads 'biz', blank template untouched ✓. Publish script: self-test fixture only ✓.
  • Repo-wide starter_(company|contact|app|overview) outside CHANGELOG/.changeset: only packages/lint/src/validate-object-references.test.ts:720 and packages/spec/src/stack-nav-platform-object-requires-object.test.ts:37,48, the standalone fixtures the card puts out of scope. Nothing reads the Starter by those names.

Accepted (nit, no action): the publish script's fixture keeps apps: [{ name: 'starter' }] beside namespace: 'biz'. It is a self-test fixture whose app name the script does not judge, and the card marks that file "self-test fixture only, optional".

Landing: non-governed; the area lands it (check-governed-merges.mjs --pr 38405 first). Time-bound: before the next Version Packages PR (#38192).

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-project-manager · session_01FEkQ5oQLfL8thb6wtUHnTb

ACCEPT → PR #38405 comment 7248164169 (L1, thread L1-a, head d11655c).
Landing: not governed (check-governed-merges --pr 38405: 118 changed lines, under the threshold); no contract face, no L2 owed; all checks green or expected skip at this head. Ready and auto-merge armed by the area. Fixes #38371.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 29, 2026 00:31
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 29, 2026
Merged via the queue into main with commit d751790 Nov 29, 2026
58 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-38371-starter-namespace-biz branch November 29, 2026 00:55
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/m 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.

examples/app-starter: the Starter's namespace is starter; rename it to biz, keeping the manifest id

2 participants