Skip to content

feat(spec,cli,skills)!: behavioural metadata names stay short, and spec declares the namespace address grammar (ADR-0150 child P) - #31765

Merged
os-zhuang merged 12 commits into
mainfrom
claude/project-thread-a1675e
Nov 9, 2026
Merged

os-zhuang merged 12 commits into
mainfrom
claude/project-thread-a1675e

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #31669

维护者速读

  • 改了什么:流程、动作、页面、工具、技能等"行为类"元数据的名字从此可以不带包命名空间前缀(send_email 而不是 crm_send_email)——os lint 不再为此告警,技能文档也不再这样教;对象、文档、权限能力(capability)和岗位(position)仍然必须带前缀。另外,spec 先把后续子卡要用的"按包寻址"规则写成常量和函数(URL 中的命名空间段、_env 段、给 AI 用的 NS-NAME 工具名、命名空间与对象名不得重名的判断),本 PR 不接入任何运行时入口。
  • 为什么改:ADR-0150 已经合入并裁定:行为类元数据按(包,名字)识别,靠可选的命名空间段寻址,不再靠名字前缀防撞名;不改的话 lint 和技能会继续要求作者(包括 AI)写一个平台已经不需要的前缀。
  • 风险与回滚:唯一的收紧是:工具、技能、智能体、流程、钩子、连接器、共享规则、作业、分析立方体、API 端点这十类,名字不能再以 _ 开头(_ 开头的段留给路由,如 _env);本仓库和 HotCRM 实测没有真实条目受影响,只有一个 dogfood 测试夹具用了 _ 开头的流程名,已在本 PR 改掉。已经带前缀的名字全部照常可用,不需要任何改名。回滚即还原本 PR,无数据迁移。
  • 先看:packages/spec/src/kernel/address-grammar.ts(寻址规则)、packages/spec/src/ai/face-name.ts(AI 工具名推导,超过 64 字符时截断加哈希)、packages/cli/src/commands/lint.ts 的 PREFIX_JUDGED_COLLECTIONS。
  • 两分钟验证:pnpm --filter @objectstack/spec exec vitest run --project local src/kernel/address-grammar.test.ts src/kernel/router-reserved-name.test.ts src/ai/face-name.test.ts src/kernel/namespace-prefix.test.ts,再跑 pnpm --filter @objectstack/cli exec vitest run test/lint-namespace-prefix.test.ts。
  • 需要你做的:确认截断哈希选用 FNV-1a 32 位(对未截断的完整工具名的 UTF-8 字节求值,取 8 位十六进制),见下方 Acceptance notes 第 1 条。

What changes

Spec (packages/spec) — declarations only; ⛔ nothing here wires a door, a router, the MCP bridge or the install gate.

  • The D5 address grammar — kernel/address-grammar.ts, exported from @objectstack/spec/kernel: NAMESPACE_PATTERN (now the one source manifest.namespace and deriveNamespaceFromPackageId read), ENVIRONMENT_ADDRESS_SEGMENT (_env), ROUTER_RESERVED_NAME_PREFIX (_), ROUTER_ADDRESSABLE_NAME_PATTERN and its message, the namespace-position literal constant NAMESPACE_POSITION_LITERALS (per door, measured off ROUTE_LEDGER), the derived install-refused set NAMESPACE_REFUSED_LITERALS (actions, connectors, global, hooks, oauth, trigger), validateNamespaceNotAddressLiteral, and readNamespacePositionSegment — the router's documented precedence (literal, then _env, then an installed namespace, else bare; never a guess).
  • The D6 AI face — ai/face-name.ts: deriveAiFaceName({ namespace, objectName, name }) gives NS-NAME for a package tool, skill, agent or object-less action, OBJECT-ACTION for an object-bound action, the bare NAME for an environment item; past 64 characters, the first 55, then - and 8 hex of FNV-1a 32 over the UTF-8 bytes of the whole uncut face. Constants AI_FACE_NAME_MAX_LENGTH, AI_FACE_NAME_CUT_LENGTH, AI_FACE_NAME_SEPARATOR, AI_FACE_NAME_HASH_LENGTH.
  • The MCP namespace member — ai/mcp.zod.ts: MCP_ACTION_NAMESPACE_MEMBER ('namespace'), McpActionNamespaceSchema (the manifest namespace grammar) and McpListedActionAddressSchema (name, objectName?, namespace? — the address a list_actions row carries and run_action takes back), declared for G2 to mix in as confirm is. packages/mcp is untouched.
  • K's predicate — kernel/namespace-prefix.ts: findNamespaceObjectNameClashes(incoming, installed) refuses a namespace equal to an object name in both directions, and an object short-named custom (the ADR-0146 pair's namespace is NS_custom); each clash names both spellings. Unwired: child K wires the doors.
  • The declared narrowing — the ten bucket 2/3 name schemas that admitted a leading _ (tool, skill, agent, flow, hook, connector, sharing rule, job, analytics cube, api endpoint) now use ROUTER_ADDRESSABLE_NAME_PATTERN (^[a-z][a-z0-9_]*$), refused at defineStack, os validate and wherever the body is parsed, with a message naming the reserved prefix. ADR-0087 semantic entry bucket-two-three-name-underscore-led-refused.

CLI (packages/cli/src/commands/lint.ts) — naming/namespace-prefix's bare-name finding now judges only PREFIX_JUDGED_COLLECTIONS (capabilities, bucket 1 NS.SHORT; positions, one environment slot per D7 and #31676's amendment), each with its reason in the message. Every bucket 2–4 collection is short-named by default; a new collection is not judged unless added there. The intra-package duplicate finding is unchanged. NAME_JUDGED_ELSEWHERE is retired with the default it served. PLATFORM_REQUESTED_BARE_NAMES stays (ADR-0150 D3 names it). Two generate.ts docblocks are corrected (comments only, seat-approved).

Dogfood fixture (seat amend 3) — packages/qa/dogfood/test/automation-authoring-doors-durable.dogfood.test.ts: the create-refusal case named its flow _dogfood_unsavable_flow_20862, relying on FlowSchema.name admitting a leading _ so the engine registered it and the store refused it. That name is now refused before the engine, so the case creates a letter-led name with the default-edge-with-condition definition the update case already uses: the engine registers it, the publish gate refuses the save (422 INVALID_METADATA), and the registration is withdrawn. Both 404 reads stay, before and after the cold boot. Test-only, +8 / −8.

Skills and docs — skills/README.md and skills/objectstack-platform/SKILL.md replace "every non-object name carries the namespace" with the post-ADR-0150 rule (objects, docs, capabilities and positions carry it; other names stay short; no _-led name); two eval expected_outputs drop the prefix they asked for. content/docs/ui/doc-pages.mdx L77-80 (seat-approved) no longer says the lint holds every name to the prefix. create-objectstack templates carry no non-object prefix instruction (they prefix only the blank_note object), so nothing there retires.

Why

ADR-0150 (accepted by merge, #31586) D9: "Retired by child P: phase 2's naming/namespace-prefix bare-name warning for buckets 2–4 … and the authoring skills' and templates' instruction to prefix bucket 2–4 names." D5 and D6 hand P the grammar helpers, the namespace-position literal constant and the face derivation; Q3 hands it K's predicate (ruling 6723571682).

Clause-②: yes (narrowing)
Metadata-protocol: narrowed
Skills-docs: updated here — skills/README.md, skills/objectstack-platform/SKILL.md, skills/objectstack-ai/evals/skills-tools-knowledge.json, skills/objectstack-platform/evals/config-plugins-ops.json; content/docs/ui/doc-pages.mdx.

skills/** line readings (net added lines ≤ 0, as the card bounds):

Reading Before After
skills/README.md (whole file) 140 139
skills/objectstack-platform/SKILL.md (whole file) 411 411 (5982 tokens, ceiling 6011)
skills/objectstack-ai/evals/skills-tools-knowledge.json 55 55
skills/objectstack-platform/evals/config-plugins-ops.json 382 382
skills/objectstack-platform/** (whole package) 2373 2373
skills/objectstack-ai/** (whole package) 529 529
skills/** (whole tree) 20530 20529

Diff on skills/**: +6 / −7, net −1.

Verification

Head 7cfcbc30 (this branch with main 9e1f1f90 merged). The readings below were taken on 9d8ded9e (main 0105a687 merged); main's three later commits touch none of this change's files, and on 7cfcbc30, after a closure rebuild, the scoped re-runs are green: 10 touched spec test files (431 tests), the three cli namespace test files (79), plugin-sharing (72 files / 1487 tests), and the edited dogfood file plus main's new bare-name-one-holder-flow-family dogfood file (11 tests). The derived gate set is the same 130. Every long run was under os-verify-lock.

  • Derived gates. dispatch-gates --ran on 9d8ded9e: 130 derived, 130 run, 0 NOT-MEASURED, all exit 0 (re-run in full after the main merge; check:dual-build-cjs-loads and check:i18n-coverage ran after a closure build). Roster gates check:changeset-fixed, check:error-code-casing, check:filter-alias-parity, check:stack-collection-maps: exit 0. ESLint on every changed .ts file: clean.
  • Spec. --project local: 827 files green (5 name tests that listed a _-led name as valid now list it as refused). test:repo in four shards: 23 files / 404 tests, 23 / 368, 23 / 302, 22 / 482. After the merge, the 9 touched spec test files: 392 passed.
  • CLI. Three shards: 205 files / 2589 tests (1 file, 2 tests skipped), 205 / 2574 (7 skipped), 204 / 2449. After the merge, the two lint test files plus validate-namespace-name.test.ts: 3 files / 79 tests.
  • Consumers of the narrowed schemas (files / tests, all green): lint 197/8364, mcp 61/959, service-analytics 212/5098, service-job 11/121, plugin-approvals 115/1502, plugin-sharing 71/1470, platform-objects 120/1931, connector-openapi 9/109, connector-slack 3/10, connector-rest 5/57, connector-mcp 9/119, metadata-core 26/999, types 37/870, metadata 71/981, service-automation 266/3456, rest 395/7627, client 56/721, core 137/3151, metadata-protocol 328/22595 (4 files, 26 tests skipped), objectql 573/11649, runtime 563/9039.
  • Dogfood, full battery (closure build, then four OS_TEST_SHARD slices): 111 files / 959 tests; 111 / 747 (4 skipped); 111 / 908 (6 skipped); 110 / 1079 (2 files, 31 tests skipped). Slice 2 had one red, the _-led fixture above; after the fixture change that file is 7/7, and 7/7 again on the merged head. The battery itself ran on 9956785b (before the main merge, which touched no file of this change).

Acceptance notes

  1. The face hash (flagged for the contract review, as the seat asked). The only name-cut hash in the tree is driver-sql's buildIndexName (cut, then 8 hex of SHA-1 via node:crypto). Spec is isomorphic and the derivation synchronous, so node:crypto is not available there; the face uses FNV-1a 32 over the UTF-8 bytes of the whole uncut face, the isomorphic hash the tree already uses (service-settings' fnv32: digest, service-messaging's backoff, types' validator lanes). The JSDoc states the algorithm and its input. face-name.test.ts pins one literal value, c75940c6, the hash of a 68-character face; its comment names the published FNV-1a 32 vectors, but no test asserts them.
  2. os generate keeps writing <ns>_ scaffold names (seat reading 4). That spelling stays valid (D9); only the docblocks that said the lint requires it are corrected.
  3. The save door. The URL item-name grammar (METADATA_ITEM_NAME_PATTERN, metadata-protocol) already refused a _-led name before this PR; its message does not name the router reservation, and changing it is metadata-protocol, outside this card's surface. The schema-level refusal this PR adds names it wherever the body is parsed.
  4. An environment object-bound action gets OBJECT-ACTION, not the bare name: the OBJECT-ACTION form never carries the namespace, so the package/environment distinction does not arise there (D6's "an environment item keeps its bare NAME" sits under the NS-NAME form).
  5. NAMESPACE_POSITION_LITERALS.actions carries the empty segment of POST /actions//:action (the object-less global-action spelling), so the constant matches every ledger row at that position for G1's pin. No namespace is empty, so it never reaches the install-refused set.
  6. Not done here, by the card: no runtime index, router, MCP bridge or door wiring; no cloud; no new gate. Already-prefixed names are untouched (D9).

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.
  • 7. No hand edits to content/docs/references/, packages/*/CHANGELOG.md or content/docs/releases/.
  • 8. Title, body and comments are in English (except the ## 维护者速读 block, which the seat's delivery rule asks for in Chinese).
  • The Before Submitting list in CONTRIBUTING.md is done.

🤖 Generated with Claude Code

https://claude.ai/code/session_01QsR2jRCXuaLn9G4i3Scnix

claude added 12 commits November 8, 2026 22:20
…sh predicate, and the router-reserved `_` name prefix (WIP)

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jRCXuaLn9G4i3Scnix
… changeset and ADR-0087 entry (WIP)

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jRCXuaLn9G4i3Scnix
… reference docs and strictness ledger

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jRCXuaLn9G4i3Scnix
…rsed-state twin (ADR-0122)

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jRCXuaLn9G4i3Scnix
…-led name as refused

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jRCXuaLn9G4i3Scnix
… a tracker number

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jRCXuaLn9G4i3Scnix
…ot a leading underscore

The create-refusal case named its flow `_dogfood_unsavable_flow_20862`, leaning on
FlowSchema.name admitting a leading `_` so the engine registered it and the store
refused it. A `_`-led flow name is now refused before the engine (ADR-0150 D5), so
the case creates a letter-led name with the default-edge-with-condition definition
the update case already uses: the engine registers it, the publish gate refuses the
save with 422 INVALID_METADATA, and the registration is withdrawn.

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

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 2 package(s): @objectstack/cli, @objectstack/spec, touching 92 documentable anchor(s). ⚠️ 9 changed file(s) yielded no anchor (packages/spec/api-surface/ai.json, packages/spec/api-surface/kernel.json, packages/spec/authorable-surface/ai.json, …), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

38 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 9e1f1f90d5a62c81b6d1561d4baa7c822cc88b33.

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

What this run could not see
  • 9 changed file(s) yielded no anchor (packages/spec/api-surface/ai.json, packages/spec/api-surface/kernel.json, packages/spec/authorable-surface/ai.json, …) — pages documenting those are invisible to this run
  • 5 anchor(s) matched too much of the corpus to be a work list: objectName (symbol, 57 pages), os lint (command, 45 pages), /automation/:name (route, 48 pages), /meta/:type (route, 40 pages), /meta/:type/:name (route, 43 pages)
  • 16 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 65 of 231 client-bound route-ledger rows — the other 166 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 166: 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; 107 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 — 180 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 9e1f1f90d5a62c81b6d1561d4baa7c822cc88b33 → packageMentionDocs.

Which tree this was computed on

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

node scripts/docs-audit/affected-docs.mjs --json 9e1f1f90d5a62c81b6d1561d4baa7c822cc88b33

⚠️ 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 9e1f1f90d5a62c81b6d1561d4baa7c822cc88b33 → 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

domain:spec#2 · zhuangjianguo · session_01QsR2jUe9c6YdtNkrzUnMUd

Contract-review-claim: session_01QsR2jUe9c6YdtNkrzUnMUd · head 7cfcbc3 · 2026-11-09T03:34Z

The seat runs the CONTRACT_REVIEW_TIER review on an isolated sub-agent (director seat off duty; maintainer rule 2026-11-08 「有 fable 车道就可以契约复审啊」). CI on this head: 57 success, 10 skipped, 0 failed.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:spec#2 · zhuangjianguo · session_01QsR2jUe9c6YdtNkrzUnMUd

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 7cfcbc304fb950914fa0acfffa3b486231577322
Local-runs: probe — one independent FNV-1a 32 computation (a 6-line python function outside the repo tree, no repo code, no build, no test, no gate) of the test's pinned vector and the three published vectors, to judge the dev-flagged Acceptance note 1: the green check-runs prove the pin is self-consistent with the implementation, not that the implementation is FNV-1a.
Scope: packages/spec/src/ai/agent.zod.ts, packages/spec/src/ai/face-name.ts, packages/spec/src/ai/index.ts, packages/spec/src/ai/mcp.zod.ts, packages/spec/src/ai/skill.zod.ts, packages/spec/src/ai/tool.zod.ts, packages/spec/src/api/endpoint.zod.ts, packages/spec/src/automation/flow.zod.ts, packages/spec/src/data/analytics.zod.ts, packages/spec/src/data/hook.zod.ts, packages/spec/src/integration/connector.zod.ts, packages/spec/src/kernel/address-grammar.ts, packages/spec/src/kernel/index.ts, packages/spec/src/kernel/manifest.zod.ts, packages/spec/src/kernel/namespace-prefix.ts, packages/spec/src/migrations/entries/semantic/18.bucket-two-three-name-underscore-led-refused.ts, packages/spec/src/security/sharing.zod.ts, packages/spec/src/system/job.zod.ts, skills/README.md, skills/objectstack-ai/evals/skills-tools-knowledge.json, skills/objectstack-platform/SKILL.md, skills/objectstack-platform/evals/config-plugins-ops.json + packages/cli/src/commands/lint.ts (the gate that enforces D9's retirement and the sentence SKILL.md teaches about it), packages/cli/src/commands/generate.ts (docblocks only; they describe lint.ts), .changeset/31669-behavioural-names-short-address-grammar.md (judged in ②), content/docs/ui/doc-pages.mdx (prose face the round made false). Lane remainder at TIER_DEFAULT, not reviewed here: the 12 test files and the dogfood fixture, the 7 regenerated spec surface artefacts, the 2 regenerated reference pages, the regenerated audit count. Read in the live tree to judge, never reviewed: packages/runtime/src/route-ledger.ts (ROUTE_LEDGER), shared/identifiers.zod.ts, kernel/customization-package.ts, meta-spelling/manifest-collection-spelling.ts, cli/src/utils/project-namespace.ts, metadata-protocol/src/protocol-save.ts, the FNV-1a sites in service-settings, service-messaging, types, metadata-core and platform-objects, packages/cli/package.json, packages/skills/package.json.

Inputs: card #31669 body and all 8 comments (triage 6727644402, claim 6727701819 and amends 6727833678 / 6727964762 / 6730426080, devx notifies 6730710213 / 6731365836, dev report 6731284162); PR #31765 body, 48-file list, net diff origin/main...7cfcbc30 (base 9e1f1f9); the 67 check-runs on the head (57 success, 10 skipped, 0 failed; the skipped ones are opt-in or matrix-template jobs; combined status pending carries no contexts); the five ruling records on #31527 (6723462584, 6723499113, 6723571682, 6724050556, 6724530715); ADR-0150 at the head (e81636c, #31676's amendment included).

① Derived judgments

Accept-set changes the diff implies:

  1. Ten name schemas narrow from ^[a-z_][a-z0-9_]*$ to ROUTER_ADDRESSABLE_NAME_PATTERN ^[a-z][a-z0-9_]*$ with ROUTER_ADDRESSABLE_NAME_MESSAGE: tool, skill, agent, flow, hook, connector (both ConnectorSchema and DeclarativeConnectorEntrySchema, which share connectorBaseShape), sharing rule (via BaseSharingRuleSchema), job, cube, api endpoint. Right. ADR-0150 D5 names exactly these ten as the ones that admitted a leading _; I verified on main that every other bucket 2/3 name is SnakeCaseIdentifierSchema (action, webhook, mapping, assignment rule, queue, app, page, dashboard, report, dataset, permission set, picklist, position), whose regex is the same ^[a-z][a-z0-9_]*$, so the narrowing is exactly the card's declared one and nothing beyond it. It binds environment rows too, as D5 says ("bucket 4 included"). Letter-led names, prefixed or short, parse byte-identically (the regex differs only in the first class). The PR touches no other accepted value.
  2. manifest.namespace reads NAMESPACE_PATTERN — the same regex ^[a-z][a-z0-9_]{1,19}$ and the same message as before; deriveNamespaceFromPackageId reads the same constant in place of its private twin. Accept-set unchanged. Right.
  3. McpActionNamespaceSchema / McpListedActionAddressSchema / MCP_ACTION_NAMESPACE_MEMBER — additive declarations, wired to nothing (packages/mcp untouched, confirmed on the file list). The namespace value is bound to the manifest grammar, so a value the tool admits is one a manifest can declare (D2: the address is the namespace). The listed-row schema is a non-strict z.object, deliberately: it is a mix-in for a row that carries the server's own members (label, params, confirmation), as the docblock says; the ai/ strictness count regenerated 91 → 92 and the ledger gate is green. name is a plain string on the row because the row is server-produced. Right.
  4. findNamespaceObjectNameClashes — additive, unwired (the card says K wires the doors). Both directions are judged; the NS_custom corollary reads CUSTOMIZATION_NAMESPACE_SUFFIX ('_custom' on main) rather than a second literal; each clash names both spellings and the package when known. Right, matches ruling 6724530715 and the ADR K row.
  5. NAMESPACE_POSITION_LITERALS values — measured by hand against ROUTE_LEDGER at 9e1f1f9: /automation → _status (L618), actions (L595), connectors (L596), hooks (L656), trigger (L589); /actions → the empty segment (L746 POST /actions//:action), _activation (L748), global (L737); /automation/connectors → credential-refs (L600–604), oauth (L616); /automation/trigger, /automation/hooks and /meta/:type serve no literal at the namespace position (_drafts, _migrate-stored, types, object sit in the type position). Complete, nothing extra, code-unit order. NAMESPACE_REFUSED_LITERALS = actions, connectors, global, hooks, oauth, trigger follows (the _-led, the empty and the hyphenated literal fail the grammar). Right.
  6. os lint naming/namespace-prefix: the bare-name finding now fires only for capabilities and positions. Both are keys of PLURAL_TO_SINGULAR (L83, L76 on main), so the finding is live, not dead; every other collection is silent; the duplicate finding is unchanged over DUPLICATE_KEYED_TYPES (apps, pages, dashboards, flows, actions by objectName:name, reports, datasets), which is exactly the list SKILL.md's new sentence teaches. The overrides, namespace-named, sys_, dotted, no-namespace and PLATFORM_REQUESTED_BARE_NAMES exemptions are preserved on the two judged collections. Right against D9 ("retired by child P: phase 2's bare-name warning for buckets 2–4; the intra-package duplicate warning stays") and D1/D7 for what still keeps the prefix.

Public-surface changes:

  1. @objectstack/spec/kernel gains 8 value exports and 4 types; @objectstack/spec/ai gains deriveAiFaceName, 4 constants, AiFaceAddress, and the 3 MCP members with their types. Every one is named in the changeset; api-surface, export-origins, declaration-map, authorable-surface and json-schema.manifest are regenerated and check:generated/check:api-surface are inside the green Lint & Repo Gates run. Right.
  2. @objectstack/cli: NAME_JUDGED_ELSEWHERE retired, PREFIX_JUDGED_COLLECTIONS added. commands/lint is not a package subpath (exports: ., ./console, ./hook-body) and no file outside packages/cli references the old name, so this is not a published removal and the changeset rightly does not list it. Right.
  3. The card's "namespace on MCP run_action / list_actions shapes" is satisfied in spec only; the tool input and row shape live in packages/mcp. Claim amend 1 corrected that premise before the build and the ADR's G2 row owns the mcp wiring. Right, as amended.
  4. Skills text: README and SKILL.md now state D1's bucket 1 (objects, docs, capabilities) plus positions as the names that carry the namespace, every other name short, a prefixed name still valid, no _-led name; two eval expected_outputs drop the prefix they asked for while their must_contain lists are unchanged, so a prefixed answer still passes (D9: nothing un-renames). skills/** nets −1 line (+6/−7). Right.

② Semver level

  • Changeset 31669-behavioural-names-short-address-grammar.md: @objectstack/spec: minor, @objectstack/cli: patch, @objectstack/skills: patch. Metadata-protocol: narrowed is a protocol kind, so spec takes at least minor under AGENTS.md step 3; cli and skills carry no protocol change, so patch. @objectstack/skills exists (packages/skills/package.json). The BREAKING banner, the FROM → TO remedy (_sync → sync, update every reference) and exactly one ADR-0087 marker (adr-0087: registered bucket-two-three-name-underscore-led-refused) are present; semantic entry 18 exists at the head with that id, and check-adr-0087-registration sits inside the green repo-gates run. No skip-changeset. Matches what the diff publishes.
  • The two declaration lines are line-initial and identical in the changeset and the PR body: Clause-②: yes (narrowing) and Metadata-protocol: narrowed; the title carries !. Claim amend 1's correction (added → narrowed, yes → yes (narrowing)) is what landed.
  • Clause-②: yes (narrowing) — right. The one arm is the ten-schema _ refusal; everything else the PR publishes is additive and unwired, and the lint change loosens a warning, which is not a contract.

③ Boundary flags

  • Dev flag — Acceptance note 1, the face hash (ai/face-name.ts). Answered, accepted. (i) The algorithm is FNV-1a 32 as published: offset 0x811c9dc5, prime 0x01000193, xor-then-multiply, Math.imul followed by the unsigned-shift-by-zero coercion is the exact mod-2^32 product, 8 hex zero-padded. My probe gives '' → 811c9dc5, 'a' → e40c292c, 'foobar' → bf9cf968 (the published vectors) and c75940c6 for the 68-character face crm_ + 51×a + -convert_lead, which is the literal the test pins. (ii) The input: "the UTF-8 bytes of the whole uncut face" satisfies the ruling's "a hash of the full identity": under D2 the address is (namespace, name) and the face IS that address spelled out; for OBJECT-ACTION the object name already carries the package (D6), and two holders of the same (object, action) are the face list's duplicate to refuse (D6 rider, G2/C), not the hash's to separate. Hashing the face, not a richer tuple, is also what lets G2 and the cloud derive the same name from the address they hold. Every grammar is [a-z0-9_], so UTF-8 bytes equal code units; the TextEncoder spelling is still the right isomorphic one. (iii) node:crypto is unavailable in an isomorphic synchronous spec module; the tree already uses FNV-1a 32 in five isomorphic places (service-settings crypto-adapter.ts fnv32:, service-messaging backoff.ts, types representation-validator.ts, metadata-core object-schema-fls.ts, platform-objects source-hash.ts). (iv) The cut rule: a face of exactly 64 is not cut (ruling rider), a longer one is 55 + - + 8 = 64. Non-cryptographic is acceptable here because the hash only keeps two long faces with a shared 55-character head apart and the face list refuses a collision by name.
  • Acceptance note 2 (os generate still writes NS_ scaffold names): accepted deviation under D9 (a kept spelling). It does mean the scaffolder writes a spelling the skills no longer teach; a follow-up card is the right place if the lane wants scaffolds short. Not a contract conflict.
  • Acceptance note 3 (the save door): verified. protocol-save.ts L1429 parses the item body against its type schema, so the schema refusal is reached at the save door too; the URL grammar (METADATA_ITEM_NAME_PATTERN, saveMetaItem/publishMetaItem) refuses a _-led name earlier with a message that does not name the router reservation. That message is metadata-protocol's, outside the card's surface; accepted as left.
  • Acceptance note 4 (environment object-bound action gets OBJECT-ACTION): right; D6 states the OBJECT-ACTION form "for an action bound to an object" without a holder condition, and the NAME form only under NS-NAME.
  • Acceptance note 5 (empty literal): verified at ledger L746; '' fails NAMESPACE_PATTERN so it never enters the refused set; readNamespacePositionSegment('actions', '') reads it as a literal, which is the router's behaviour today.
  • Acceptance note 6 (nothing wired): the file list touches no runtime, objectql, mcp or metadata-protocol file.
  • Open questions: ADR Q1, Q2, Q3 and D2 were ruled before this head and the PR body carries no open_questions; none to escalate.
  • The card's red lines. (1) Resolution never loosens: nothing here resolves; readNamespacePositionSegment returns bare rather than a guess, admits namespace only when the segment passes the grammar AND the caller's catalogue says so, and its docblock says a bare reading is not a resolution. (2) Ambiguity reported: findNamespaceObjectNameClashes names both spellings and the package; validateNamespaceNotAddressLiteral names every door that serves the literal. (3) Independently releasable: (a) Test Core 1–8 and the Dogfood Regression Gate are green on the head; (b) no runtime file is touched, so bare-name behaviour is unchanged for every one-holder name, the declared narrowing excepted; (c) no migration; (d) the declarations and entry 18.
  • Dev deviations 1–5 are process; 3 (plain git merge origin/main twice) is covered by the regen family being green on this head. Accepted.
  • Devx notify (fix(scenarios): judge the bare-name Build check only where ADR-0150 keeps the literal prefix #31749): P exports no per-type bucket constant, so scenario-naming.ts has nothing to switch to; the card does not owe one. Left to a follow-up if wanted.

④ Design judgment

Each hits file against the code it cites and the scenario it is accepted against:

  • kernel/address-grammar.ts (D5): the door table matches D5's table; the three-step precedence matches D5 "How the router tells them apart" (literal, then _env, then installed namespace, else bare). The literal constant is complete against the ledger (①5). validateNamespaceNotAddressLiteral judges only the grammar and says so. Tried: trigger installed as a namespace on /actions reads as a namespace, on /automation as the literal (door-scoped, as D5 says); Crm with a lying catalogue reads bare; _drafts on /automation reads bare (it is a /meta type-position literal, not an automation one) — all as designed. One finding (F1).
  • ai/face-name.ts (D6, Q1 = A): the three forms, the 64 boundary and the cut are the ruling's; objectName || namespace means an empty-string object falls through to the namespace, acceptable. Hash judged above. Exported from ai/index.ts; no import cycle (the module imports nothing).
  • ai/mcp.zod.ts (D5 MCP bullet): declared once, mixed in by G2 as confirm is; docblock's absent/present/row semantics restate D3 and D5 without inventing a pick. Right.
  • kernel/namespace-prefix.ts (Q3 = A, K): predicate semantics match the ruling; the second direction skips incoming namespaces already judged, so no clash is reported twice; an installed-vs-installed clash is correctly not this call's. Tried: a stack whose namespace equals one of its own objects → caught in direction 1 (incoming objects are in allObjects); an environment object crm_custom with no namespace is not the custom corollary (it belongs to no package) and is caught in direction 1 when the pair installs — right.
  • kernel/manifest.zod.ts, kernel/index.ts, ai/index.ts: wiring only; message unchanged; no cycle (address-grammar imports nothing; namespace-prefix → customization-package → manifest.zod → address-grammar, acyclic).
  • The ten schema files: one-line regex swaps with the shared message; the describe strings are unchanged, so the generated JSON schema changes only its pattern. Right.
  • migrations/entries/semantic/18.…ts: surface, replacement, reason and acceptance match the tree (the ten schemas, the pattern, the three doors, the measured zero). Right.
  • skills/objectstack-platform/SKILL.md: the replaced paragraph is true of the tree at this head sentence by sentence — the bucket-1 list is D1's, positions are D7's one slot, the lint sentence is exactly PREFIX_JUDGED_COLLECTIONS + DUPLICATE_KEYED_TYPES, "no name starts with _" is the ten-schema refusal plus SnakeCaseIdentifierSchema for the rest of the list. Against eval config-plugins-ops Add metamodel interfaces for ObjectQL/ObjectUI contract #1 the taught rule yields prefixed objects and short flows, and the unchanged must_contain still admits a prefixed flow. Right.
  • skills/README.md: the convention line now matches SKILL.md's rule and points to it; the retired exemptions were exemptions to the retired rule. Right.
  • The two eval files: expected_output only; assertions unchanged; action_crm_escalate_case is still the cloud's spelling on main (child C changes it, not P). Right.
  • Implementing files: lint.ts agrees with D9 and with the SKILL.md sentence word for word (①6); the message now carries the collection's reason. generate.ts docblocks: true of lint.ts at this head. doc-pages.mdx: D1 restated correctly. The changeset: ②.

Findings:

  • F1 — nit (packages/spec/src/kernel/address-grammar.ts, module docblock and the NAMESPACE_POSITION_LITERALS docblock). Both say in the present tense that route-ledger.conformance.test.ts "pins this constant against the ledger rows so the two never drift". No such pin exists on this head: the only references to the constant outside its own file are the regenerated surface files, and the ADR's G1 row assigns that pin to G1. The values are correct today (①5), but drift is unguarded until G1 lands. No effect on correctness or the contract. Code face: leave as an accepted deviation to be made true by G1's pin, or a follow-up card; ⛔ not fixed on this head.
  • F2 — nit (PR body, Acceptance note 1 and the spec bullet): "face-name.test.ts pins a literal value and the published vectors". The test pins the literal only; fnv1a32Hex is unexported, and the vectors appear in a comment. The probe verified them instead. Prose face; a one-word body correction is optional.
  • F3 — nit (follow-up card at most): reference grammars wider than the names they reference — agent.zod.ts L386 skills[] and skill.zod.ts L375 tools[] still admit a _-led skill or tool name that no longer exists, and api/metadata.zod.ts L80 MetadataRegisterRequestSchema.name admits _-led (unreachable: the URL grammar refuses first). A _-led reference simply never resolves; no correctness or contract effect.

No must-fix, no should-fix. Nits alone end the round.

Rendered by the seat's isolated review sub-agent (child session 9f9f0eb5-2885-550b-8927-ffc7a5154621); the seat adopts and posts it.

Implemented-by: claude/project-thread-a1675e
Reviewed-by: session_01QsR2jUe9c6YdtNkrzUnMUd

VERDICT: PASS

Seat adoption note: read before adopting. Spot-checked F1 (no route-ledger.conformance pin exists on this head; address-grammar.test.ts uses the constant but never reads ROUTE_LEDGER) and the hash vectors (811c9dc5, e40c292c, bf9cf968, c75940c6, recomputed independently). Adopted as rendered. F1 is carried to G1; F2 and F3 are accepted nits.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:spec#2 · zhuangjianguo · session_01QsR2jUe9c6YdtNkrzUnMUd

维护者速读

  • 改了什么:流程、动作、页面、工具、技能等「行为类」元数据的名字不再需要包命名空间前缀(send_email 即可,crm_send_email 仍然有效):os lint 不再为此告警,技能文档也不再这样教;对象、文档、权限能力和岗位仍须带前缀。spec 同时声明了后续子卡要接入的按包寻址规则(URL 命名空间段、_env 段、AI 工具名 NS-NAME、命名空间与对象名不得重名的判断),本 PR 不接入任何运行时入口。
  • 为什么改:ADR-0150 已合入并裁定行为类元数据按(包,名字)识别、靠可选命名空间段寻址,不再靠名字前缀防撞名(D9 指定由本卡退役旧告警和技能里的前缀要求)。
  • 风险与回滚:唯一的收紧(BREAKING)是工具、技能、智能体、流程、钩子、连接器、共享规则、作业、分析立方体、API 端点这十类的名字不能再以 _ 开头(_ 留给路由,如 _env)。实测本仓库和 HotCRM 没有真实条目受影响,只有一个 dogfood 测试夹具改了名。回滚 = revert 本 PR,无数据迁移。
  • 先看:packages/spec/src/kernel/address-grammar.ts(寻址规则),packages/spec/src/ai/face-name.ts(AI 工具名,超过 64 字符截断加 FNV-1a 32 位哈希),packages/cli/src/commands/lint.ts 的 PREFIX_JUDGED_COLLECTIONS。
  • 两分钟验证:pnpm --filter @objectstack/spec exec vitest run --project local src/kernel/address-grammar.test.ts src/kernel/router-reserved-name.test.ts src/ai/face-name.test.ts src/kernel/namespace-prefix.test.ts 全绿。
  • 需要你做的:批准本 PR(Tier H,因改了 skills/** 四个文件);批准后由本席落地。契约复核 PASS 在案:评论 6731739447,Head-sha: 7cfcbc304fb950914fa0acfffa3b486231577322。
  • 席位意见:建议合。CI 全绿,契约复核只有 3 条 nit、无须改动;截断哈希选 FNV-1a 32 位经复核独立验算无误。分支落后 main 11 个提交,git merge-tree 无冲突,合并队列会在最新 main 上重建验证,所以不为合 main 移动已复核的 head。

席位核对 · ACCEPT · 2026-11-09T03:47Z · head 7cfcbc304fb950914fa0acfffa3b486231577322

Seat domain:spec#2 reviewed the diff of its own dispatch (claim 6727701819 on #31669, amends 6727833678 / 6727964762 / 6730426080, card thread session_01QsR2jRCXuaLn9G4i3Scnix, report 6731284162). Checked against GitHub, not against the report.

  1. Shape: 48 files, +1138 / -253 (1391 lines, under the 3000 threshold). Draft, base main, body opens Fixes #31669. Source: kernel/address-grammar.ts, kernel/namespace-prefix.ts, kernel/manifest.zod.ts, ai/face-name.ts, ai/mcp.zod.ts, the ten bucket 2/3 name schemas, ADR-0087 semantic entry 18; packages/cli lint.ts and two generate.ts docblocks; four skills/** files (net −1 line); content/docs/ui/doc-pages.mdx; the dogfood fixture (amend 3); tests; regenerated surfaces and references; one changeset (@objectstack/spec minor, @objectstack/cli patch, @objectstack/skills patch). Every file is inside the claim as amended. packages/mcp and every runtime door are untouched.
  2. Premise: held at claim time (cd43416) and on this head: ai/mcp.zod.ts had no namespace member, kernel/address-grammar.ts did not exist, and the ten schemas admitted ^[a-z_]. Measured first-party _-led items of the ten types: 0 (the dev's count and the reviewer's both).
  3. Gates / check-runs: on this head 67 runs, 57 success, 10 skipped, 0 red. check-expected-skips --pr 31765: OK, every skip in main's roster (exit 0, roster pinned to main's tip). Dev: dispatch-gates --ran 130/130 on 9d8ded9e; spec, cli (3 shards), 21 consumer packages and the full dogfood battery (4 slices) green; after the last main merge, scoped re-runs green on this head.
  4. Accepted deviations: the contract review's three nits stand. F1: address-grammar.ts docblocks name a route-ledger.conformance pin that G1 adds; the values were checked against ROUTE_LEDGER row by row, and G1 owns the pin. F2: the PR body says face-name.test.ts pins the published vectors, but it pins the literal only (the vectors were recomputed independently). F3: agent.skills[], skill.tools[] and MetadataRegisterRequestSchema.name still admit a _-led reference, which can never resolve. Dev deviations (plain git merge of main twice, the battery on the pre-merge head) are covered by the regen family and Dogfood Regression Gate being green on this head. os generate keeps writing <ns>_ scaffold names, a spelling D9 keeps.
  5. Out of scope / Skills-docs: Skills-docs: updated here (four skills/** files + doc-pages.mdx). Downstream ADR-0150 children wire what this declares: K (install-gate doors), G1 (router + the ledger pin), G2 (packages/mcp), C (cloud). ⛔ None of them are in this PR.
  6. Landing: check-governed-merges --pr 31765: governed, Tier H (skills/** ×4). Clause-②: yes (narrowing), Metadata-protocol: narrowed: BREAKING banner, remedy and one ADR-0087 marker present, and the narrowing is exactly the one the card declared. Contract review at CONTRACT_REVIEW_TIER: PASS, record 6731739447 on this head (an isolated Fable reviewer adopted by this seat, under the maintainer's 2026-11-08 16:12Z rule). The maintainer merges by hand, or an authorized approval (GOVERNED_APPROVERS) and then this seat lands it (ready, auto-merge). On merge: Fixes closes spec: package-scoped addressing — namespace on MCP action shapes, address grammar helpers, AI face derivation, retire the bare-name prefix lint and skills text (ADR-0150 child P) #31669; this seat posts the landing note and lifts the cards Blocked-by: #31669.

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 9, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 9, 2026 05:21
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 9, 2026
Merged via the queue into main with commit d9a232f Nov 9, 2026
77 checks passed
@os-zhuang
os-zhuang deleted the claude/project-thread-a1675e branch November 9, 2026 05:53
rajeev-kumar-se pushed a commit to rajeev-kumar-se/objectstack that referenced this pull request Nov 10, 2026
…0129 and ADR-0130 point at it (ADR-0150 child A) (objectstack-ai#31841)

<!-- claude-projects-attribution: {"github_login":"zhuangjianguo"} -->
_Requested by **Steedos** · [project
thread](https://claude.ai/code/project/chan_018ETKaNwMZCNRYD7D8Q9Ubb?thread=cmsg_018ETKaNwMZCNRYD7D8Q9UbbRSEASPFQojyg3PhVYDG2Jp)_

Fixes objectstack-ai#31685

Clause-②: no
Metadata-protocol: none

## 维护者速读

- 改了什么:只改文档(四份 ADR 和一处代码注释,不改代码)。ADR-0150
补记子卡上已裁定、或由专题席位记录的七条:闭包外的包被拒绝(含同一发布包里没声明依赖的兄弟包)、阶段一之前就重名的部署被拒绝、同对象同名动作被拒绝(落在动作收尾卡)、`base`/`system`/`sys`
不受同命名空间唯一规则约束、扩展目标和 everyone/guest 锚点按无包调用方解析、无归属的引擎函数算平台持有者。ADR-0048 §5
的 lint 条目改成现状;ADR-0129、ADR-0130 加带日期的交叉引用。
- 为什么改:这些裁决都已在子卡上定下并有记录,但 ADR-0150
正文还写着旧说法(比如「阶段一覆盖的类型不会有两个持有者」「动作已被阶段一兜底」);P 合入后 ADR-0048 §5 还说 lint
对所有裸名告警、阶段三会改成拒绝。不改的话,后续子卡会照着过时的正文去做。
- 风险与回滚:只改文字,无运行时风险,不发版(`skip-changeset`)。回滚即撤销这一个提交。
- 先看:ADR-0150 D3 新增的 (c) 段和「Covered and uncovered types」段;ADR-0048 §5
第一个条目;ADR-0130 D1 下的注记。
- 两分钟验证:运行 `pnpm check:adr-index && node
scripts/check-adr-links.mjs`,两条都应退出 0。
- 需要你做的:契约复审通过后,审阅并合并(Tier H,`docs/adr/**`)。

## What changes

Docs only: four ADRs and one code comment. No code, schema, lint or
skills change.

- **ADR-0150** (status line gains an **Amended** entry). Each sentence
cites the record it writes in:
- **D3 (c)**: a package caller never resolves to a package outside its
declared closure by bare name. This is step 3 of the ruled rule
(6723462584), recorded as such by the epic seat (6728487836). A sibling
package of the same release artifact is no exception unless declared
(N1, ruled A, 6729820123), with the severity that record gives.
- **D3, caller-less references**: a picklist extension's target
(epic-seat ruling X, 6728613177) and the audience anchors `everyone` and
`guest` (an epic-seat reading recorded in its E3 review, 6732998040 on
draft PR objectstack-ai#31815) resolve as a caller with no package.
- **D2**: the shareable namespaces `base`, `system` and `sys` are not
judged by child N's co-owner rule (epic red-line review of N, 6728571147
on PR objectstack-ai#31717); a qualified address there answers `409` with the
candidates, and G1 pins it.
- **D4**: an owner-less engine function registration is the platform's
holder, reachable from every closure like `sys` (R2 review 6729484996
item 2, refined by re-review 6730444942 item 1).
- **Execution plan, covered types**: the object-less action is what
phase 1 covers. Two cases keep two package holders even so: a clash
sealed before phase 1 (objectstack-ai#31677 Q1 ruled A, 6729831159) and a same-object
same-name action pair (objectstack-ai#31697 ruled A, 6729825528). The sentence "no two
package holders of a name exist while its refusal stands" is narrowed
accordingly.
- **Execution plan, releasability**: the "except D3 (a)" sentence now
also names D3 (c).
- **TL;DR 7**: the three ruled refusals above join the list; "Measured
first-party, none of them refuses anything" becomes "Where measured
first-party, ...".
- **ADR-0048**:
- §5's `[done]` authoring-lint bullet is rewritten in place, as d5106ae
did for the same bullet. It now describes what `naming/namespace-prefix`
reports since child P (objectstack-ai#31765): the duplicate finding
(`DUPLICATE_KEYED_TYPES`), and the bare-name finding for capabilities
and positions only (`PREFIX_JUDGED_COLLECTIONS`). Phase 3 of ruling C is
withdrawn (record 6721941146 on objectstack-ai#30806).
- A dated note under §3.4 says its lint sentence still holds (see
Acceptance notes).
  - The status line gains an **Amended** entry.
- **ADR-0129**: a cross-reference to ADR-0150 on the status line, and a
dated note under D4. ADR-0028 is re-opened for the behavioural tier
only, objects stay under this record, and ruling C's planned amendment
of D2 is withdrawn (6721941146).
- **ADR-0130**: one dated note under D1's first paragraph (N1,
6729820123). Co-ownership does not decide how a reference between two
packages of one artifact resolves; the sibling allowance narrows to
declared dependencies (ADR-0150 D3). The ADR-0130 text itself is not
rewritten.
- **`packages/cli/src/utils/picklist-references.ts`**: the module
comment at line 42 gains a dated note pointing at ADR-0150 D3 and the
ADR-0130 note. Comment only.

## Why

Child A of epic objectstack-ai#31527. The epic seat carried seven items into A's
ADR-0150 text (comment 6729937614 on objectstack-ai#31685), on top of the card's
ADR-0048 and ADR-0129 items. Each item was checked against the record it
cites before its sentence was written.

## Tests

None: a docs-only change (`skip-changeset`). The one code edit is a
comment, so there is no tested behaviour to ablate.

## Acceptance notes

- **Deviation: ADR-0048 §3.4 is noted, not amended.** The card called
its lint sentence stale. Measured on `origin/main` 732def5, it is not:
the sentence cites the rule for "an author shipping two `page/home` in
one package". That duplicate finding still ships
(`DUPLICATE_KEYED_TYPES` in `packages/cli/src/commands/lint.ts`), and
ADR-0150 D9 keeps it. So §3.4 gets a dated note saying the sentence
holds and pointing at §5, and only §5's bullet is rewritten. The seat
agreed to this reading.
- **Deviation: the ADR-0130 note sits under D1.** ADR-0130 has no
sentence about resolving picklists or references. The CLI comment at
`picklist-references.ts:42` leans on D1's co-ownership claim, so that is
the sentence N1 means. The seat agreed to this placement.
- **Status-line pointers:** ADR-0028's and ADR-0048's pointers to
ADR-0150 landed with objectstack-ai#31586, and they are not duplicated here.
ADR-0150's own status line still reads "Proposed (2026-11-08) ...
becomes Accepted by the maintainer's merge", and ADR-0048's pointer
still says "takes effect when ADR-0150 is accepted". Both are left as
written; they are noted here for the seat.
- **`tool`, corrected per contract review F1** (record 6734267031):
`tool` joined phase 1's list (objectstack-ai#31414; ADR-0048 P1.10), and
`BARE_NAME_ONE_HOLDER_TYPES`
(`packages/core/src/package-scoped-resolution.ts`) lists 13 entries with
`tool` last. ADR-0150 now counts 14 covered types (the constant's 13
plus permission sets), 11 uncovered types without `tool`, and 14 B
children. The same fix commit (0a18e76) drops the letter from the N1
citation (F2), dates the ADR-0130 note's install-judge reading to E6
objectstack-ai#31731 (F3), and scopes the sealed-clash count to E5's measurement (F5).
- **The E3 reading** is cited as an epic-seat reading recorded on draft
PR objectstack-ai#31815 (6732998040), not as a ruling.

## Verification

<details><summary>Readings</summary>

Measured on commit bfc1d99 (base `origin/main` 732def5); after merging
`origin/main` at ca23ce3, none of the five files changed, and
`check:adr-index`, `check-adr-links` and `check-adr-anchors` were re-run
there: exit 0 each.

- `dispatch-gates`: 56 gates derived for this diff, 56 run, all exit 0.
`--ran` reconcile: 0 NOT-MEASURED, 0 UNRUN.
- Prerequisite builds under the verify lock: spec + formula + lint
prebuild, VERDICT 0; full `turbo run build --filter=./packages/**`,
VERDICT 0 (81/81 tasks).
- First pass: 6 gates exited 3 (prerequisites missing, not a
measurement): the teardown self-test (pinned fixture commit 621a487 not
fetched in a shallow clone), and dual-build-cjs-loads, i18n,
i18n-coverage, i18n-walk-parity and lean-entry-closure (needed built
packages). After fetching the commit and running the full build, all six
exit 0.
- Body gates with this body as the event payload:
check-closing-keyword-parity, check-changeset-no-major,
check:adr-0087-registration and check-partof-closing-keyword, exit 0
each.
- Diff: 5 files, +106 / -26. The review-fix commit 0a18e76 touches only
ADR-0150 and ADR-0130; `check:adr-index`, `check-adr-links` and
`check-adr-anchors` were re-run on it: exit 0 each.

</details>

## Human Minimum

- [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic.
(No schema touched.)
- [x] 2. Every name I added uses the casing for its kind. (No name
added.)
- [ ] 3. No formatter ran; `pnpm lint` passes. (No formatter ran. The
repo-wide `pnpm lint` scan is CI's run; the only source edit is a
comment.)
- [x] 4. One issue, one branch off an up-to-date `main`, one pull
request.
- [x] 5. A change that publishes carries a changeset, and both
declaration lines are filled in here and in the changeset. (Publishes
nothing: `skip-changeset`.)
- [x] 6. `packages/spec` touched: its generated artifacts are
regenerated and committed. (Not touched.)
- [x] 7. No hand edits to `content/docs/references/`,
`packages/*/CHANGELOG.md` or `content/docs/releases/`.
- [x] 8. Title, body and comments are in English.
- [x] The *Before Submitting* list in CONTRIBUTING.md is done.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01QsR2jUkMujHycV1pMLHL8h

---
_Generated by [Claude
Code](https://claude.ai/code/session_01QsR2jUkMujHycV1pMLHL8h)_

<!-- signed: domain:spec#2 · zhuangjianguo ·
session_01QsR2jUkMujHycV1pMLHL8h -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
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 pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue protocol:ai protocol:data protocol:system size/xl tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

3 participants