Repository navigation
Description
epic:#34659#1 · hotlong · session_01Q4EjjMnXJdSZifpEN5i7aU
Filing gate: ④ a child of the cross-lane parent #34659 (the 「MCP 二期与问数」 epic), filed on the maintainer's word in this seat's chat, 2026-11-17, verbatim: 「三点都同意,按最终计划把后续里程碑的卡全部立出来」, and, on the list of thirteen cards the seat then showed: 「同意」. The ruling records are #34659 comment 6940528935 and #34691 comment 6943107981. Readings: objectstack a0326b06, cloud 53a5844, 2026-11-17.
Why
On a self-hosted app an AI client can read and write records over MCP and cannot build at all. The ruled design gives it a thin entry: it saves drafts, a person publishes them in Studio. The entry must tell the client at once what a publish would refuse, or the client stages metadata that passes and does nothing.
Who acts: the server lane (packages/mcp, packages/runtime/src/domains/mcp.ts, packages/metadata-protocol). Reader: a developer building a self-hosted app with their own AI client.
Evidence
packages/runtime/src/domains/mcp.ts:247-257passes noauthoringtohandleHttpRequest; no open package implementsMcpAuthoringToolRegistry(packages/mcp/src/types.ts:96-102). The seam is complete (mcp-server-runtime.ts:1695-1728).- A draft save runs the type's Zod parse and no authoring rule:
AUTHORING_SURFACES = ['cli','runtime-publish'](packages/lint/src/authoring-rules.ts:186-205); the gate returns no error when the state is not active (packages/metadata-protocol/src/protocol-authoring-gate.ts:430-445). draftPublishVerdictpreviews the publish verdict of a draft (protocol-authoring-gate.ts:713).- Studio's draft review imports open packages only (
ui/packages/app-shell/src/preview/). - Comparable servers: Cube writes to a personal branch ("File writes never touch production"); Neon prepares on a temporary branch, then completes; Directus and Terraform return a machine-followable next step with an error.
Scope
- An open registry behind
metadata:write, each tool checking the caller's ownmanage_metadata:list_metadata,get_metadata,save_metadata_draft,delete_metadata_draft,list_drafts. save_metadata_draftsaves withmode: 'draft',surface: 'mcp', and returns the draft's publish verdict: every finding a publish would raise, each with its rule id, the path, and a next step.- No publish tool and no
force(D2 = A). OAuthmetadata:writeonly (D3 = A). The reply names the Studio review route. - Tool names must not collide with the hosted registry's.
- File surface:
packages/mcp/**,packages/runtime/src/domains/mcp.ts, a read ofpackages/metadata-protocol.
Done when
- On
examples/app-crm, an OAuth client withmetadata:writesaves a flow draft whose start node has no routable trigger and gets that finding back in the same reply; the draft appears in Studio's Changes. - A token without
metadata:write, and an API key, see none of the five tools.
Relations
- Parent: Decision: open-source MCP — the client thinks locally, the server keeps a thin door (a metadata draft write entry for building; the data door for 问数), plus policy, version skew and the 问数 eval #34659. Rulings: D2, D3, E3 on Decision: open-source MCP — the client thinks locally, the server keeps a thin door (a metadata draft write entry for building; the data door for 问数), plus policy, version skew and the 问数 eval #34659. Design:
docs/design/mcp-local-first-door.md, Design A (PR docs(design): MCP local-first door — design and measurement plan (draft for the decision card) #34675). - Dedup, open and closed:
MCP draft authoring tools open-source1 hit, the parent.
Activity
objectstack-fleet commentedon Nov 17, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Released and graded (23:0xZ): the maintainer released it from the #34659 hold (「可以放行」, recorded on #34659 at 22:58Z, comment 6963486364).
pm:on-hold→pm:queue, p1 · domain:server.Theme: MCP, the core door of epic #34659 (in focus). External agents get list, read, save and discard of metadata drafts, each save answered with the publish verdict, so an agent can build without publishing blind. It gates #34774, #34778 and #34780. So p1.
objectstack-fleet commentedon Nov 17, 2026
repo:objectstack#3 · os-support-ai · session_01WGufzfR33NbV51QQU6R6bm
Claim: PM loop (area o3-E, epic #34659, PR-a of the seat-approved split) · 2026-11-17T23:12Z
Session:
session_01WGufzfR33NbV51QQU6R6bmAccount:
os-support-aiBranch:
claude/issue-34766-mcp-draft-door-readWorktree:
objectstack-issue-34766Domain:
domain:serverSeat:
repo:objectstack#3File surface: PR-a (
Part of #34766):packages/runtime/src/domains/mcp.ts(passauthoringtohandleHttpRequest) and a new open registry module beside it underpackages/runtime/src/domains/,packages/mcp/src/**(instructions / skill-md entries the registry needs; tests),packages/metadata-core/**read only (metaWriteCapabilityVerdict),docs/design/mcp-local-first-door.md(one add-only dated note on the read-tool rename), their tests, root.changeset/. PR-b (Fixes #34766, claimed on this same lease when PR-a is in L1): a public draft-verdict method onpackages/metadata-protocol(D2),save_metadata_draft,delete_metadata_draft, verdicts onlist_drafts, the app-crm end-to-end.Surface note (seat 3 rulings 23:11Z): D1 A:
manage_metadatais the human's own grant, resolved fromprincipal.userIdthroughmetaWriteCapabilityVerdict; the effective right is the intersection (tokenmetadata:writeAND the user's grant); fail closed on nouserIdor a throwing resolution; four pinned cells (token without scope, user without grant, both, API key hidden). D2 A: public verdict method so the reply carrieshint(PR-b; Tier H if it reaches the spec contract). D3 A: the read tools are renamedlist_metadata_items/get_metadata_item(collision with the cloud platform toollist_metadata,packages/spec/src/system/constants/platform-tool-names.ts:97);save_metadata_draft,delete_metadata_draft,list_draftskeep the design names. D4:save_metadata_draftrequirespackage; the refusal names which package to give.Container & model:
M,mode:subagent(area o3-E),model: TIER_DEFAULT (dispatch-gates --tier: no path-derived mandate for packages/runtime, packages/mcp),effort: highClause-②: no (no published accept set or spec export changes in PR-a)
Metadata-protocol: none
Responsibility:
n/a — not a defect cardThread-read: 6963514953
Premise: holds with four rulings (premise note /mnt/project-files/objectstack-seat3/o3-E/34766-premise-split.md at origin/main 4443014):
mcp.ts:248-259passes noauthoring; theMcpAuthoringToolRegistryseam (packages/mcp/src/types.ts:97-102,mcp-server-runtime.ts:1720-1753) and themetadata:writegate (grantsAuthoringTools,mcp-http-tools.ts:2499) exist; surface'mcp'is already inMetadataAuthoringSurfaceSchema(protocol.zod.ts:563); an OAuth agent withmetadata:writealone holds nosystemPermissions(packages/core/src/security/assemble-execution-context.ts:358-364), hence D1.Serial constraints cleared:
released from the #34659 hold (6963486364); triage p1 6963514953; area o3-E's #34919 (service-analytics, mcp dataset text) and area o3-A's #34876 / #34877 (packages/mcp/src tests, describe_object text) are open neighbours: overlap-check at the first push and before every pushPre-claim lane:
domain:server— the runtime MCP domain and the MCP doorPre-claim deps: none open (#34659 hold released)
Prior rulings read: metadata:write,authoring,draft,McpAuthoringToolRegistry → #34659 D2 A / D3 A / E3 (6940528935), #34691 (6943107981), design
docs/design/mcp-local-first-door.md(Design A), ADR-0033 read-side names; seat 3 rulings D1–D4 (23:11Z); repo: objectstack-ai/objectstack.Lease
o3-E(seat post #34584); child of epic #34659. L1-c, then the seat's fable L2 (D1 touches the authoring gate), then the landing tier percheck-governed-merges --pr.11 remaining items
objectstack-fleet commentedon Nov 18, 2026
repo:objectstack#1 · os-warren · session_01JQwxbWDsbbJizuYnDwBxT8
os-dev-report
{ "issue": 34766, "status": "done", "branch": "claude/issue-34766-mcp-draft-door-read", "pr": "https://github.com/objectstack-ai/objectstack/pull/35059", "session": "session_01JQwxbWDsbbJizuYnDwBxT8", "premise_still_valid": true, "summary": "Fix round for seat L2 FAIL 6967316983 item M1-b on PR-a (#35059), head 2ef0ca896e -> b7838f512f, one push. The door now folds the `type` argument once at its boundary with `canonicalMetaUrlType` from `@objectstack/spec/shared` (the protocol's own fold) in one module helper `canonicalTypeOf` (same name and signature as PR-b's local copy, so the two collapse into one), and hands the folded type to the protocol read, `refuseUnknownMetaListType` and both gate factories; the module header now says the gates apply to every spelling. Measured addition: `canonicalMetaUrlType` answers a non-string (the Object function) for an inherited member's name such as `constructor`; the helper keeps the agent's string in that case, so the door behaves as before for those names. The changeset paragraph needed no text change (its promise is now true for every spelling); the PR body was brought to the new head through the relay `issue_patch`.", "tests": "At b7838f512f: os-verify-lock.sh -c 'pnpm --filter @objectstack/runtime exec vitest run --project local --maxWorkers=2 src/domains/mcp-authoring.test.ts' -> Test Files 1 passed (1), Tests 21 passed (21), VERDICT command-exit 0. New pins: (1) a protocol double that folds `type` as the real protocol does (`canonicalMetaUrlType`), with `dashboards`/`docs` refused 403 PERMISSION_DENIED on get_metadata_item with no body or requiredPermissions value in the refusal, `dashboards`/people_board served as type dashboard, and both plurals left out of list_metadata_items; (2) the protocol is handed `doc` and `dashboard`, never the plural; (3) an inherited member's name (`constructor`, `toString`) reaches the protocol as the string sent. A first draft of pin (3) asserted a 400 refusal and went red (`constructor: expected false to be true`): `unrecognisedMetaTypeRefusal` treats inherited names as recognised (`in` on a plain object), so the pin was rewritten to the behaviour actually kept. Ablation of the fold, via scripts/ablation-replace.mjs: anchor `return typeof folded === 'string' ? folded : type;` -> `return type; // ABLATION: no fold`, anchor 1 -> 0, blob a121757d6324 -> 99e31994d616; run -> 2 failed / 19 passed, exactly the plural pin (`dashboards: expected false to be true`, the dashboard the human lacks was served) and the folded-type pin; restore blob == HEAD a121757d6324, `git diff HEAD` empty. The suite imports the module relatively from src/, so no dist/ is on the subject's path (no dist preflight owed). Runtime typecheck: os-verify-lock.sh -c 'pnpm --filter @objectstack/runtime typecheck' -> VERDICT command-exit 0, check:test-typecheck OK (27 files / 183 errors / 66 signatures held, none new), after `pnpm --workspace-concurrency=2 --filter '@objectstack/runtime^...' build` VERDICT command-exit 0.", "gates": "Local at b7838f512f: `node scripts/pm/dispatch-gates.mjs --commands` (no paths; change set = the PR's 7 paths vs merge base 4443014630) derived 90 families; all 90 run, exit captured per command before any pipe: 89 exit 0, `pnpm check:dual-build-cjs-loads` exit 3 (PREREQUISITE NOT MET, only the runtime closure built) = NOT MEASURED. `dispatch-gates --ran` on the exit-coded record: '90 derived, 89 run, 1 NOT-MEASURED, 0 UNRUN', exit 0. The derivation warned its tree is 43 commits behind origin/main (5 derivation files changed); origin/main not merged per the dispatch order. `node scripts/pm/overlap-check.mjs --branch=HEAD` vs origin/main ab1c734a72: merges cleanly with origin/main; VERDICT overlap exit 1 for the conflict with #35103 (PR-b) in packages/runtime/src/domains/mcp-authoring.ts, expected (PR-b carries its own copy of the fold and is rebuilt on this head). CI on b7838f512f: in_progress at report time (not awaited, per os-dev).", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm (Clause-②: yes (widening))", "mcp_calls": "0", "api_writes": "2 — relay `issue_patch` on PR #35059 body (POST /repos/objectstack-ai/objectstack/dispatches -> run 44238436171 success, read-back 18519 bytes sent = stored, identical); this os-dev-report comment on #34766 via scripts/pm/post-stamped.mjs. Plus one `git push` (not REST): 2ef0ca896e..b7838f512f.", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · noted, not filed (reach not measured) · `canonicalMetaUrlType` and `unrecognisedMetaTypeRefusal` in packages/spec/src/meta-spelling/metadata-url-spelling.ts read META_URL_TO_SINGULAR (a plain frozen object) by bracket and by `in`, so inherited Object.prototype names count as recognised spellings and fold to non-strings: `canonicalMetaUrlType('constructor')` answers the Object function, `('__proto__')` an object (measured against the built spec at b7838f512f). What a public /meta door answers for such a segment was not measured, so no reach and no card; recorded in the PR's Acceptance notes · dedupe words: canonicalMetaUrlType prototype, META_URL_TO_SINGULAR hasOwnProperty, unrecognisedMetaTypeRefusal constructor" ], "deviations": "Commit trailers use the model-free pair from AGENTS.md (Co-authored-by: Claude) rather than the harness's model-named trailer, per os-dev.md. No WIP push before the closure build (the build ran before any edit, so no work was only in the tree) to keep the dispatch's one push. The PR body keeps the previous session's attribution comment and footer; only the trailer signature was replaced with this seat's.", "files_changed": [ "packages/runtime/src/domains/mcp-authoring.ts", "packages/runtime/src/domains/mcp-authoring.test.ts" ], "line_budget": "n/a — no skills/** or ratcheted ledger touched (+83/-7 across the two files)" }objectstack-fleet commentedon Nov 18, 2026
repo:objectstack#1 · os-warren · session_01JQwxbWDsbbJizuYnDwBxT8
os-dev-report
{ "issue": 34766, "status": "done", "branch": "claude/issue-34766-mcp-draft-door-write", "pr": "https://github.com/objectstack-ai/objectstack/pull/35103", "pr_a_head": "claude/issue-34766-mcp-draft-door-read@c50358b59c97a6bfd111f4c215a9c5ffe3167c57 (PR #35059, M1-c pushed: b7838f512f..c50358b59c, one push)", "session": "session_01JQwxbWDsbbJizuYnDwBxT8", "premise_still_valid": true, "summary": "PR-b finished from resume point 91c7ac4ed7 to a94722fca2. (1) Merged PR-a's M1-b head b7838f512f: the conflict in mcp-authoring.ts resolved to ONE fold helper, PR-a's canonicalTypeOf; PR-b's local copy deleted and list_drafts' per-draft fold routed through it. (2) M1-c addendum: on PR-a, get_metadata_item and list_metadata_items ask metaTypeReadRefusal of the folded type with the human as caller before any protocol read and before the item/list gates, every state branch; merged that head (c50358b59c) into PR-b and applied the rule there: save and delete ask metaTypeWriteRefusal (PUT/DELETE) before the walled verdict and before any write (the D1 authoring admission does NOT cover it: /meta asks the type-level write admission separately at its entry), and the save verdict and each list_drafts verdict ask metaTypeReadRefusal and are withheld (verdict null + verdictWithheld) for a type the human may not read. (3) check:durability-log-level: the reading held (the outer catch returns refusalFromThrown on its only path, an isError envelope), so the site is declared in FAILURE_PROPAGATION_SITES (mcp-authoring.ts::execute, refusalFromThrown, via return); no log added. (4) Merged origin/main 0e46840fca (conflict in initialize-selection-rule-34686.test.ts: both describes kept). (5) check:system-context-census went red on PR-b's openWriter isSystem read: row 55b names openWriter and the door, register regenerated with --write. (6) PR title WIP prefix dropped, body rewritten via relay issue_patch with the six 维护者速读 lines current, Part of #34766 kept. PM assumption verified: an inherited member's name as type (constructor, toString) is refused on save and delete and writes nothing (pinned on the real protocol), but the protocol answers it as a 500 fault, not a 4xx (see out_of_scope_findings).", "tests": "At 1294fe181c (final head a94722fca2 adds only content/docs/permissions/system-context.mdx): os-verify-lock 'pnpm --filter @objectstack/runtime exec vitest run --project local --maxWorkers=2 src/domains/mcp-authoring.test.ts' -> Tests 35 passed (35), VERDICT command-exit 0. metadata-protocol protocol.draft-publish-verdict.test.ts + sys-metadata-repository.draft-drain.test.ts (reads the durability script) -> 72/72, exit 0. mcp full suite -> Test Files 71 passed (71), Tests 1269 passed (1269), exit 0 (mcp and metadata-protocol trees unchanged since that run). Typecheck runtime / mcp / metadata-protocol -> VERDICT command-exit 0 each (runtime re-run at 1294fe181c). Ablations at 1294fe181c via scripts/ablation-replace.mjs under the lock, subject imported relatively from src (no dist on path), each restore blob == HEAD 04e3fe15e4fc and git diff HEAD empty: (a) no verdict in save reply 2 failed/33 passed; (b) no package requirement 2 failed/33; (c) no type-level write admission 1 failed/34 (the write-admission pin); (d) no type-level read admission 3 failed/32 (PR-a read pin, save-verdict pin, list_drafts pin). PR-a at c50358b59c: runtime mcp-authoring.test.ts 22/22, runtime typecheck exit 0, ablation of the admission (anchor 1->0, blob 31253aca9077->2d4d2d940249) 1 failed/21 passed (the new type-admission pin), restored blob == HEAD. Durability gate before the declaration: exit 1 at mcp-authoring.ts:733 guarding saveMetaItem; after: exit 0 (self-tests 68 + 86 cases).", "gates": "Local at a94722fca2: dispatch-gates --commands (no paths; 17 paths vs merge base 0e46840fc) derived 125 families; all 125 run in foreground chunks, exit captured per command before any pipe: 125 exit 0 (check:dual-build-cjs-loads exit 0 this time). dispatch-gates --ran: '125 derived, 125 run, 0 NOT-MEASURED, 0 UNRUN', exit 0. check-platform-checklist --changed-from origin/main exit 0 (0 anchors lost). dispatch-gates --tier exit 0 (no path-derived mandate). check-governed-merges --branch HEAD exit 0: NOT governed, +2170/-14 over 17 files (under 3000). overlap-check --branch=HEAD VERDICT clean exit 0 vs origin/main 6f2bd4f84c, #35059, #35122, #34817. CI on a94722fca2 at report time: 10 success, 17 skipped, 19 in_progress, 0 failure (not awaited). CI on PR-a c50358b59c: 38 success, 16 skipped, 0 failure.", "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm (Clause-②: yes (widening))", "mcp_calls": "0", "api_writes": "2 — relay writes: relay issue_patch on PR #35103 title+body (POST /repos/objectstack-ai/objectstack/dispatches -> run 44255216587 success, read-back 10087 bytes sent = stored, identical); this os-dev-report comment on #34766 via scripts/pm/post-stamped.mjs. git pushes (not REST): PR-b 91c7ac4ed7..b39f0f8ea5, ..ffb4f7b145, ..1294fe181c, ..a94722fca2; PR-a b7838f512f..c50358b59c.", "open_questions": [], "security_findings": "withheld", "out_of_scope_findings": [ "class: a · reach: not measured at a public door (measured only on the protocol's public saveMetaItem/deleteMetaItem through this unshipped MCP door) · carrier: none · noted in the PR's Acceptance notes, not filed · evidence: real ObjectStackProtocolImplementation on SqlDriver, saveMetaItem({ type: 'constructor', ... mode: 'draft' }) throws SERVICE_UNAVAILABLE 503 'The metadata store could not be read' (protocol-discovery-and-bases.ts rethrowUnlessMetadataStoreUnprovisioned) and deleteMetaItem({ type: 'constructor', state: 'draft' }) throws TypeError 'type.endsWith is not a function' (metadata-url-spelling.ts:168 singularCandidates via canonicalizeMetaRequestType) — the same canonicalMetaUrlType plain-object lookup PR-a recorded; nothing is written, but a caller mistake is answered as a store outage · dedupe words: canonicalMetaUrlType prototype, META_URL_TO_SINGULAR hasOwnProperty, saveMetaItem constructor type 503" ], "deviations": "Commit trailers use AGENTS.md's model-free pair, not the harness's model-named trailer. PR body keeps the first-line attribution comment from pr_create and replaces the previous seat's trailer with this seat's (the relay's issue_patch requires a trailer-signed PR body). File surface widened beyond the hand-off list by two gate-driven edits: scripts/check-durability-degradation-log-level.mjs (FAILURE_PROPAGATION_SITES row) and content/docs/permissions/system-context.mdx (row 55b + regenerated register). PR-a's body was not updated for M1-c (one push only, per the addendum); its changeset was. A first gate run on PR-b was stopped (recorded PIDs) when the M1-c addendum arrived and a second was cut by the container restart; the reported run is the third, on the final head.", "files_changed_this_round": [ "packages/runtime/src/domains/mcp-authoring.ts", "packages/runtime/src/domains/mcp-authoring.test.ts", "packages/mcp/src/initialize-selection-rule-34686.test.ts (merge resolution)", "scripts/check-durability-degradation-log-level.mjs", "content/docs/permissions/system-context.mdx", ".changeset/34766-mcp-draft-door-write-tools.md", "PR-a: packages/runtime/src/domains/mcp-authoring.ts, its test, .changeset/34766-mcp-open-draft-door-read.md" ] }objectstack-fleet commentedon Nov 18, 2026
repo:objectstack#1 · os-warren · session_01JQwxbWDsbbJizuYnDwBxT8
os-dev-report
{ "issue": 34766, "status": "done", "branch": "claude/issue-34766-mcp-draft-door-write", "pr": "https://github.com/objectstack-ai/objectstack/pull/35103", "session": "session_01JQwxbWDsbbJizuYnDwBxT8", "premise_still_valid": true, "summary": "Merge-main round after the read half (#35059) squash-merged as 78f3ab2aa3. Merged origin/main 99a0e4fbfc into 7cbb4252a9 as 8709c889fe (one push). Conflicts: add/add on packages/runtime/src/domains/mcp-authoring.ts and its test, content conflict on packages/mcp/src/skill-md-surface-guard.test.ts. The branch had merged the read half's final head c2fa38c8b4, whose blobs equal main's (78f3ab2aa3 and origin/main) for all seven of that half's files, so each conflicted path took the branch side = main's landed content plus the write half only; the single canonicalTypeOf helper (1 definition) and the type-level read admission (metaTypeReadRefusal via typeAdmission('read'), asked on both read tools before any read) are intact. How the delta was checked: git diff --name-only origin/main...HEAD and the two-dot form both name the same 14 files, none of the read half's other four (its changeset, docs/design/mcp-local-first-door.md, mcp.ts, check-route-envelope.mjs); per file, the patch origin/main..HEAD is byte-identical (git hash-object of the patch minus its index line) to the write half's own pre-merge patch: 78f3ab2aa3..7cbb4252a9 for the three conflicted files, merge base aef42cba4e..7cbb4252a9 for the other eleven; 14/14 SAME. Changesets: the read half's .changeset/34766-mcp-open-draft-door-read.md is main's blob 1f9ae7dcb1, unchanged and out of the diff; the branch carries only its own two (34766-mcp-draft-door-write-tools.md, 34766-mcp-draft-door-write.md), neither edited this round. PR body rewritten through relay issue_patch: line 2 Fixes #34766 (right after the harness attribution line), Stacked-on line dropped, six 维护者速读 lines current (the risk line no longer names the permission scopes, per the disclosure discipline), Tests and Verification brought to 8709c889fe; title unchanged, PR still draft. Noted without editing: the write-tools changeset (from an earlier round) gives one example type and names the two admission scopes, the same wording as the landed read-half changeset.", "tests": "At 8709c889fe, one os-verify-lock run (VERDICT command-exit 0), each exit captured before any pipe: runtime 'vitest run --project local --maxWorkers=2 src/domains/mcp-authoring.test.ts' exit 0, Tests 36 passed (36); runtime '--project repo src/metadata-registry-question-producers.test.ts' exit 0, 3 passed (3); metadata-protocol protocol.draft-publish-verdict + sys-metadata-repository.draft-drain + protocol.invalid-metadata-422-face-inventory + protocol.destructive-409-face-inventory exit 0, Test Files 4 passed (4), Tests 132 passed (132); mcp full suite exit 0, Test Files 71 passed (71), Tests 1269 passed (1269); typecheck runtime / mcp / metadata-protocol exit 0 each (check:test-typecheck OK, runtime 27 files/183 errors/66 signatures held, mcp 6/53/8). Built first: 'pnpm --workspace-concurrency=2 --filter @objectstack/runtime... --filter @objectstack/mcp... --filter @objectstack/metadata-protocol... build' VERDICT command-exit 0. Ablations re-run on the final head 8709c889fe, the two that pin what the order names as the read half's authoritative code (the one fold helper and the type-level read admission), via scripts/ablation-replace.mjs under the lock with an EXIT/INT/TERM trap restoring git checkout HEAD -- absolute path; the suite imports the module relatively from src (no dist on the subject's path): (1) fold, anchor \"return typeof folded === 'string' ? folded : type;\" -> \"return type; // ABLATION: no fold\", anchor 1 -> 0, blob 647fb95516d8 -> 4fd64eae6d48, run 3 failed / 33 passed (the read half's plural-fold pin, its folded-type pin, the write half's save/verdict/discard fold pin); (2) read admission, typeAdmission's read arm -> undefined, anchor 1 -> 0, blob 647fb95516d8 -> 3dc4054f9764, run 3 failed / 33 passed (the read half's type-admission pin, the save-verdict pin, the list_drafts pin). After each: hash-object == HEAD blob 647fb95516d8, git diff HEAD 0 lines; git status --porcelain 0 lines at the end.", "gates": "Local at 8709c889fe: dispatch-gates --commands --repo objectstack-ai/objectstack (no paths; 14 paths vs merge base 99a0e4fbf, committed 14, working tree 0, untracked 0) derived 125 families; all 125 ran sequentially, exit captured per command before any pipe: 123 exit 0, check:skill-examples and check:dual-build-cjs-loads exit 3 (PREREQUISITE NOT MET: unbuilt packages); after 'pnpm build --concurrency=2' under the lock (VERDICT command-exit 0, Tasks 120 successful / 120, tree clean afterward) both re-ran exit 0 (345 prose examples type-check; 124 require entry points across 72 packages load). dispatch-gates --ran with 'COMMAND :: exit CODE' records: '125 derived, 125 run, 0 NOT-MEASURED, 0 UNRUN' (a derived zero), exit 0. dispatch-gates --tier exit 0. check-governed-merges --branch HEAD exit 0: NOT governed, 0 of 14 paths hit the register, 1088 changed lines (+1032 / -56) under 3000. overlap-check --branch=HEAD exit 0, VERDICT clean: origin/main 99a0e4fbfc merges cleanly; #35156 shares packages/mcp/src/initialize-selection-rule-34686.test.ts and packages/mcp/src/mcp-server-runtime.ts and merges cleanly; #34817 shares content/docs/permissions/system-context.mdx and merges cleanly. check-platform-checklist --changed-from origin/main exit 0 (26 anchors judged, 0 lost). check-nul-bytes exit 0. CI on 8709c889fe at report time (not awaited): success Build Core, Lint & Repo Gates, Governed Surface Queue Guard, Dogfood Regression Gate, Test UI, Live E2E UI, Type Check consumer/debt/source gates, Lint ESLint and the Lint sub-jobs; in_progress Test Core 1-10/10, Type Check workspace, Check Changeset, PR-body guards (a second run after the body edit); 27 success, 13 in_progress or queued, 17 skipped, 0 failure.", "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm (Clause-②: yes (widening))", "mcp_calls": "0", "api_writes": "2 — relay issue_patch on PR #35103 body only (POST /repos/objectstack-ai/objectstack/dispatches, run 44278080095 conclusion success, read-back 13112 bytes sent = 13112 stored, identical); this os-dev-report comment on #34766 via scripts/pm/post-stamped.mjs (POST /repos/objectstack-ai/objectstack/issues/34766/comments through the relay). git push (not REST): 7cbb4252a9..8709c889fe, one push.", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "class: a · reach: not measured at a public door (only on the protocol's saveMetaItem/deleteMetaItem through this unshipped MCP door) · carrier: none · noted in the PR's Acceptance notes, not filed (carried from the earlier round, unchanged) · evidence: an inherited member's name as type (constructor) on the real protocol: the save answers 503 SERVICE_UNAVAILABLE and the discard a TypeError in the spelling module's fold, not a 4xx unknown-type refusal; nothing is written · dedupe words: canonicalMetaUrlType inherited member, constructor metadata type, plain-object fold" ] }objectstack-fleet commentedon Nov 18, 2026
repo:objectstack#1 · os-warren · session_01JQwxbWDsbbJizuYnDwBxT8
Claim: PM loop round 2 (area o1-C, PR-b after PR-a #35059 merged as 78f3ab2) · 2026-11-18T09:45Z
Session:
session_01JQwxbWDsbbJizuYnDwBxT8Account:
os-warrenBranch:
claude/issue-34766-mcp-draft-door-writeWorktree:
objectstack-issue-34766-bDomain:
domain:serverSeat:
repo:objectstack#1File surface: PR #35103's 14 files at
8709c889fe(packages/runtime/src/domains/mcp-authoring.tswrite tools + test, the metadata-protocol draft-verdict tests,packages/mcptests,scripts/check-durability-degradation-log-level.mjssite row, two PR-b changesets).Container & model:
M,mode:subagent,model: TIER_DEFAULT (runtime source, no governed path),effort: highClause-②: yes (widening)
Metadata-protocol: none
Responsibility:
n/a — not a defect cardThread-read: 6974765046
Premise: holds — PR-a merged; PR-b now carries the rest of the card, so its body says
Fixes #34766. This claim records PR-b's branch, which claim 6968309702 named only in prose.Serial constraints cleared: overlap-check on HEAD clean against origin/main 99a0e4f; #35156 shares two mcp files and merges cleanly.
Resume-from:
claude/issue-34766-mcp-draft-door-write@8709c889fe206ee7e612fe3970fe86e87a30cf2cPre-claim lane:
domain:server.Pre-claim deps: #35059 MERGED.
Prior rulings read: as claim 6968309702, plus seat M1-c (type-level read and write admission, rule level).
Lease
o1-C(seat post #34366).objectstack-fleet commentedon Nov 18, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Regraded p1 → p2: p1 is now kept for queue jumps. The maintainer, in triage's session: 「以后我都会要求专门作有一个专题…p1 是不是应该留给真的需要插队的」. He then confirmed triage's review of every open p1 (「确认」). Development is dispatched by epic, and an epic orders its own work. p1 is kept for cards that must jump ahead of it: a regression users meet in a released version, a broken hosted first impression or core flow, data loss or a breach in normal use, or a release or customer blocker.
Why this card: a child of epic #34659 (MCP build line): the epic's structure orders it. Any claim on the card is unchanged.
objectstack-fleet commentedon Nov 18, 2026
repo:objectstack#1 · os-warren · session_01JQwxbWDsbbJizuYnDwBxT8
os-dev-report
{ "issue": 34766, "status": "done", "branch": "claude/issue-34766-mcp-draft-door-write", "pr": "https://github.com/objectstack-ai/objectstack/pull/35103", "session": "session_01JQwxbWDsbbJizuYnDwBxT8", "premise_still_valid": true, "summary": "S1 fixed in code, not only stated. draftPublishJudgement (protocol-authoring-gate.ts plus the class method in protocol.ts) takes an optional packageClosures map. Given one map, a package's closure is collected on its first draft and reused; without it, every call collects, as before. The save passes no map, so its behaviour is unchanged. list_drafts creates one map per call and hands it to every judgement of that call. The loop comment says why each per-draft read stays: the strict draft read is the item gate's own read, and like every /meta draft read it folds its own verdict into _diagnostics; the judgement reads the stored row (the served copy is not that) and returns each finding whole, hint included. The S1 count was not quite right: the strict draft read runs its own judgement, so before this fix every draft collected the closure twice, 2N per package. Now it is N + 1; the remaining N are the /meta draft read's own cost. N2 is folded: the module header now says the list's rows run no item gate and each row's verdict is gated. The changeset for metadata-protocol (on this branch only, not on main) gains one sentence about the map. One deviation: the harness trailer named the model, so the commit-card-trailers pre-push hook refused the first push. The four unpublished commits were reset --soft to 8709c889fe and recommitted as one commit with a model-free trailer, tree 98ddc83bd2 unchanged; no force-push. Head 50b2d84512.", "tests": "Tree 98ddc83bd2, head 50b2d84512, under the verify lock. runtime vitest src/domains/mcp-authoring.test.ts 'Tests 37 passed (37)'. metadata-protocol vitest src/protocol.draft-publish-verdict.test.ts 'Tests 62 passed (62)'. mcp full suite 'Test Files 71 passed (71) · Tests 1269 passed (1269)'. Typecheck exit 0 for metadata-protocol, runtime (tsc plus check:test-typecheck) and mcp. The first runtime typecheck was red because vi was not imported in the test file; that is fixed. New pins: (1) runtime, real protocol and SQL store: 3 flow drafts in one package, one list_drafts call makes N + 1 = 4 collectBatchPendingDeclarations calls, and each listed verdict toEquals the same draft judged alone (those three solo calls make 3 collections). (2) protocol: a pass of 3 judgements with one map makes 1 collection, and the answers toEqual 3 calls without a map, which make 3. Ablations, all through scripts/ablation-replace.mjs with a trap restore: (a) runtime, gatedDraftVerdict(..., new Map()): anchor 1 -> 0, 'expected collectBatchPendingDeclarations to be called 4 times, but got 6 times', 1 failed; restored blob == HEAD 4797fb94e88e, git diff HEAD empty. (b) protocol, map .set deleted: anchor 1 -> 0, 'expected ... 1 times, but got 3 times', 1 failed; restored blob == HEAD 638ced616c45, git diff HEAD empty. Both subjects are imported from src (runtime module relative; protocol test imports ./protocol.js), so no dist leg was needed. The runtime real-protocol pin resolves @objectstack/metadata-protocol through dist, which was rebuilt with the change by turbo build (VERDICT command-exit 0) before the runs.", "gates": "dispatch-gates --commands --repo objectstack-ai/objectstack: 125 commands (14 paths vs merge base 99a0e4fbf). Each ran with its exit captured before any pipe; 123 exited 0. pnpm --filter @objectstack/spec run check:skill-examples and pnpm check:dual-build-cjs-loads exited 3 (PREREQUISITE: unbuilt packages). After turbo run build --filter='./packages/**' (81/81, VERDICT command-exit 0) both exited 0 ('345 prose examples type-check'; '124 published require entry point(s) across 72 package(s) load'). dispatch-gates --ran with the exit codes recorded: '125 derived, 125 run, 0 NOT-MEASURED, 0 UNRUN', a derived zero. check-governed-merges --branch HEAD exit 0: NOT governed, 1175 lines. overlap-check --branch=HEAD: 'VERDICT clean exit 0' against origin/main 910306b632 and #34817. check-nul-bytes exit 0. check-platform-checklist not owed: no export is renamed or removed. CI check-runs on 50b2d84512: in_progress at report time, not waited on.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "2 — relay issue_patch PATCH /repos/objectstack-ai/objectstack/issues/35103 (PR body; read-back identical, 16321 bytes); post-stamped POST /repos/objectstack-ai/objectstack/issues/34766/comments (this os-dev-report). Plus one git push (not REST).", "open_questions": [], "security_findings": "none", "out_of_scope_findings": ["carrier: none · noted, not filed: every /meta strict draft read runs a full publish judgement for its _diagnostics, which includes collecting the package closure. So a list that strict-reads N drafts still pays N collections, the read's own cost. A cost observation, not a defect; recorded in the PR body's What changes."] }objectstack-fleet commentedon Nov 18, 2026
repo:objectstack#1 · os-warren · session_01JQwxbWDsbbJizuYnDwBxT8
os-dev-report
{ "issue": 34766, "status": "done", "branch": "claude/issue-34766-mcp-draft-door-write", "pr": "https://github.com/objectstack-ai/objectstack/pull/35103", "session": "session_01JQwxbWDsbbJizuYnDwBxT8", "premise_still_valid": true, "summary": "Merge-main-only head hop before landing: origin/main at ba6556c617bc201f1d4b635c609b28b589583c36 merged into the branch (was K=16 first-parent behind, old merge-base 99a0e4fbfc). Old head 50b2d84512dc152c4dc384385f475ba46915475c, new head 2d6a72269b60b270ca669ea19da843d0ec6b3ddf, fast-forward push, merge commit only, clean merge, no authored change. Patch unchanged: git patch-id --stable is 7a56550f8475e7a11875203af3a42cdbf7a7a6dd before (git diff 99a0e4fbfc...50b2d84512) and after (git diff origin/main...HEAD); same 14-file list; 12 of 14 blobs identical to the old head, the other two (packages/mcp/src/mcp-server-runtime.ts, packages/mcp/src/initialize-selection-rule-34686.test.ts) were also touched by main outside the PR hunks. Hop note posted on PR #35103 as comment 6979665058; L1 6979171194 and contract reviews 6975604920 / 6979194459 judge the same patch-id and carry.", "tests": "On 2d6a72269b, after building the runtime and metadata-protocol dependency closure under os-verify-lock (VERDICT command-exit 0): runtime vitest src/domains/mcp-authoring.test.ts Test Files 1 passed, Tests 37 passed (37); metadata-protocol vitest src/protocol.draft-publish-verdict.test.ts Test Files 1 passed, Tests 62 passed (62); lock VERDICT command-exit 0. No ablation: no tested behaviour changed (merge only).", "gates": "Local subset on 2d6a72269b: pnpm --filter runtime + metadata-protocol typecheck, lock VERDICT command-exit 0; node scripts/pm/check-governed-merges.mjs --branch HEAD exit 0, 0 of 14 paths governed, NOT governed; node scripts/pm/overlap-check.mjs --branch=HEAD VERDICT clean exit 0 (merges cleanly with origin/main and #34817). Derived-family sweep not run by order (dispatch scoped local re-runs to these). CI on 2d6a72269b at report time: 42 check-runs, 24 completed (10 success, 15 skipped, 0 failure), 18 in_progress.", "dogfood_battery": "n/a: no ! in the PR title and Clause-2 arm is (widening), not (narrowing)", "mcp_calls": "0", "api_writes": "2 relay writes via scripts/pm/post-stamped.mjs (fleet-write dispatch): POST issues/35103/comments (hop note, comment 6979665058); POST issues/34766/comments (this os-dev-report). git push is not a REST write.", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [] }objectstack-fleet commentedon Nov 18, 2026
repo:objectstack#1 · os-warren · session_01JQwxbWDsbbJizuYnDwBxT8
Close-out · 2026-11-18T14:52Z: both PRs of this card have merged. PR-a #35059 (the open draft door's reads) as
78f3ab2aa3, and PR-b #35103 (saves and discards drafts; each save answers with its publish verdict; one package closure perlist_draftscall) as2d3320535fat 2026-11-18T14:21:59Z. Reviews: L1 6975500299 / 6979171194, contract review 6975604920 / 6979194459. No publish tool, per #32591 A. The inherited-name refusal is carried by #35120. Leaseo1-Creleased.