Skip to content

mcp: slim the open door's tool list (40 KB at tools/list; validate_expression alone is 7.8 KB) #34689

Closed

Description

@objectstack-fleet

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: 「同意你的所有建议,开始立专题子卡」. The ruling record is #34659 comment 6940528935.

Why

Every connection pays for the tool list before any work starts, in the user's own tokens. Text that teaches belongs in the skill a client loads when it needs it; a tool description should carry what the call needs.

Who acts: the server lane (packages/mcp). Who reads the result: every MCP client.

Evidence (objectstack a0326b06, examples/app-crm, admin API key, read 2026-11-17)

  • tools/list → 17 tools, 40,341 bytes: descriptions 16,320, input schemas 20,925.
  • Heaviest tools, description plus schema: validate_expression 7,791, query_dataset 5,508, aggregate_records 3,942, run_action 3,433, create_upload_link 2,883.
  • aggregate_records carries a 1,126-byte tombstone for the removed distinct key inside its input schema.

Scope

  • Measure first: a per-tool table in the PR, before and after.
  • Move teaching prose out of descriptions into the ask-data skill or /mcp/skill, keeping each description sufficient to call the tool correctly without the skill.
  • Decide per tool whether a removed-key tombstone has to ride in tools/list or can live in the refusal alone.
  • File surface: packages/mcp/src/**, and the spec files that own a description's text.

Done when

  • The table shows the new total, and no tool's call success drops in a scenario ask round run before and after.

Out of scope

  • Removing or renaming a tool. Changing what any tool accepts.

Relations

Activity

  1. added
    pm:epic
    area:ai
    domain:server
    on Nov 17, 2026
  2. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: first touch → p2 · domain:server · pm:queue · 2026-11-17T06:33Z

    ⛔ Not a claim.

  3. added
    pm:queue
    priority:p2
    and removed
    pm:epic
    on Nov 17, 2026
  4. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: pm:queue → pm:on-hold (do not dispatch) · 2026-11-17T07:04Z

    ⛔ Not a claim. The grade is unchanged.

  5. added
    pm:on-hold
    and removed
    pm:queue
    on Nov 17, 2026
  6. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Released by the maintainer (recorded on #34659 at 23:01Z, comment 6963538703: 「云端的任务你说暂缓,他也不会排的呀,是不是应该先放回队列」 and 「其他技能体系的卡如果改动面大不是理由啊…那就应该开放」). pm:on-hold → pm:queue. Theme: MCP, epic #34659 (in focus).

    Tool-list slimming (40 KB at tools/list). The existing p2 is kept: every MCP client pays that context on connect. It is lowest in the epic's order, and ordering within p2 is the seat's.

  7. added
    pm:queue
    and removed
    pm:on-hold
    on Nov 17, 2026
  8. 4 remaining items

  9. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Regraded p1 → p2: the 09:2xZ raise is reverted. The maintainer, in triage's session: 「p1 是不是应该留给真的需要插队的」, then 「把刚才提到 p1 的 7 张问数卡改回 p2」. The order of epic #34659's work comes from the epic's own structure (the ask line #35150/#35159 first), not from priority labels. p1 is kept for cards that must jump ahead of epic work. Any claim on the card is unchanged.

  10. added
    priority:p2
    and removed
    priority:p1
    on Nov 18, 2026
  11. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-elon-musk · session_016WV4d1k1GRsQbF3vCPKxhz

    Claim: PM loop round 1 · area a4-C · chain head; p3 #33272 rides in this PR (same served SKILL.md text, packages/mcp/src/skill-md.ts) · 2026-11-19T21:53Z
    Session: session_016WV4d1k1GRsQbF3vCPKxhz
    Account: os-elon-musk
    Branch: claude/area-a4C-34689
    Worktree: objectstack-issue-34689
    Domain: domain:server
    Area: a4-C
    Seat: repo:objectstack#4
    File surface: packages/mcp/src/mcp-http-tools.ts and the other tool-description owners under packages/mcp/src/** / packages/runtime/src/domains/mcp.ts, packages/mcp/src/skill-md.ts (moved teaching text, #33272), ui/apps/console/src/pages/developer/objectstack-skill.ts (#33272 mirror), spec files that own a description's text only if measured necessary, new test file, .changeset/*.md. Moving text into skills/objectstack-ask/** is a4-B's root and is NOT in this surface: /mcp/skill is the home.
    Container & model: M, mode:subagent, default model tier, effort: high
    Clause-②: no (descriptions only; no tool removed or renamed; nothing a tool accepts changes)
    Metadata-protocol: none
    Responsibility: the door's own tool list costs 40 KB on every connect | no other card covers it | reached by every MCP client
    Thread-read: 6974497859
    Premise: holds on main d96c878 (to be re-measured as the before-column of the per-tool table by the dev)
    Prior rulings read: epic #34659 rulings 6940528935 (all A), 6963538703 (released), 6972918775 (order: ask line first); #34686 closed (ask skill published, /mcp/skill renders from it — the moved text's home exists).
    Pre-claim lane: server lane, domain:server (packages/mcp); the Console mirror under ui/** stays in this lane per the 留道 rule.
    Pre-claim deps: "after the ask-data skill is published" — #34686 closed, skills/objectstack-ask/ on main.
    Fold-or-serial: #33272 rides as a same-file p3 (area-lease: p3 rides a same-file p2 PR). Excluded: #34993/#35083 (translation chain, own PR).
    Acceptance owed: the card's "no tool's call success drops in a scenario ask round before and after" — the before/after ask round is routed through the seat to the eval seat; this PR carries the per-tool byte table.
    Serial constraints cleared: overlap-check clean (probe branch, origin/main d96c878, 0 PR heads share these files).

  12. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 19, 2026
  13. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-elon-musk · session_016WV4d1k1GRsQbF3vCPKxhz
    os-dev-report

    Draft PR #35682 (Fixes #34689 + #33272), head 73c5d9b. Report for both folded cards.

    {
      "issue": 34689,
      "status": "done",
      "branch": "claude/area-a4C-34689",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/35682",
      "pr_number": 35682,
      "head_sha": "73c5d9bc06b7a8ef93bb8d3bc7081d0f86790ed8",
      "folded": [
        34689,
        33272
      ],
      "session": "session_016WV4d1k1GRsQbF3vCPKxhz",
      "premise_still_valid": true,
      "summary": "#34689: re-measured on base c0716ed4 with a new reproducible test (packages/mcp/src/tools-list-weight-34689.test.ts, real tools/list round-trip, 17-tool API-key surface, real service-analytics dataset definitions): tools/list 46,827 bytes (card read 40,341 on a0326b06; surface grew since) -> 35,614 (-24%); descriptions packages/mcp owns 17,602 -> 8,162 (-54%). Only description strings changed in packages/mcp/src/mcp-http-tools.ts; teaching prose moved to the served SKILL.md (skill-md.ts) and its Console mirror byte-for-byte. Tombstones: aggregate_records distinct rides in tools/list (spec AggregationNodeSchema taken whole, no-local-copy rule, same string as the refusal); run_action/resume_run retired confirm already refusal-only, unchanged. #33272: SKILL.md and mirror name variables? in validate_expression's signature plus the flow_condition clause, checked against the handler (refused at any other site). Two pins moved (#32442 approvals example now pinned on the served skill; #32757 read order pinned on the answer only). The test ceiling is 38,000 bytes.",
      "tests": "head 73c5d9bc: pnpm --filter @objectstack/mcp exec vitest run --maxWorkers=2 -> Test Files 80 passed (80), Tests 1440 passed (1440). pnpm --filter @objectstack/mcp typecheck via os-verify-lock -> VERDICT command-exit 0 (check:test-typecheck OK). ui root: pnpm exec vitest run apps/console/src/pages/developer/objectstack-skill.test.ts -> Tests 13 passed (13) (first run red on a standalone aggregate_records bullet in the tool list; fixed by commit 73c5d9bc folding it under query_records). eslint --no-inline-config on the 6 touched TS files -> exit 0. No ablation: no tested runtime behaviour changed (description strings only); the moved pins are text-location flips.",
      "gates": "dependency closure: pnpm --filter '@objectstack/mcp^...' build -> VERDICT command-exit 0. dispatch-gates --commands (merge base c0716ed4, 7 paths): 71 families run, exits captured before any pipe; --ran reconciliation: '71 derived famil(ies) accounted for — 69 run, 2 NOT-MEASURED (2 DERIVED from a recorded exit 3)'. 68 exit 0. NOT MEASURED (prerequisite): check-plugin-teardown-shape --self-test exit 3 (shallow checkout cannot reach its pinned positive control); check:dual-build-cjs-loads exit 3 (PREREQUISITE NOT MET, ~48 packages unbuilt); pnpm --dir ui exec vitest run scripts/ exit 1 (2 files fail 'Failed to resolve entry for package @objectstack/client', not built here; no ui/scripts input touched). overlap-check --branch=claude/area-a4C-34689 -> VERDICT clean exit 0 (run after the first WIP push, see deviations). check:nul-bytes exit 0. CI check-runs: in_progress at report time, not awaited.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "net_added_lines": "+55 measured (git diff --numstat c0716ed4..73c5d9bc: 309 insertions, 254 deletions over 7 files); mcp-http-tools.ts 88/216 (-128 prose), skill-md.ts 45/10, console mirror 40/9, new measurement test +110, changeset +15, two pin files 11/19. Within the 250 budget.",
      "mcp_calls": "0",
      "api_writes": "1 — pr_create via fleet-write relay (run 44633920647, read-back 8579 bytes sent = stored). Plus git push (not REST). No issue comment posted: see open_questions.",
      "deviations": "1) Three commits, not two: commit 3 (73c5d9bc) moves commit 1's aggregate_records skill text from its own bullet to under query_records after the Console mirror's tool-list pin went red; force-push not allowed on a claude/area-* branch. 2) First push (f82b48ea) went out before overlap-check ran (pushed as the WIP-before-long-step rule asks); overlap-check then read clean. 3) PR not assigned and no review requested: os-dev rule 2 puts the PR assignee in pr_create, which the frame forbids; hand-over left to the seat. 4) The lock was held ~20 min by another agent's 4-package test run; typecheck got the lock on the third attempt with the slot kept.",
      "open_questions": [
        {
          "question": "os-dev.md asks for an os-dev-report comment on the card via post-stamped.mjs; the area frame says do not comment on cards. Which wins for this area?",
          "options": [
            "A the frame: no card comment; the seat posts the report from report.json on the mount",
            "B os-dev.md: the dev posts the comment itself"
          ],
          "recommendation": "A, because the frame is the area's explicit write scope and the seat already holds the report on the mount; no comment was posted"
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed — the largest remaining tools/list blocks are outside this card's file surface: list_datasets/query_dataset descriptions (2,979 bytes, packages/services/service-analytics/src/dataset-tools.ts), query_dataset's spec QueryDatasetInputSchema (4,591 bytes), and FlowVariableSchema's item descriptions inside validate_expression's variables (1,838 bytes; one 1,000-byte paragraph on record-reference inputs). Recorded in the PR's Acceptance notes.",
        "carrier: eval seat via the area seat · the card's before/after scenario ask round is owed; no live LLM round run here"
      ]
    }
  14. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-elon-musk · session_016WV4d1k1GRsQbF3vCPKxhz

    Open remainder of #34689 after PR #35682 (now Part of #34689):

    • The before/after scenario ask round (Done when) is owed; the seat routes it to the eval seat after fix(mcp): slim the open door's tools/list; the served SKILL.md carries the teaching and names validate_expression's variables #35682 lands, and this card closes on that record.
    • L1 note 2 (7026997961): the initialize instructions do not point a client at /api/v1/mcp/skill, where the teaching prose moved; candidate one-line follow-up in the same surface.
    • Out-of-surface weight left in tools/list: dataset-tools descriptions (~2,979 B, service-analytics), spec QueryDatasetInputSchema (~4,591 B), FlowVariableSchema item descriptions in validate_expression (~1,838 B).
  15. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-elon-musk · session_016WV4d1k1GRsQbF3vCPKxhz

    Adds to the #34689 remainder (7027050676), from L1-a delta ACCEPT 7028088861 on PR #35682 (non-blocking): run_action's description no longer tells a client that on no_confirmation_service the user performs the action in the app; restore that hint the next time the description is touched.

  16. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-elon-musk · session_016WV4d1k1GRsQbF3vCPKxhz

    2026-11-20T06:54Z · Code half landed. Closing as completed. The before/after ask round is parked on the Measurement epic.

  17. removed
    pm:dispatched
    on Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:aidomain:serverpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions