Skip to content

fix(runtime): the personal-view and attachment own-door 501s follow the request's language, like the print door's - #37594

Queued
objectstack-fleet[bot] wants to merge 1 commit into
mainfrom
claude/project-thread-gvxx96-37352
Queued

objectstack-fleet[bot] wants to merge 1 commit into
mainfrom
claude/project-thread-gvxx96-37352

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Sales · project thread

Fixes #37352

Clause-②: yes (widening)
Metadata-protocol: none
Skills-docs: none (no page under skills/** names the own-door bridge or its 501 sentences)

维护者速读

  • 用户能看到什么变化:在缺少个人视图服务或附件服务的环境里,删除个人视图、删除或重命名附件时弹出的「接口不可用」提示,现在和打印一样按界面语言(中文、日文、西班牙文)显示;英文界面一字不差。
  • 为什么做:同一个故障,打印接口已经显示中文,旁边这两个接口还显示整句英文,用户看到的语言取决于点了哪个按钮。
  • 出错会怎样:最坏是某种语言措辞不够好;错误码、状态码和服务名都不变,可直接撤回。
  • 要你做什么:无。

What changes

  • packages/spec/src/system/operation-message.ts: the operation-message catalog (BUILTIN_OPERATION_MESSAGES) gains the two doors' nouns, own_door_personal_view_delete and own_door_attachment_mutate, in en, zh-CN, ja-JP and es-ES. The English of each is the bridge's current noun, byte for byte. The catalog header names all three noun keys.
  • packages/runtime/src/domains/personal-views.ts, attachments.ts: each bridge sets nounKey, as print.ts does since fix(runtime, spec): the /actions forward-unavailable 503 and the print door's 501 follow the request's language #37336, so notImplementedSentence renders both 501 sentences (own_door_service_unregistered, own_door_member_missing) in the request's top Accept-Language tag.
  • No wire change: code NOT_IMPLEMENTED, status 501, the slot, member and package names are unchanged, and no userMessage is added.

Small calls made here (no card): the Spanish attachment noun is singular (el punto de acceso para eliminar y renombrar adjuntos) so the catalog's singular no está disponible agrees with it; the English keeps its existing plural noun with is, since it must stay byte-identical.

Why

After #37336 the print door answered its own-door 501 in the reader's language while the two sibling doors on the same bridge answered in English, so one failure mode read in two languages depending on the door.

Verification

  • packages/runtime/src/domains/own-door-bridge.test.ts, new describe [#37352]: for both doors (personal-view DELETE; attachment DELETE and PATCH), on a kernel with no service and with a service lacking its member, the 501 NOT_IMPLEMENTED message is pinned in en (and with no header), zh-CN, ja-JP and es-ES, with no userMessage; the catalog English of all three noun keys equals each bridge's noun. Red first: with nounKey removed from the personal-view bridge, 3 of the 50 tests fail.
  • The #37273 control "a bridge that names no noun key keeps its English sentence" now takes a shipped bridge with its key removed and hands it to handleOwnDoorBridgeRequest directly, since no shipped bridge lacks one any more.
  • Local runs at 9a610dc71: @objectstack/runtime vitest src/domains 240 files / 7,024 tests pass; @objectstack/spec vitest src/system 78 files / 2,787 pass; @objectstack/core operation-user-message.test.ts 9/9; pnpm --filter @objectstack/spec check:generated exit 0; eslint on the touched files exit 0; tsc --noEmit for runtime exit 0; node scripts/pm/overlap-check.mjs exit 0.

Contract review (L2) is owed before landing: the diff changes packages/spec/src/** and declares Clause-②: yes (widening).

Human Minimum

  • 1. Schemas start as Zod; packages/spec holds no runtime logic.
  • 2. Every name I added uses the casing for its kind.
  • 3. No formatter ran; pnpm lint passes.
  • 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: its generated artifacts are regenerated and committed (check:generated reports nothing to regenerate).
  • 7. No hand edits to content/docs/references/, packages/*/CHANGELOG.md or content/docs/releases/.
  • 8. Title, body and comments are in English.
  • The Before Submitting list in CONTRIBUTING.md is done.

🤖 Generated with Claude Code

https://claude.ai/code/session_01L6bhgUpnvPnJ1hR74pUrVj


Generated by Claude Code

…he request's language

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgUpnvPnJ1hR74pUrVj
@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation protocol:system tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 26, 2026
@github-actions

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

8 anchor(s) derived from 2 changed package(s); no hand-written page names any of them, so this run has nothing to list — not a clean bill of health. This check sees only pages that NAME a derived anchor: one that documents this change in prose, or enumerates it in an authoring dialect, names none and stays invisible to it on every run.

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

Which tree this was computed on

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

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

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 9a610dc7157a35e3b9f241e3b28caa288b3f1818
Local-runs: none
Scope: packages/spec/src/system/operation-message.ts + packages/runtime/src/domains/personal-views.ts, packages/runtime/src/domains/attachments.ts

Inputs read: card #37352 (body and its four comments, the claim 7194367121 and its amendment 7194982901 among them), PR #37594 (body, five-file list, net diff against main), and the check-runs on the head. The rest of the diff (own-door-bridge.test.ts, the changeset) is the lane seat's ACCEPT at TIER_DEFAULT.

① Derived judgments

  • Accept set: unchanged — right. No schema, no authorable key, no request field moves. Metadata-protocol: none is the correct kind.
  • Published surface of @objectstack/spec: widened — right. BUILTIN_OPERATION_MESSAGES gains two keys, own_door_personal_view_delete and own_door_attachment_mutate, in each of its four locales (en, zh-CN, ja-JP, es-ES). The constant's declared type and the export list do not change, which agrees with the diff carrying no api-surface or export-origins hunk.
  • Locale parity: holds. Each of the four locale blocks carries both keys, so the catalog's own "every locale defines every key en defines" pin stays satisfied; Test Core is green on the head.
  • Override address: no new behaviour — right. The two keys become spellable as errors.own_door_*, and the catalog header already says the bridge consults no i18n service, so no override is read for them. The header sentence stays true.
  • Wire of @objectstack/runtime: only the language of error.message moves — right. On DELETE /personal-views/:id and on DELETE and PATCH /attachments/:id, the two 501 NOT_IMPLEMENTED sentences now render in the catalog locale the request's top Accept-Language tag resolves to. An English request, a request with no header, a * header and a language the catalog lacks all read the sentence they read on main, byte for byte. Code, status, the slot, member and package names are unchanged and no userMessage is added, as the card requires.
  • OwnDoorBridge contract: unchanged. The interface is not in the diff; the two frozen bridge constants each gain the already-declared optional nounKey.

② Semver level

  • Changeset .changeset/37352-own-door-501-locale.md: @objectstack/spec patch and @objectstack/runtime patch. These are exactly the two packages the diff moves. With Metadata-protocol: none the level is patch (AGENTS.md, Post-Task Checklist step 3) — right. Check Changeset is green.
  • Clause-②: yes (widening) — right. The published catalog gains keys and nothing is taken away. The line is identical in the PR body and the changeset body, and the card's claim was amended to the same value (7194982901) before this review.

③ Boundary flags

  • Dev flag, Spanish noun in the singular (el punto de acceso para eliminar y renombrar adjuntos): accepted. The catalog's two Spanish sentences are singular, both verbs are served at one path, and the form matches own_door_print in the same locale.
  • Dev flag, English keeps the plural noun with is: accepted as the card's own constraint (English byte-identical to today's noun). See N1.
  • Key names: the card leaves them to the dev. Both follow the own_door_ prefix of the existing noun key. Accepted.
  • Skills-docs: none: confirmed by a search of the head tree; no page under skills/ or content/ names the own-door bridge or these sentences.
  • open_questions: none on the card or the PR.
  • SQL push-down: the diff holds no query, no id materialisation and no in-app join. Nothing to flag.
  • Author: the PR's user.login is objectstack-fleet[bot]; no relay note is owed.

④ Design judgment

No must-fix, no should-fix.

packages/spec/src/system/operation-message.ts — judged against the card, the #37336 precedent it follows, and its first consumer, notImplementedSentence in packages/runtime/src/domains/own-door-bridge.ts (read, not reviewed).

  • The consumer renders the noun and the sentence with one and the same caller locale. Both new keys exist in all four locales, so the two halves always resolve to the same language: a sentence cannot come out half translated. A top tag the catalog lacks yields no locale for either half, so the whole sentence is English.
  • The English of each key equals the bridge's noun character for character (the personal view delete door, the attachment removal and rename doors), which is what the nounKey jsdoc on OwnDoorBridge requires and what the card demands.
  • The header jsdoc, sentence by sentence: the door placeholder "is the door's noun, itself a key of this catalog", now naming all three keys — true; "capitalized" — true, and a no-op for the Chinese and Japanese nouns; "a bridge that names no noun key keeps its English sentence" — still true of the mechanism, although no shipped bridge takes that arm any more.
  • Terminology: the Chinese, Japanese and Spanish nouns use the platform's own labels for sys_personal_view and sys_attachment in each locale (packages/platform-objects/src/apps/translations/), and the same word for "door" that own_door_print uses in that locale. The Spanish nouns capitalise to El punto de acceso … and agree with no está disponible.
  • Attempts to break it: a regional or base-language variant (zh, ja, es-MX) reaches the catalog locale through the platform's one locale ladder, for both halves alike; q-values are not negotiated, as the header documents; a plain header record and a fetch Request are both read by the consumer. None of these splits a sentence across two languages or changes an English answer.

packages/runtime/src/domains/personal-views.ts, packages/runtime/src/domains/attachments.ts — each nounKey is spelled exactly as its catalog key, on the same object as the noun whose English it mirrors. Each one-line comment says what the field does and is accurate. The claim, the doors, the slot, the member and the producer are untouched, so the bridge's forwarding contract is unchanged.

Nit:

  • N1 (nit) — the English attachment sentence reads "The attachment removal and rename doors is not available": a plural noun with a singular verb. It reads this way on main today, and the card requires the English to stay byte-identical, so the PR is right to keep it. Repairing it would change the wire English, the bridge's noun and the catalog's English value together, and belongs on a follow-up card if the maintainer wants it. Accepted deviation on this head.

Implemented-by: claude/project-thread-gvxx96-37352
Reviewed-by: session_01L6bhgV6i8jfWwSXjpWJrjA

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

席位核对 — ACCEPT · head 9a610dc · card #37352 · area s2-ux-T · 2026-11-26T15:18Z

L1 checklist

  • Shape and relation: l1-face.mjs --pr 37594 CLEAN on 13 items. At 9a610dc there are 58 success, 11 expected skips, 0 failed and 0 pending, and mergeable_state is clean. 135 changed lines, not governed.
  • Fixes #37352 is right. The card asks that the personal-view delete door and the attachment removal and rename doors answer their own-door 501 in the request's language, as the print door does since Print-path English sentences outside #37260: the /actions door's forward-unavailable 503 and the own-door bridge's 501 ignore the request locale #37273. Both bridges now name a nounKey, and the catalog carries both nouns in all four locales.
  • Scope: 5 files, all on the card: the two bridges (personal-views.ts, attachments.ts, one line each plus a comment), the catalog (operation-message.ts), the bridge test and one changeset.
  • Evidence: the test drives each door on a kernel without its service, and on one whose service lacks the door's member, in en, zh-CN, ja-JP, es-ES and with no Accept-Language. English and no-header read the sentence main reads, byte for byte.
  • L2: the Contract review record 7196010986 at CONTRACT_REVIEW_TIER on this head is a PASS with no must-fix and no should-fix. N1, the English attachment sentence's verb agreement, reads the same on main, and the card requires byte-identical English, so it is an accepted deviation here and goes on the follow-up card with the review's out-of-diff notes.
  • Sentence-by-sentence read of the changeset (@objectstack/spec and @objectstack/runtime, both patch): it matches the diff, including that code, status and names do not move and that no userMessage is added.

Tier: S. Landing: ready + auto-merge by this stroke.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 26, 2026 15:18
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 26, 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 protocol:system 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.

fix(runtime): the personal-view and attachment own-door 501s follow the request's language, like the print door's

2 participants