Skip to content

mcp: the result members the hosted ask tools add over the framework tools are either moved into the framework or stated as hosted-only, one by one #35138

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 session's chat, 2026-11-18, verbatim: 「开源项目能做的尽量在开源项目做,云端等开源项目完全优化好再开工」.

Why

The hosted product learned, by measuring its own agent, that a model follows what a tool result hands it and often does not assemble the same thing from parts. Each lesson became a member its ask tools add to a framework tool's result. Those members live in a hosted wrapper, so a client on the open MCP door, and the open eval that reads that door, never get them. Two are already moving (nextStep and sourceLine, #34918 and #34919) and one has its card (withheldFields, #35137). This card is the rest, read once and decided one by one, so the hosted side has nothing left to carry when it resumes.

Who acts: the server lane (packages/mcp, packages/services/service-analytics, packages/runtime/src/domains/mcp.ts). Reader: every MCP client; the daily ask round (#34869).

Evidence (hosted packages/service-ai/src/tools, read on cloud main 0aabf9a, 2026-11-18; the open repository's agents cannot read that tree, so the inventory is given here)

Member the hosted tools add On which tools What it is for In the framework today
nextStep list_datasets the decision the selection rule gives for the words sent in flight: #34918, #34919
sourceLine query_dataset the citation, composed from provenance in flight: #34918, #34919
withheldFields and its note record tools a field withheld by field security is said to be not visible, not blank #35137
source record and aggregate tools one finished line naming the object, filter, measure and grouping a figure came from, for the answer to quote; without it an aggregate answer came back as a bare number absent
notRecorded, ifNotRecorded record tools a read of an object or field no metadata knows runs nothing and says the data is not recorded, in place of a bare not-found the model answers around absent
capped record and aggregate tools a page that hit the row cap says so, so it is not summed or ranked as if whole to read: the open tools have truncated on some results
a ready-made link on each row record tools the answer links a record it names hosted console route; likely hosted-only

Not members of a result and not in scope: the hosted query planner, the chart tool, and the agent's prompt.

Scope

Done when

  • Every row of the table reads "in the framework" with its PR, or "hosted-only" with its reason.

Relations

Activity

  1. added
    area:ai
    on Nov 18, 2026
  2. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    First touch: p2 · domain:server · pm:blocked, a child of epic #34659. Grading principle of 2026-11-18, item 3: it moves the hosted ask tools' remaining result members into the open MCP door one by one, or states them as hosted-only. It keeps the grade of its sibling #34919; the grade of the epic's children is with the maintainer.

    Blocked-by: #34919. The card is sequenced after #34919 so that the members share one way of writing a sentence into a result. It unlocks when #34919 closes.

  3. added
    domain:server
    pm:blocked
    priority:p2
    on Nov 18, 2026
  4. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    epic:#34659#1 · hotlong · session_01Q4EjjMnXJdSZifpEN5i7aU

    Four small members to add to this card's table, written 2026-11-18T07:23Z, from the same reading of the hosted ask tools (cloud main 0aabf9aa). Each is a member of a result, decided the same way: into the framework, or stated hosted-only.

  5. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Regraded p2 → p1: an MCP ask-line card. The maintainer ranked the ask line first (「代码搭建已经可用,只是优化,mcp问数优先,其次是mcp搭建」, #34659 comment 6972918775). In triage's session he then agreed that the open cards under the ask parents #35150 and #35159 rise to p1 (「问数专题已按你的顺序重排 同意」). The MCP build and code-first lines stay p2. Any claim on the card is unchanged.

  6. added
    priority:p1
    and removed
    priority:p2
    on Nov 18, 2026
  7. 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.

  8. 26 remaining items

  9. removed
    area:ai
    on Nov 18, 2026
  10. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbabAdcWyApSTGBYJNY

    Released by its own seat at the maintainer's wind-down (2026-11-18 17:50Z 「当前任务处理完就下班」), back to pm:queue with no claim and no lease.

    State: PR 1 #35185, PR 2 #35186, PR 3 #35198 and PR 4 #35202 are merged. PR 5 (source) waited on #35193, which merged at 21:49Z (65b67be), so it can start now under amendment 1. The owed follow-up PR 3b is listed in 6983113781. Neither has a branch. The next holder starts both from main.

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#6 · hotlong · session_01Q4EjjNq58cmHeqckjZkTFE

    Claim: PM loop round 1 (seat 6, area c6-A, PR 5 source under amendment 1 6975318215) · 2026-11-19T07:36Z
    Session: session_01Q4EjjNq58cmHeqckjZkTFE
    Account: hotlong
    Branch: claude/issue-35138-source-line
    Worktree: objectstack-issue-35138
    Domain: domain:server
    Seat: repo:objectstack#6
    Area: c6-A
    File surface: packages/mcp/src/** (the query_records / aggregate_records handlers and the stdio bridge), packages/services/service-analytics/src/** only if the dataset door shares the composer, their tests, one changeset. packages/spec/src/ai/object-query-source.zod.ts is read, not edited (amendment 1: PR 5 fills the existing ObjectQuerySourceSchema); a spec edit is a breach: stop and report.
    Container & model: M, mode:subagent, model: default (opus) — dispatch-gates --tier: no path-derived mandate; Clause-② makes the review owed, not the build tier, effort: high
    Clause-②: yes
    Metadata-protocol: none
    Responsibility: n/a — not a defect card
    Thread-read: 6992852314
    Premise: holds (#35193 merged at 65b67be; #34919 and #35144 closed; no branch, no PR for PR 5 — release 6992852314)
    Serial constraints cleared: #35185 #35186 #35198 #35202 merged (PRs 1–4 of this card); #35193 merged; no open PR touches packages/mcp/src/mcp-http-tools.ts (search 2026-11-19); overlap-check.mjs runs before each push
    Pre-claim lane: packages/mcp/src/** → domain:server, fix lands in objectstack; no cloud code read or changed (the hosted inventory is on the card).
    Pre-claim deps: #34919 closed, #35144 closed (PR #35193 merged); no open Blocked-by:.
    Prior rulings read: check-prior-rulings --card 35138 → 83 hits; ADR-0033 Decision §10, ADR-0119 D2, ADR-0006 D3, ADR-0022 Decision §4, ADR-0024 Decision §2; ADR-0149 M1 named on the card (no guidance text enters the spec); thread rulings: amendment 1 6975318215 (W0 decisions), area notes 6979387847 (Q: A) and 6983113781 (follow-up 3b, not in this PR); no conflict with the PR 5 route.

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#6 · hotlong · session_01Q4EjjNq58cmHeqckjZkTFE
    os-dev-report

    {
     "issue": 35138,
     "status": "done",
     "branch": "claude/issue-35138-source-line",
     "pr": "https://github.com/objectstack-ai/objectstack/pull/35408",
     "head_sha": "353421a1f2",
     "session": "session_01Q4EjjNq58cmHeqckjZkTFE",
     "premise_still_valid": true,
     "summary": "PR 5 of #35138 (the source row of amendment 1). query_records and aggregate_records now answer a top-level source key on both doors, built from the read that ran. It fills the existing ObjectQuerySourceSchema without editing the spec (H1 holds). The block carries object; filter (the caller's where as sent); groupBy; aggregations; the caller's own orderBy, with limit only beside it; related (the expand fields); latestPer for a single key; and records. records is stated only where the read established it: the counted total for a page, the bare count summed over every group for an uncut aggregate, never after a cut. scope is always visible_to_you, and line is one sentence of at most 280 characters in en / zh-Hans / zh-Hant / ja. The language comes from the shared pickSentenceLocale over userTextLocales (H2: the picker is reused; composeDatasetSourceLine is not reusable because it reads a dataset provenance, not an object read). The line names fields by their served labels and otherwise by the caller's own strings. The block is served only when it parses against ObjectQuerySourceSchema, and it is withheld when the schema cannot state the read (latestPer over several keys). get_record gets no source: its answer is the record itself, where a source key would collide with the record's own fields. Both tool descriptions tell the model to quote source.line.",
     "files_changed": [
      ".changeset/35138-mcp-object-query-source.md",
      "packages/mcp/src/object-query-source.ts",
      "packages/mcp/src/object-query-source.test.ts",
      "packages/mcp/src/mcp-http-tools.ts",
      "packages/mcp/src/mcp-http-tools.aggregation-entry.test.ts",
      "packages/mcp/src/mcp-not-recorded.test.ts",
      "packages/mcp/src/mcp-query-records-latest-per.test.ts",
      "packages/mcp/src/mcp-relation-reads.test.ts",
      "packages/mcp/src/query-records-delegation-diagnostic.test.ts",
      "packages/mcp/src/query-records-withheld-fields.test.ts"
     ],
     "tests": "At 353421a1f2, under the verify lock. mcp vitest (whole package, --maxWorkers=2): VERDICT command-exit 0, Test Files 78 passed (78), Tests 1426 passed (1426). Before the pin updates: 21 failed / 1383 passed, all whole-payload toEqual pins or the two no-definition-read controls. mcp typecheck: VERDICT command-exit 0, check:test-typecheck OK (6 files / 53 errors / 8 signatures held). runtime src/domains/mcp after building mcp: 9 files / 309 passed. New src/object-query-source.test.ts has 22 cases: the composer, and both doors (an HTTP stand-in bridge and createStdioDataBridge). In the existing tests, 21 payload pins also expect source: expect.any(Object) with every other key still exact, and the two no-read controls are restated (one definition read, the queried object's, after the read). Ablations used scripts/ablation-replace.mjs; the tests import src, so there is no dist leg. Each landed (anchor 1 -> 0, blob changed) and was restored to its HEAD blob (mcp-http-tools.ts a82ff5759eae, object-query-source.ts 1c76b156b793) with git diff HEAD empty. A1 source never attached: 8 failed. A2 records summed over the served groups only: 2 failed. A3 labels ignored: 3 failed. A4 line always en: 6 failed. A5 schema gate removed: 1 failed. A6 limit without orderBy: 1 failed. A7 cut path states records: 1 failed. A8 filter not shortened: 1 failed. eslint --no-inline-config on the 9 changed .ts files: exit 0.",
     "gates": "Local, at 353421a1f2. dispatch-gates --commands --repo objectstack-ai/objectstack derived 68 families. --ran: '68 derived famil(ies) accounted for, 66 run, 2 NOT-MEASURED (2 DERIVED from a recorded exit 3)'. (1) pnpm check:dual-build-cjs-loads: exit 3 PREREQUISITE NOT MET (needs every package's dist), NOT MEASURED; CI Lint carries it. (2) node scripts/check-plugin-teardown-shape.mjs --self-test: exit 3, because its positive control is pinned to commit 621a4876 and the clone is shallow. After git fetch --depth=1 of that commit, a separate re-run exited 0 ('48 cases pass'); the record keeps the exit 3. check-nul-bytes: OK. overlap-check before pr_create: VERDICT clean exit 0 vs origin/main 2e9e1ac9dc, 0 PR heads. CI check-runs on 353421a1f2 at report time: Governed Surface Queue Guard success, 5 skipped, 18 in_progress (not awaited). test:repo was not run locally: no repo-project test is touched and the derivation names none.",
     "dogfood_battery": "n/a: no '!' in the PR title and no (narrowing) arm",
     "line_budget": "n/a: no skills/** or line-ratcheted ledger touched",
     "deviations": [
      "Each call now reads the caller's served definition once (servedObjectDefinitionOf) for the line's labels. aggregate_records still reads its option-order and currency facts only for a call with a key or an amount. Two existing controls that pinned no definition read were restated to that rule, not deleted.",
      "scope is always visible_to_you. An honest all_records needs a getReadFilter probe on both bridges, and the HTTP bridge (packages/runtime/src/domains/mcp.ts) is outside the claim's file surface. The schema states visible_to_you whenever the producer has no answer.",
      "No ask-card question added. The open ask cards already grade cited on every figure question (scenario-run-grade.ts: a Source: / 来源: line naming the object), so every existing object-figure question measures this member. docs/qa/scenarios/** is also outside the claim's file surface.",
      "main was not merged before the PR (AGENTS.md §10): origin/main moved after the branch point, but no commit since touches packages/mcp, core/src/sentence-locale.ts or spec/src/ai, and overlap-check is clean. Readings are on the branch head.",
      "Commit trailers use the AGENTS.md model-free pair, not the harness reminder's model-named Co-Authored-By. The PR footer uses the AGENTS.md session-URL form, not the reminder's emoji form.",
      "A first ablation pass printed no failure counts because of my own grep and tail filter. It was re-run in full with per-leg logs, and only the second pass is cited."
     ],
     "mcp_calls": "0",
     "api_writes": "2: relay pr_create via fleet-write dispatch run 44487565124 (POST /repos/objectstack-ai/objectstack/pulls draft, then POST /repos/objectstack-ai/objectstack/issues/35408/assignees hotlong), and this os-dev-report comment (POST /repos/objectstack-ai/objectstack/issues/35138/comments via post-stamped.mjs). git push x4 is not a REST write.",
     "open_questions": [],
     "security_findings": "none",
     "out_of_scope_findings": [
      "carrier: none · noted, not filed: ObjectQuerySourceSchema's docblock names only the cloud resultSourceBlock() as producer, and OBJECT_QUERY_SOURCE_TOOL_NAMES lists the hosted names (aggregate_data, not aggregate_records). No shape is wrong and no reader misreads today. Whether the spec prose should name this second producer is for the spec owner (the spec file is read-only under this claim).",
      "carrier: none · noted, not filed: the open citation grader (packages/qa/scenarios/src/score/scenario-run-grade.ts SOURCE_LINE) does not read 來源: or 出典:, so a zh-Hant or ja answer that quotes source.line would grade not cited. No zh-Hant or ja ask question exists today. This is for the scenarios lane.",
      "carrier: none · noted, not filed: scope all_records needs a getReadFilter-backed bridge member on both doors (runtime domains/mcp.ts and stdio-data-bridge.ts). Recorded in the PR's Acceptance notes."
     ]
    }
  15. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#6 · hotlong · session_01Q4EjjNq58cmHeqckjZkTFE

    MERGED · 2026-11-19T12:08Z · PR #35408 (merge 96a1f2be06) closed this card as completed; pm:dispatched removed. Follow-up 3b lives on #35429.

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

Metadata

Metadata

Assignees

Labels

area:clouddomain:serverpriority:p2

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions