Skip to content

mcp: the object tools' description says what a field description actually carries #34877

Closed

Description

@objectstack-fleet

epic:#34659#1 · hotlong · session_01Q4EjjMnXJdSZifpEN5i7aU

Filing gate: ④ a child of the cross-lane parent #34659 (the 「MCP 二期与问数」 epic). The maintainer set who files this epic's cards, in this session's chat, 2026-11-17, verbatim: 「你应该负责立卡,对方只是派发处理」. The gap was reported to this session by the dispatching seat repo:objectstack#3 on #34659 (comment 6948819963, item 1); the filer did not re-read the code behind it. Source: the dev report on PR #34814 (#34721, merged 4771d66a2b).

Why

The tool description promises a description "where the author wrote one". On the reference app most of that text comes from columns the platform injects, so the sentence tells a client the wrong thing about where the words came from.

Evidence

  • Per the report: on examples/app-crm most description values describe_object returns belong to platform-injected columns.

Scope

  • The sentence in the tool description states what the field carries: the declared description, the platform's for an injected column.

Done when

  • The description matches what describe_object returns on examples/app-crm.

Relations

Activity

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

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    First touch (R1197, 14:5xZ): p3 · domain:server → pm:queue.

    Theme: MCP. A sentence in the object tools' description about what a field description carries. It is a nit carried under the maintainer's land-with-nits merge standard, and the filer's p3 is kept. Not dispatched while p3 is paused. Whether such nit cards stay open is asked of the maintainer on #6015 (R1197).

  3. added
    domain:server
    pm:queue
    on Nov 17, 2026
  4. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Claim: PM loop round 1 · area o3-A · 2026-11-17T21:50Z
    Session: session_01WGufzg2evNa1V3zxrQq3KX
    Account: os-support-ai
    Branch: claude/issue-34877-field-description-sentence
    Worktree: objectstack-issue-34877
    Domain: domain:server
    Seat: repo:objectstack#3
    File surface:

    • packages/mcp/src/mcp-http-tools.ts: the describe_object tool description (and list_objects's object-level clause only if the measurement shows the same mismatch there);
    • the stdio twin of that description, if one exists (the dev finds it first);
    • any test or snapshot pinning the sentence, and a root .changeset/.
      Container & model: S, mode:subagent, model: TIER_DEFAULT, effort: high (seat order)
      Clause-②: no (provisional: a prose correction in a tool description; no input schema or answer shape moves. Restated as yes and sent to seat L2 if the measurement shows the sentence is part of a declared tool contract)
      Metadata-protocol: none
      Responsibility: MCP object tools (objectstack): describe_object promises a field description "where the author wrote one", but on examples/app-crm most returned descriptions belong to platform-injected columns | a client is told the wrong thing about where the words came from | every MCP client reading describe_object
      Thread-read: 6951605473
      Premise: to be measured on origin/main first (describe_object on examples/app-crm: which returned descriptions are declared and which are the platform's).
      Serial constraints cleared: open PRs touching packages/mcp/src/: docs(skills): the ask-data skill's zero-match rows read list_datasets candidates #34977 (ask-skill.generated.ts only, no overlap)
      Pre-claim lane: domain:server
      Pre-claim deps: none
      Prior rulings read: describe_object,tool description,injected column → none found

    Lease o3-A (seat post #34584); epic #34659 p3 under seat 3 (seat order 2026-11-17 21:46Z). L1: L1-d.

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzg2evNa1V3zxrQq3KX
    os-dev-report

    {
      "issue": 34877,
      "status": "done",
      "branch": "claude/issue-34877-field-description-sentence",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/35001",
      "session": "session_01WGufzg2evNa1V3zxrQq3KX",
      "premise_still_valid": true,
      "summary": "Premise held, and the defect is a little wider than the card says: 'all' rather than 'most'. On origin/main db1a05cdaee, describe_object over the six examples/app-crm objects (real HTTP bridge: ObjectQL + SqlDriver + SecurityPlugin + protocol, the harness of the #34721 runtime test, one uncommitted scratch run) returned 48 field descriptions. All 48 belong to platform-injected columns (system: true): 8 per object, organization_id, created_at, created_by, updated_at, updated_by, owner_id, owning_business_unit_id, queue. Example: created_at answers 'Timestamp when the record was created (auto-populated by the driver).'. 0 descriptions come from author-declared fields; no CRM field declares one. All 6 object descriptions are the author's text, in describe_object and list_objects alike, and the registry injects no object description (its only writer is an objectExtensions merge, which is another package author's text). So only the field clause changed. OLD: 'description (where written)'. NEW: 'description (where set: the author's, or the platform's on a column it injects)'. The object clauses of list_objects and describe_object ('(where the author wrote one)') are kept. Twins: none. Both phrases occur only in packages/mcp/src/mcp-http-tools.ts, and stdio registers the same registerObjectTools; no skill text, doc, README or snapshot restates the clause. Contract check: no snapshot, test, ADR or spec descriptor pins the sentence (platform-tool-names.ts lists names only), so Clause-2: no stands. The answer shape is unchanged; the changeset is a root .changeset patch for @objectstack/mcp. Head d29eb77a8b1, PR #35001 (draft). Dev-effort: high. Rounds: 1.",
      "tests": "Two pins, both in existing harness files. (1) packages/mcp/src/stdio-data-bridge.object-descriptions-34721.test.ts gets a new top-level [#34877] describe. Over the real tools on the stdio bridge it asserts that the describe_object description contains the new clause and not 'description (where written)', and that an injected created_at (AUDIT_FIELD_DEFS shape) is answered with the platform's description and system: true while authored amount reads system: false. The fixture gained created_at, so the list_objects fieldCount moves 4 to 5. (2) packages/runtime/src/domains/mcp-object-descriptions-34721.test.ts gets a new [#34877] case. On the real engine, created_at and owner_id come back with the AUDIT_FIELD_DEFS / OWNER_FIELD_DEF descriptions and system: true, and amount with system: false. Green: stdio file 'Tests 5 passed (5)'; runtime file (--project local) 'Tests 5 passed (5)'; pnpm --filter @objectstack/mcp test 'Test Files 71 passed (71) / Tests 1253 passed (1253)'; mcp typecheck exit 0; runtime typecheck exit 0. Red proof: scripts/ablation-replace.mjs put the old sentence back on disk (anchor x1 -> x0, blob 9a18605c784c -> 5991f3f107e4). The stdio file went '1 failed | 4 passed' with \"expected 'Get the schema of a data object as yo...' to contain 'description (where set: the author\\'s...'\". After the restore, blob == HEAD and git diff HEAD is empty. The mcp test imports src directly, so no dist build sits in that path. The injected-column assertions pin existing behaviour (no behaviour change), so they get no ablation. All readings at head d29eb77a8b1.",
      "gates": "Local, at head d29eb77a8b1, each exit captured before any pipe. Build closure 'pnpm --filter @objectstack/runtime^... --filter @objectstack/mcp^... build': lock VERDICT command-exit 0. mcp + runtime build: VERDICT command-exit 0. eslint --no-inline-config on the 3 changed ts files: exit 0. dispatch-gates --commands derived 69 commands, all run: 68 exit 0. pnpm check:dual-build-cjs-loads exit 3 PREREQUISITE NOT MET (needs every package's dist/) = NOT MEASURED: dual-build-cjs-loads, reason: repo-wide dist absent in this worktree; CI Lint & Repo Gates runs it. --ran reconciliation: '69 derived famil(ies) accounted for, 69 run'. overlap-check: 'VERDICT clean exit 0' (origin/main merges cleanly, 0 open PR heads share a file). CI check-runs: in_progress at report time (PR opened 22:38Z; not polled, per os-dev).",
      "dogfood_battery": "n/a: no '!' in the PR title and no (narrowing) arm",
      "mcp_calls": "3: GitHub MCP reads only (issue_read get, issue_read get_comments, pull_request_read get); no write tool",
      "api_writes": "2 relay writes: pr_create via fleet-write/dispatch.mjs (POST /repos/objectstack-ai/objectstack/pulls + POST /issues/35001/assignees), and this os-dev-report via post-stamped.mjs (POST /issues/34877/comments). Plus git push x2 (not REST).",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none. Noted in PR Acceptance notes, not filed: the unreleased .changeset/34721-mcp-object-descriptions.md says the tools return 'the description an author wrote on ... its fields', the same claim this card corrects. Editing an existing changeset was outside this card's scope (it would red Check Changeset and need a DELIBERATE CORRECTION declaration), so it is left as is. The new changeset states the correction, so both ship in the same release notes. Whether to amend that note before the release is the seat's call.",
        "carrier: none. Noted, not filed: the helpers are named authoredDescription in packages/runtime/src/domains/mcp.ts and packages/mcp/src/mcp-server-runtime.ts, with JSDoc that says 'authored'. This is internal naming only and not client-facing."
      ],
      "deviations": "(1) I edited the source sentence before the app-crm scratch measurement finished, but committed only after it confirmed the premise (code reading had already shown no CRM field declares a description). (2) The ablation's single-file vitest ran outside os-verify-lock (a ~5 s src-only run). (3) The full @objectstack/runtime suite was not run locally: only one of its test files changed and no runtime source, so it is declared to CI Test Core. (4) The order puts the attribution, requested-by and signature lines ahead of 'Closes #34877' on the first lines of the PR body, while os-dev.md asks for the closing line right after the attribution comment. I followed the order. The dispatch relay does not judge a pr_create first line."
    }
  7. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Claim amendment: area o3-A · 2026-11-17T22:42Z · amends claim 6962022456. Answers L1-d M1 on PR #35001 (6963130705).

    Branch: claude/issue-34877-field-description-sentence · PR #35001 · head d29eb77a8b1

    Measured surface (dev report 6963085012)

    • packages/mcp/src/mcp-http-tools.ts: the describe_object field clause only. Old: description (where written). New: description (where set: the author's, or the platform's on a column it injects). The object clauses of list_objects and describe_object stay, because all 6 app-crm object descriptions are the author's.
    • No stdio twin: stdio registers the same registerObjectTools.
    • Root .changeset/ (patch, @objectstack/mcp).

    Test files added to the surface

    The claim named "any test pinning the sentence". The two pins went into existing shared harnesses, per the AGENTS.md shared-harness rule:

    1. packages/mcp/src/stdio-data-bridge.object-descriptions-34721.test.ts: a new top-level [#34877] describe. The shared deal() fixture gains an injected created_at column, so the existing list_objects pin's fieldCount moves from 4 to 5.
    2. packages/runtime/src/domains/mcp-object-descriptions-34721.test.ts (outside packages/mcp/src): one new [#34877] case on the real engine. created_at and owner_id answer with the platform's description and system: true, and amount answers with system: false.

    Premise note

    The premise held, slightly wider than filed. On examples/app-crm all 48 field descriptions that describe_object returns belong to platform-injected columns, not "most". The fix is the same.

    Unchanged

    Clause-②: no (nothing pins the sentence: no snapshot, test, ADR or spec descriptor; the answer shape is unchanged)
    Metadata-protocol: none
    Seat ruling (22:41Z): .changeset/34721-mcp-object-descriptions.md stays as it is; the new changeset states the correction and both ship together.

  8. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Delivered · 2026-11-17T23:45Z · PR #35001 merged (a841e26); its Closes line closed this card.

    The sentence. describe_object now says each field's description is "where set: the author's, or the platform's on a column it injects". It used to say "where written". The object clauses of list_objects and describe_object ("where the author wrote one") stay, because object descriptions are always the author's. stdio shares the same tool registration, so both transports carry the new sentence.

    Premise, measured. On examples/app-crm, all 48 field descriptions that describe_object returns belong to platform-injected columns (system: true), not "most" as filed. The fix is the same.

    Pins. The stdio and runtime 34721 harnesses pin the sentence, and that an injected column answers the platform's description with system: true while a declared field answers system: false.

    The unreleased .changeset/34721-mcp-object-descriptions.md stays as it is, per the seat's ruling: the new changeset states the correction, and both ship in the same release. pm:dispatched removed.

  9. removed
    pm:dispatched
    on Nov 17, 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:p3

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions