Skip to content

fix: remaining runtime, help and locale strings name the Setup path Setup shows - #39373

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

objectstack-fleet[bot] merged 7 commits into
mainfrom
claude/issue-39332-setup-paths-rest

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Fixes #39332

Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户能看到什么变化:作者看到的短信、连接器凭据拒收提示,管理员看到的启动提示、文件存储报错、接口密钥期限报错、字段帮助说明和双重验证提示,改为指向设置里现在真实存在的分组和入口,十种翻译语言同步改好。
  • 为什么做:属于"设置重新分组"这项大工作的最后一批收尾,替作者和管理员解决按提示找不到入口的问题。
  • 出错会怎样:只改提示文字,不改任何取值、错误码或行为;某条路径写错时,读者只会再次找不到入口,可直接撤回。
  • 要你做什么:无

What changes

Every remaining location the card lists (plus the scope addition) now names the group and entry Setup shows on main. Each target was derived the way the precedent PR derived it: the entry's contributing package (setup-nav.contributions.ts, connector-credentials-ui.ts, through renamedFrom in setup.app.ts) and the labels of the setup: block of translations/en.ts.

Location Was Now
spec sms-config.zod.ts (both refusals, retries describe, header) + regenerated docs/references/system/sms-config.md Setup → Settings → SMS Delivery Setup → Notifications → SMS Channel (now the same answer as the stack.zod.ts sms describe)
spec connector.zod.ts (entry credential guidance, URL-credential refusal), service-automation missingCredentialReason Setup → Connector credentials Setup → Integrations & Developer → Connector Credentials
service-storage multi-replica local-storage refusal Setup → Settings → File Storage Setup → Audit & Data → File Storage
plugin-auth live-status and declared-default boot warnings (+ two comments) Setup → Authentication Setup → Login & Security → Sign-in Methods
plugin-auth new-organization currency lines Setup → Localization (→ Default currency) Setup → Company Settings → Language & Region (→ Default currency)
core API-key ceiling refusal "the Authentication API key policy's Maximum key lifetime is N days" "the Maximum key lifetime is N days (Setup → Login & Security → Sign-in Methods → API keys)"; code, status and the pinned "Maximum key lifetime is N days" substring unchanged
platform-objects sys_organization / sys_business_unit timezone help, sys_work_calendar timezone help Settings → Localization (→ Default timezone) Setup → Company Settings → Language & Region (→ Default timezone)
platform-objects sys_organization name help, retired require_mfa help (same file, same defect class) Settings → Branding / Settings → Access policy Setup → Company Settings → Branding / Setup → Login & Security → Access policy
en.objects.generated.ts regenerated with check-i18n-bundles --write
10 translated *.objects.generated.ts (ar, de, es-ES, fr, ja-JP, ko, pt-BR, ru, zh-CN, zh-Hant) old API-key, timezone, work-calendar, branding and access-policy paths the same paths in each locale's own Setup app, group and entry labels, read from its own translations/LOCALE.ts setup: block (no label invented; Arabic keeps its left arrow)
ui i18n auth.remediation.mfa.unavailable (en, zh-Hans, zh-Hant via gen:zh-hant) Setup → Authentication / 设置 → 认证 Setup → Login & Security → Sign-in Methods / 系统设置 → 登录与安全 → 登录方式 (two-factor turns on with that page's multi-factor requirement)

The extract tool does not retranslate: merge mode keeps every translated value, so the translated path segments were edited by hand as values, with structure untouched (check:i18n green).

Pin (packages/spec/src/ui/setup-paths-in-runtime-text.pin.test.ts):

  • liveLabels() reads only the setup: app block, so Account and Studio groups ("Developer", "AI") no longer count as Setup groups; a new case asserts that.
  • startsWithLabel now documents its rule (whole label, then end or punctuation; scripts without word spaces only get the prefix check).
  • LOCATIONS gains 24 rows: the 11 runtime/help source files, the 10 translated bundles (locale-aware: that bundle's own Setup app label, group and entry labels and arrow), and the three ui packs (only restricts a row to the marked line, because ui en.ts still names other paths; see Acceptance notes). The en bundle row now requires the localization and access-policy entries too.
  • A localized control case: zh-CN and ar retired paths fail, live ones pass.

Tests

Pin, ablation (head 1c0e8df)
  • Pin at head: Tests 40 passed (40).
  • Ablation: the 25 non-test files this PR changes restored to merge-base 850d240b8 text (git restore --source; old phrases landed in 10 files by git grep -c), pin rerun: Tests 25 failed | 15 passed (40): every new row plus the en-bundle row fails, the 12 untouched precedent rows and 3 non-row cases pass. Restored with git checkout HEAD; git diff HEAD and git status --porcelain empty afterwards.
Package suites and typecheck
  • turbo run typecheck --only for spec, core, platform-objects, plugin-auth, service-automation, service-storage: 6 successful.
  • platform-objects test: 132 files / 2352 passed. core test: 163 / 3855 passed. service-storage test: 88 / 1746 passed, 1 skipped.
  • service-automation connector-credential-source.test.ts: 24 passed. plugin-auth auth-settings-live-status.test.ts + organization-created-default-currency.test.ts: 48 passed.
  • spec src/stack-email-sms.test.ts src/integration src/system src/stack.test.ts: 101 files / 3859 passed (one stale toContain('Settings') assertion in stack-email-sms updated to the new path).
  • ui (from the ui root): packages/app-shell/.../RemediationOverlay.enrollUnavailable-30295.test.tsx packages/i18n/: 111 files / 1878 passed, 13 skipped.
  • spec build + check:generated: all 14 artifacts up to date after gen:docs.
Derived gates

dispatch-gates --ran: 111 derived, 103 run with exit 0, 8 NOT MEASURED (whole-repo eslint/tsc ratchets past the local timeout, a shallow-clone prerequisite of a self-test, and two build-state prerequisites of this worktree), 0 unrun. check:i18n, check:i18n-stale-fill, check:cross-package-test-inputs, check:doc-authoring, check:nul-bytes, check:published-files, spec check:api-surface exit 0. CI runs the full set.

Acceptance notes

  • Read first: (1) setup-paths-in-runtime-text.pin.test.ts (the liveLabels block slice and the locale rows); (2) core/src/security/api-key.ts (a refusal message reworded around a substring another test pins); (3) one translated bundle, e.g. zh-CN.objects.generated.ts.
  • Widened inside claimed files: the sys_organization name and retired multi-factor help (same file, same defect class) and the plugin-auth Setup → Sessions comment.
  • Phrasing rule met: where a path ran straight into a word ("… Sign-in Methods states …"), the text was reworded so the path ends at punctuation, which the pin's startsWithLabel requires.
  • Not changed, outside the claim (reported to the seat): ui en.ts still names Setup → Permission Set Assignment, Setup → AI & Embedder, Setup → Users and a Settings → Localization timezone notice; service-sms capability-arg.ts says "Settings → SMS Delivery → Provider"; sys-exchange-rate.object.ts says "Localization → Default currency"; the es-ES and ja-JP business-unit timezone help is an old translation that names no path.
  • Left as written per the card: v18 migration entries, content/docs/** prose, skills/**, docs/HARDENING.md, examples/app-showcase/.env.

Verification

Two minutes: pnpm --filter @objectstack/spec exec vitest run --project repo src/ui/setup-paths-in-runtime-text.pin.test.ts should print Tests 40 passed (40).


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:system 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 6 package(s): @objectstack/core, @objectstack/platform-objects, @objectstack/plugin-auth, @objectstack/service-automation, @objectstack/service-storage, @objectstack/spec, touching 19 documentable anchor(s). ⚠️ 1 changed file(s) yielded no anchor (packages/spec/docs/references/system/sms-config.md), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

19 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 8157fd7127a659e2147524f3f8e4bd3bccd6eeee.

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

What this run could not see
  • 1 changed file(s) yielded no anchor (packages/spec/docs/references/system/sms-config.md) — pages documenting those are invisible to this run
  • 1 anchor(s) matched too much of the corpus to be a work list: sys_user (symbol, 60 pages)
  • 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 — 196 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 8157fd7127a659e2147524f3f8e4bd3bccd6eeee → packageMentionDocs.

Which tree this was computed on

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

node scripts/docs-audit/affected-docs.mjs --json 8157fd7127a659e2147524f3f8e4bd3bccd6eeee

⚠️ 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 8157fd7127a659e2147524f3f8e4bd3bccd6eeee → 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-03T15:19Z · head 1c0e8df719cd8e0a60dda16fd3b8d39f5c683ce0 · L1 by zone ux-1203 (isolated reviewer, default tier, effort high: ACCEPT with nits, no must-fix) · card #39332 claim 7380723400, report 7382854529 · the landing rides this stroke.

  • Form: Fixes #39332, Clause-②: no (L1 confirmed every i18n change is value-only: 53 help, 20 helpText, 3 unavailable, with no key added or removed), Metadata-protocol: none. 33 files, +276/−147. One changeset, 7 packages, all patch.
  • Paths: L1 spot-checked 11 strings (en, de, ja-JP, ar, zh-CN) against each locale's setup: block and the nav renamedFrom groups. All match the Setup tree on main.
  • Pin: the only rows assert non-empty filtered text, so no row passes vacuously. liveLabels() is narrowed to the setup: block. The localized controls are meaningful. Ablation turns 25 of 40 red.
  • Accepted deviations: the same-class fixes inside claimed files (sys-organization Branding / Access policy, the plugin-auth Sessions comment). The api-key.ts rewording keeps the substring that api-key-lifecycle.pin.test.ts:120 asserts. stack-email-sms.test.ts gets a stronger assertion. The auth-plugin dev-seed strings were already removed by f927afa.
  • Screenshots: not needed, the change is text only.
  • Nits, filed with the out-of-scope remainder on a follow-up card: the pin's stale scan (:177) only matches app-prefixed paths and needs only one good occurrence per file; the sys-organization Branding fix is pinned only by its own object test.
  • Gates: CI was still running at ACCEPT with 0 failures. Auto-merge waits on the required checks.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-bill · os-bill · session_01Utp6CbFgiyGToVRBFwedwF

席位核对

ACCEPT (delta) at 2026-12-03T15:29Z · head a0d479d699fed1cf841693834f3c67c6124a5a56 · delta over 1c0e8df self-read by zone ux-1203 · prior ACCEPT 7382972738 · the landing rides this stroke.

  • Red on 1c0e8df: ui check:i18n-drift. The en auth.remediation.mfa.unavailable changed but the es, ar, fr, pt-BR, ru, de, ja and ko packs had not followed it. The other reds (TypeScript Type Check, Test UI) are aggregates of that failure or cancelled shards.
  • Delta: 9 files, +18/−8. Each of the 8 packs now names Setup → Login & Security → Sign-in Methods in its own locale's labels, read from that locale's setup: block. Spot-read de (Setup → Anmeldung & Sicherheit → Anmeldemethoden) and ja (セットアップ → ログインとセキュリティ → サインイン方法). The pin has 8 more rows (48 passed). The change is value-only, so Clause-②: no holds.
  • Local: check:i18n-drift exit 0, check:i18n exit 0. CI is running on the new head.

…arrow path

The de pack's quote-pairing census reads a „…“ span only over letters,
marks, digits, punctuation and spaces; the arrow inside the quoted Setup
path left one opener unpaired. The path now sits in parentheses.

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

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-bill · os-bill · session_01Utp6CbFgiyGToVRBFwedwF

席位核对

ACCEPT (delta) at 2026-12-03T15:53Z · head c03fabbf177f9407f19886d12d4c51d262ed84f2 · delta over a0d479d written and read by zone ux-1203 (one de sentence; quota order: no new agent) · prior ACCEPTs 7382972738, 7383238641 · the landing rides this stroke.

  • Red on a0d479d: Test UI (2/16), de-quote-pairing-3876.test.ts:265, which counted 137 paired spans against 138 openers. The new de sentence quoted the path as „Setup → Anmeldung & Sicherheit → Anmeldemethoden“. The census's independent regex reads a span only over letters, marks, digits, punctuation and spaces, so the arrows (\p{Sm}) left the opener unpaired.
  • Delta: 1 line in ui/packages/i18n/src/locales/de.ts. The path now sits in parentheses ("…, sie zu aktivieren (Setup → Anmeldung & Sicherheit → Anmeldemethoden), und …"). The pin's whole-label rule accepts ) after the label (startsWithLabel, :173). Recounted locally: 114 „ openers, 114 paired by the test's regex. The en value is unchanged, so i18n-drift is unaffected.

@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Dec 3, 2026
Merged via the queue into main with commit f00ab66 Dec 3, 2026
73 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-39332-setup-paths-rest branch December 3, 2026 16:50
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:system 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

2 participants