Repository navigation
docs(skills,spec): name the dispatcher as the owner of the i18n routes - #37675
Conversation
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgUpnvPnJ1hR74pUrVj
📓 Docs Drift Check
What this run could not see
Coarse fallback — 177 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): |
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA Contract reviewServed-tier: First round, full review (①–④). Inputs: card #37625 (body, triage comment 7197449571, claim 7202033347), the PR body and file list, the net diff against ① Derived judgments
② Semver levelClause-②: no
③ Boundary flags
④ Design judgment
No must-fix, no should-fix. Nits, none of them fixable on this head without moving it (neither
Out-of-diff notes for the same follow-up, ungraded: the Registration sentence does not say that the three routes answer signed-in callers only ( Implemented-by: VERDICT: PASS |
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA 席位核对 — ACCEPT · head a359107 · card #37625 · area s2-ux-T · 2026-11-26T21:00ZL1 checklist
Tier: H. Landing: hand-off to the approver by the next stroke; ⛔ the seat does not merge. |
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA Tier H hand-off · 2026-11-26T21:01Z · head a359107 · approver 维护者速读
|
Requested by Sales · project thread
Fixes #37625
Clause-②: no (published prose and comments only; no behaviour changes)
Metadata-protocol: none
维护者速读
getSourceLocale()/setSourceLocale()。两处 spec 代码注释也做了同样的更正。代码和平台行为都不变。What changes
skills/objectstack-i18n/SKILL.md, Registration. Before: "It self-registersGET /api/v1/i18n/locales,/translations/:localeand/labels/:object/:locale; …". After: "The runtime's HTTP dispatcher, whichos servecomposes, mountsGET /api/v1/i18n/locales,/translations/:localeand/labels/:object/:locale, served from the i18n service; …". The rest of the sentence (theisDefault/sourceLocaleclause) is unchanged. Checked onmain:packages/services/service-i18n/src/i18n-service-plugin.ts:27-39("It mounts NO HTTP route", namingcreateDispatcherPluginthe one owner);packages/runtime/src/dispatcher-plugin.ts:1752,:1761,:1770mount the three paths;packages/cli/src/commands/serve.tscomposescreateDispatcherPlugin.getLocales()bullet gainsgetSourceLocale()/setSourceLocale(): both shipped implementations provide them (file-i18n-adapter.ts:302,:307;core/src/fallbacks/memory-i18n.ts:275,:280).getFallbackLocale()is left out: the file adapter has it (:285) but the in-memory fallback deliberately does not (its docblock at:254), and the list is "methods both shipped adapters implement".node_modulesto read" → "is not innode_modules"; "Methods implemented by both shipped adapters" → "Methods both shipped adapters implement"; "full snapshot for a locale" → "a locale's full snapshot"; "You do not wire this plugin" → "Don't wire this plugin".GetLocalesResponseSchemadocblock (packages/spec/src/api/protocol.zod.ts) said the descriptor helper is shared by the dispatcher's/i18ndomain "andservice-i18n's autonomous route"; it now names the dispatcher as the route's one owner (service-i18nmounts none since runtime/service-i18n: the i18n paths have two owners, and the likely live one (the dispatcher) relays an undeclared 5xx's caught text unless it reads like SQL, so #23174's plugin-mount withholding may be shadowed (read from source, not yet measured) #23347). ThetoLocaleDescriptorscomment (packages/spec/src/system/i18n-resolver.ts) now says both once served the route and the dispatcher owns it. Comments only: no schema, describe or export changes.@objectstack/skillsand@objectstack/specpatch.Small calls made here (no card): the skill names "the runtime's HTTP dispatcher, which
os servecomposes" rather than the internalcreateDispatcherPluginname, which a client author cannot act on.Why
Review N1 of PR #37614 (contract record 7197064778): a shipped skill stated a wrong fact about where the i18n routes come from.
Verification
Run at
a359107dd, each exit 0:node scripts/check-skills-token-ratchet.mjs(skills/objectstack-i18n/SKILL.md6333/6333).node scripts/check-skill-links.mjs,node scripts/check-skill-identifier-liveness.mjs,node scripts/check-skill-top-level-keys.mjs.pnpm --filter @objectstack/spec check:skill-refs,check:skill-docs.node scripts/pm/overlap-check.mjs: clean (feat(spec)!: form is a metadata type of its own, and the form doors read a form over both types #37422 and refactor(spec)!: rename the Studio helper defineForm to defineMetadataForm and its modules to *.metadata-form.ts #37366 sharei18n-resolver.tsand merge cleanly).The skill edit was drafted by a contract-tier subagent, as
dispatch-gates --tierrequires forskills/**, and checked here against the cited lines; the spec comments were edited here.Contract review (L2) is owed before landing:
skills/**is a governed surface (Tier H).Human Minimum
packages/specholds no runtime logic.pnpm lintpasses.main, one pull request.packages/spectouched: its generated artifacts are regenerated and committed (comments only; none change).content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.🤖 Generated with Claude Code
https://claude.ai/code/session_01L6bhgUpnvPnJ1hR74pUrVj
Generated by Claude Code