Skip to content

fix: runtime messages and help text name the Setup paths Setup shows - #39330

Merged
objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/issue-39305-setup-paths-runtime
Dec 3, 2026
Merged

objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/issue-39305-setup-paths-runtime

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Fixes #39305

Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户能看到什么变化:作者看到的拒收提示、管理员看到的启动提示、登录报错和字段帮助说明,改为指向设置里现在真实存在的分组和入口(例如"审计与数据 → 文件存储")。
  • 为什么做:属于"设置重新分组"这项大工作的收尾,替作者和管理员解决按提示找不到入口的问题。
  • 出错会怎样:只改提示文字,不改任何取值或行为;某条路径写错时,读者只会再次找不到入口,可直接撤回。
  • 要你做什么:无

What changes

Each runtime message and help text the card lists now names the group and entry Setup shows on main, derived from setup.app.ts, the contributing package's nav contribution (setup-nav.contributions.ts, connector-credentials-ui.ts through renamedFrom) and translations/en.ts:

Location Was Now
spec stack.zod.ts storage guidance, authoring-key-lint.ts, cli serve.ts local-driver warning, docs validating-metadata.mdx quote Setup → Settings → Storage / Setup → Settings Setup → Audit & Data → File Storage
spec stack.zod.ts sms describe, plugin-auth phone-code refusal Setup → Settings → SMS Delivery Setup → Notifications → SMS Channel
formula template refusal, objectql validation-message warning Setup → Localization Setup → Company Settings → Language & Region
platform-objects API key / user expiry help text (+ regenerated en bundle) Setup → Authentication → API keys Setup → Login & Security → Sign-in Methods → API keys
organizations membership boot refusal Setup → Authentication → Membership Setup → Login & Security → Sign-in Methods → Membership
lint stdio-credential finding, driver-odata README Setup → Connector credentials Setup → Integrations & Developer → Connector Credentials

Two in-file comments that named a retired path were corrected in the same files (sys-user.object.ts "People & Organization", serve.ts "Setup → Datasources").

The API key lifetime path differs from the card's suggestion (nav_api_keys): the Default/Maximum key lifetime settings are the "API keys" section of the auth settings page (auth.manifest.ts, group api_keys), which Setup shows as Sign-in Methods, not the API Keys object list.

Tests

  • New pin packages/spec/src/ui/setup-paths-in-runtime-text.pin.test.ts (spec repo project; spec already reads packages/** and content/** as text, so no import edge and no new radius declaration). It lists every location, asserts each names its expected Setup → group → entry (group resolved from the contributor through renamedFrom, labels from en.ts), and asserts every Setup → … path in a location starts with a live group label and a live entry label. A control case proves it flags every retired group name (group keywords), every former entry name (entry keywords), the retired settings hub and a dangling path.
  • Updated assertions: template-currency-tenant-default.test.ts, membership-policy-gate.test.ts.

Acceptance notes

Further runtime and help-text hits outside the card's files were found by the sweep and are not changed here (named for a follow-up): packages/spec/src/system/sms-config.zod.ts (refusal + describe, also packages/spec/docs/references/system/sms-config.md), packages/spec/src/integration/connector.zod.ts (two refusals), packages/spec/src/migrations/entries/semantic/18.* (three), packages/services/service-automation/src/connector-credentials.ts (runtime message), packages/services/service-storage/src/multi-replica-local-root.ts, packages/plugins/plugin-auth/src/auth-plugin.ts, auth-settings-declared-defaults.ts, organization-default-currency.ts, packages/platform-objects organization and business-unit timezone help ("Settings → Localization → Default timezone"), ui/packages/i18n/src/locales/en.ts (two-factor message), examples/app-showcase/.env, docs/HARDENING.md, and many content/docs/** and skills/** pages.

Verification

Pin, ablation and package tests (head 5dfd1fd)
  • Pin: pnpm --filter @objectstack/spec exec vitest run --project repo src/ui/setup-paths-in-runtime-text.pin.test.ts → 14 passed.
  • Ablation: with the 13 changed source files restored to the merge base, the same pin → 13 failed (every location), restored → green.
  • pnpm --filter test: formula 2289 passed, organizations 356 passed, lint 10355 passed, platform-objects 2352 passed; focused: objectql src/validation 1615 passed, plugin-auth phone-SMS 18 passed, spec src/stack + authoring-key-lint 1157 passed.
  • typecheck: spec, formula, organizations, platform-objects (turbo, 63 tasks) green.
  • pnpm --filter @objectstack/spec check:generated → all 14 artifacts up to date; node scripts/check-i18n-bundles.mjs --write regenerated the en objects bundle.
  • dispatch-gates --ran: 131 derived, 124 run green, 7 NOT MEASURED (exit 3 prerequisite: plugin-teardown-shape self-test needs a deeper clone, spec check:skill-examples, check:dual-build-cjs-loads and check:i18n-coverage need unbuilt dists; local timeout: check:query-options-erasure, check:slot-lookup, check:type-check-debt). CI runs them.

Read first: the pin (its location table and the two rules), then membership-policy-gate.ts (reflowed banner lines).

Two-minute check: run the pin command above; expect 14 passed.


Generated by Claude Code

🤖 Generated with Claude Code

https://claude.ai/code/session_01Utp6CbFgiyGToVRBFwedwF

@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation protocol:data protocol:ui tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Dec 3, 2026
@github-actions

github-actions Bot commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 9 package(s): @objectstack/cli, @objectstack/driver-odata, @objectstack/formula, @objectstack/lint, @objectstack/objectql, @objectstack/platform-objects, @objectstack/organizations, @objectstack/plugin-auth, @objectstack/spec, touching 7 documentable anchor(s). ⚠️ 3 changed file(s) yielded no anchor (packages/drivers/driver-odata/README.md, packages/spec/src/data/authoring-key-lint.ts, packages/spec/vitest.repo-tests.json), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

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

  • content/docs/api/environment-routing.mdx (via ObjectStackDefinitionSchema (symbol, a top-level const))
  • content/docs/automation/hook-bodies.mdx (via ObjectStackDefinitionSchema (symbol, a top-level const))
  • content/docs/concepts/architecture-overview.mdx (via ObjectStackDefinitionSchema (symbol, a top-level const))
  • content/docs/deployment/cli.mdx (via ObjectStackDefinitionSchema (symbol, a top-level const))
  • content/docs/getting-started/examples.mdx (via ObjectStackDefinitionSchema (symbol, a top-level const))
  • content/docs/permissions/authorization.mdx (via sys_api_key (symbol, a field of const object enObjects))
  • content/docs/permissions/system-context.mdx (via sys_api_key (symbol, a field of const object enObjects))
  • content/docs/permissions/tenant-audit-census.mdx (via sys_api_key (symbol, a field of const object enObjects))

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

  • content/docs/releases/v12.mdx (via ObjectStackDefinitionSchema (symbol, a top-level const))
  • content/docs/releases/v17/17-1.mdx (via ObjectStackDefinitionSchema (symbol, a top-level const), sys_api_key (symbol, a field of const object enObjects))
  • content/docs/releases/v17/17-5.mdx (via sys_api_key (symbol, a field of const object enObjects))
  • content/docs/releases/v18/18-4.mdx (via sys_api_key (symbol, a field of const object enObjects))

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
  • 3 changed file(s) yielded no anchor (packages/drivers/driver-odata/README.md, packages/spec/src/data/authoring-key-lint.ts, packages/spec/vitest.repo-tests.json) — pages documenting those are invisible to this run
  • 2 anchor(s) matched too much of the corpus to be a work list: sys_user (symbol, 60 pages), os serve (command, 53 pages)
  • 3 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 71 of 256 client-bound route-ledger rows — the other 185 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 185: 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; 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 — 198 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 6b2e596027c7d4f9b01efab0766e3cfd4f2ba7df → packageMentionDocs.

Which tree this was computed on

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

node scripts/docs-audit/affected-docs.mjs --json 6b2e596027c7d4f9b01efab0766e3cfd4f2ba7df

⚠️ 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 6b2e596027c7d4f9b01efab0766e3cfd4f2ba7df → 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:objectstack@os-bill · os-bill · session_01Utp6CbFgiyGToVRBFwedwF

席位核对

ACCEPT at 2026-12-03T13:26Z · head 5dfd1fdd75bfce2c3dfd38ee4b1b8b2e85756daa · L1 by zone ux-1203 (isolated reviewer, default tier, effort high: ACCEPT, no must-fix) · card #39305 claim 7377397393, report 7379013160 · the landing rides this stroke.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review December 3, 2026 13:26
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Dec 3, 2026
Merged via the queue into main with commit ad4984f Dec 3, 2026
75 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-39305-setup-paths-runtime branch December 3, 2026 13:54
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 protocol:data protocol:ui 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.

Runtime messages and help text still name retired Setup paths (Setup → Settings → Storage, Setup → Localization, Setup → Authentication, …)

2 participants