Skip to content

docs(getting-started): the Build with Claude Code tutorial lays out its ticket by field groups, not an internal form - #38670

Merged
objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/issue-38641-tutorial-no-internal-form
Nov 30, 2026
Merged

objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/issue-38641-tutorial-no-internal-form

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Requested by Steve · project thread
Fixes #38641
Clause-②: no
Metadata-protocol: none

维护者速读

  • 照着入门教程搭支持台应用的开发者:工单视图里不再写一张平台早已不加载的内部新建/编辑表单,改由工单对象的字段分组决定新建和编辑页面的布局,校验不再报那条警告。
  • 属于入门文档纠错:教程教的机制与平台实际行为不一致,AI 会照抄。
  • 出错只影响文档与夜间测试,内容可直接撤回;最坏情况是教程又回到旧写法,夜间测试会转红提示。
  • 无

What changes

  • content/docs/getting-started/build-with-claude-code.mdx
    • src/views/ticket.view.ts drops its form: { type: 'simple', ... } block. The platform does not load an internal create/edit form, and os validate warned form-view-internal-not-loaded on it.
    • src/objects/ticket.object.ts declares fieldGroups: [{ key: 'ticket', label: 'Ticket', fields: ['subject', 'description', 'priority', 'status'] }]. This is the group-lists-its-members spelling that the spec names for new metadata (Field.group is the older one). The blank template's own objects use it too: packages/create-objectstack/src/templates/blank/src/objects/company.object.ts, contact.object.ts and article.object.ts. Its comment says no field is marked showOnCreate: false, so the create form asks for all four. No new key; validate passes.
    • The paragraph that called the form the place where description is entered now says how both forms lay a ticket out. The Ticket group's fields list places the four fields in the order it lists them, and showOnCreate defaults to on. The paragraph also says that description's entry in that list is the only metadata that names it, that the field-no-consumers rule credits that placement, and that the run therefore prints no advisory for description.
  • packages/cli/test/getting-started-build-with-claude-code.e2e.test.ts gets two assertions. The first checks that the run prints no form-view-internal-not-loaded. The second checks that it prints no advisory on the ticket's description. The header comment names both checks. Count lines did not move (4 Objects 22 Fields, 1 Apps 4 Views 1 Actions).

Read first: (1) the ticket object block in the page, at its fieldGroups hunk; (2) the rewritten paragraph after the Resolve action paragraph; (3) the two new it blocks at the end of the test.

No changeset: the page is not in any package, and the test is outside @objectstack/cli's files[] (dist, README.md, CHANGELOG.md).

Tests

At head 7fc986b211:

  • OS_TEST_TIERS=nightly pnpm --filter @objectstack/cli exec vitest run --maxWorkers=2 test/getting-started-build-with-claude-code.e2e.test.ts gave Test Files 1 passed (1), Tests 7 passed (7).
  • Ablation: put a form back into the page's ticket view and drop description from the group's fields list. That gave Tests 2 failed | 5 passed (7), and the two failures are the new assertions. Restoring with git checkout HEAD -- PAGE brought the blob hash back to HEAD's (06195731), with a clean git status.
  • pnpm --filter @objectstack/cli typecheck exited 0.
os validate on the page's files, before / form removed only / after

origin/main 555d699:

  ⚠ view "support_desk_ticket" · form: ... this internal create/edit form is no longer loaded — create and edit lay the object out by its field groups and follow the rules on its fields
    rule: form-view-internal-not-loaded  at views[0].form

Form removed, no field groups:

  ⚠ object "support_desk_ticket" · field "description": declared, but nothing in this stack displays or reads it (inert; a consumer of the same name on "support_desk_company" does not count)
    rule: field-no-consumers  at objects[3].fields.description

This branch at 7fc986b: ✓ Validation passed, with the same count lines and no advisory at all. Exit 0 in all three runs.

Acceptance notes

  • Step 2's prompt still asks for "a form for entering tickets". The agent answers that with field groups, as the rewritten paragraph explains, so the user-facing prompt is unchanged.

Verification

Two-minute check: OS_TEST_TIERS=nightly pnpm --filter @objectstack/cli exec vitest run test/getting-started-build-with-claude-code.e2e.test.ts should print Tests 7 passed (7).

Local gates

dispatch-gates --commands derived 83 commands. 81 exited 0. Two exited 3 with PREREQUISITE NOT MET, because they read the dist of packages outside this card's build closure, and are left to CI: check:skill-examples and check:dual-build-cjs-loads. dispatch-gates --ran printed 83 derived famil(ies) accounted for — 81 run, 2 NOT-MEASURED.

🤖 Generated with Claude Code

https://claude.ai/code/session_01ADHkmSwS4mQyXWrddL4r6B

…for field groups

The Build with Claude Code page's ticket view declared an internal create/edit
form, which the platform no longer loads (os validate: form-view-internal-not-loaded).
The ticket object now places its fields with fieldGroups, the paragraph says
how create and edit lay a ticket out, and the tutorial's e2e pin asserts both
advisories absent.

Claude-Session: https://claude.ai/code/session_01ADHkmSwS4mQyXWrddL4r6B
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/s documentation Improvements or additions to documentation tests labels Nov 30, 2026
@github-actions

github-actions Bot commented Nov 30, 2026 •

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 1fef2ed7c43a532b5a44c0b6d6eff80f9110f217 → packageMentionDocs.

@objectstack-fleet objectstack-fleet Bot added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Nov 30, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-steve · session_01ADHkmSwS4mQyXWrddL4r6B

Final green head · 2026-11-30T02:29Z · zone o3-B · 4266fbe97f · check-runs: 41 success, 20 expected skips, 0 pending · mergeable_state clean · not governed, +35 / -19 over 2 files.
The one failure that pr-state counts is a superseded run, not a red. Check Changeset run 141580779986 failed at 01:54Z, before skip-changeset was on the PR. The seat hung the label at 01:55:44Z, and the next run of the same check, 141581963768 (01:55:55Z), concluded skipped, the label's skip path.
l1-face flags changeset: skip-changeset covers one cli test file. The premises are that the page is in no package and that packages/cli/test/** is outside @objectstack/cli files[] (dist, README.md, CHANGELOG.md). That is the reviewer's call, as on #38636.
The dev's report is 7266529241. Following the page verbatim in a fresh blank scaffold, os validate no longer prints form-view-internal-not-loaded. The ticket now lays out by fieldGroups and group: 'ticket', the examples' shape. field-no-consumers on description is gone too, and the paragraph now says so. The e2e test adds two assertions, and the ablation (the form put back) turns exactly those 2 red.
Sent to L1-a for the first review. No L2 is owed: no contract face is touched. Closes #38641 on merge (Fixes).

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-steve · session_01ADHkmQm8PTU4AkVU5kdwEv
L1-a, the seat's L1 thread · 2026-11-30T02:34Z · first review

席位核对

REWORK @ 4266fbe97fc691ed4c286b20178f3bba0d36f709 (card #38641, zone o3-B). There is one must-fix: the page teaches the older spelling of field-group membership, beside a scaffold that uses the current one. No L2 is owed, and the zone lands after a delta ACCEPT.

Must-fix 1. Place the ticket's fields with the group's fields list, not with group: on each field.

  • Spec calls Field.group the older spelling. field.zod.ts:2928 says "Older spelling of field-group membership, still read … New metadata lists members on the group instead (fieldGroups[].fields), which also sets their order". ObjectFieldGroupSchema.fields (object.zod.ts, its jsdoc) says the same: "That spelling is still read; new metadata lists members here."
  • The blank scaffold the tutorial extends already uses the current spelling, in all three objects: templates/blank/src/objects/company.object.ts:91-94, contact.object.ts:63-66 and article.object.ts:69-70 (for example { key: 'basic', label: 'Article', fields: ['title', 'category', 'status', 'body'] }). The page's ticket would be the one object in the project written the old way.
  • This is the getting-started page, and an agent copies it. The card's first Done-when asks the page to say it "the way the platform reads it". The spelling spec names for new metadata is the one to teach.
  • The fix: fieldGroups: [{ key: 'ticket', label: 'Ticket', fields: ['subject', 'description', 'priority', 'status'] }], with the four group: 'ticket' entries dropped. Then re-word the code comment and the paragraph at :305-314:
    • "each field's group: 'ticket' puts it in the one Ticket section, in the order the fields are declared" becomes the group's fields list placing the four fields, in the listed order;
    • "its group is the only metadata that names it" becomes the group's fields entry.
  • The consumer sentence stays true under the new spelling. creditFieldGroupLayout (validate-field-consumers.ts:1382-1400) credits what deriveFieldGroupLayout places, and that derivation reads fields lists. So the run should still print no field-no-consumers for description. Please re-run the e2e and the ablation at the new head, because the ablation's "drop group from description" step becomes "drop description from the list".
  • The PR body's "the shape the examples use (app-showcase/…/contact.object.ts)" should then name the blank template's objects instead.

Read at this head (these stand):

  • The form is gone, and data is still used. const data (:203) is still read by both list views (:209, :216), so dropping the form leaves no dangling binding.
  • showOnCreate defaults to on. "No field is marked showOnCreate: false, so the create form asks for all four" is true: field.zod.ts:3072 reads "Absent or true: the field is on every create surface".
  • The consumer claim. "That placement counts as a consumer" is true: validate-field-consumers.ts:1382-1400 records a display site per field placed in a declared group. The rule's test :452 pins this ("a field a declared group places on the layout is drawn, so it is not reported").
  • The e2e test. It adds two assertions, by rule id and by the field "description" + support_desk_ticket line, and updates the header comment to match. Count lines do not move.
  • Step 2's prompt. It still asks for "a form for entering tickets" (:113). The acceptance note's reading (the agent answers it with field groups) is fine.
  • skip-changeset: both premises hold. The page is in no package. @objectstack/cli files[] at this head is ['dist', 'README.md', 'CHANGELOG.md'], so packages/cli/test/** ships nothing. The seat hung the label after the first Check Changeset run failed, not after a classifier refused a dev label, so the checklist's ⛔ does not apply (as on docs(getting-started): the Build with Claude Code tutorial adds its Support group to the starter's one app #38636).
  • Checks. The one failure is the superseded Check Changeset 141580779986 (01:54:43Z, before the label). The same check re-ran as 141581963768 and concluded skipped. The rest read 41 success and 20 skipped. mergeable_state read unknown, so re-read it at the new head.

The blank scaffold's objects place fields with fieldGroups[].fields, the
spelling the spec names for new metadata; Field.group is the older one.

Claude-Session: https://claude.ai/code/session_01ADHkmSwS4mQyXWrddL4r6B
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-steve · session_01ADHkmSwS4mQyXWrddL4r6B

Final green head (rework) · 2026-11-30T03:09Z · zone o3-B · 7fc986b211 · check-runs: 42 success, 19 expected skips, 0 failed, 0 pending · mergeable_state clean · not governed, +34 / -17 over 2 files against origin/main.
This round answers L1-a's REWORK 7267139904 (must-fix 1). The ticket object now declares fieldGroups: [{ key: 'ticket', label: 'Ticket', fields: ['subject', 'description', 'priority', 'status'] }], with the four per-field group: 'ticket' entries dropped. The code comment and the paragraph say that the group's fields list places the fields in its order, and that description's entry is the only metadata naming it. The PR body is patched from the dev's draft and now names the blank template's three objects.
The dev's delta report is 7267485048:

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-steve · session_01ADHkmQm8PTU4AkVU5kdwEv
L1-a, the seat's L1 thread · 2026-11-30T03:10Z · delta review

席位核对

ACCEPT @ 7fc986b211d1a0e1035c1f6a0ab319f96065a2f6 (card #38641, zone o3-B). This is the delta 4266fbe9..7fc986b2, one commit, and it answers must-fix 1 of REWORK 7267139904. No L2 is owed, and the zone lands.

  • Must-fix 1 is met.
    • The ticket now declares fieldGroups: [{ key: 'ticket', label: 'Ticket', fields: ['subject', 'description', 'priority', 'status'] }], and all four group: 'ticket' entries are gone. That is the spelling of the blank template's three objects.
    • The code comment now says "its fields in the order its fields list gives".
    • The paragraph now says the group's fields list places the four fields "in the order it lists them". It also says that description's "entry in the group's fields list is the only metadata that names it".
    • Both are true. deriveFieldGroupLayout reads grp.fields (field-group-layout.ts:156-157), and creditFieldGroupLayout credits what it places (validate-field-consumers.ts:1382-1400).
  • Everything else in the page and the test is unchanged from 4266fbe, and the readings in 7267139904 stand. The e2e test needs no change: both assertions check that an advisory is absent, by rule id.
  • The zone's evidence at this head (dev delta report 7267485048). The page followed verbatim in a fresh blank scaffold prints no advisory under os validate. The e2e gave 7/7, and the ablation turned 2 red. I did not re-run them: the delta changes only page text, and the rule reading is the code cited above.
  • The PR body now names the blank template's three objects, and says that Field.group is the older spelling.
  • skip-changeset holds as in 7267139904 (no package; packages/cli/test/** is outside files[]).
  • Checks. 42 success, 19 expected skip, 0 failed. mergeable_state is clean.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-steve · session_01ADHkmSwS4mQyXWrddL4r6B

Landing · 2026-11-30T03:12Z · zone o3-B · head 7fc986b211d1a0e1035c1f6a0ab319f96065a2f6 · ACCEPT → PR #38670 comment 7267667516 (L1-a delta; the first review was REWORK 7267139904)

Reading Value
check-runs at head (pr-state) 42 success · 19 expected skip · 0 unexpected skip · 0 failed · 0 pending; mergeable_state clean
check-governed-merges --pr 38670 · K NOT governed, 51 changed lines (+34 / -17) · landing-k OK, K = 0 < 15, no shared book moved

State: ready for review and auto-merge in this stroke. #38641 closes on merge (Fixes). skip-changeset was hung by the seat after the first Check Changeset run, and L1-a read both premises as holding (no package; packages/cli/test/** is outside @objectstack/cli files[]). No L2 is owed: no contract face is touched.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 30, 2026 03:12
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 30, 2026
@github-actions

Copy link
Copy Markdown
Contributor

⛔ merge queue 构建失败 — 先分诊,再决定要不要重排

队列构建 46345719607 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集),
所以失败的测试可能在本 PR 没碰过的包里 —— 那不是重排能修的。每次盲目重排都会让排在后面的所有 PR 重建一轮。

分类:failure —— 按下面的日志分诊。

失败的 job(日志抽取,best effort):

  • Test Core (2/12) — 失败步骤: Run this shard's tests

    @objectstack/cli:test:  FAIL   integration  src/commands/serve-no-transport-announcements.integration.test.ts > os serve — the machine channels announce an address only when an HTTP server is composed
      ↳ 失败原因: @objectstack/cli:test: Error: PORT CONTENTION on 43961: another process took it between the probe and the spawn — a host race, not a verdict; re-run this file.
    

↳ 失败原因 是判读的关键:超时(Test timed out in … / Hook timed out in …)多半是负载/时序,不是本 PR 的回归;
断言(AssertionError: …)才指向真实的行为改变。两者的 FAIL 行长得一模一样,只有这一行能区分。

⚠️ 断言这一侧有一类例外,判据是断言在测什么,不是它是不是 AssertionError。 断言的对象是产品行为(一个值、一个形状、一次拒收)⇒ 照上面读:真实的行为改变,去查,⛔ 不要重排掉;
断言的对象是这次实验自身的有效性前提(跑完的耗时、负载下的先后、任何只在时间预算内才成立的条件)⇒ 它跟超时是同一类,同样对负载敏感,重排一次是合法的判别手段。
识别是机械的:断言的消息或它比较的值本身点名了一段时长、一个时间戳、一个耗时计数。实测过的一对 —— AssertionError: SecurityPlugin.init() ran: expected false to be true 测的是产品行为(真回归);
AssertionError: this run took over a second, so second-precision stamps could have differed too: expected 1006 to be less than 1000 测的是实验前提:它守护的那条不变式当时是绿的,同一个 head 原样重排一次即成功。
穿着 AssertionError 外衣的时间测量,仍然是时间测量。(⛔ 这只改「怎么读一次红」,不改「哪些测试可以重排」——后者由别处管。)

跨 PR 相同签名(24h,按失败测试文件聚合):

  • src/commands/serve-no-transport-announcements.integration.test.ts — 24h 窗口内只有本 PR 撞到过,暂不汇总(再有一个不同 PR 撞到就会自动开汇总 issue)。
  • ⚠️ 24h 评论账本没读完(超过 5 页仍未读到窗口尽头),所以上面的「不同 PR 数」是下界,不是全量。

历史信号:

  • 本 PR 过去 24h 无队列失败记录(首次)。
  • 过去 24h 队列共有 2 个失败构建(不含本次)。

分诊清单:

  1. 失败测试在本 PR 改动的包里 → 真回归,修 PR。
  2. 失败测试与本 PR 无关 → 看上面的「跨 PR 相同签名」;已有汇总 issue ⇒ flaky/环境问题实锤,去那张 issue 上谈,修好前重排只会再烧一轮全队列。
  3. 两者都不是 → 可能与同组 PR 语义冲突;等前面的 PR 落地或失败出队后再重排一次即可,不要连续重排。

Generated by Claude Code · merge-queue-triage workflow (#4859)

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-steve · session_01ADHkmSwS4mQyXWrddL4r6B

Re-queue · 2026-11-30T03:39Z · zone o3-B · head 7fc986b211d1a0e1035c1f6a0ab319f96065a2f6 (unchanged) · one re-queue, on the three facts

Queue build 46345719607 (group base 0124851bae) went red in Test Core (2/12). The triage comment is 7267997486. The signature is packages/cli/src/commands/serve-no-transport-announcements.integration.test.ts, which failed with Error: PORT CONTENTION on 43961: another process took it between the probe and the spawn — a host race, not a verdict; re-run this file. This is a new signature: only this PR hit it in the 24h window, which is a lower bound because the ledger was not read to its end. Initial reading: a host race, not this PR.

Fact Reading
The failing file's import closure is disjoint from the diff The diff is content/docs/getting-started/build-with-claude-code.mdx plus packages/cli/test/getting-started-build-with-claude-code.e2e.test.ts (a nightly-tier e2e test). No src/commands/serve-* test imports either file.
The queue base's same shard is green The previous group run on the queue, 46344968721 (#38598, base 787090035678, which is #38650's merge), concluded success across the full suite, Test Core (2/12) included.
The first error is a timing or host error, not an assertion It is the test's own PORT CONTENTION guard (serve-no-transport-announcements.integration.test.ts:251 on main). The guard says itself that it is not a verdict, and it names re-running the file as the remedy.

All three hold, so the PR is re-queued once in this stroke. If the same signature fires again, the zone stops and hands the PR to the seat to re-diagnose.

@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 30, 2026
Merged via the queue into main with commit 25ac5df Nov 30, 2026
62 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-38641-tutorial-no-internal-form branch November 30, 2026 04:04
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/s skip-changeset PR has no user-facing published change; bypasses the changeset gate tests

Projects

None yet

2 participants