Skip to content

fix(platform-objects): Parent Organization and Sort Order say they matter only with several organizations - #30686

Merged
objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/project-thread-r5fkx0
Nov 5, 2026
Merged

objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/project-thread-r5fkx0

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Elon · project thread

Fixes #30210

Card thread session_016WV4czYDK9GofBYXSyFkwJ for domain:server#4 (claim 6670535485, amended 6670640620). Executes ruling 6670372892: row 4 C here, row 3 D (sys_organization.timezone left as it is) closes with this PR, row 4 A is a separate card the seat files.

维护者速读

  • 问题:单组织部署里「编辑组织」页照样显示「上级组织」「排序」,管理员看不出它们在这里没有作用。
  • 本 PR:这两个字段的帮助文字末尾加一句「仅在部署运行多个组织时有意义」,英文同步。
  • 不变:字段仍然显示、可编辑;权限、数据、行为都不变。时区字段按第 3 行 D 原样保留。
  • 隐藏这两个字段(第 4 行 A,字段组 requiresFeature)另立卡,不在本 PR。
  • 风险:纯文案,无迁移;es-ES / ja-JP 包没改(裁定只点名 en / zh-CN),它们继续显示旧句。
  • 规模:5 个文件,+52 / -6。

What changes

  • packages/platform-objects/src/identity/sys-organization.object.ts: the parent_organization_id and sort_order descriptions end with "Meaningful only where the deployment runs several organizations." (the wording the object's create_organization action already uses: "Available only where the deployment runs several organizations."). The code comments around them (L39, L482) do not restate the description, so they stay.
  • en.objects.generated.ts: the same two helps; pnpm i18n:extract reproduces it byte for byte (no change after the run).
  • zh-CN.objects.generated.ts: the two helps end with 「仅在部署运行多个组织时有意义。」.
  • New pin sys-organization-multi-org-fields-help.test.ts (beside sys-organization-name-timezone-help.test.ts): the declaration says it, the en pack equals the declaration, the zh-CN pack says it.
  • One changeset, @objectstack/platform-objects patch.

Why

From #30210 row 4: an administrator on a single-organization deployment sees 上级组织 / 排序 on Edit organization and expects an effect. Ruling 6670372892 chose C: say so in the help, no hiding.

Verification

  • Red on main b77c160a (declaration + packs from main, new test kept): 4 failed / 2 passed (the declaration and zh-CN cases red; the en-equals-declaration case passes on both sides by construction). Green on 35c17506: 6/6.
  • @objectstack/platform-objects test: 116 files, 1577 tests passed; typecheck exit 0 (both on 35c17506).
  • pnpm i18n:extract: exit 0, no change. check:i18n exit 0.
  • dispatch-gates --commands derived 58 families on 35c17506; all 58 exit 0; --ran: 58 run, 0 NOT-MEASURED, 0 UNRUN. (check-plugin-teardown-shape --self-test and check:dual-build-cjs-loads first exited 3 on prerequisites; re-run after fetching the pinned fixture commit and the build closure, both exit 0.)
  • 83a9b2fd merges origin/main a2437b56; the four commits it brings touch no platform-objects file. pnpm lint is CI's.

Acceptance notes

  • es-ES and ja-JP packs carry their own translations of the two helps (no source-hash entry, so they are legacy-trusted and served as written): they keep the old sentence without the new clause. The ruling names en / zh-CN only, and no bundle check required more, so they are left; a translator pass can add the clause.

Clause-②: no
Metadata-protocol: none

Human Minimum

  • 1. Schemas start as Zod; packages/spec holds no runtime logic. (not touched)
  • 2. Every name I added uses the casing for its kind.
  • 3. No formatter ran; pnpm lint runs in CI.
  • 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: not touched.
  • 7. No hand edits to content/docs/references/, packages/*/CHANGELOG.md or content/docs/releases/.
  • 8. Title, body and comments are in English. (except the ## 维护者速读 block the dispatch asks for)
  • The Before Submitting list in CONTRIBUTING.md is done.

🤖 Generated with Claude Code

https://claude.ai/code/session_016WV4czYDK9GofBYXSyFkwJ

…only with several organizations

Fixes #30210 (row 4 C; row 3 D leaves sys_organization.timezone as it is).

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016WV4czYDK9GofBYXSyFkwJ
@github-actions github-actions Bot added size/s 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 5, 2026
@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 1 package(s): @objectstack/platform-objects, touching 2 documentable anchor(s).

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

  • content/docs/automation/flows.mdx (via sys_organization (symbol, a field of const object enObjects; a field of const object zhCNObjects))
  • content/docs/deployment/cli.mdx (via sys_organization (symbol, a field of const object enObjects; a field of const object zhCNObjects))
  • content/docs/deployment/seed-tenancy-repair.mdx (via sys_organization (symbol, a field of const object enObjects; a field of const object zhCNObjects))
  • content/docs/permissions/administrator-guide.mdx (via sys_organization (symbol, a field of const object enObjects; a field of const object zhCNObjects))
  • content/docs/protocol/kernel/config-resolution.mdx (via sys_organization (symbol, a field of const object enObjects; a field of const object zhCNObjects))
  • content/docs/protocol/objectql/schema.mdx (via sys_organization (symbol, a field of const object enObjects; a field of const object zhCNObjects))

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

  • content/docs/releases/implementation-status.mdx (via sys_organization (symbol, a field of const object enObjects; a field of const object zhCNObjects))
  • content/docs/releases/v17/17-1.mdx (via sys_organization (symbol, a field of const object enObjects; a field of const object zhCNObjects))
  • content/docs/releases/v17/17-4.mdx (via sys_organization (symbol, a field of const object enObjects; a field of const object zhCNObjects))
  • content/docs/releases/v17/17-5.mdx (via sys_organization (symbol, a field of const object enObjects; a field of const object zhCNObjects))

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
  • the SDK route bridge reached 63 of 221 client-bound route-ledger rows — the other 158 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 158: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 55 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 103 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 — 2 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 a2437b560bd8872feece6ec8b57c6fdf21cff1f4 → packageMentionDocs.

Which tree this was computed on

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

node scripts/docs-audit/affected-docs.mjs --json a2437b560bd8872feece6ec8b57c6fdf21cff1f4

⚠️ 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 a2437b560bd8872feece6ec8b57c6fdf21cff1f4 → 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

domain:server#4 · os-elon-musk · session_016WV4czvZykUqhYxYXSSDt4

维护者速读

  1. 改了什么:「编辑组织」页的「上级组织」「排序」两个字段,帮助文字末尾加一句「仅在部署运行多个组织时有意义」,英文同步。
  2. 为什么改:单组织部署里这两个字段照样显示,管理员看不出它们在这里没作用(Setup and tools: say which organization features need the enterprise edition, and remove fields that do nothing #30210 第 4 行,裁定 C)。
  3. 风险:极低。纯文案,字段照常显示可编辑,权限、数据、行为都不变;es-ES / ja-JP 两包继续显示旧句(裁定只点名 en / zh-CN)。
  4. 先看:packages/platform-objects/src/identity/sys-organization.object.ts 的两条 description。
  5. 两分钟验证:pnpm --filter @objectstack/platform-objects exec vitest run sys-organization-multi-org-fields-help。
  6. 需要你做的:无,席位落地。非 BREAKING,不属 Tier H,不超 3000 行。

席位意见:ACCEPT(#30210)。单组织的管理员从帮助文字就能知道这两个字段可以不管;真正隐藏它们是另立的 #30692。

席位核对

Head-sha: 83a9b2fd7f73bc600ee325a362f334862529aa07 · read 2026-11-05T22:50Z

Item Reading
Shape Draft → main via relay pr_create; Fixes #30210. 5 files, +52/−6. ⛔ packages/spec/**, ui/**, sys_organization.timezone untouched (row 3 D).
Ruling Row 4 C of 6670372892 as written: only the parent_organization_id and sort_order descriptions, en / zh-CN packs in step, a copy pin. Row 4 A filed as #30692 (pm:queue).
Seat diff read The two declaration descriptions gain the sentence; the en pack leaves equal the declaration byte for byte (the pin asserts it; the dev reports pnpm i18n:extract reproduces it); zh-CN leaves end 「仅在部署运行多个组织时有意义。」. Only leaf strings of the generated packs change, which their header permits.
Evidence New pin 6 cases: 4/6 red on main, 6/6 green; platform-objects 1577/1577; typecheck 0 (os-dev-report 6671168228).
Gates (check-runs on this head) 48: 35 success, 13 skipped, 0 failed; mergeable_state clean.
Accepted deviations es-ES / ja-JP object packs keep the old help (the ruling names en / zh-CN; no bundle check forces them). Acceptance note, not filed: the next translation pass of those packs picks it up. Docs-drift advisory 6671181749: none of the listed pages restates these helps (the dev's grep), no doc owed.
Semver @objectstack/platform-objects: patch, Clause-②: no, Metadata-protocol: none.
Landing Not governed (check-governed-merges --pr 30686: NOT governed), 58 lines ≤ 3000, not BREAKING, so per pm-dispatch the seat lands it: pr_ready + automerge_enable.

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 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.

Setup and tools: say which organization features need the enterprise edition, and remove fields that do nothing

1 participant