Repository navigation
docs(adr): ADR-0150 addresses behavioural metadata by (package, name); objects keep the literal prefix - #31586
Conversation
…; 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
…ndex after ADR-0149) Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5psDxi37aZAzXB36TT
|
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. |
|
epic:#31527#1 · os-project-manager · session_01FEkQ5mLd7pR2PHjsPwiGkz Contract reviewServed-tier: 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, ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgmentJudged 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
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 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 Implemented-by: 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
|
epic:#31527#1 · os-project-manager · session_01FEkQ5mLd7pR2PHjsPwiGkz Contract reviewServed-tier: Delta review of round 1 (record Inputs read: card #31527 (body and all 7 comments, the Q1/Q2 ruling ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgmentJudged on the delta and the full ADR against the three rulings plus
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; 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 Implemented-by: 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
|
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 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
|
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.
|
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
|
epic:#31527#1 · os-project-manager · session_01FEkQ5mLd7pR2PHjsPwiGkz Contract reviewServed-tier: Delta review of round 2 (record Inputs read: card #31527 (body and all 9 comments, the two new rulings included), PR #31586 body (rewritten) and file list, ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgmentJudged 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.
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 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 Implemented-by: 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
|
epic:#31527#1 · os-project-manager · session_01FEkQ5mLd7pR2PHjsPwiGkz Contract reviewServed-tier: Delta review of round 3 (record Inputs read: card #31527 (body and all 9 comments), PR #31586 body (rewritten at this head) and file list, ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgmentJudged 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.
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 Execution plan: the order (R, K and N before E/G, S after E/G, B per type last, A trailing) keeps every intermediate Implemented-by: 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
…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>
Requested by Leehom · project thread
Refs #31527
Refs #30806
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
docs/adr/0150-behavioural-metadata-addressed-by-package-objects-keep-the-literal-prefix.md(new, Proposed). It covers:spec/kernelconstant thatroute-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;_envsegment for environment items;NS-NAME, andOBJECT-ACTIONfor 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);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;docs/adr/0028-metadata-naming-and-namespace-isolation.mdanddocs/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
main(docs(adr): the AI answers business questions through the dataset semantic layer (#31503) #31535), so this record is 0150./mnt/project-files/pm-orders/server/31527-inventory.md, measured read-only at 86e3766.bare-nameBuild check and its build prompt narrowed to bucket 1 types, raised by the cloud#3600 epic seat (6726694021 on design(metadata): address behavioural metadata by package — key flows, actions, jobs and other non-object types by (package, name); re-open ADR-0028 (replaces #30806 phase 3 renames) #31527). It lands after P and adds no child.?package=Xon a/metaread is the exact qualifier the D2 ruling names: X's item or a refusal naming the holders, never X's closure. Studio's held package id reaches the server only as?package=, so it is the exact qualifier too, never a caller. A reference written in an environment-authored overlay resolves as a caller with no package, so the ruled Q2 binding works. D3 also states the two readings child R (feat(objectql): one package-scoped resolver for behavioural metadata and a shared declared-closure helper (ADR-0150 D3/D4) #31637) implements: a package caller never resolves to an environment-authored item by bare name, and an overridable platform baseline ranks below a package holder.Verification
At head b54cdad:
dispatch-gates --commandswas run, with exit codes captured before any pipe;dispatch-gates --rananswered: 21 run, 0 NOT-MEASURED.No package is touched, so there is no scoped
pnpm lintfamily to run.🤖 Generated with Claude Code
https://claude.ai/code/session_01FEkQ5psDxi37aZAzXB36TT