Skip to content

docs(design): MCP local-first door record, brought to the #34659 and #34691 rulings - #34813

Merged
objectstack-fleet[bot] merged 6 commits into
mainfrom
claude/issue-34659-mcp-design-record
Nov 17, 2026
Merged

objectstack-fleet[bot] merged 6 commits into
mainfrom
claude/issue-34659-mcp-design-record

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Yibo Wang · project thread

Part of #34659
Supersedes #34675

Clause-②: no
Metadata-protocol: none

Original text: the three commits by the first epic seat (session_01Q4EjjMnXJdSZifpEN5i7aU), carried from #34675's branch claude/sharp-cray-3nr8u9 and rebased onto main unchanged. This PR adds one commit that brings the record to the rulings. It decides nothing new.

维护者速读

What changes

One file, docs/design/mcp-local-first-door.md (+53 / -39 in this PR's own commit; +168 against main with the original three commits).

Every changed statement

Where Old New Follows
Status draft for the ruling; nothing adopted; D1–D7 and E1–E4 open design record of the rulings, each record id and date; decides nothing new 6940528935, 6943126855 / 6943149235, 6943116536, 6944452341
Audience the seats, and the maintainer deciding them the seats that implement the milestones the same records (nothing is left to decide)
Readings counts on 62d9d0d99 and cloud 53a5844 the same, plus: objectstack file:line re-read on 6091b645; cloud readings not re-taken re-measurement
Current state, intro (none) none of the named cards has merged; each row names its carrier milestone table, #34659 body
types.ts :96-102 :97-102 (96 is the docblock end; file unchanged since the reading) re-measurement
Authoring rule count 68 rules: 40 publish and CLI, 28 CLI alone 69 rules (68 on 62d9d0d99): 40 and 29 re-measurement on 6091b645
Gate range protocol-authoring-gate.ts:430-445 :430-447 re-measurement
draftPublishVerdict :713 :714 (713 is its docblock line) re-measurement
OAuth on REST not accepted not accepted; E4 A keeps it so 6940528935 (E4 A)
CLI and route gaps no carrier #34777 (draft register, item lint), #34774 (restriction-profile route) M-2 cards, #34659 body
Runtime-dead shapes no carrier among #34776's six publish-time checks 6940528935 (E1 A); #34776
Cloud build (as read) labelled "read on cloud 53a5844; not re-read" could not re-verify
initialize instructions mcp-server-runtime.ts:1771 DEFAULT_HTTP_INSTRUCTIONS, :1772-1773 (1771 was the docblock end at the reading commit too); carried by #34686, first PR #34790 draft re-measurement; #34659 body
Ask persona, skill, cards no carriers #34687, #34685, #34687 #34659 body
Corrections table E3 not named; "(E4)" "(Design A; E3)"; "(E4 A)" 6940528935
Design A (no ruling line) Ruled D2 A, D3 A, D4 A, E3; cards #34766 #34774 #34776 #34777 #34778 6940528935; #34659 body
Design A, lint rules two rules join the registry the same, plus: E1 A makes them publish-time checks; #34776 carries them with four more 6940528935 (E1 A)
Design B the full loop, "E3" in the download row "Ruled E3 phased: only the flow test run is built now (#34779); the other steps wait for a request"; the table kept as design 6940528935 (E3 phased)
Design C 1 none falls back and says so none asks back over the candidates if any (E2), otherwise falls back and says so; #34685, #34686 6943126855 (F1 B)
Design C 2–4 no carriers D5 A and #34686; #34718; #34689 (on hold) 6940528935; #34659 body
Design C 5 E2 open; candidates defined as members whose name, label or synonym contains the term; needs the maintainer's word E2 ruled A by F1 B: candidates list, never auto-selected; candidates never count as a match, D3's exact match stands and D3 gains a note; which members, shape, order and cap are #34761's and #34763's 6943126855, 6943149235
Design D four changes the same, routed whole to the cloud PM (M-4; objectstack-ai/cloud#4842); item 1 adds E1 A's order (check first, prose once stable) 6940528935 (E1 A); 6944452341
Measurements intro (none) taken once by the first epic seat, before the rulings; kept as history —
M5 needs Design A needs Design A (#34780) M-3 cards, #34659 body
Reading 5 "it is the case E2 exists for" E2 A answers it in the tool result: candidates, never selected (#34761, #34763) 6943126855
Decisions "Decisions asked of the maintainer": E1–E4 with A/B options "Decisions (ruled)": E1 A enforce first, E2 A by F1 B, E3 phased, E4 A, S2 A, S3 A; S1 A noted as touching nothing; maintainer quoted verbatim 6940528935, 6943126855, 6943116536
Milestones M-0 to M-4 as proposed, "revises the card's" as on #34659's body, card numbers per milestone; M-0 as history 6944452341; #34659 body
Not verified, locale open question carried by #34720, #34721, #34787 #34659 body
Not verified, cloud (none) every cloud reading, as of cloud 53a5844 could not re-verify

Tests

Docs only: no package, test or gate code changed, so there are no unit tests to run and no ablation applies.

Acceptance notes

Verification

Head a986e35d.

Tier: node scripts/pm/dispatch-gates.mjs --repo objectstack-ai/objectstack --tier docs/design/mcp-local-first-door.md exit 0, "Model tier — no path-derived mandate: the surface hits none of the 4 declared glob(s)". No mandate is named, so this body carries no Served-tier line.

Local derived gates: 16 derived, 16 run, every exit 0

node scripts/pm/dispatch-gates.mjs --repo objectstack-ai/objectstack --commands derived 16 commands against merge base 6091b645. All exited 0:

  • node scripts/check-adr-links.mjs and --self-test
  • node scripts/check-closing-keyword-parity.mjs and --self-test
  • node scripts/check-comment-mask-corpus.mjs (22653 files, 0 disagree)
  • node scripts/ci/plan-test-core-shards.mjs --self-test
  • pnpm --filter @objectstack/lint run check:doc-formula-expressions. The first run exited 3, a prerequisite refusal (lint and formula not built), so it measured nothing. After pnpm exec turbo run build --concurrency=2 --filter=@objectstack/formula --filter=@objectstack/lint under the verify lock (VERDICT command-exit 0), the re-run exited 0.
  • pnpm check:adr-anchors, check:ci-filter-parity, check:cross-package-test-inputs, check:doc-authoring, check:driver-memory-census, check:gitlink-declared, check:nul-bytes, check:refd-timer-probe, check:watch-hint-literal

dispatch-gates --ran with every command and its exit code: "16 derived famil(ies) accounted for — 16 run, 0 NOT-MEASURED (a DERIVED zero — all 16 recorded an exit code and none of them is 3)". A control-byte self-scan of the file found nothing.

CI runs everything else (artifact rosters, wide-population families, type-check lanes).

Re-measurement of every objectstack file:line, on 6091b64

Generated by Claude Code

…ion card

Design and measurement plan for the open-source MCP draft door, the local
export/simulate/submit loop, the ask-data skill, and the cloud door changes.
Draft only: every decision in it is open.

Claude-Session: https://claude.ai/code/session_01Q4EjjMnXJdSZifpEN5i7aU
Co-authored-by: Claude <noreply@anthropic.com>
Fills the Measurements table: open door 40 KB of tools and 98 B of
instructions; cloud door 36 KB of tools, 33 KB first rules read; dataset
term match 6 of 30; ask-skill pilot 3 of 12 to 9 of 12 at one run per cell.

Claude-Session: https://claude.ai/code/session_01Q4EjjMnXJdSZifpEN5i7aU
Co-authored-by: Claude <noreply@anthropic.com>
The eval lane keeps accuracy figures out of public text until the
maintainer sets what may be published; the direction stays, in words.

Claude-Session: https://claude.ai/code/session_01Q4EjjMnXJdSZifpEN5i7aU
Co-authored-by: Claude <noreply@anthropic.com>
…34691 rulings

Status, decisions, Design C item 5 and the milestone table now follow the
recorded rulings (6940528935; F1 B 6943126855 / 6943149235; 6943116536;
6944452341). File:line references re-read on 6091b64; cloud readings kept
as read on cloud 53a5844 and named under Not verified.

Claude-Session: https://claude.ai/code/session_01WGufzfR33NbV51QQU6R6bm
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet objectstack-fleet Bot added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Nov 17, 2026
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Nov 17, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzfWpJ96QY9T7d8DvFg

L1: ACCEPT · 2026-11-17T11:34Z

Head-sha: a986e35
Reviewer: seat 3 L1-c, for the design record of epic #34659 (no card; Part of #34659; supersedes #34675).

席位核对

PR shape. Draft, base main, Part of objectstack-ai/objectstack#34659, Supersedes objectstack-ai/objectstack#34675; no closing keyword. One file, docs/design/mcp-local-first-door.md, which is in the epic seat's file territory on #34659's body.

Governed / changeset. check-governed-merges --pr 34813: 0 of 1 path, NOT governed, 168 lines. docs/design/** ships in no package, so skip-changeset (labelled) is the right route.

Check-runs at a986e35. 49 runs, every one success or skipped; Lint & Repo Gates and TypeScript Type Check success, Check Documentation Links success.

Carried commits unchanged. The first three commits have the same git patch-id --stable as #34675's three (7a112ff1…, acdbd4d9…, 7dbf9c69…), so only a986e35d is new text.

Every quoted ruling is verbatim (the area's ask). Read against the records:

No new decision. Each changed line traces to a record, to #34659's body or to a re-measurement. Design B's "only the flow test run is built now" is E3 phased; M-2/M-3 "held until the maintainer's go on the M-1 summary" is the body's restart-when line; Design C 1 and 5 execute F1 B without fixing a matcher.

Re-measurement spot check on 6091b64. DEFAULT_HTTP_INSTRUCTIONS at mcp-server-runtime.ts:1772-1773; McpAuthoringToolRegistry at types.ts:97-102; the draft branch state !== 'active' at protocol-authoring-gate.ts:430; draftPublishVerdict at :714; AUTHORING_RULES 69 = 40 CLI_AND_RUNTIME + 29 CLI_ONLY; acceptOAuthAccessToken at http-dispatcher.ts:767. All as the record says.

Must-fix

None.

Should-fix

Notes

o3-E lands (non-governed). A later push owes an L1-c delta read.

L1-c should-fix S1 on PR #34813 (comment 6946879505): #34659's body lists #34789 in M-1.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzfR33NbV51QQU6R6bm
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzfWpJ96QY9T7d8DvFg

L1: ACCEPT (delta) · 2026-11-17T11:37Z

Head-sha: bb28d38
Delta from the ACCEPT at a986e35 (comment 6946879505).

No open findings.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzfR33NbV51QQU6R6bm

Landing · 2026-11-17T12:06Z

Probe Reading
Governed check-governed-merges.mjs --pr 34813: NOT governed, one file docs/design/mcp-local-first-door.md, 168 changed lines
Head bb28d382b62c61185b22d2cd4cda22aa2429e620 (S1 one-line fix + clean merge of origin/main; K was 15)
Review L1-c ACCEPT 6946879505 at a986e35, delta ACCEPT 6946952976 at bb28d38; no seat L2 owed (not governed, no contract face)
Checks check-runs on bb28d38 completed success or skipped (Test Core, TypeScript Type Check, Lint & Repo Gates aggregates success)

State: ready + auto-merge armed. No card (Part of #34659); supersedes draft #34675, which seat 3 closes once this merges.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 17, 2026 12:06
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 17, 2026
@github-actions

Copy link
Copy Markdown
Contributor

⛔ merge queue 构建失败 — 先分诊,再决定要不要重排

队列构建 44080293971 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集),
所以失败的测试可能在本 PR 没碰过的包里 —— 那不是重排能修的。每次盲目重排都会让排在后面的所有 PR 重建一轮。

分类:failure —— 按下面的日志分诊。

失败的 job(日志抽取,best effort):

  • Dogfood Regression Gate (2/3) — 失败步骤: Boot example apps and exercise real user flows

    @objectstack/dogfood:test:  FAIL   isolated  test/activity-text-predicate.dogfood.test.ts > [#21154] a query over activity text or the approval snapshot, by a reader withheld a field of its record > a
      ↳ 失败原因: (这条 FAIL 之后 12 行内没有可识别的原因行 —— 点进 job 看)
    @objectstack/dogfood:test:  FAIL   isolated  test/activity-text-predicate.dogfood.test.ts > [#21154] a query over activity text or the approval snapshot, by a reader withheld a field of its record > a
      ↳ 失败原因: (这条 FAIL 之后 12 行内没有可识别的原因行 —— 点进 job 看)
    @objectstack/dogfood:test:  FAIL   isolated  test/activity-text-predicate.dogfood.test.ts > [#21154] a query over activity text or the approval snapshot, by a reader withheld a field of its record > a
      ↳ 失败原因: @objectstack/dogfood:test: AssertionError: {"object":"sys_activity","records":[],"total":0,"hasMore":false}: expected 200 to be 403 // Object.is equality
    

↳ 失败原因 是判读的关键:超时(Test timed out in … / Hook timed out in …)多半是负载/时序,不是本 PR 的回归;
断言(AssertionError: …)才指向真实的行为改变。两者的 FAIL 行长得一模一样,只有这一行能区分。

⚠️ 断言这一侧有一类例外,判据是断言在测什么,不是它是不是 AssertionError。 断言的对象是产品行为(一个值、一个形状、一次拒收)⇒ 照上面读:真实的行为改变,去查,⛔ 不要重排掉;
断言的对象是这次实验自身的有效性前提(跑完的耗时、负载下的先后、任何只在时间预算内才成立的条件)⇒ 它跟超时是同一类,同样对负载敏感,重排一次是合法的判别手段。
识别是机械的:断言的消息或它比较的值本身点名了一段时长、一个时间戳、一个耗时计数。实测过的一对 —— AssertionError: SecurityPlugin.init() ran: expected false to be true 测的是产品行为(真回归);
AssertionError: this run took over a second, so second-precision stamps could have differed too: expected 1006 to be less than 1000 测的是实验前提:它守护的那条不变式当时是绿的,同一个 head 原样重排一次即成功。
穿着 AssertionError 外衣的时间测量,仍然是时间测量。(⛔ 这只改「怎么读一次红」,不改「哪些测试可以重排」——后者由别处管。)

跨 PR 相同签名(24h,按失败测试文件聚合):

历史信号:

  • 本 PR 过去 24h 无队列失败记录(首次)。
  • 过去 24h 队列共有 21 个失败构建(不含本次)。

分诊清单:

  1. 失败测试在本 PR 改动的包里 → 真回归,修 PR。
  2. 失败测试与本 PR 无关 → 看上面的「跨 PR 相同签名」;已有汇总 issue ⇒ flaky/环境问题实锤,去那张 issue 上谈,修好前重排只会再烧一轮全队列。
  3. 两者都不是 → 可能与同组 PR 语义冲突;等前面的 PR 落地或失败出队后再重排一次即可,不要连续重排。

Generated by Claude Code · merge-queue-triage workflow (#4859)

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzfR33NbV51QQU6R6bm

Re-queue · 2026-11-17T12:33Z

Same head bb28d382b62c61185b22d2cd4cda22aa2429e620 as landing comment 6947563121. The queue ejected this PR as an inherited bystander: anchor #34829 names #34817 as the root, and #34817 is out of the queue now. Re-armed with no change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/m skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants