Skip to content

docs(adr): ADR-0150 addresses behavioural metadata by (package, name); objects keep the literal prefix - #31586

Merged
os-zhuang merged 15 commits into
mainfrom
claude/project-thread-mi92c5
Nov 8, 2026
Merged

os-zhuang merged 15 commits into
mainfrom
claude/project-thread-mi92c5

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Requested by Leehom · project thread

Refs #31527
Refs #30806

Clause-②: no
Metadata-protocol: none

维护者速读

  • 改了什么:新增 ADR-0150(Proposed)。流程、动作、页面等行为元数据按(软件包, 名称)寻址,对象继续用字面前缀。你对 Q1、Q2、Q3 和 D2 的裁决已全部写入,ADR 里不再有待决问题:AI 侧名字用 NS-NAME,绑定对象的动作用 OBJECT-ACTION;职位同名保持拒绝;命名空间永远不能等于对象名(各入口双向拒绝);同一命名空间内行为元数据同名唯一。七轮合约审查的意见也已并入。另有三条拒绝不在你的裁决里,由本 ADR 新增,合并即视为你接受:一是命名空间不能拼成路由里的保留词(如 trigger、hooks、actions、global);二是这几类元数据的名字不能以下划线开头,因为下划线开头的路径段归路由所有;三是软件包里的元数据如果按名字引用一个只有环境(客户自建)才有的条目,今天能读到,以后会被拒绝(D3 (a))。前两条在第一方代码里都是 0 处命中;第三条在软件包代码里无法测量,升级报告会逐条列出。同时在 ADR-0028 和 ADR-0048 的状态行各加一行指向,并重新生成 ADR 索引。只改文档,不改代码。
  • 为什么改:你在 13:12 裁定转向包寻址、撤回改名(Bare-name phase 3: defineStack and the save door refuse a bare package-authored name; ADR-0129 and ADR-0048 amended; migration of stored and external references (ruling C on #30798) #30806 S1/S5),15:36 裁定按类型分档,16:30 裁定 Q1/Q2,17:13 裁定 Q3,17:17 同意 D2。本 ADR 把这些裁决落成一份设计,并附一份可逐个发版的子卡执行计划(23 个构建子卡加 13 个按类型收窄的子卡)。
  • 风险与回滚:不改代码,没有运行时风险。不合并即回滚。子卡已按史诗裁决立卡,但这份记录被接受之前,任何子卡都不落地。
  • 先看:TL;DR 第 7 条(新增的五条拒绝:两条是你裁的,三条是本 ADR 加的),然后看 D3 解析规则、D5 地址语法和「Execution plan」一节。
  • 两分钟验证:运行 pnpm check:adr-index 和 node scripts/check-adr-links.mjs,两条都应退出 0。
  • 需要你做的:审阅 ADR-0150,同意的话把这个 PR 转为 ready 并合并。

What changes

  • docs/adr/0150-behavioural-metadata-addressed-by-package-objects-keep-the-literal-prefix.md (new, Proposed). It covers:
    • D1, the ruled four buckets, with why objects differ;
    • D2, identity is the package id and the address is the namespace (accepted 17:17Z). Namespace co-owners keep names unique (child N). Measured on HotCRM 6961ab1: 0 of 297 keys are shared;
    • D3, the ruled resolution rule and its exceptions;
    • D4, the runtime keys, and a package-less row over a package-held name, which is that holder's customization (ADR-0146 D11 migrates it) and never a second item;
    • D5, the address grammar:
      • the grammar's literal segments are read first. The namespace-position set is a spec/kernel constant that route-ledger.ts's test pins. The install gate refuses a namespace that spells one, and a name of a bucket 2/3 type that starts with _ is refused (child P). Both refusals are added by this record beyond the rulings, for acceptance by merge;
      • then an optional namespace segment, then the bare grammar;
      • a reserved _env segment for environment items;
      • a 409 with the candidates;
    • D6, the AI face as ruled: NS-NAME, and OBJECT-ACTION for an object-bound action. A collision check of the two forms led to Q3, ruled A: a namespace never equals an object name, refused in both directions at every object door (child K);
    • D7, positions keep the one-holder refusal, as ruled;
    • D8, the stored references: a package column beside the name, backfilled from the phase-1 holder, with the ambiguous set reported and never guessed;
    • D9, what retires, and D10, the upgrade;
    • the execution plan:
      • 23 build children (N and K included) plus 13 per-type backstop narrowings;
      • each with who builds it, its file surface, its Clause-② and narrowing arm, and red line 3 releasability;
      • of the 12 types phase 1 does not cover, hook has no first-match read and job keeps jobKeyFor's reading; the narrowing for the other 10 is declared (E4, E8, G1). rag_pipeline, which the ruled table names, was retired on main by refactor(spec)!: retire the ragPipelines collection listings no stack can declare #31456 before the inventory was measured, so no child touches it;
      • a fleet-pace critical path of about 4 to 5 working days.
  • docs/adr/0028-metadata-naming-and-namespace-isolation.md and docs/adr/0048-cross-package-metadata-collision.md: one status-header pointer line each, effective on acceptance. The ADR-0048 line cites the Q2 ruling.
  • docs/adr/README.md: regenerated (pnpm adr:index).

Tests

None. This is a docs-only design record (skip-changeset).

Acceptance notes

Verification

At head b54cdad:

  • every family from dispatch-gates --commands was run, with exit codes captured before any pipe;
  • all 21 derived commands exited 0;
  • dispatch-gates --ran answered: 21 run, 0 NOT-MEASURED.

No package is touched, so there is no scoped pnpm lint family to run.

🤖 Generated with Claude Code

https://claude.ai/code/session_01FEkQ5psDxi37aZAzXB36TT

…; objects keep the literal prefix

Re-opens ADR-0028 in part for the behavioural tier, on the maintainer's
per-type table: four buckets, one resolution rule (own package, then the
declared dependency closure, then a refusal naming the candidates), an
optional namespace segment on by-name doors, NS-NAME on the AI face,
positions kept one-holder, and stored references gaining a package
column backfilled from the phase-1 holder. Adds the execution plan that
replaces the withdrawn phase-3 renames.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEkQ5psDxi37aZAzXB36TT
…he maintainer, and plans releasable children

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEkQ5psDxi37aZAzXB36TT
@objectstack-fleet objectstack-fleet Bot added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Nov 8, 2026
…ndex after ADR-0149)

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

Copy link
Copy Markdown
Contributor Author

epic:#31527#1 · os-project-manager · session_01FEkQ5mLd7pR2PHjsPwiGkz

Maintainer ruling — ADR-0150 open questions Q1 and Q2 · 2026-11-08T16:31Z

⛔ Not a claim. Ruling-ref: decision card cmsg_01TenzsRopZj4jMbvjX8uz1XX2ScaRkjtxxoSRmu1t8H2p. The maintainer tapped option 0 「A+A,含对象动作补充」 at 2026-11-08T16:30:25Z. The tap record cannot be attached, so the card id and time are the reference.

ADR-0150 (#31586) is being amended to record both answers as decided.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

epic:#31527#1 · os-project-manager · session_01FEkQ5mLd7pR2PHjsPwiGkz

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: aeafb42fbdfc52e408adcb6ce9901071537a2c12
Local-runs: none
Scope: docs/adr/0150-behavioural-metadata-addressed-by-package-objects-keep-the-literal-prefix.md,docs/adr/0048-cross-package-metadata-collision.md,docs/adr/0028-metadata-naming-and-namespace-isolation.md,docs/adr/README.md + none

Inputs read: card #31527 (body and all 6 comments: claim 6721995458, rulings 6723462584 / 6723499113 / 6723571682, take-over 6723536748, os-dev-report 6723843798), PR #31586 body and file list, git diff origin/main...aeafb42f (4 files, +305/−6, merge base 5ee59f5e), the head's check-runs, child card #31575 (R) as the first filed consumer of the plan. Cited code read in the live tree, never reviewed: packages/objectql/src/registry.ts (getItem ladder bare → local composite → other, registerItem composite PACKAGE:NAME, sealBareNameHolders, RESERVED_NAMESPACES), packages/objectql/src/bare-name-one-holder.ts, packages/objectql/src/security-catalog-namespace.ts, packages/runtime/src/app-artifact-handlers.ts (jobKeyFor), packages/runtime/src/route-ledger.ts, packages/runtime/src/domains/meta.ts (metaItemPackageBinding), packages/metadata-core/src/objects/sys-metadata.object.ts, packages/platform-objects/src/system/sys-metadata-activation.object.ts, packages/cli/src/commands/lint.ts (PLATFORM_REQUESTED_BARE_NAMES), packages/lint/src/runtime-gate.ts (resolvePackageClosure), packages/metadata-protocol/src/protocol-write-package-scope.ts, packages/spec/src/kernel/namespace-prefix.ts and manifest.zod.ts, packages/objectql/src/plugin.ts (isArtifactShippedHook), plugin-webhooks/declared-webhooks.ts, plugin-sharing/ownership-queue-service.ts, service-automation/flow-definitions.ts, scripts/adr-index.mjs; ADR-0028, 0048, 0090, 0126, 0129, 0130, 0141, 0146; HotCRM at 6961ab1 (five modules, all namespace: 'crm').

① Derived judgments

  • Accept set / public surface: none changes. Four files under docs/adr/; no schema, code, skill, changeset or generated protocol output. Right.
  • ADR-0150 is Proposed, and both pointer lines on ADR-0028 and ADR-0048 say they take effect on acceptance. Right for Tier H (the maintainer's merge accepts). The regenerated index already fills ADR-0028's "Superseded by" cell with ADR-0150 while it is Proposed — that is what scripts/adr-index.mjs derives from the status text, and it is consistent with the pointer line; right.
  • ADR-0028's line adopts D1's identity and D3's addressing segment for buckets 2–4 and keeps D2 (derived physical names) Deferred. Matches the per-type ruling. Right.
  • ADR-0048's line retires the 2026-11-06 addendum's one-holder refusal per type as readers carry the package — matches D9 — but also says it "stays for … positions", which presumes Q2 (④ S4).
  • Gates on the head (conclusions are the verdicts): every non-skipped check-run is success — Lint & Repo Gates, Lint · docs & code guards (carries check:adr-index), Check Documentation Links, Type Check (all lanes), Governed Surface Queue Guard, PR-body guards, Check PR Size, Dogfood Regression Gate, Test UI, Plan Test Core shards — except Test Core (1/8), in_progress at this reading; not adopted as green. Check Changeset is skipped on the skip-changeset label, which is right for a docs-only diff.
  • Factual claims re-read in the tree, all hold: registry composite PACKAGE:NAME and prefer-local getItem; sys_metadata unique on (type, name, package_id, bundle_member); the activation ledger unique on (metadata_type, name) with a package_id column; jobKeyFor's three-rung key with APPID:jobName on collision; GET /meta/:type/:name ?package=; the door paths in D5 all exist in route-ledger.ts and RESOURCE_CONFLICT is an existing 409; BARE_NAME_ONE_HOLDER_TYPES is exactly the 12 types the ADR calls "the 12 silent types", with the object-less action only; sealBareNameHolders at cold boot in 'warn' mode is the warn list D8 cites; PLATFORM_REQUESTED_BARE_NAMES is permissions: ['guest_portal'] only; namespace ^[a-z][a-z0-9_]{1,19}$ and AI-type names ^[a-z_][a-z0-9_]*$ carry no hyphen, so NS-NAME splits on its first hyphen; isArtifactShippedHook is name-only; HotCRM at 6961ab1 has five modules all declaring crm. Not re-verified (outside this review's inputs): the "0 of 297 shared keys" measurement and the R1–R21 numbering against the Bare-name phase 3: defineStack and the save door refuse a bare package-authored name; ADR-0129 and ADR-0048 amended; migration of stored and external references (ruling C on #30798) #30806 plan §2.

② Semver level

Clause-②: no on the PR body; skip-changeset label; Check Changeset skipped. The diff publishes nothing (docs/adr/ only), so no changeset is owed and the declaration matches. Each child carries its own Clause-② per the plan's table — right in principle; the arms declared there are judged in ④ (S1).

③ Boundary flags

  • Dev deviation 1 — number 0150 because 0149 is taken by docs(adr): the AI answers business questions through the dataset semantic layer (#31503) #31535: 0149 is on main (0149-ai-answers-business-questions-…), index regenerated after the merge of origin/main. Answered.
  • Dev deviation 2 — child N and the 13 trailing B children added beyond the evaluation's 18–22: N is judged in ④ (S6); the B children follow red line 3 and are right. The count sentence is off by one (④ N5).
  • open_questions Q1 (face spelling) and Q2 (position conflicts) — both needs_decision for the maintainer; the card body names exactly these two as "this card's decision". Correctly escalated, not answered here. The record must not presume them anywhere: it does in two places (④ S4).
  • Dev out-of-scope note — "a package whose namespace is literally global would make /actions/global/... read as object-less first … recorded rather than gated": recorded on the PR body only, not in the tree. The tree is judged, so this is ④ S2.
  • Red line 3 premise — "phase 1's one-holder refusal stays until a type's own retirement child" presumes every bucket-2/3 type has a phase-1 refusal. Twelve do not (the types N itself lists). Escalated in ④ S1 as the plan's gap, not silently accepted.

④ Design judgment

Judged against the card's three red lines, the three rulings, the first consumer (child R #31575, filed 2026-11-08T15:49Z) and the execution plan. No must-fix. Six should-fix, five nits.

docs/adr/0150 — the design (D1–D10): D1's buckets restate ruling 6723462584 faithfully, including the exceptions, and the "why objects differ" answer is correct against ADR-0129 D2 (the object name is the table name and leaves the platform). D3 is the ruled rule verbatim and reuses bare-name-one-holder.ts's vocabulary, which exists as cited. D4's "today" column matches the readers as they are (flow map by name, action objectName:name, ledger (metadata_type, name), webhooks/queues first match, jobKeyFor). D8 adds columns beside names (ADR-0126 §4) and leaves the ambiguous set null and reported — red line 2 holds. D10 holds. Q1's four-axis table is sound on the provider constraints and the regexes. Q2's recommendation is sound against security-catalog-namespace.ts. The findings:

  • S1 (should-fix) — the plan's releasability premise and its Narrowing arms are wrong for the twelve types phase 1 does not cover. The plan says "while phase 1's refusal stands, no two package holders of a name exist, so adding the coordinate changes no observable answer", and G1 declares "no: a bare address that resolves today still resolves". That is true for the 12 BARE_NAME_ONE_HOLDER_TYPES and permission sets. For sharing rule, queue, assignment rule, hook, job, app, page, dashboard, report, book, cube and tool there is no backstop: two unrelated packages may hold page/home today, and the bare read serves the first match (registry.ts getItem with no package iterates the Map; ownership-queue-service.ts declaredItems().find; ADR-0048 §3.3 "best-effort, first match" stands for packages with no dependency relation). After E4/E6/E8 and G1 that same bare read answers a refusal / 409. That is the right outcome (red line 2 beats silence) but it is a narrowing, and proof (b) "bare-name behaviour unchanged" cannot be met for those types on a deployment that already holds two. Fix, one paragraph: say that for the uncovered types the switch converts a silent first match into a reported refusal, declare E4/E6/E8/G1 Narrowing: yes for a today-ambiguous bare name of an uncovered type (measured first-party: 0), and scope proof (b) to names with one holder — or, the design alternative, widen N to a one-holder-per-environment backstop for those types first so red line 3 holds literally.

  • S2 (should-fix) — D5's router precedence leaves two cases unaddressed. (a) D2 gives the environment package no namespace and no address, so an environment-authored flow whose bare name equals an installed namespace (or a namespace installed later over an existing environment name) loses every sub-resource door (/automation/NAME/runs, /trigger, /toggle, /clone) with no qualified address to fall back to; "still reachable by its qualified address" holds for package items only. (b) The grammar's literal segments — trigger, hooks, connectors, global, _status, _activation, types, _drafts — are not reserved: RESERVED_NAMESPACES is {base, system} plus sys (registry.ts:435, :2367), and ^[a-z][a-z0-9_]{1,19}$ admits trigger, hooks, global. Read literally, "a first segment that names an installed namespace is the namespace" lets a package named trigger take /automation/trigger/:name. Fix, two sentences in D5: the grammar's literals are read before a namespace and a namespace spelling one is refused at install (ADR-0048 §3.2's reserved set grows by them — a narrowing to declare); and the environment package gets a spelled address segment, or an environment item may not take an installed namespace as its bare name (refused at the save door and os validate, naming the namespace).

  • S3 (should-fix) — D4's overlay row and D8's R15 do not say what a package-less sys_metadata row bearing a package-held name is. R15 says overlays "already carry the package"; sys-metadata.object.ts says "a package-less / global overlay uses NULL", registerItem hydrates that row into the bare slot with no packageId, and ADR-0146 D8 item 1 names "a stored row with no package — the row Setup writes today" as a live shape that D11 migrates. Today that row is the ADR-0005 overlay of whichever package holds the name (and bare-name-one-holder.ts says it is never a holder). Under D2 a package-less row is a bucket-4 environment item; under D3 "the environment item of that name first" and under E1 "all same-named flows arm", so the row that shadows crm/send_email today would arm beside it tomorrow — an observable change red line 3 forbids — and the ruling's "409 when not unique in the environment" and D3's "environment item first" then disagree on the same two holders. Fix: state in D4 that a package-less row bearing a package-held name is the customization of the one phase-1 holder and never a second item; add an R15 backfill row (bind package_id to that holder; two holders → the ambiguous set, reported) or cite ADR-0146 D11 as the owner; and say a bucket-4 item cannot take a package-held name of its type.

  • S4 (should-fix) — Q2 is presumed in two places. The ADR-0048 status line this PR adds says the one-holder refusal "stays for platform-requested bare names and positions"; positions are Q2. D7's closing paragraph ("A package that needs its permission sets on another package's position asks the environment to bind them … A merge is ruled by its own card") reads as decided, and only holds under option A. Fix: "and, pending Q2, positions" on ADR-0048; "Under the recommended option," opening D7's paragraph. (D8 R2's "none" is fine: environment-scoping is ruled, independent of Q2.)

  • S5 (should-fix) — the status line's gate is already false. "⛔ the cards under Execution plan are cut after that merge, never before it" — child R is objectql: one shared package-scoped resolver for behavioural metadata (same package, then unique holder in the declared dependency closure, else refuse with candidates) and an exported dependency-closure helper — epic #31527 child R #31575, filed 2026-11-08T15:49:53Z under the epic ruling 6723499113 and the division-of-labour ruling 6723571682 (which runs R beside the ADR's review at concurrency 2), and the card body lists all seven children. Fix: "child cards are filed under the epic ruling 6723499113; no child lands before this record is accepted".

  • S6 (should-fix) — child N is a new refusal the three rulings did not name, and the record does not say so. The ruling's address example /automation/crm/send_email is a namespace, five HotCRM packages co-own crm, so a qualified address needs either N (refuse a second co-owner holder at install and os validate) or a 409 on the qualified address with package-id candidates (?package= already disambiguates /meta). The ADR picks N in D2 and marks it Narrowing: yes, but D6 applies the startup rule "a new gate defaults to no" to Q1's options while N, the one gate this record adds, is not put to the maintainer and the alternative is absent from Alternatives. Fix: name N in the TL;DR as the one refusal added beyond the rulings and either list it as Q3 or add the rejected alternative with its reason.

  • N1 (nit) — D6/Q1: "parses back to (namespace, name) with no lookup table" fails for the hashed long form (…- plus 8 hex introduces a second hyphen); say "except the hashed form, which the registry resolves".

  • N2 (nit) — ADR-0150 has no **Supersedes**: field line, so scripts/adr-index.mjs leaves its Supersedes cell — while ADR-0028's Superseded-by cell names ADR-0150; add the field line (ADR-0028 in part) and regenerate.

  • N3 (nit) — D3 says the closure is "manifest.dependencies, transitively, plus sys"; resolvePackageClosure (packages/lint/src/runtime-gate.ts:591) adds no sys and ADR-0141 TL;DR 2 admits "platform objects" by a separate clause. Right design, but R's row should say the resolver adds sys itself.

  • N4 (nit) — D9 and child U cite "ADR-0146 D3's prefix on a Studio-authored non-object name"; ADR-0146 D3 prefixes object names only (crm_custom_SHORT) and says nothing about non-object names. Cite the real source (Bare-name phase 2: the published authoring skills teach one rule, every metadata name carries the namespace (ruling C on #30798) #30805's Studio text, if any) or drop the clause.

  • N5 (nit) — "D, R, N, P, A, U, C, 8 E, 3 G and 4 S make 21 build children" is 22 (7 + 8 + 3 + 4); correct the count or the critical-path sentence that leans on it.

docs/adr/0048 — status line: right except S4 (positions presumed). docs/adr/0028 — status line: right; D2 stays Deferred, the re-open trigger is answered by the ruling, nothing else moves. docs/adr/README.md: generated by pnpm adr:index, Lint · docs & code guards is green on the head; right (N2 is a source-side nit, not an index defect).

Execution-plan order (R before N/E/G, N before G1, S after E and G, B per type last, A trailing) keeps every intermediate main releasable for the 13 covered types; for the 12 uncovered types see S1. Nothing in the plan cuts a slice that depends on Q1 before it is ruled (P's face derivation, G2's face names, C are gated on Q1). Q2 blocks nothing. The first consumer, #31575, matches D3's arms (own package → unique closure holder → refusal with candidates; context-free caller → unique environment holder → 409) and adds no reader — consistent with the R row.

Implemented-by: claude/project-thread-mi92c5
Reviewed-by: session_01FEkQ5mLd7pR2PHjsPwiGkz

VERDICT: PASS

…review

Q1 is ruled NS-NAME, with OBJECT-ACTION for an object-bound action; Q2
is ruled: positions keep the one-holder refusal. D6 and D7 record both,
and P, G2 and C are unblocked. D6 checks the two face forms against each
other: a namespace equal to an object name collides on the face and in
the D5 router, so that is put to the maintainer as Q3.

The review findings: the 12 uncovered types' narrowing is declared on
E4, E6, E8 and G1, and proof (b) is scoped; the router reads grammar
literals first and environment items get the `_env` segment; a
package-less row over a package-held name is that holder's
customization (ADR-0146 D11); the status line, the TL;DR's added
refusals, the N alternative, the Supersedes field, the closure's `sys`,
the dropped ADR-0146 D3 clause and the count of 22.

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

Copy link
Copy Markdown
Contributor Author

epic:#31527#1 · os-project-manager · session_01FEkQ5mLd7pR2PHjsPwiGkz

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 565c63c2ece42ab86f507f4243481100893db4ed
Local-runs: none
Scope: docs/adr/0150-behavioural-metadata-addressed-by-package-objects-keep-the-literal-prefix.md,docs/adr/0048-cross-package-metadata-collision.md,docs/adr/0028-metadata-naming-and-namespace-isolation.md,docs/adr/README.md + none

Delta review of round 1 (record 6724089022 on aeafb42f, PASS with S1–S6 and N1–N5). Judged on git diff aeafb42f..565c63c2 (3 files, +105/−53; ADR-0028 untouched) and on the full new ADR text, against the Q1/Q2 ruling 6724050556 (16:30Z) and the code it cites in the live tree.

Inputs read: card #31527 (body and all 7 comments, the Q1/Q2 ruling 6724050556 included), PR #31586 body (rewritten) and file list, git diff origin/main...565c63c2 (4 files, +357/−6, merge base 5ee59f5e), the head's check-runs. Cited code read in the live tree, never reviewed: packages/objectql/src/bare-name-one-holder.ts (BARE_NAME_ONE_HOLDER_TYPES), packages/objectql/src/registry.ts (RESERVED_NAMESPACES, isShareableNamespace, the installPackage namespace gate and NamespaceConflictError, refuseCoOwnedObjectNameCollision), packages/objectql/src/security-catalog-namespace.ts, packages/objectql/src/plugin.ts (isArtifactShippedHook), packages/runtime/src/app-artifact-handlers.ts (jobKeyFor), packages/runtime/src/route-ledger.ts (every /automation, /actions, /meta path), packages/spec/src/kernel/namespace-prefix.ts and manifest.zod.ts (namespace grammar), packages/spec/src/data/object.zod.ts (object name), packages/spec/src/ai/tool.zod.ts, skill.zod.ts, agent.zod.ts, packages/spec/src/automation/flow.zod.ts (item names), packages/spec/src/shared/identifiers.zod.ts (SnakeCaseIdentifierSchema), ui/packages/app-shell/src/views/studio-design/packages-io.ts (prefixObjectName), scripts/adr-index.mjs; ADR-0048 §3.2 and addenda, ADR-0146 D11; HotCRM at 6961ab1.

① Derived judgments

  • Accept set / public surface: none changes. Still four files under docs/adr/; no schema, code, skill, changeset or generated output. Right.
  • Gates on the head (conclusions are the verdicts): every non-skipped check-run is success — Lint & Repo Gates, Lint · docs & code guards (carries check:adr-index, so the regenerated README is accepted), Check Documentation Links, Type Check (all lanes), Governed Surface Queue Guard, PR-body guards, Check PR Size, Dogfood Regression Gate, Test UI, Plan Test Core shards — except Test Core (1/8), in_progress at this reading, not adopted as green. Check Changeset skipped on skip-changeset; right for a docs-only diff.
  • README: ADR-0150's Supersedes cell now reads ADR-0028 because the new - **Supersedes**: field line is what scripts/adr-index.mjs reads (round-1 N2). Right.
  • ADR-0048 status line now reads "for platform-requested bare names and, as ruled (ADR-0150 Q2 = A, record 6724050556), for positions" — the ruling is cited, nothing presumed (round-1 S4). Right. ADR-0028 is unchanged between the heads. Right.
  • Round-1 fixes, sentence by sentence in the tree: S1 fixed (the "Covered and uncovered types" paragraph, the declared alternative, proof (b) scoped, E4/E6/E8/G1 declare) — but its partition is wrong against the cited constant, ④ S7; S2 fixed (literals first, the install refusal, _env) — two new defects on it, ④ S8 and S9; S3 fixed (D4 paragraph, R15 row, bucket-4 definition; R16 split out); S4 fixed; S5 fixed on the status line, one leftover sentence in the plan, ④ N6; S6 fixed (TL;DR 7 names N as added beyond the rulings, D2 and the N row carry the pending mark, the rejected alternative is in Alternatives). N1 fixed ("except the hashed long form, which the registry resolves"); N2 fixed; N3 fixed (D3 and the R row say the resolver adds sys itself); N4 fixed (U retires no prefix; prefixObjectName exists at packages-io.ts:624) — one leftover on the A row, ④ N7; N5 fixed (22).
  • Q1 recorded exactly: NS-NAME for tool, skill, agent, rag_pipeline and object-less actions; OBJECT-ACTION for an object-bound action with the [17.0-rc2验收] lint naming/namespace-prefix 把按对象区分的同名 action 误判为包内重复 —— 规则去重键漏掉了 objectName,HotCRM 每次 lint 固定 12 条误报 #5510 reason and the no-repeated-prefix reason; cut past 64 to 55 + - + 8 hex of a hash of the full identity; the cloud action tool from the same function. Nothing is narrowed. The one sentence not in the ruling, "an environment item keeps its bare NAME", was in the option A text the maintainer tapped and is forced by D2 (the environment package has no namespace); right. Q2 recorded exactly: positions keep the one-holder refusal, an administrator binds through an ADR-0005 overlay, no merge engine; "another package or the environment already holds" is today's refusal as written in security-catalog-namespace.ts (installed package, environment catalog or built-in), so "keeps" covers it. D6's "nothing to remember" cell drops "collision-free by construction", consistent with Q3. Right.
  • Q3's collision claim holds against the tree. A namespace is ^[a-z][a-z0-9_]{1,19}$ (namespace-prefix.ts:18, manifest.zod.ts:565) and an object name ^[a-z_][a-z0-9_]*$ (object.zod.ts:2988), so every namespace is a well-formed object name and neither admits -. The install gate refuses only an equal namespace owned by a non-co-owner (installPackage: getNamespaceOwners(manifest.namespace), isShareableNamespace), and refuseCoOwnedObjectNameCollision compares object names among co-owners only: nothing compares a namespace to an object name. With namespace crm_lead installed, D5 step 2 reads /actions/crm_lead/convert_lead/REC1 as (ns, object, action), as the ADR says. Option A closes case (i) once the comparison is made at every door objects enter by (④ S10), case (ii) by making an uncut face at most 63 and a cut one exactly 64 (disjoint), and case (iii) by the duplicate check at list build; a cut face of an NS-NAME carries two hyphens and an uncut one carries one, so the residual is the hash collision the last check catches. Sound, as a question put to the maintainer.
  • Factual claims added this round, re-read: _status (/automation), _activation (/actions), _drafts (/meta) exist as literals in route-ledger.ts; prefixObjectName prefixes object names only; ADR-0146 D11 exists and closes the package-less write; HotCRM's five modules declare crm, and probe appears in two test files (④ N9); no first-party manifest declares trigger, hooks, connectors, global or types (the two namespace: 'global' hits are UI renderer registrations, not manifests); isArtifactShippedHook is a name-only predicate; jobKeyFor gives the second holder APPID:jobName and the first the bare key.

② Semver level

Clause-②: no on the PR body; skip-changeset; Check Changeset skipped. The diff publishes nothing. Right. Each child's Clause-② is declared in the plan's table; the Narrowing arms are judged in ④ (S7).

③ Boundary flags

  • Q1, Q2 — status: decided, with the card option, time and record; D6/D7 carry the same. Answered by ruling, recorded.
  • D2 / child N — pending the maintainer's word, as the ruling left it ("Still with the maintainer"); marked ⛔ in TL;DR 7, D2, the N row, Consequences and the critical path. Correctly escalated, not presumed anywhere.
  • Q3 — new, needs_decision, with two options and the four axes; blocks nothing under A. Correctly escalated. Its recommended option is judged in ④ (S10).
  • The two new refusals (N, and a namespace spelling a grammar literal) are named in TL;DR 7 as added beyond the rulings and declared as narrowings (N row, G1 row), each measured first-party 0. Answered.
  • PR body vs tree: the body's account of D4, D5 (_env, the literal refusal), D6, D7, the 22 + 13 count, the ADR-0048 Q2 citation and the pending items (D2/N, Q3) agrees with the ADR; it repeats the ADR's "(E4, E6, E8, G1)" declaration, which is S7's error. The tree is judged, not the body.

④ Design judgment

Judged on the delta and the full ADR against the three rulings plus 6724050556, the first consumer (#31575) and the execution plan. No must-fix. Four should-fix, four nits.

  • S7 (should-fix) — the covered/uncovered partition behind the new narrowing declarations is wrong against the constant it cites. BARE_NAME_ONE_HOLDER_TYPES (bare-name-one-holder.ts:169) is picklist, mapping, dataset, api, action, function, flow, webhook, connector, email_template, agent, skill. So (a) E6's whole surface (picklist, mapping, dataset, the api name key, engine functions) is covered, and its new Narrowing: yes, for a bare name of an uncovered type declares a narrowing E6 cannot have; (b) rag_pipeline is not covered and is missing from "the other 12" — there are 13 uncovered bucket-2/3 types; (c) job is in the uncovered list but E7 declares no with no reason — jobKeyFor already gives a second holder its own APPID:jobName key and the bare key to the first, so E7 either keeps that reading (say so) or narrows (declare it); (d) hook is listed as uncovered though D4 says hooks bind by event and object and isArtifactShippedHook is a yes/no predicate, so no first-match read exists to narrow. Fix: list the 13 uncovered types (add rag_pipeline, drop hook with D4's reason), set E6 back to no, make E7's arm explicit, and make the paragraph read "After E4, E8 and G1 (and E7 as declared)". The PR body repeats "(E4, E6, E8, G1)".

  • S8 (should-fix) — D5 step 1 and the G1 row point the literal-namespace refusal at the wrong set. RESERVED_NAMESPACES (registry.ts:435) is the FQN-exempt set, and isShareableNamespace (:2367) makes the install gate never fire on it ("platform namespaces that multiple packages may legitimately share"). Growing it by trigger would exempt and share that namespace, the opposite of refusing it. The premise ("the letter-led ones can be namespaces today") is true for another reason: nothing in installPackage compares a namespace to anything but other namespaces. Fix: in D5 cite the install gate at installPackage (the NamespaceConflictError branch) and say the refused literals are a new set read from route-ledger.ts, and change G1's file surface from "registry.ts (RESERVED_NAMESPACES)" to "registry.ts (installPackage, a refused-literal set)".

  • S9 (should-fix) — the new _env segment shadows a _-led bare item name, and D6's grammar citation is wrong. Only the action name is SnakeCaseIdentifierSchema (^[a-z][a-z0-9_]*$, ui/action.zod.ts:1169, identifiers.zod.ts:133); tool, skill, agent and flow names are inline ^[a-z_][a-z0-9_]*$ (tool.zod.ts:172, skill.zod.ts:298, agent.zod.ts:332, flow.zod.ts:1131), so D6's "an action, tool, skill or agent name snake_case (SnakeCaseIdentifierSchema)" is right for one of the four. So _env is a valid flow name, and D5's reason for the segment ("a _-led segment can never be a namespace") covers the namespace position only: a flow named _env loses its bare door /automation/_env to the literal (the same class _status, _activation and _drafts already have; _env adds one). Measured first-party: no _-led item name (the only hit, _selectedIds, is a flow variable). Fix: correct the citation, and either refuse a _-led bare name for bucket 2/3 types at defineStack, os validate and the save door (a declared narrowing, first-party 0) or refuse the reserved segments as item names.

  • S10 (should-fix, borderline) — Q3 option A names one door for a two-sided check. "The install gate refuses a namespace that equals an installed object name, and an object whose name equals an installed namespace": the namespace side has one door, but objects enter by three — defineStack/os validate, install, and Studio's publish (MetadataManager.publishPackage, the second enforcement point namespace-prefix.ts names) — and a Studio-published object equal to an installed namespace would pass an install-only check and reopen case (i) on the face and the router. Fix: "refused at defineStack, os validate, install and publish, naming both".

  • N6 (nit) — the plan's first sentence still says "Each slice is a child card, cut after this record merges", while the status line now says the children are filed under 6723499113 and none lands before acceptance (R is objectql: one shared package-scoped resolver for behavioural metadata (same package, then unique holder in the declared dependency closure, else refuse with candidates) and an exported dependency-closure helper — epic #31527 child R #31575). Make it "filed under the epic ruling; none lands before acceptance".

  • N7 (nit) — row A still lists "ADR-0146 D3" among the status lines to amend; with N4's fix (U retires no prefix) nothing in this record changes ADR-0146 D3. Drop it, or say what A changes there.

  • N8 (nit) — D5's letter-led literal list (trigger, hooks, connectors, global, types) omits actions (/automation/actions, a namespace-position literal: a package namespaced actions would pass the install gate and lose every qualified /automation/actions/:name to the literal) and includes types, which sits at /meta's type position, not a namespace position. Say the set is read from route-ledger.ts at G1 and add actions.

  • N9 (nit) — D6: "HotCRM 6961ab1 declares the namespaces crm and probe": the five modules declare crm; probe is a fixture in two tests (test/hierarchy-read-depth.test.ts, test/contract-write-depth.test.ts). Say so; the count 0 is unchanged.

docs/adr/0048 — status line: right (S4 closed). docs/adr/0028 — status line: unchanged, right. docs/adr/README.md: regenerated from the new field line; Lint · docs & code guards green on the head; right.

Execution plan: the order (R before E/G, N before G1, S after E/G, B last, A trailing) stands; Q3 under A blocks nothing and under B holds P's derivation and C, as stated. The first consumer #31575 matches D3's arms; the R row now says the resolver adds sys. The count 22 + 13 is right.

Implemented-by: claude/project-thread-mi92c5
Reviewed-by: session_01FEkQ5mLd7pR2PHjsPwiGkz

VERDICT: PASS

The covered/uncovered partition now reads BARE_NAME_ONE_HOLDER_TYPES as
it is: E6 is covered, rag_pipeline is uncovered, hook has no first-match
read and job keeps jobKeyFor's reading, so the narrowing is declared on
E4, E8 and G1 only. The literal-namespace refusal is a new set read
from the route ledger at installPackage, not RESERVED_NAMESPACES; a
`_`-led bucket 2/3 item name is refused (child P) so `_env` and the
other `_` literals never shadow one; the name grammars are cited per
type. Q3 option A refuses at every door, both directions. The plan's
intro, row A and the HotCRM namespace measurement are corrected.

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

Copy link
Copy Markdown
Contributor Author

epic:#31527#1 · os-project-manager · session_01FEkQ5mLd7pR2PHjsPwiGkz

Maintainer ruling — ADR-0150 open question Q3 · 2026-11-08T17:14Z

⛔ Not a claim. Ruling-ref: decision card cmsg_01TenzsRopZj4jMbvjX8uz1X6PpcgtPh7CFuE3r19ikYrV. The maintainer tapped A 「安装时拒绝」 at 2026-11-08T17:13:30Z. The tap record cannot be attached, so the card id and time are the reference.

  • Q3 = A. A namespace may never equal an object name. The rule is refused in both directions (a new namespace equal to an existing object name; a new object name equal to an existing namespace) at every object door: defineStack, os validate, install and Studio publish. Both spellings appear in the refusal.
  • Riders, as put to him and not objected to: a face is cut only past 64 characters; the face list refuses duplicates; an action_* namespace against the cloud action_ tool prefix falls under the same refusal. Corollary: no package ships an object whose short name is custom, because the ADR-0146 pair namespace is NS_custom.
  • The Q1 spelling stands as ruled (6724050556).
  • Still with the maintainer: D2 (child N).

Q3 is ruled A: a namespace never equals an object name, refused in
both directions at every object door (defineStack, os validate,
install, Studio publish), with the riders that a face is cut only past
64 and the face list refuses duplicates. Child K carries the refusal
as a declared narrowing, landing before G1, G2 and C; the count is 23.

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

Copy link
Copy Markdown
Contributor Author

epic:#31527#1 · os-project-manager · session_01FEkQ5mLd7pR2PHjsPwiGkz

Maintainer ruling — ADR-0150 D2 (child N) · 2026-11-08T17:18Z

⛔ Not a claim. Ruling-ref: the maintainer's message cmsg_01TenzsRopZj4jMbvjX8uz1X1yQca6suNEZv7TS5snGsGW 「同意」 at 2026-11-08T17:17:11Z. It answers the explanation given to his question cmsg_01TenzsRopZj4jMbvjX8uz1XEZb7ikp4qKWXZiieFozUKM 「为什么要用 /automation/crm/send_email 而不是 /automation/package-name/send_email」 in the decision thread.

  • D2 accepted. Identity is the package id; the address is the namespace. Packages that share a namespace keep each behavioural (type, name) unique across it, so a qualified address names exactly one item. Child N carries the refusal: a declared narrowing, measured 0 of 297 on HotCRM. ?package= stays as the exact qualifier.
  • This closes every open question on ADR-0150: Q1 and Q2 (6724050556), Q3 (6724530715), D2 (this record).

The maintainer accepted D2: identity is the package id, the address is
the namespace, co-owners keep behavioural names unique across it, and
`?package=` stays the exact qualifier. Child N is a declared narrowing
under that ruling. The open-questions section now lists Q1, Q2, Q3 and
D2 as ruled, with their records.

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

Copy link
Copy Markdown
Contributor Author

epic:#31527#1 · os-project-manager · session_01FEkQ5mLd7pR2PHjsPwiGkz

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 082272a37ebed62509d0dad1d5242be3a3627b6a
Local-runs: none
Scope: docs/adr/0150-behavioural-metadata-addressed-by-package-objects-keep-the-literal-prefix.md,docs/adr/0048-cross-package-metadata-collision.md,docs/adr/0028-metadata-naming-and-namespace-isolation.md,docs/adr/README.md + none

Delta review of round 2 (record 6724370084 on 565c63c2, PASS with S7–S10 and N6–N9; round 1 is 6724089022). Judged on git diff 565c63c2..082272a3 (1 file, ADR-0150 only, +47/−45; ADR-0028, ADR-0048 and the README are byte-identical between the heads) and on the full new ADR text, against the Q3 ruling 6724530715 (17:13Z), the D2 acceptance 6724570466 (17:17Z) and the code the ADR cites in the live tree.

Inputs read: card #31527 (body and all 9 comments, the two new rulings included), PR #31586 body (rewritten) and file list, git diff origin/main...082272a3 (4 files, +359/−6, merge base 5ee59f5e), the head's check-runs. Cited code read in the live tree, never reviewed: packages/objectql/src/bare-name-one-holder.ts (BARE_NAME_ONE_HOLDER_TYPES, lines 169–186), packages/objectql/src/registry.ts (RESERVED_NAMESPACES :435, isShareableNamespace :2367, the installPackage namespace branch :8640–8653 and NamespaceConflictError :2643), packages/objectql/package.json and packages/runtime/package.json (dependency direction), packages/runtime/src/route-ledger.ts (every /automation, /actions, /meta row), packages/runtime/src/domains/packages.ts (the install door calling registry.installPackage, the publishPackage call), packages/runtime/src/app-artifact-handlers.ts (jobKeyFor :1126), packages/spec/src/kernel/namespace-prefix.ts (NAMESPACE_RE, the two enforcement points its header names), packages/spec/src/shared/identifiers.zod.ts (SnakeCaseIdentifierSchema :130), packages/spec/src/ui/action.zod.ts (:1169), the item-name grammars in ai/tool.zod.ts :172, ai/skill.zod.ts :298, ai/agent.zod.ts :332, automation/flow.zod.ts :1131, data/hook.zod.ts :426, integration/connector.zod.ts :973, security/sharing.zod.ts :195, system/job.zod.ts :300, api/endpoint.zod.ts :158, and the SnakeCaseIdentifierSchema names of page, report, app, dashboard, dataset, picklist, mapping, webhook, permission and queue; packages/mcp/src/skill-prompts.ts (listSkillPrompts); packages/metadata-protocol/src/protocol-save-door-refusals.ts :865; HotCRM at 6961ab1 (five namespace: 'crm', two fixture probe, no object named crm, probe or crm_custom, no _-led item name).

① Derived judgments

  • Accept set / public surface: none changes. Still four files under docs/adr/; no schema, code, skill, changeset or generated output. Right.
  • Gates on the head (conclusions are the verdicts): every completed non-skipped check-run is success — PR-body guards, Check PR Size, Check Documentation Links, Governed Surface Queue Guard, Lint · PM dispatch-gates, the three scoped lint lanes, Test UI, Dogfood Regression Gate, Auto Label, filter. in_progress at this reading and not adopted as green: Lint · docs & code guards (carries check:adr-index), Lint · ESLint, Lint · repo & tooling gates, Lint · CI/release/engine gates, the four Type Check lanes, Plan Test Core shards. The README is byte-identical to the round-2 head, where that lane was green, and the status-line prefix the index reads is unchanged, so nothing new is owed to it. Check Changeset skipped on skip-changeset; right for a docs-only diff.
  • Round-2 fixes, sentence by sentence in the tree: S7 fixed — the covered set is now stated as the constant has it (picklist, mapping, dataset, api, action, function, flow, webhook, connector, email_template, agent, skill), the uncovered set is 13 with rag_pipeline, hook and job carry their reasons (isArtifactShippedHook is a predicate; jobKeyFor gives the first holder the bare key and the second APPID:jobName, as :1126–1130 does), E6 is no, E7's arm is explicit, the paragraph reads "After E4, E8 and G1"; one stale count is left (④ N13). S8 fixed — D5 cites the installPackage NamespaceConflictError branch, says RESERVED_NAMESPACES is the shareable set the gate never fires on (right: isShareableNamespace is that set plus sys), and G1's surface is the install gate plus a new refused-literal set; where that set is read from is a new defect (④ S12). S9 fixed — the grammar citations are right against the tree (action SnakeCaseIdentifierSchema ^[a-z][a-z0-9_]*$; tool, skill, agent, flow ^[a-z_][a-z0-9_]*$), and the record takes the first of the two fixes offered, a _-led refusal at defineStack, os validate and the save door; that refusal is unruled and under-scoped (④ S11, N10). S10 closed by the ruling itself (four doors, both spellings). N6 fixed (the plan's first sentence now matches the status line). N7 fixed (row A drops ADR-0146 D3). N8 fixed (actions added, types dropped, the set read from the ledger). N9 fixed (five modules declare crm; probe is a fixture in two tests — measured again: 5 and 2).
  • Q3 recorded exactly. D6's new "Ruled" block and the Q3 entry carry the ruling's own words: a namespace never equals an object name; refused in both directions (a new namespace equal to an existing object name; a new object name equal to an existing namespace); at every object door, defineStack, os validate, install and Studio publish; both spellings named; the corollary that no object's short name is custom because the ADR-0146 pair namespace is NS_custom; the three riders — the face is cut only past 64 characters (the ruling record's wording, which the ADR follows over round 2's "from 64 on"; the 64-character boundary is then closed by the duplicate-face refusal, and D6 says so), the face list refuses duplicates, and the action_*-namespace-versus-cloud-action_-prefix case falls under that refusal. The words not in the ruling record — "at registration, naming both items" for the face list, and the OBJECT--ACTION option as the one not taken — are the option A text the maintainer tapped. Child K's order (before G1, G2 and C) is forced by the refusal having to precede the doors and the faces, not an addition. Nothing is narrowed and nothing is added to the ruling. Measured: HotCRM has no object named like its namespace and none short-named custom, so K's first-party 0 holds.
  • D2 recorded exactly. The D2 bullet, the N row and the D2 entry carry the acceptance: identity is the package id, the address is the namespace, co-owners keep each behavioural (type, name) unique, child N carries the refusal as a declared narrowing (0 of 297), ?package= stays the exact qualifier. N's scope (the 13 uncovered types) plus the B children (the covered types' refusal narrows from environment to namespace) together give the ruled rule for every bucket-2/3 type. Right.
  • The record's own refusals. TL;DR 7 now lists four: N and K, each marked ruled; and two the rulings never named — a namespace spelling a route literal (G1, carried over from round 2) and a _-led bucket-2/3 item name (P, new this round). Round 2 accepted the first because TL;DR 7 then opened "What this record adds beyond the rulings"; that phrase is gone, so the two unruled refusals now sit under one heading with the ruled ones (④ S11).
  • Counts and internal consistency: the table has 23 non-B rows (D, R, N, K, P, E1–E8, G1–G3, U, C, S1–S4, A) and the sentence says 8 + 8 + 3 + 4 = 23, one above 18–22 because of K; B is 13 (phase 1's 12 plus permission sets). TL;DR 7's four refusals and Consequences' "three … Q3's is the fourth" agree. Status line, plan opener and critical path agree (filed under 6723499113, none lands before acceptance; R and K first). The #questions-put-to-the-maintainer-all-ruled anchor matches the renamed heading. Right.

② Semver level

Clause-②: no on the PR body; skip-changeset; Check Changeset skipped. The diff publishes nothing. Right. In the plan, P's Clause-② moves from "yes (additive)" to "yes" — right, because a _-led refusal narrows the published name grammar — and K and N declare no with a yes narrowing arm, which is right for install-gate refusals that change no published shape.

③ Boundary flags

  • Q1, Q2, Q3, D2 — all status: decided, each with the card option or message, time and record; D6, D7, D2 and the N and K rows carry the same. The heading says no question is left open, and none is. Answered by ruling, recorded.
  • Unruled narrowings — two refusals the record adds on its own authority (the route-literal namespace refusal at install; the _-led item-name refusal, which narrows four or more published grammars). Each is declared a narrowing and measured 0 first-party; neither is marked as added beyond the rulings any more, and the _-led one has no recorded alternative. Escalated as ④ S11 for the maintainer's eye, since the Tier H merge accepts whatever the record carries.
  • PR body vs tree: the body's account agrees with the ADR on every point checked — Q3 and D2 as ruled, child K and its doors, 23 + 13, hook and job as the two uncovered types that change no bare answer, "(E4, E8, G1)", P's _-led refusal, S1–S10 and N1–N9 folded. The maintainer's quick-read says every ruling is written in and no question is open, which is true, but does not tell him that two of the four refusals in TL;DR 7 are the record's own additions. The tree is judged, not the body.

④ Design judgment

Judged on the delta and the full ADR against the five rulings, the first consumer (#31575) and the execution plan. No must-fix. Two should-fix, six nits.

  • S11 (should-fix) — the _-led item-name refusal is a new narrowing the maintainer did not name, and the record no longer says so. It entered in commit d6b06f4a (the round-2 fold), was never on a decision card, and the Q3 ruling's riders do not mention it. It narrows the published grammar of every bucket-2/3 type whose name admits a leading _ (P's Clause-② is yes for that reason), which is the standard round 1 applied to N (S6): a refusal added beyond the rulings is named as such and its rejected alternative recorded, or it is put as a question. Round 2 accepted the G1 literal refusal on exactly that footing ("What this record adds beyond the rulings"); this head drops the phrase, so TL;DR 7 reads as four ruled refusals, and the Alternatives section has no entry for the narrower choice (refuse only _env and the ledger's _-led literals — _status, _activation, _drafts, _migrate-stored — as item names, which costs the same 0 first-party and leaves every other _-led name legal). Fix, prose only: split TL;DR 7 into "ruled (N, K)" and "added by this record beyond the rulings (the route-literal namespace refusal; the _-led name refusal), for the maintainer's acceptance by merge"; add the rejected alternative with its reason to Alternatives; and let the PR body's quick-read say the same in one clause.

  • S12 (should-fix) — the refused-literal set cannot be "read from route-ledger.ts" by installPackage. TL;DR 7, D5 step 1 ("G1 reads the set from route-ledger.ts, so it never drifts from the routes") and the G1 row ("objectql registry.ts (installPackage, a refused-literal set read from route-ledger.ts)") put a runtime file behind an objectql gate. packages/objectql/package.json depends on core, formula, metadata, metadata-core, metadata-protocol, spec and types; packages/runtime/package.json depends on objectql. The read as written is a dependency cycle, so the child cannot be built from its row. Fix, one clause in each of the three places: the runtime's install door (domains/packages.ts, which calls registry.installPackage at :2490/:2512) passes the ledger's namespace-position literals to the gate, or the set is a spec/kernel constant that route-ledger.ts's test pins; either keeps "never drifts from the routes" true.

  • N10 (nit) — D5 step 1 says "tool, skill, agent and flow names admit a leading _"; so do hook (data/hook.zod.ts:426), connector (integration/connector.zod.ts:973), sharing rule (security/sharing.zod.ts:195), job (system/job.zod.ts:300) and the api endpoint name (api/endpoint.zod.ts:158); the rest of buckets 2–3 are SnakeCaseIdentifierSchema and refuse it already. P's file surface ("spec (ai/, api/)") therefore misses automation/, data/, integration/, security/ and system/. And a grammar change binds every row of those types, bucket 4 included, so say "a name of a bucket-2/3 type" rather than "a bucket 2/3 item name". The first-party count stays 0 (measured again over packages, examples and HotCRM: the only hits are _selectedIds, a flow variable, and two test fixtures).

  • N11 (nit) — K's builder is "server" while its surface opens with spec kernel/namespace-prefix.ts and stack.zod.ts; ruling 6723571682 routes spec work to domain:spec. Say that the predicate rides P's lane and the three doors ride server, or that the epic seat routes K as a cross-cutting child.

  • N12 (nit) — G2's arm reads "no: a duplicate face cannot exist until two packages can share a bare name, which the B children open". Tool and rag_pipeline have no backstop today, so two co-owners can already hold one tool name (N's case, first-party 0), and a hash or 64-boundary collision needs no shared name at all. The arm holds for the reason the plan already gives elsewhere: N and K land first, and the residual is a hash collision. Fix the cell, and make the N row say "before G1 and G2" (today it says G1 only).

  • N13 (nit) — stale count: "The alternative was to widen phase 1's backstop to those 12 types first" follows a paragraph that now says 13 (11 after hook and job). The critical-path table lists "R, K" but not N, which also lands before G1.

  • N14 (nit) — D4's job row says the key becomes "always the package coordinate (jobKeyFor aligned)" while the covered/uncovered paragraph and E7 say "the first holder keeps the bare key". Both can be true (the schedule key is the coordinate; the bare key stays readable for the one holder) — say so in one of the two places. D9's "Stays: … the ADR-0048 §3.2 namespace install gate" is no longer only a stay: G1 and K each add a comparison to it; "stays, and gains the G1 and K refusals" is exact.

  • N15 (nit) — K says the predicate "lives in kernel/namespace-prefix.ts, the single source both object doors already read"; the header there names defineStack/os validate and MetadataManager.publishPackage(), and the save door reads it too (protocol-save-door-refusals.ts:865). defineStack and os validate see no environment catalog, so at those two doors K can compare an object name only against the stack's own namespace, its declared dependencies' namespaces and the NS_custom corollary; install and publish compare against the environment. One sentence saying which door compares against what keeps "every object door" honest without narrowing the ruling.

docs/adr/0048 — status line: unchanged since round 2; right. docs/adr/0028 — status line: unchanged; right. docs/adr/README.md: unchanged; its ADR-0150 row still matches the status line's opening and the Supersedes field; right.

Execution plan: the order (R and K before E/G, N before G1, S after E/G, B per type last, A trailing) keeps every intermediate main releasable; K before G1, G2 and C is the right place for the Q3 refusal. The first consumer #31575 matches D3's arms and is untouched by this round. The count 23 + 13 is right.

Implemented-by: claude/project-thread-mi92c5
Reviewed-by: session_01FEkQ5mLd7pR2PHjsPwiGkz

VERDICT: PASS

TL;DR 7 now separates the ruled refusals (N, K) from the two this record
adds beyond the rulings (the route-literal namespace refusal and the
`_`-led name refusal), which the maintainer accepts by merging; the
narrower alternative is recorded. The literal set is a spec/kernel
constant pinned by route-ledger's test, since objectql cannot read the
runtime. Also: the full list of `_`-admitting grammars and P's surface,
K's lanes and what each of its doors compares, G2's arm, N before G1
and G2, the 11-type count, N on the critical path, the job key wording
and the §3.2 gate's new refusals.

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

Copy link
Copy Markdown
Contributor Author

epic:#31527#1 · os-project-manager · session_01FEkQ5mLd7pR2PHjsPwiGkz

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 5c69b2a027cde99340690e6a01a2e739e9bd78b2
Local-runs: none
Scope: docs/adr/0150-behavioural-metadata-addressed-by-package-objects-keep-the-literal-prefix.md,docs/adr/0048-cross-package-metadata-collision.md,docs/adr/0028-metadata-naming-and-namespace-isolation.md,docs/adr/README.md + none

Delta review of round 3 (record 6724845936 on 082272a3, PASS with S11, S12 and N10–N15; rounds 1 and 2 are 6724089022 and 6724370084). Judged on git diff 082272a3..5c69b2a0 (1 file, ADR-0150 only, +20/−17; ADR-0028, ADR-0048 and the README are byte-identical between the heads) and on the full new ADR text, against the rulings 6724050556 (Q1/Q2), 6724530715 (Q3) and 6724570466 (D2) and the code the ADR cites in the live tree.

Inputs read: card #31527 (body and all 9 comments), PR #31586 body (rewritten at this head) and file list, git diff origin/main...5c69b2a0 (4 files, +362/−6, merge base 5ee59f5e), the head's check-runs. Cited code read in the live tree, never reviewed: packages/objectql/package.json and packages/runtime/package.json (dependency direction, for S12), packages/spec/package.json; packages/runtime/src/route-ledger.ts (every /automation, /actions, /meta row; the _-led literals _activation, _status, _drafts, _migrate-stored), route-ledger.conformance.test.ts (the domain-level arm and the #26513 mounted-route arm), dispatcher-plugin.ts (registerAutomationRoutes :1758–2024, the /actions mounts :2105–2140, no per-route /meta mount), domains/automation.ts (the parts[N] === 'literal' if-chain :3506–4471); packages/objectql/src/registry.ts (RESERVED_NAMESPACES :435, the installPackage NamespaceConflictError branch :8640–8653), bare-name-one-holder.ts (BARE_NAME_ONE_HOLDER_TYPES :169–186); packages/runtime/src/app-artifact-handlers.ts (jobKeyFor :1126); packages/spec/src/kernel/namespace-prefix.ts (NAMESPACE_RE, the header's two enforcement points), stack.zod.ts :14/:2554, packages/metadata-protocol/src/protocol-save-door-refusals.ts :68/:865 (the save door reads the predicate); the item-name grammars of every bucket 2/3 type: ai/tool.zod.ts :172, ai/skill.zod.ts :298, ai/agent.zod.ts :332, automation/flow.zod.ts :1131, data/hook.zod.ts :426, integration/connector.zod.ts :973, security/sharing.zod.ts :195, system/job.zod.ts :300, api/endpoint.zod.ts :158, data/analytics.zod.ts :664 (cube), system/book.zod.ts :157, system/email-template.zod.ts :169, ui/action.zod.ts :1169, and the SnakeCaseIdentifierSchema names of page, app, dashboard, report, dataset, picklist, mapping, webhook, permission, queue and assignment rule (shared/identifiers.zod.ts :130); packages/spec/src/migrations/entries/semantic/18.meta-type-rag-pipeline-retired.ts and meta-spelling/manifest-collection-spelling.ts :93 (the rag_pipeline retirement, #31456, commit 39aa3f64); ruling 6723462584 (the per-type table) and 6723571682 (division of labour); HotCRM at 6961ab1 (no _-led item name); packages and examples on main (the _-led hits: _selectedIds, a flow variable; _copy, a permission-set name in permission-set-clone.test.ts :425 that the test already expects a 400 for; _close, a view ref in a doc comment, bucket 1).

① Derived judgments

  • Accept set / public surface: none changes. Still four files under docs/adr/; no schema, code, skill, changeset or generated output. Right.
  • Gates on the head (conclusions are the verdicts): every completed non-skipped check-run is success — PR-body guards, Check PR Size, Check Documentation Links, Governed Surface Queue Guard, Lint · PM dispatch-gates, the three scoped lint lanes, Type Check · workspace, Type Check · source gates, Type Check · debt ledger, Test UI, Dogfood Regression Gate, Plan Test Core shards, Auto Label, filter. in_progress at this reading and not adopted as green: Lint · docs & code guards (carries check:adr-index), Lint · ESLint, Lint · repo & tooling gates, Lint · CI/release/engine gates, Type Check · consumer gates, Test Core. Each of those was success on the round-3 head 082272a3, and the only file this delta changes is ADR-0150's body; the README and the status-line prefixes the index reads are byte-identical, so nothing new is owed to them. Check Changeset skipped on skip-changeset; right for a docs-only diff.
  • Round-3 fixes, sentence by sentence in the tree. S11 fixed — TL;DR 7 is split into "Ruled by the maintainer" (N, K, each with its ruling time) and "Added by this record beyond the rulings, accepted by the maintainer's merge" (the literal-namespace refusal; the _-led name refusal, with "the narrower alternative is recorded under Alternatives"); D5 step 1 says "added by this record beyond the rulings" on both bullets; Alternatives gains the narrower choice (refuse only _env and the ledger's four _-led literals) with its reason (each new literal would need its own refusal, and a name taken first would be shadowed); the PR body's 维护者速读 says the two are not in his rulings, are added by this ADR, and merge is acceptance, and its 先看 line points him at TL;DR 7 for which two are his. S12 fixed — the refused-literal set is now a spec/kernel constant; objectql reads it from spec (packages/objectql/package.json depends on @objectstack/spec, right) and route-ledger.ts's test in runtime pins it (packages/runtime/package.json depends on @objectstack/spec, right); runtime depends on objectql, never the reverse, so the cycle is gone; TL;DR 7, D5 step 1, the P row (surface gains kernel/ and "the namespace-position literal constant") and the G1 row (reading the constant from spec/kernel; the test pins it) all say the same thing. What the test can pin it against is a nit (④ N17). N10 fixed — hook, connector, sharing rule, job and api endpoint are added to the _-admitting list, "a name of a bucket 2/3 type", "bucket 4 included", and P's surface gains automation/, data/, integration/, security/, system/; one more grammar admits _ and is not named (④ N16). N11 fixed (K: the predicate rides P's lane, the three doors are server). N12 fixed (G2's arm: N and K land first, residual is a hash collision; N "before G1 and G2"). N13 fixed ("those 11 types"; critical path "R, K, N"). N14 fixed (job row: schedule key is the coordinate, the bare key stays readable for the one holder, E7; D9: the §3.2 gate "stays and gains the G1 and K refusals"). N15 fixed (K names the three readers of kernel/namespace-prefix.ts — defineStack/os validate, publishPackage(), the save door, right against the header and :865 — and says what each door compares against; the ruling is not narrowed, since install and publish compare against the environment in both directions).
  • The two unruled refusals are now marked as such everywhere they appear (TL;DR 7, D5 step 1 both bullets, Consequences by elimination, the PR body), each with a measured first-party 0, and the _-led one with its recorded alternative. The maintainer's merge is an informed acceptance. Right.
  • Counts and internal consistency. 23 non-B rows (D, R, N, K, P, E1–E8, G1–G3, U, C, S1–S4, A) = 8 + 8 + 3 + 4; B is 13 (phase 1's 12 plus permission sets). TL;DR 7's four refusals and Consequences' "three … Q3's is the fourth" agree. The covered set is stated as the constant has it; the uncovered set is 13 with hook and job as the two that change no bare answer, "the other 11"; critical path "R, K, N"; N before G1 and G2; K before G1, G2 and C. Status line, plan opener and #questions-put-to-the-maintainer-all-ruled anchor agree. One count rests on a type the tree has retired (④ S13).
  • Rulings recorded exactly. Nothing in this delta touches the Q1, Q2, Q3 or D2 text; D6, D7, D2, the N and K rows and the Questions section carry the rulings as round 3 found them.

② Semver level

Clause-②: no on the PR body; skip-changeset; Check Changeset skipped. The diff publishes nothing. Right. In the plan, P stays yes (the _-led refusal narrows published grammars), K and N stay no with a yes narrowing arm, G1–G3 yes (additive). Right.

③ Boundary flags

  • Q1, Q2, Q3, D2 — all status: decided, each with its card option or message, time and record. None is open.
  • The two unruled narrowings — now named as added beyond the rulings in TL;DR 7, D5 and the PR body, with the _-led one's rejected alternative recorded; escalation closed by the fix. The maintainer sees what he accepts by merging.
  • PR body vs tree: the body agrees with the ADR on every point checked — the spec/kernel constant pinned by route-ledger.ts's test, both refusals "added by this record beyond the rulings, for acceptance by merge", child K and its doors, 23 + 13, hook and job, "(E4, E8, G1)", S1–S12 and N1–N15 folded, "三轮合约审查". The Verification section's "21 derived commands exited 0" is the dev's account; the check-runs are the verdicts and are read in ①. The tree is judged, not the body.

④ Design judgment

Judged on the delta and the full ADR against the rulings, the first consumer (#31575) and the execution plan. No must-fix. One should-fix, three nits. The should-fix predates this round (it has been in the ADR since round 1 and escaped three reviews, this seat's included); it is raised now because this round read every bucket 2/3 grammar for N16 and found the type missing.

  • S13 (should-fix) — rag_pipeline is a retired metadata type on main, and the ADR plans work on it. refactor(spec)!: retire the ragPipelines collection listings no stack can declare #31456 (commit 39aa3f64, 2026-11-08 10:03Z) retired it under ADR-0049 enforce-or-remove: ragPipelines is gone from PLURAL_TO_SINGULAR (manifest-collection-spelling.ts :93), /meta/rag_pipeline answers the unrecognised-type refusal, and the migration entry meta-type-rag-pipeline-retired says "a RAG pipeline was never a declarable metadata collection". That landed before the stage-1 inventory (86e37660, 12:53Z) and before the ruled per-type table (15:36Z), so the inventory and the ruling both name a type the tree no longer has. The ADR carries it in D1 bucket 3, D6 ("NS-NAME for a tool, a skill, an agent, a rag_pipeline"), the N row's type list, the E8 row's list and the plan's "the other 13 bucket 2/3 types have no backstop" (so "the other 11" too). A builder of N or E8 is sent to key and refuse a type with no schema, no collection and no door, and D6 promises a face for it. The ruling binds where the words differ, but it cannot make a retired type declarable. Fix, prose only: in D1 bucket 3, D6, N, E8 and the covered/uncovered paragraph, drop rag_pipeline or mark it "retired (refactor(spec)!: retire the ragPipelines collection listings no stack can declare #31456, meta-type-rag-pipeline-retired) before the ruled table was measured; no child touches it", and move the counts to 12 uncovered and "the other 10"; one sentence under Decided-by that the ruled table names it on the stale inventory. The Count line (23 + 13) does not move.

  • N16 (nit) — D5 step 1 now lists nine grammars that admit a leading _ and says "the rest of buckets 2–3 use SnakeCaseIdentifierSchema and refuse it already". analytics_cube is a tenth: data/analytics.zod.ts :664 is ^[a-z_][a-z0-9_]*$. The rule ("a name of a bucket 2/3 type that starts with _") and P's data/ surface already cover it, so nothing in the contract moves; add "cube" to the list so the P builder does not skip it on the strength of that sentence. Also inexact but harmless: book (system/book.zod.ts :157) and email_template (:169) have their own regexes, not SnakeCaseIdentifierSchema, and both already refuse _. The "two test fixtures" in the first-party count are _copy (a permission-set name the test already expects a 400 for) and _close (a view ref in a doc comment, bucket 1); the count stays 0.

  • N17 (nit) — D5 step 1 says route-ledger.ts's test "pins it against the mounted routes". The test(runtime): route-ledger.conformance has no per-route reverse check, so 26 deleted ledger rows stay green; the decision it defers to (#17041) does not resolve #26513 mounted-route arm records what dispatcher-plugin.ts mounts on the host: /automation's rows are mounted per route (registerAutomationRoutes), so trigger, actions, connectors and _status are visible there, but /actions/global rides the :object mount (:2113) and /meta has no per-route mount at all, so global, _drafts and _migrate-stored never appear in that table. Say the test pins the constant against ROUTE_LEDGER's rows (which check:route-ledger-census guards per row); "never drifts from the routes" then holds for every literal.

  • N18 (nit) — G1's install gate reads the constant P ships, and G2 reads P's face derivation and run_action shapes, while the critical path puts E, G, P, U, C in one parallel step. One clause ("within that step the spec pieces land first" or "the constant ships with whichever of P and G1 lands first") keeps the table honest; no order between P and G is stated anywhere today.

docs/adr/0048 — status line: unchanged since round 2; right. docs/adr/0028 — status line: unchanged; right. docs/adr/README.md: unchanged; its ADR-0150 row still matches the status line's opening and the Supersedes field; right.

Execution plan: the order (R, K and N before E/G, S after E/G, B per type last, A trailing) keeps every intermediate main releasable; K before G1, G2 and C is the right place for the Q3 refusal; N before G1 and G2 is the right place for D2's. The first consumer #31575 matches D3's arms and is untouched by this round. The count 23 + 13 is right; the uncovered-type count is one high (S13).

Implemented-by: claude/project-thread-mi92c5
Reviewed-by: session_01FEkQ5mLd7pR2PHjsPwiGkz

VERDICT: PASS

rag_pipeline was retired on main by #31456 before the stage-1 inventory
and the ruled table were measured: it is marked retired wherever the
table carries it, no child touches it, and the uncovered set is 12 (10
after hook and job). Also: analytics cube admits a leading `_`, the
route-ledger census test pins the literal constant against the ledger
rows, and P's spec pieces land before G1 and G2.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEkQ5psDxi37aZAzXB36TT
… implements

A package caller never resolves to an environment-authored item by bare
name, because no package can declare a dependency on the environment;
it is refused with the environment named. An overridable platform
baseline ranks below a package holder in step 2 and in the
environment step.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEkQ5psDxi37aZAzXB36TT
This was referenced Nov 8, 2026
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 size/m skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants