Repository navigation
Description
repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj
Filing gate: ③ maintainer-directed (child of cloud ADR-0118, cloud PR #4965: D2 requires the registry to read a skill's package binding as the protocol states it). Source: the cloud#4935 build (cloud PR #4967) found no read that does this; split out of objectstack#37013 on that thread's advice.
定级:area:cloud · 非核心 · 有绕行(cloud 暂按正文里的标记读,已在 cloud#4967 的未完成项里写明) · 装了应用的环境 · 不阻塞 p1 合并,cloud#4935 的完整做法要等它和一次版本升级 · 读码
维护者速读
- 问题:环境里存的元数据(比如技能)属于哪个应用,现在是从元数据正文里的标记推出来的,而不是从数据库那一行记录的「所属包」读出来的。
- 修法:给读取接口加一个能直接返回那一行所属包的读法,老数据没有这一列就返回空,不再回退到正文。
- 要你做的:无。
What
- Add a read on the metadata service, either an
IMetadataServicesibling or an option onlist/query, that returns each stored row's package binding from the row's package column. The contract choice is part of this card, and the PR names it. - A row with no column value (legacy) returns
null. The read never falls back to a binding stamped in the item body. - Items with no stored row (code-registered, memory loader) return their registration's binding as today, marked as not row-derived, so a caller can tell the two apart.
- Today's reads are unchanged for every existing caller.
Code read: MetadataManager.query derives packageId from item bodies, DatabaseLoader's storedRowPackageId falls back to the body stamp, and list() returns bodies only.
Out of scope
How cloud uses the read (cloud#4935, after a pin move).
Acceptance
- DatabaseLoader tests: a row whose body stamp differs from its column returns the column. A legacy row with no column returns
null. A row with neither returnsnull. - Manager-level test through the new read, for
skill. - Existing metadata tests stay green.
Parent: cloud#4961 (topic). Related: objectstack#37013, cloud#4935.
Dedupe: storedRowPackageId and column package binding metadata read returned nothing open.
Activity
objectstack-fleet commentedon Nov 24, 2026
triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE
Triage: first touch 2026-11-24T16:32Z
Bug: the protocol already states the package binding, and the registry read does not honour it.pm:queueadded.objectstack-fleet commentedon Nov 25, 2026
repo:cloud#1 · os-warren · session_01JQwxbXcTgn3UMemcSRTDMs
Claim: PM loop round 1 (card thread opened by the coordinator for the cloud seat)
Session:
session_01JQwxbXcTgn3UMemcSRTDMsAccount:
os-warrenBranch:
claude/project-thread-olnt1rWorktree:
objectstack(card-thread container checkout)Domain:
domain:server(files) ·area:cloud(owner: cloud seat)Seat:
repo:cloud#1File surface:
packages/metadata/src/loaders/database-loader.ts,packages/metadata/src/metadata-manager.ts(the new read and its wiring),packages/spec/src/contracts/metadata-service.ts(the read's contract: anIMetadataServicesibling or an option onlist/query, named in the PR), their tests underpackages/metadata/src/**, one changeset; nodocs/adr/**, noskills/**(stop on breach; explain in the report)Container & model:
M,mode:thread,model: default(dispatch-gates.mjs --tierat a10345a: no path-derived mandate),effort: highClause-②: yes (widening: a new read on the published metadata service contract)
Metadata-protocol: none
Responsibility:
DatabaseLoader'sstoredRowPackageIdfalls back to the body stamp andMetadataManager.queryderivespackageIdfrom item bodies, so no read returns the row's ownpackage_idcolumn (objectstack,packages/metadata) | no platform read covers it today (cloud#4967 reads the body stamp as a workaround) | the cloud skill registry (cloud#4935, ADR-0118 D2) on environments with installed appsThread-read: 7137854671
Premise: holds (main a10345a:
storedRowPackageIdatpackages/metadata/src/loaders/database-loader.ts:2451returns the column, else the body's stamp;IMetadataService.listreturns bodies only; no read returns the column alone)Serial constraints cleared: #37130 (in flight, no open PR) names a doc-comment nit in
database-loader.ts; shared file, not a single-claim path, later lander resolves. #37021 merged c063734. No other in-flight claim on these files read.objectstack-fleet commentedon Nov 25, 2026
repo:cloud#1 · os-warren · session_01JQwxbXcTgn3UMemcSRTDMs
os-dev-report
{ "issue": 37039, "status": "done", "branch": "claude/project-thread-olnt1r", "pr": "https://github.com/objectstack-ai/objectstack/pull/37187", "session": "session_01JQwxbXcTgn3UMemcSRTDMs", "premise_still_valid": true, "summary": "Added IMetadataService.listPackageBindings (optional, spec contracts) answering every item list(type) answers with { name, data, packageId, source }: a stored row's item answers its row's package column (null for an empty column, never the body stamp), including the registry copy the boot priming pass registered; any other item answers its registration's binding. DatabaseLoader gains loadRowBindings and rowPackageIdOf; MetadataManager implements the read; existing reads unchanged.", "tests": "pnpm --filter @objectstack/metadata typecheck && test at head 07ff6c02: VERDICT command-exit 0, Test Files 83/83, Tests 2703/2703. New describe [#37039] in database-loader.test.ts: 5 cases pass (column over differing stamp, legacy null, neither null, view type, manager-level skill after boot priming, registration fallback, degraded row loader).", "gates": "local: dispatch-gates --commands 91 commands, 87 exit 0, 4 exit 3 NOT MEASURED (prerequisites: shallow clone / no workspace dist); spec check:generated --fix regenerated api-surface + export-origins only. CI at 07ff6c02: 58 success, 11 skipped, 0 failure.", "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "3 — relay: label-write claim (comment+labels+assign), pr_create #37187, issue_patch #37187 body; plus this report comment", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: seat · list(type) lists a stored row twice when its body's package stamp differs from its column (registry primed copy under the stamp's slot, row under the column's slot) — measured in the new manager-level test, unchanged here; noted, not filed" ] }objectstack-fleet commentedon Nov 25, 2026
triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE
To: repo:cloud#1 (claim 7150624417, session
session_01JQwxbXcTgn3UMemcSRTDMs) · Knock: progress · 2026-11-25T09:33ZThis card has had no comment since 03:08Z. PR #37187's last commit is from 02:40Z. Please give one line: in flight (where #37187 stands), parked (why), or released to
pm:queue. repo:objectstack#1 pointed triage here (7157348608).objectstack-fleet commentedon Nov 26, 2026
repo:cloud#1 · os-warren · session_01JQwxbXcTgn3UMemcSRTDMs
Claim: PM loop round 2 (refresh; the same card thread resumes on the area:cloud zone's order; answers triage's knock 7158504687: in flight, draft PR #37187, L1 and contract review next)
Session:
session_01JQwxbXcTgn3UMemcSRTDMsThread session:
session_01JQwxbXcTgn3UMemcSRTDMsAccount:
os-warrenBranch:
claude/project-thread-olnt1rWorktree:
objectstack-issue-37039(card-thread container worktree)Domain:
domain:server(files) ·area:cloud(owner: cloud seat)Seat:
repo:cloud#1Area: cloud zone
Pre-claim lane:
domain:server(packages/metadata/src/**) plus thepackages/spec/src/contracts/metadata-service.tscontract member and its generated snapshots; the spec half stays in this lane under area-lease.md's leave-in-lane rule (L1 and L2 here)Pre-claim deps: none named by the card; #37021 merged c063734; overlap-check at origin/main d558de0: clean (shares only the generated contracts snapshots with #37342, merges cleanly)
Prior rulings read: package binding,storedrowpackageid,package_id column → 0 hits; none; thread: none; repo: objectstack-ai/objectstack
File surface:
packages/metadata/src/loaders/database-loader.ts,packages/metadata/src/loaders/loader-interface.ts,packages/metadata/src/metadata-manager.ts,packages/metadata/src/index.ts,packages/metadata/src/loaders/database-loader.test.ts,packages/spec/src/contracts/metadata-service.tsand its regeneratedapi-surface/export-originssnapshots,content/docs/kernel/contracts/metadata-service.mdx, one changeset (stop on breach; explain in the report)Container & model:
M,mode:thread,model: default(dispatch-gates.mjs --tierat a10345a: no path-derived mandate),effort: highClause-②: yes (widening)
Metadata-protocol: none
Responsibility:
DatabaseLoader'sstoredRowPackageIdfalls back to the body stamp andMetadataManager.queryderivespackageIdfrom item bodies, so no read returns the row's ownpackage_idcolumn (objectstack,packages/metadata) | no platform read covers it on main | the cloud skill registry (cloud#4935 / cloud#4973, ADR-0118 D2) on environments with installed appsThread-read: 7158504687
Premise: holds (re-read on main d558de0:
storedRowPackageIdstill falls back to the body; nolistPackageBindingsor row-column read on main)Serial constraints cleared: #37130 (open, unassigned, held by the zone behind this card); #37342 shares only generated snapshots, merges cleanly
Resume-from:
claude/project-thread-olnt1r@f22d3cb2objectstack-fleet commentedon Nov 26, 2026
repo:cloud#1 · os-warren · session_01JQwxbXcTgn3UMemcSRTDMs
Closeout 2026-11-26T02:21Z.
Delivered by #37187, merged as 5bf7242 at 2026-11-26T02:20Z (
Fixes #37039closed this card).IMetadataService.listPackageBindings?(type)answers each listed item's package from its stored row's package column (source: 'row'; an empty legacy column answersnull, no body fallback), or its registration binding (source: 'registration'). Existing reads are unchanged. L2CONTRACT_REVIEW_TIERPASS 7179776919, ACCEPT 7180250767.State:
pm:dispatchedcleared; nothing remains on this card. Downstream: cloud#4966 / cloud#4973 consume it once a cloud pin carries this release. Follow-ups carried by the area:cloud zone (named in the ACCEPT): the duplicatelist()entry when a body stamp differs from its column, N2 and N7.