Repository navigation
docs(adr): ADR-0150 addendum — ai_context joins the package-scoped bucket beside skill - #37209
Conversation
A dated addendum under D1 of ADR-0150 proposes that the context pack type of ADR-0160 is identified by (package, name), as skill is. It adds one dated row to the D1 table and an Amended clause to the status line, and rewrites no ruled sentence. It says what the bucket changes for the metadata service's copy, overlays, owner stamps and uninstall, names the readers that move without moving any, names the one follow-up card, and carries the interim rule: two parsed packs that share a name and a root are refused with one answer. ADR-0160 gains one cross-reference note under D1 and no changed sentence. Docs only: no schema, no code, no changeset. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzi13yZRqVcp2mGonWK
… rest of its several-packs answer to it Two sentences of the addendum, corrected against the tree. ADR-0160 is on main: it merged the day before, and only its status keyword still reads Proposed. And where the addendum says how the several-packs answer spells a pack, it now changes the name's spelling alone and leaves what else that answer carries to ADR-0160, so it holds whichever of the two records is amended first. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzi13yZRqVcp2mGonWK
|
repo:objectstack#3 · os-support-ai · session_01WGufzgv2LZN1W2qSYTZvYs Contract-review-claim: session_01WGufzgv2LZN1W2qSYTZvYs · head 1179369 · 2026-11-25T03:55Z |
|
repo:objectstack#3 · os-support-ai · session_01WGufzgv2LZN1W2qSYTZvYs Contract reviewServed-tier: Read for this record: card #37180 with its three comments, the PR body, the file list (two files, both
① Derived judgments
② Semver levelNo changeset, and none is owed:
③ Boundary flagsThe dev report carries three
Dev deviations that touch the
SQL push-down. No code is in the diff, so there is no new id materialisation and no in-app join. Escalated to the seat. ④ Design judgmentdocs/adr/0150 — the addendum, sentence by sentence against the tree. These hold on
(a) The
(b) The second holder in one namespace, through
(c) The root narrows before D3 picks. Right, and it needs no decision of its own.
docs/adr/0160 — the cross-reference. Consistent with ADR-0160's own decisions on Findings. S1 (should-fix) — Six sentences of the addendum are false on the tree this PR merges into. They were true at
The first two sit under a heading pinned to S2 (should-fix) — The addendum lets "an authorized approval" be the ruling for all three of its extra points. Two of them are the maintainer's alone.
Fix: say in the addendum that points 1 and 3 take the maintainer's own merge or word, and that point 2 follows from ADR-0160 D4. The PR is draft and is to be merged by the maintainer, so the landing path is already right. The record's text should not be wider than that path. Nit N1 — The interim rule says "refused with one answer, whether Nit N2 — "Overlays" says a package-less row under a name one package holds "is that holder's customization", one sentence after saying a pack takes no environment overlay. It does not say whether that row is served. On Nit N3 — The follow-up card is named and not filed. Row 8 (#37141) must wait for it, because the resolver throws for a type outside Nit N4 — The D6 bullet rests on a pack name holding no No must-fix. Two should-fix, S1 and S2, both prose in Implemented-by: VERDICT: PASS |
|
repo:objectstack#3 · os-support-ai · session_01WGufzgv2LZN1W2qSYTZvYs 席位核对 — REWORK · repo:objectstack#3 · head 1179369 · 2026-11-25T04:04ZL1: REWORK (L1-w, zone ai-A) The L2 at Should-fix (from the L2, adopted)
Nits (prose face; fix any in the same push, else each is an accepted deviation or a follow-up card)L2 N1–N4 are in the record:
The seat's three questions (answered from the L2, which I adopt)
Read and found right (head 1179369)
Path to final ACCEPT
|
…-context-package-scope-adr
…re the maintainer's alone The addendum's reading of the tree was taken before the context pack type, its tool and the ADR-0160 amendment landed. Every "today" sentence is re-measured on current main and reworded: the type and the pack selection are cited as merged code, the showcase app's two packs are the one first-party declarer and are not refused, and the follow-up card is named with its order before the skill key. The record now says who rules what. The face spelling in the context argument widens D6, and admitting the type to the namespace-unique list is reserved to the maintainer, so the addendum is ruled by the maintainer's own merge or word. That the root narrows the candidates is stated as following from ADR-0160 D4, not as a new decision. Review nits folded in: the interim rule no longer says "one answer" where an omitted context with a third pack gets the several-packs answer; the overlays bullet says a package-less row under a shipped name is not served; the no-hyphen premise of the face is anchored. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzi13yZRqVcp2mGonWK
|
repo:objectstack#3 · os-support-ai · session_01WGufzgv2LZN1W2qSYTZvYs Contract-review-claim: session_01WGufzgv2LZN1W2qSYTZvYs · head deee29a · 2026-11-25T05:53Z |
|
repo:objectstack#3 · os-support-ai · session_01WGufzgv2LZN1W2qSYTZvYs Contract reviewServed-tier: Delta review of Read for this record: card #37180 and its thread, the PR body, the file list, the delta and the net diff, card #37216, and the check-runs on the head. The cited code was read on
① Derived judgments
② Semver levelNo changeset, and none is owed: ③ Boundary flags
④ Design judgmentClosures, each read against S1: closed. The addendum is re-measured on
S2: closed. The status clause and the addendum's opening both say the ruling is the maintainer's alone, by the maintainer's own merge or word. The D2 bullet and point 3 say that admitting a type to N1: closed. The interim rule now matches N2: closed. "Overlays" now says a package-less row under a name a package ships is not served. That is true on N3: closed. Card #37216 exists and is open. It is what the text says: it adds N4: closed. The D6 bullet cites New sentences in the delta. Each was read against the tree, and none is false.
The three points beyond the card. My judgment of the first round stands, and the delta changes none of the three designs. The face in No must-fix, no should-fix. Implemented-by: VERDICT: PASS |
|
repo:objectstack#3 · os-support-ai · session_01WGufzgv2LZN1W2qSYTZvYs 席位核对 — ACCEPT · repo:objectstack#3 · head deee29a · 2026-11-25T05:57ZL1: ACCEPT (L1-w, delta read, zone ai-A) No must-fix, no should-fix. The L2 at Delta
|
|
repo:objectstack#3 · os-support-ai · session_01WGufzi4PechTRCTBrfxV8W 维护者速读
Request: approval · Tier H by governed path ( Seat's view: land. This is the ADR-0150 addendum that #37180 asks for. It puts
Generated by Claude Code |
Requested by Yibo Wang · project thread
repo:objectstack#3 · os-support-ai · session_01WGufzi13yZRqVcp2mGonWK
Fixes #37180
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
Two files under
docs/adr/: 44 lines added, 1 line changed. No schema, no code, no changeset.ADR-0150 (Accepted) gains a dated addendum. No ruled sentence is rewritten.
ai_contextjoins bucket 3". It proposes that the context pack type of ADR-0160 is identified by(package, name), in bucket 3 besideskill.The addendum says, in this order:
NS-NAMEwhere its name crosses the AI face.mainat0a1b69c0. The type and its pack selection are onmain. The registry keeps each package's item. The metadata service keeps one copy per name, the one registered last.ADR-0160 gains one cross-reference note under D1, which also names the follow-up and its order. No sentence of it is changed.
Not in this PR, by the card's contract:
PACKAGE_SCOPED_TYPESis not edited and no reader is moved. That is #37216's work, after the ruling.Round 2
The contract review of the first head passed with two should-fix findings and four nits. This head closes them.
maingained the type and the tool (feat(ai): ai_context context packs and the get_record_context tool over MCP (ADR-0160 row 5) #37173) and the ADR-0160 amendment (docs(adr): ADR-0160 amended — a related child this caller is not served is left out; pack selection conditions; carried-text bound #37196) after the first measurement.mainis merged into the branch (a merge commit, no rebase and no force-push), and every "today" sentence is re-measured at0a1b69c0. The addendum now cites the merged code. "Nothing first-party is refused" is restated against the showcase app, the one declarer: one package, two packs of different names on different roots.objectstack-ai/hotcrmatb1ea6fccdeclares none.contextthat names the two packs answers409. So does an omittedcontextwhen theirs is the only name on the root. With another name on the root, an omittedcontextgets the several-packs answer, which lists the shared name once. The first match is taken in none of these.skill, and that 37180 跟进:资料包(ai_context)进入按包分桶的四张表,get_record_context 按应用+名字选包 #37216 measures it.Tests
No package is touched, so no package build or test is owed. The checks that read these two files are the docs gates under Verification.
Acceptance notes
PACKAGE_SCOPED_TYPES.NS-NAMEin the tool'scontextargument. This widens D6 from the names a server lists to the value of an argument. The alternative, an optionalnamespaceinput on the tool, adds a key to two shapes ADR-0160 has ruled.NAMESPACE_UNIQUE_TYPES, whose header reserves a further type to the maintainer.PACKAGE_SCOPED_TYPES,PACKAGE_SCOPED_READ_TYPES,PACKAGE_SLOTTED_METADATA_TYPESandNAMESPACE_UNIQUE_TYPES. The service's one copy per name is governed by the third, not the first.skillis in the first three; its one-holder rule inside a namespace is phase 1's, which a new type never had.check:adr-symbol-anchorsrefuses a line anchor underdocs/adr/, so the record citespath#Symbol, and the line numbers are in the table under Verification.docs/adr/ships in no package, so this PR carriesskip-changeset.mainthe several-packs answer lists pack names only (packages/services/service-record-context/src/sentences.ts,severalPacks). ADR-0160 D4, as amended on 2026-11-25, says each candidate is listed by name with itslabel. This is read from source, not measured through the tool, and no first-party object has several packs. The addendum leaves what that answer carries to D4.Verification
Read first, by risk:
docs/adr/0150-…-literal-prefix.md, "Past the card's words" at the end of the addendum: the two decisions that are the maintainer's.Two-minute check: run
node scripts/check-adr-symbol-anchors.mjs. Expect4186 anchors across 163 records resolveand exit 0. Fourteen of them are this diff'spath#Symbolanchors.Measured anchors on main at 0a1b69c (file:line)
main, and a pack name holds no hyphenpackages/spec/src/ai/ai-context.zod.ts:136(AiContextSchema),:157;packages/spec/src/kernel/address-grammar.ts:68(ROUTER_ADDRESSABLE_NAME_PATTERN)packages/services/service-record-context/src/read-set.ts:65(selectContextPack)409; with another name and nocontext: the several-packs answerpackages/services/service-record-context/src/record-context-tools.ts:266,:265packages/core/src/package-scoped-resolution.ts:245(PACKAGE_SCOPED_TYPES;skillat:270)packages/core/src/package-scoped-resolution.ts:740,packages/objectql/src/package-scoped-resolver.ts:148packages/objectql/src/package-scoped-read.ts:88(PACKAGE_SCOPED_READ_TYPES;skillat:96), read bypackages/objectql/src/registry-package-addressing.ts:433packages/spec/src/api/protocol.zod.ts:2753(PACKAGE_SLOTTED_METADATA_TYPES;skillat:2754),packages/metadata/src/package-slotted-store.ts:154packages/metadata/src/package-slotted-store.ts:797(storeWriteKey),:820packages/metadata/src/metadata-manager.ts:1499,packages/metadata-protocol/src/protocol-registry-hydration.ts:148packages/objectql/src/namespace-co-owner-names.ts:96(NAMESPACE_UNIQUE_TYPES); the list is reserved to the maintainer at:27packages/spec/src/kernel/metadata-plugin.zod.ts:1388,packages/metadata-protocol/src/protocol-package-bindings.ts:388(SEALED_ROW_SERVED_OVERRIDE_TYPES)packages/mcp/src/skill-prompts.ts:373(lookupSkillPrompt)packages/spec/src/ai/face-name.ts:86(deriveAiFaceName)packages/spec/src/kernel/collection-item-owner-stamp.ts:129,:107packages/objectql/src/registry.ts:5328(uninstallPackage)packages/metadata/src/metadata-manager.ts:2880(unregisterPackage)examples/app-showcase/objectstack.config.ts:223,examples/app-showcase/src/ai/record-context.ai-context.ts:20,:30Absence readings, each with a positive control:
ai_contextin the four list files and inpackages/metadata/src/package-slotted-store.ts: 0 lines each. Control:skillis in the first three lists, at the lines the table gives.packages/spec/src/ai/skill.zod.tshas 0context:property lines. Control: 1tools:line.objectstack-ai/hotcrmatb1ea6fcc:ai_context,aiContextsorai-context, 0 files. Control:skills:, 6 files.Local gates at head deee29a: 21 derived, 21 run, all exit 0
Derived with
node scripts/pm/dispatch-gates.mjs --repo objectstack-ai/objectstack --commands, and reconciled with--ran:Each exit code was captured before any pipe:
check:doc-formula-expressionsreads the compiled output of@objectstack/formulaand@objectstack/lint. Those two and their dependencies were built first, under the shared verify lock (VERDICT command-exit 0).docs/adr/README.mdis generated from each record's status keyword. ADR-0150's keyword stays Accepted, so the index does not change and is not in this diff.