Skip to content

fix: lint, rest and notify-node copies of the spec sentences name App Studio - #39244

Queued
objectstack-fleet[bot] wants to merge 1 commit into
mainfrom
claude/issue-39222-studio-copies
Queued

objectstack-fleet[bot] wants to merge 1 commit into
mainfrom
claude/issue-39222-studio-copies

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Fixes #39222

Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户能看到什么变化:作者在 lint 提示、os explain 说明、元数据保存被拒的报错和通知节点的模板说明里,看到的名字从旧的 Studio 变成 App Studio,与规格里的同一句话一致。
  • 为什么做:上一轮规格说明改名为 App Studio 后,服务端、lint 和 REST 里抄写同一句话的几处没跟上,两边说法不一致。
  • 出错会怎样:只改显示文字,地址、取值和标识符都没动;若有问题直接撤回即可,不影响任何数据。
  • 要你做的:无。

What changes

Display text only, matching the spec twins merged in #39218 (ADR-0084's 2026-11-26 amendment, decision 2: the name is App Studio; identifiers, ?surface=studio, the /studio address stay):

  • packages/lint/src/validate-view-containers.ts: both view-container-shape hints now read "the metadata door (App Studio / PUT /api/v1/meta/view)", as stack.zod.ts viewItems refusal does.
  • packages/lint/src/rule-explanations/view-containers.ts: the os explain view-container-shape text, same door wording.
  • packages/rest/src/meta-save-request.ts: the three ?surface= refusals now say "a person editing in App Studio" / "not made in App Studio", as the spec surface prose does.
  • packages/services/service-automation/src/builtin/notify-node.ts: the notify node's Template help now says "authored in App Studio", as io-node-config.zod.ts does.
  • packages/lint/src/validate-view-containers.test.ts: the one test pinning the ViewItem-arm hint verbatim follows the new wording (still under the 200-char hint cap).
  • Patch changeset for the three packages.

Left alone on purpose: code comments in these files that name the editor (notify-node.ts form comments, meta-save-request.ts docblock), per the card's user-visible-strings scope.

Tests

Local runs (head a4bf9b3)
  • pnpm --filter @objectstack/lint test: 261 files / 10345 tests passed.
  • pnpm --filter @objectstack/rest test: 451 files passed; 9352 passed, 351 skipped.
  • pnpm --filter @objectstack/service-automation exec vitest run --maxWorkers=2 src/builtin: 97 files / 1371 tests passed.
  • pnpm --filter @objectstack/lint --filter @objectstack/rest --filter @objectstack/service-automation run typecheck: exit 0.

Acceptance notes

  • No other test pins the old sentences: meta-save-preconditions-parity.test.ts asserts only toContain('copilot') / toContain('mcp') on the refusals.
  • Re-check from the card: git grep -nP '(?<!App )\bStudio\b' over the four files now hits code comments only.

Verification

Read first: packages/rest/src/meta-save-request.ts (the HTTP-visible refusals), then packages/lint/src/validate-view-containers.ts.

Two-minute check: PUT /api/v1/meta/view/x?surface=copilot on a dev server answers 400 whose message says "a person editing in App Studio".

🤖 Generated with Claude Code

https://claude.ai/code/session_01Utp6CZQVVFKDKH894psuGy

@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 Dec 3, 2026
@github-actions

github-actions Bot commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 3 package(s): @objectstack/lint, @objectstack/rest, @objectstack/service-automation, touching 7 documentable anchor(s).

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

  • content/docs/api/client-sdk.mdx (via meta.publishItem (sdk, the route ledger binds it to POST /api/v1/meta/:type/:name/publish, selected by route anchor /:type/:name/publish), publishItem (sdk, the bare tail of client method meta.publishItem, bound to POST /api/v1/meta/:type/:name/publish))
  • content/docs/api/metadata-api.mdx (via /:type/:name/publish (route, bridged from symbol metaSaveRequestOptions — its route source's handler names it))
  • content/docs/api/plugin-endpoints.mdx (via /api/v1/meta/view (route, a path literal in validateViewContainers))
  • content/docs/concepts/metadata-lifecycle.mdx (via /:type/:name/publish (route, bridged from symbol metaSaveRequestOptions — its route source's handler names it), /api/v1/meta/view (route, a path literal in validateViewContainers))
  • content/docs/data-modeling/currency.mdx (via /:type/:name/publish (route, bridged from symbol metaSaveRequestOptions — its route source's handler names it))
  • content/docs/deployment/cli.mdx (via /:type/:name/publish (route, bridged from symbol metaSaveRequestOptions — its route source's handler names it))
  • content/docs/kernel/contracts/metadata-service.mdx (via /:type/:name/publish (route, bridged from symbol metaSaveRequestOptions — its route source's handler names it))
  • content/docs/kernel/services-checklist.mdx (via /api/v1/meta/view (route, a path literal in validateViewContainers))
  • content/docs/protocol/kernel/error-handling.mdx (via /:type/:name/publish (route, bridged from symbol metaSaveRequestOptions — its route source's handler names it))
  • content/docs/protocol/objectui/index.mdx (via /api/v1/meta/view (route, a path literal in validateViewContainers))
  • content/docs/ui/views.mdx (via /api/v1/meta/view (route, a path literal in validateViewContainers))
  • content/docs/upgrading.mdx (via /api/v1/meta/view (route, a path literal in validateViewContainers))

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

  • content/docs/releases/v17/17-0.mdx (via /:type/:name/publish (route, bridged from symbol metaSaveRequestOptions — its route source's handler names it))
  • content/docs/releases/v17/17-1.mdx (via /:type/:name/publish (route, bridged from symbol metaSaveRequestOptions — its route source's handler names it))
  • content/docs/releases/v17/17-2.mdx (via /:type/:name/publish (route, bridged from symbol metaSaveRequestOptions — its route source's handler names it))
  • content/docs/releases/v17/17-4.mdx (via /:type/:name/publish (route, bridged from symbol metaSaveRequestOptions — its route source's handler names it))
  • content/docs/releases/v17/17-6.mdx (via /api/v1/meta/view (route, a path literal in validateViewContainers))

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
  • 1 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 — 31 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 1fe9c6287f2f058c7d1f1972cdfa4ebcd58803b6 → packageMentionDocs.

Which tree this was computed on

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

node scripts/docs-audit/affected-docs.mjs --json 1fe9c6287f2f058c7d1f1972cdfa4ebcd58803b6

⚠️ 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 1fe9c6287f2f058c7d1f1972cdfa4ebcd58803b6 → 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_01Utp6CZQVVFKDKH894psuGy

席位核对

ACCEPT at 2026-12-03T03:38Z · head a4bf9b3bd3a697aef09e730927f137634af7f578 · L1 self-review by zone ux-1202 (≤50 lines, text and test only, Clause-②: no, no contract face: the area-lease self-review route) · card #39222 claim 7365105824, report 7365990569 · the landing rides this stroke.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review December 3, 2026 03:39
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Dec 3, 2026
Any commits made after this event will not be merged.

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

server, lint and rest copies of the renamed spec sentences still say "Studio" instead of App Studio (follow-up of #39200)

2 participants