Repository navigation
Description
repo:objectstack#4 · os-elon-musk · session_016WV4d1k1GRsQbF3vCPKxhz
Filing gate: ① (L1-a non-blocking note 1 on PR #35871, L1 verdict 7044738454; a defect noticed, not touched) · Source: fleet · Area: a4-C · Seat: repo:objectstack#4
维护者速读
- 问题: 平台对外给出的“这类配置能写哪些字段”说明(Studio 和 AI 助手都读它)里,混进了几个由平台自己盖章的内部字段(锁定状态、来源、所属包等)。
- 要做: 在生成这份说明时把这些平台盖章字段剔除,或标为只读;并加测试锁住。
- 不做会怎样: AI 助手按说明“只写列出的字段”时,可能把这些内部字段也写进去;保存时是被拒、被丢弃还是被存下,目前没量过。
- 你要做的: 无。
What
getMetaTypes()(GET /meta/types, and since PR feat(runtime): the MCP draft door answers a metadata type's contract #35871 the MCP draft door'scontract: trueread) serves each type's JSON Schema throughgetMetadataTypeSchema→stripUnauthorableProperties(packages/metadata-protocol/src/protocol-meta-type-schema.ts:358,373,unauthorable-nodes.ts:116).- The served
objectandviewschemas still list the ADR-0010 stamped keys among their properties:_lock,_lockReason,_lockSource,_provenance,_packageId,_packageVersion,_lockDocsUrl(packages/spec/src/kernel/metadata-protection.zod.ts). These are set by the platform (loader / registry tag), not authored. skills/objectstack-mcp-build/SKILL.md§3 (after feat(runtime): the MCP draft door answers a metadata type's contract #35871) tells a door-only client "Write only keys these show", so the served contract reads them as writable.- Not measured: whether a draft save of an item carrying these keys refuses, drops or stores them. The first step of the fix is that measurement; if a save stores an authored
_lock, that part goes to the security seat, not GitHub.
Done when
- The served schema for every type that spreads the protection fields omits them (or marks them
readOnly, whichever the converter's existing conventions favour), with a pin overgetMetadataTypeSchemaforobjectandview. - The save-side behaviour for an authored stamped key is measured and stated in the PR.
- The MCP draft door's lean contract stops listing them (follows from the converter; pin one type).
Reader
packages/metadata-protocol (domain:server), area:ai a4-C or the metadata-protocol lane. Clause-② reading for the PR: removing a key from a served description refuses nothing a client could save before; if the save side changes, that is a separate reading.
Dedupe
stripUnauthorableProperties (is:issue) → 2, both closed and unrelated (#21374 form offer, #17502 retiredKey tombstones). _lockReason schema meta types → 8, none on the served schema (#23096 closed: protection block binding). stamped keys getMetaTypes → 7, none on this (#35761 is the read that surfaces it).
Grade: area:ai · bug · fleet-sourced (L1 note on #35871) · reach: Studio and MCP clients reading /meta/types contracts; save-side effect unmeasured · evidence: read → p3.
Activity
objectstack-fleet commentedon Nov 20, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in
domain:server(metadata-protocol) ·pm:queue; rationale: area:ai · Bug · the served type schemas that Studio and the AI assistant read list platform-stamped keys (_lock,_provenance,_packageId…) as authorable properties; what a save does with them is not measured → p3 as filed (kept: it shapes what an AI agent writes; measure the save outcome first, and a stored or silently dropped key raises it) · size S.objectstack-fleet commentedon Nov 28, 2026
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA
Claim: PM loop round 3 · 2026-11-28T06:23Z
Picked by
card-pick.mjs --order area:ai --seat repo:objectstack#2. The maintainer in this seat's project, verbatim: 「ai 并发8」 (ai area cap 8).Session:
session_01L6bhgV6i8jfWwSXjpWJrjAThread session:
session_01L6bhgVPzC3zNXbLrxYGzzHAccount:
os-salesBranch:
claude/project-thread-1mwrg6(frommain)Domain:
domain:serverSeat:
repo:objectstack#2Area:
s2-aiFile surface:
packages/metadata-protocol/src/protocol-meta-type-schema.tsandunauthorable-nodes.ts(the served-schema converter drops the seven ADR-0010 stamped keys at every depth); a pin overgetMetadataTypeSchemaforobjectandview; one pin on the MCP draft door's lean contract; one@objectstack/metadata-protocolchangeset. The save path is not touched.Container & model:
S,mode:thread,model: default tier — dispatch-gates.mjs --tier: "no path-derived mandate",effort: high(reason: the thread session serves effort high)Clause-②: no (narrowing — a key leaves a served description; nothing a client could save before is refused)
Metadata-protocol: narrowed
Responsibility: the "which keys can I write" contract that Studio and the AI assistant read stops offering keys only the platform sets.
Premise: the card's first step (measure the save side) is done in the thread. Its result is not written on GitHub; the PR says at most "a security item is with the owner seat". This card changes the served description only. Review: the dogfood battery plus one contract-tier review on the head.
Serial constraints cleared: no open PR edits
protocol-meta-type-schema.tsorunauthorable-nodes.ts(seat read; #38164 imports the first and leaves it unchanged).The PR says
Fixes #35879.objectstack-fleet commentedon Nov 28, 2026
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA
Claim amendment · 2026-11-28T06:41Z · amends claim 7235283324
Writes:
Metadata-protocol: none, and the changeset is@objectstack/metadata-protocolpatch.Clause-②: no (narrowing — a key leaves a served description; nothing a client could save before is refused)stands, and so do the dogfood battery and the one contract-tier review on the head. Every other line of the claim stands.Reason: the diff changes no schema and no save door, so nothing an author can write or save is refused, and there is nothing to migrate (
check-adr-0087-registrationreadsnarrowedas "an author's value is now refused" and wants a ledger entry this change cannot fill). Only the served description shrinks. The seat applied the same reading on #34372 (amendment 7235409030):Metadata-protocolfollows what parses and saves, not what a description lists. The claim'snarrowedwas the seat's misreading.objectstack-fleet commentedon Nov 28, 2026
repo:objectstack#2 · os-sales · session_01L6bhgVPzC3zNXbLrxYGzzH
os-dev-report
{ "issue": 35879, "status": "done", "branch": "claude/project-thread-1mwrg6", "pr": "https://github.com/objectstack-ai/objectstack/pull/38209", "session": "session_01L6bhgVPzC3zNXbLrxYGzzH", "premise_still_valid": true, "summary": "The served type schemas (getMetaTypes, hence Studio and the MCP lean contract) listed the seven ADR-0010 protection-envelope keys as writable: 308 nodes, 44 whole envelopes, 33 types at origin/main 7605e0c9. The strip stage in metadata-protocol unauthorable-nodes.ts now withholds PLATFORM_STAMPED_KEYS (read off MetadataProtectionFields) from every properties map at every depth, same position rule and required veto as the tombstones. Omit, not readOnly. packages/spec and every save/publish/read path unchanged; changeset metadata-protocol patch, Clause-② no (narrowing), Metadata-protocol none per amended claim 7235462308.", "tests": "metadata-protocol vitest run at ddb6acbf: Test Files 372 passed / 9 skipped, Tests 23614 passed / 45 skipped; typecheck exit 0. At da349440: protocol.meta-types-unauthorable-columns.test.ts 16 passed, -t 35879 5 passed. runtime mcp-authoring.test.ts 76 passed. Ablation (strip predicate back to tombstones only): 16 red in metadata-protocol; with the mutation built into dist (ablation-dist-preflight proved marker absence) the runtime lean-contract pin red; restored by blob hash, rebuilt, git diff HEAD empty.", "gates": "dispatch-gates.mjs --commands: 67 derived; exit 0 apart from check-plugin-teardown-shape --self-test (needs unshallow) and check:dual-build-cjs-loads (prerequisite unbuilt) — NOT MEASURED locally, CI's; check:type-check-debt NOT MEASURED locally (lock queue exit 99 while dogfood held the lock), CI's. check-adr-0087-registration: not-required (no-migration-prescription). check-changeset-no-major: patch. check-test-source-alias: CI red on ddb6acbf, fixed in da349440 (module-top lint import), local exit 0. PR check-runs at da349440: 37 success, 16 skipped, 0 failure.", "dogfood_battery": "da349440 · os-verify-lock: VERDICT command-exit 0 · held the lock 2243s (37m23s) · Test Files 490 passed | 3 skipped (493) · Tests 4144 passed | 68 skipped (4212) · no failures", "mcp_calls": "2 — mcp__github__pull_request_read (get) x2; reads only", "api_writes": "3 relay writes via scripts/pm/fleet-write: pr_create #38209; issue_patch #38209 body (r2: readings at da349440 + dogfood); this os-dev-report comment on #35879; plus git push of the thread branch (harness)", "open_questions": [], "security_findings": "withheld", "out_of_scope_findings": [] }objectstack-fleet commentedon Nov 28, 2026
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA
Landed · 2026-11-28T09:21Z
PR #38209 merged at 2026-11-28T09:20Z through the merge queue after the maintainer's Tier H approval, on the seat's ACCEPT (7236463589), and its
Fixesline closed this card. What changed:_lock,_provenance,_packageIdand the rest) as authorable properties, so an author or an agent reading them is not offered a key it may not write.It was never ejected.
pm:dispatchedis cleared on this card andpm:awaiting-mergeon the PR.