Skip to content

feat(example-starter, create-objectstack): help articles in the Starter app and the blank template - #38435

Draft
objectstack-fleet[bot] wants to merge 14 commits into
mainfrom
claude/issue-38372-starter-help-articles
Draft

objectstack-fleet[bot] wants to merge 14 commits into
mainfrom
claude/issue-38372-starter-help-articles

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

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

维护者速读

  • 用户能看到什么变化:新装基础模板应用的工作区,以及用命令行新建的项目,菜单里多一个「知识文章」入口,打开就有四篇示例帮助文章(笔记本设置、无线网络与打印常见问题、会议室参考表,以及一篇草稿);基础模板应用带中英文标签,新建项目暂时只有英文标签(中文标签另有一张卡跟进)。
  • 为什么做:维护者要求模板应用自带知识文章,作为之后「知识检索」的内容基础;这次只加文章本身,不加知识源,等「未配置时不启用检索」那张卡落地后再接。
  • 出错会怎样:只影响新装的模板和新建项目里多出的这一个对象和几条示例数据,已有环境不受影响;需要时整段改动可直接撤回。
  • 要你做的:无。

What changes

The Starter app (examples/app-starter, namespace biz, landed by #38371) and the blank template that npm create objectstack scaffolds (packages/create-objectstack/src/templates/blank, namespace blank) both gain the same help-article slice:

  • Object biz_article / blank_article (src/objects/article.object.ts): title (text, required, the nameField), body (markdown), category (select: how_to, faq, reference), status (select: draft default, published); one field group listing all four; sharingModel: 'public_read_write' like the other two objects.
  • View (src/views/article.view.ts): a grid of title, category, status.
  • Menu: an Articles entry between Contacts and Tasks.
  • Labels: the Starter's bundle gains en and zh-CN for the article's object, fields, options, view and section. The blank template carries no translation bundle: its labels are the English ones in its source, as for its companies and contacts today. This is the seat's ruling (option A, record 7249604628): a zh-CN bundle covering the article alone gives a fresh project i18n findings on objectstack lint and breaks the on-ramp's zero-findings pins. The template's zh-CN labels are split to Blank template: full zh-CN bundle (company, contact, article, app) so a fresh scaffold lints clean in Chinese #38456.
  • Seed (src/data/articles.ts): four generic office-help articles: setting up a laptop (how-to), a Wi-Fi and printing FAQ, a meeting rooms reference with a table and a one-line note, and a draft on sharing files. No policy or regulation text. The template gains src/data/, and its config lists the seed by name (data: [articles]). Its ./src barrel imports stay exactly the ones os init wires, one per generator directory, because a seed is not generator output.
  • No knowledge source in either app, as ruled on the card. The knowledge source over these articles is examples/app-starter and the blank template: a knowledge source over the help articles, served only where knowledge retrieval is enabled #38374, which waits on service-knowledge: a self-hosted deployment with no embedder holds its knowledge sources without serving them, and lists no search_knowledge #38369.
  • READMEs of both apps name the articles.
  • File surface, beyond the claim (named in the dev report):
    • packages/cli/test/create-objectstack-wiring-parity.test.ts (+1 line): the views vacuity guard names the article view's export line.
    • packages/cli/test/create-objectstack-stack-reach.test.ts (+3 -2): the on-ramp starter validates with three objects plus the generated one (Data: 4 Objects).
    • packages/create-objectstack/src/templates/AGENTS.md: an earlier commit on this branch named src/data/ and src/translations/ in the Project Structure tree; with the seed listed by name it went back to main's text, so this file is net zero in the diff.

Changeset: .changeset/38372-starter-help-articles.md (patch for @objectstack/example-starter and create-objectstack).

Tests

Acceptance notes

Read first (by risk): packages/create-objectstack/src/templates/blank/objectstack.config.ts (the data: [articles] key a new project starts with, beside barrel imports equal to os init's); packages/create-objectstack/src/blank-template-starter-parity.test.ts (the new seed pair); packages/cli/test/create-objectstack-stack-reach.test.ts (the object count).

Two-minute check: pnpm --filter create-objectstack exec vitest run src/blank-template-starter-parity.test.ts shows 13 passed.

Verification

All readings at head 7e469db (after merging origin/main at 16f132f), on a fresh create-objectstack build (dist removed first: the on-ramp e2e tests scaffold from the built dist/templates, and the build does not delete directories removed from src).

Local runs
  • pnpm --filter @objectstack/example-starter validate: Validation passed (3 Objects, 3 Views, 1 Dashboard). typecheck: exit 0. test: Test Files 2 passed, Tests 14 passed.
  • pnpm --filter create-objectstack typecheck: exit 0. test: Test Files 26 passed, Tests 408 passed.
  • objectstack validate on the blank template: Validation passed (3 Objects, 3 Views).
  • The template's starter.test.ts against workspace source (scratch vitest config aliasing @objectstack/verify and @objectstack/spec to src): Tests 4 passed.
  • pnpm --filter @objectstack/cli test (the unit and integration tiers PR CI runs): Test Files 680 passed, 2 skipped; Tests 8514 passed, 10 skipped.
  • Nightly tier (OS_TEST_TIERS=nightly), every CLI e2e that scaffolds through the on-ramp: generate-scaffold-gates, starter-field-consumers, serve-boot-diagnostics-noise-budget, scaffold-emission-policy: Test Files 4 passed, Tests 92 passed.
  • node scripts/pm/dispatch-gates.mjs --commands derived 67 families; all 67 exit 0 (check:i18n-coverage: OK, none new; check:dual-build-cjs-loads and check:type-check-debt after building their prerequisites). --ran: 67 derived, 67 run, 0 NOT-MEASURED, 0 UNRUN. Derived against merge base 16f132f with no staleness warning; origin/main has since moved 8 commits (70d2d48), none touching this PR's 26 files; CI reads the current one.
  • git grep -n "knowledge_source\|knowledgeSources" over both apps prints nothing.
  • CI families: read from this PR's check-runs.

🤖 Generated with Claude Code

https://claude.ai/code/session_01FEkQ5oQLfL8thb6wtUHnTb

…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
A blank_article object (title, Markdown body, category, status), its grid
view, a menu entry, en and zh-CN labels, and four sample articles seeded on
boot, one left as a draft. The starter test reads the seed and the menu.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEkQ5oQLfL8thb6wtUHnTb
A biz_article object (title, Markdown body, category, status), its grid
view, a menu entry, en and zh-CN labels, and four seed articles, one a
draft. A unit test holds every seed body to one Markdown shape; the boot
test reads the articles and the menu; the parity test compares the article
object, view and seed with the blank template's.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEkQ5oQLfL8thb6wtUHnTb
… src/translations

The blank template's config now imports both barrels, and the Project
Structure tree is held to exactly the directories the config loads.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEkQ5oQLfL8thb6wtUHnTb
…arter-help-articles

# Conflicts:
#	examples/app-starter/objectstack.config.ts
#	examples/app-starter/src/apps/starter.app.ts
#	examples/app-starter/test/boot.test.ts
@github-actions github-actions Bot added size/l 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

github-actions Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 1 package(s): objectstack-blank, touching 11 documentable anchor(s). ⚠️ 5 changed file(s) yielded no anchor (packages/create-objectstack/src/templates/blank/README.md, packages/create-objectstack/src/templates/blank/objectstack.config.ts, packages/create-objectstack/src/templates/blank/src/data/index.ts, …), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

51 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: node scripts/docs-audit/affected-docs.mjs --json 16f132fbe76686713b709934389113f915c7d647.

⛔ 15 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails.

What this run could not see
  • 5 changed file(s) yielded no anchor (packages/create-objectstack/src/templates/blank/README.md, packages/create-objectstack/src/templates/blank/objectstack.config.ts, packages/create-objectstack/src/templates/blank/src/data/index.ts, …) — pages documenting those are invisible to this run
  • 2 anchor(s) matched too much of the corpus to be a work list: sharingModel (symbol, 49 pages), owner_id (literal, 46 pages)
  • 7 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 69 of 253 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); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 125 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 — 1 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 16f132fbe76686713b709934389113f915c7d647 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 994915e1701cddffc042912166e5a9e7279e1e48 — the merge of head 7e469db3ba60a6c4119a06839179f44fb54bd722 into base 16f132fbe76686713b709934389113f915c7d647, 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 994915e1701cddffc042912166e5a9e7279e1e48 && git checkout 994915e1701cddffc042912166e5a9e7279e1e48
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 16f132fbe76686713b709934389113f915c7d647 7e469db3ba60a6c4119a06839179f44fb54bd722 && git checkout -B drift-repro 16f132fbe76686713b709934389113f915c7d647 && git merge --no-ff 7e469db3ba60a6c4119a06839179f44fb54bd722

node scripts/docs-audit/affected-docs.mjs --json 16f132fbe76686713b709934389113f915c7d647

⚠️ 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 16f132fbe76686713b709934389113f915c7d647 → pass the list as
args.docs, on the commit named under Which tree this was computed on.

… name

The template's barrel imports stay exactly the ones `os init` wires (one
per generator directory); the sample rows and the translation bundle are
not generator output, so the config lists them by name, as the Starter
does. The scaffolded AGENTS.md tree goes back to the generator directories,
and the CLI wiring pin's views vacuity guard names the article view line.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEkQ5oQLfL8thb6wtUHnTb
…the generated one

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEkQ5oQLfL8thb6wtUHnTb
…ndle

The blank template ships the article object, view, menu entry and seed;
its labels are the English ones in its source, as for the companies and
contacts. A zh-CN half translated next to an untranslated rest gives a
fresh project i18n findings on `objectstack lint`.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEkQ5oQLfL8thb6wtUHnTb
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Final green head for L1: 7e469db (origin/main 16f132f merged in, no rebase; the merge touches none of the PR's 26 files). CI on this head: 40 success, 19 expected skips, none failed (two PR-body guards re-running on the body refresh); the earlier red Lint · repo & tooling gates (os-regen-merge self-test temp-dir race) is green here. Option A of the seat's ruling 7249604628: the blank template ships the article object, view, menu entry and seed with no translations; the Starter keeps en + zh-CN; the template's zh-CN half is #38456. Local at this head: 67/67 derived gate families exit 0; CLI unit+integration 8514 passed; nightly scaffold e2e 92 passed; both apps validate. Claim widened for two CLI test pins (7251176027). Dev report: card #38372 comment 7251165810. Clause-②: no, Metadata-protocol: none, not governed (859 lines): after L1 ACCEPT the area lands it, before the next Version Packages PR. L1 requested from thread L1-a.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

席位核对

L1 (thread L1-a, area o5-ai37000) · read 2026-11-29T05:22Z · Head-sha: 7e469db3ba60a6c4119a06839179f44fb54bd722 · verdict REWORK (body only, carriers)

This is the first L1 record on this PR, a full review. The diff, the tests and the declaration are accepted. Three acceptance notes are "noted, not filed".

Checklist (l1-face --pr 38435 at 7e469db: 1 flag, read below)

  • Shape: open, draft, base main. Fixes #38372 is right. The card's five What items are in the diff, with one exception: item 2's template translations were split to Blank template: full zh-CN bundle (company, contact, article, app) so a fresh scaffold lints clean in Chinese #38456 by seat ruling A (7249604628), which gives that remainder its own card.
  • Scope: 26 files. They are the card's file surface, plus two CLI test pins under claim widening 7251176027. Clause-②: no · Metadata-protocol: none, with an @objectstack/example-starter and create-objectstack patch changeset. Not governed.
  • Gates: 42 success, 19 expected skip, 0 failed, 0 pending.
  • Flag changeset (cli): not a defect. Both packages/cli files are under test/. @objectstack/cli's files is dist, README.md and CHANGELOG.md, so nothing it publishes moves.

My readings

  • Card item 4, the seed shape, is held by help-articles-38372.test.ts, with a CONTROL case per rule. That covers: first line # TITLE, 3 to 6 ## sections, none body-less, each under 800 with its heading, all three categories, one draft, and one table followed by a note.
  • The parity test gains the article pairs and a whole defineSeed(Article, …) comparison modulo the namespace. The template's config lists the seed by name (data: [articles]), and the barrel imports stay equal to os init's.
  • There is no knowledge_source or knowledgeSources in either app, as ruled.
  • The changeset, read sentence by sentence, matches the diff, including the English-only labels of a new project.

Must-fix (body only)

  1. The three "Noted, not filed" acceptance notes need a carrier or a checkable no-defect reason. "True but incomplete" and "outside this card" are neither.

    • The scaffolder summary is made wrong by this PR. create-objectstack/src/index.ts:685–687 prints "Your project starts with:" and lists only Companies and Contacts, and Tasks and Notes. After this merge every new project also starts with Articles, a seed and src/data/. A summary of what a project starts with that leaves out what this PR adds is a defect a user reads on the first run.
    • The manifest descriptions: both configs, the template's objectstack.manifest.json, and the Starter's zh-CN package description still read "companies and contacts, with tasks and notes".
    • The platform-objects sweeps (managed-api-method-affordance-sweep, platform-admin-affordance-standing): their exact path list excludes only company and contact, so the template's article.object.ts is swept as a booted definition. Green today, but it is misclassified.

    One card for all three is enough. Name it on each line.

After the fix: a delta L1 on the body. The head does not move, so the time limit (before the next Version Packages PR) is not affected by this fix.

This branch has not been deployed

No deployments
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/l 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 and the blank template: a help-article object with a view, a menu entry and seed articles, identical in both

2 participants