Skip to content

reading first: do list_objects and describe_object return the descriptions an author wrote on objects and fields #34721

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. On the synonyms layer, verbatim: 「同意,所以hotcrm 也需要立卡改进对吧」, answering the seat's three-layer proposal (authors write synonyms; the server hints on a zero-match; the client asks back). In the same chat the maintainer agreed not to add synonyms to objects and fields; this card is what that layer needs instead.

Why

When no governed metric answers a question, the client falls back to the object tools and has to pick an object and fields by reading what the tools return. If an author wrote "amount, tax excluded" on a field and the tool does not return it, the client guesses.

Who acts: a read-only reading first (server lane, packages/mcp). Who reads the result: every MCP client on the fallback path.

Evidence (objectstack a0326b06, read 2026-11-17; descriptions read, results not conclusively checked)

  • list_objects describes itself as returning "each object's name, label and field count" (packages/mcp/src/mcp-http-tools.ts:2526).
  • describe_object describes each field as name, type, label, required, readonly, system, options, defaultValue (:2584). Neither description names a description or help text.

Scope

  • Reading: on examples/app-crm, call both tools for an object and a field that carry a description, and record what comes back.
  • If absent: return the object's and the field's existing description, under the caller's field-level security, with the byte cost stated. No new metadata key.

Done when

  • The reading is on this card; if a change follows, a pin shows the description returned for a readable field and withheld for an unreadable one.

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:on-hold (epic #34659 is still in design) · 2026-11-17T08:47Z

    ⛔ Not a claim.

  3. added
    pm:on-hold
    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:on-hold → pm:queue (问数 milestone released) · 2026-11-17T09:53Z

    ⛔ Not a claim. The grade is unchanged.

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

    @objectstack-fleet
    ContributorAuthor

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

    Claim: PM loop round 1 · 2026-11-17T10:00Z
    Session: session_01WGufzg1NmbJpZhtiWQkTir
    Account: os-support-ai
    Branch: claude/issue-34721-object-descriptions
    Worktree: objectstack-issue-34721
    Domain: domain:server
    Seat: repo:objectstack#3
    File surface: packages/mcp/src/mcp-server-runtime.ts (describeServedObject), packages/mcp/src/stdio-data-bridge.ts and packages/runtime/src/domains/mcp.ts (the listObjects projections), packages/mcp/src/mcp-http-tools.ts (McpObjectSummary, the two tool descriptions), new card-named tests, root .changeset/. Build half only if the reading shows the descriptions absent (the card authorises it: existing description, caller field-level security, byte cost stated, no new metadata key).
    Container & model: S/M, mode:subagent (area o3-F), model: TIER_DEFAULT (dispatch-gates --tier on packages/mcp paths: no path-derived mandate), effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — not a defect card (a reading card with an authorised build half)
    Thread-read: 6944664605
    Premise: holds (area code read at origin/main f02f4f6: list_objects serves McpObjectSummary = name, label, fieldCount (packages/mcp/src/mcp-http-tools.ts:130-134, stdio-data-bridge.ts:1167-1171); describe_object serves describeServedObject (packages/mcp/src/mcp-server-runtime.ts:147), which projects name/label per object and field with no description; app-crm objects carry description (e.g. examples/app-crm/src/objects/account.object.ts:15). The live reading decides.)
    Serial constraints cleared: overlap-check before the first push; no in-flight claim of this seat on packages/mcp
    Pre-claim lane: domain:server — packages/mcp/**, packages/runtime/src/domains/mcp.ts; routed to area o3-F by the seat (6944452341)
    Pre-claim deps: no Blocked-by:; hold lifted for milestone 1 by the maintainer 09:42Z (6944452341)
    Prior rulings read: list_objects,describe_object,description → 17 hits, none on a tool's description output (ADR-0106 D5 caller-served objects, ADR-0003 §2, ADR-0057 D2, ADR-0061 D7, ADR-0066 D1, ADR-0068 D2/D4, ADR-0073 D1, ADR-0076 D11); epic #34659 chat: no synonyms on objects or fields (this card adds none); thread: triage 6943226313 and 6944664605 (queue) only.

    Lease o3-F (seat post #34584); child of epic #34659. Clause-② note: no covers the reading. If the build half adds description to the tools' output (and McpObjectSummary), that widens a public surface: the dev declares Clause-②: yes (widening) in the PR body and changeset, and the area restates this claim before L1.

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

    @objectstack-fleet
    ContributorAuthor

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

    Reading: descriptions are absent from both tools

    Tree: objectstack f02f4f63 (origin/main), examples/app-crm booted with pnpm dev:crm -- --fresh, HTTP MCP at /api/v1/mcp, signed in as the seeded admin. Read at 2026-11-17T10:17Z.

    Call Answer shape description key anywhere
    list_objects 7 objects, each name, label, fieldCount (tool text 691 bytes) 0 hits
    describe_object crm_account top keys name, label, fields, validations, enableFeatures; 12 fields, each name, type, label, required, readonly, system (tool text 2738 bytes) 0 hits

    Control, same caller, same boot: GET /api/v1/meta/object/crm_account serves the object description ("A company that the org sells to or supports.") and a description on 9 fields, e.g. owner_id ("Record owner (auto-stamped to the creating user on insert; reassignable). ...") and the other platform-injected columns (created_at, updated_by, queue, ...). So the text is authored and served to this caller on the /meta door, and neither MCP tool returns it.

    Source agrees on both transports: list_objects projects name/label/fieldCount (packages/runtime/src/domains/mcp.ts listObjectSummaries; packages/mcp/src/stdio-data-bridge.ts listObjects), and describe_object projects an explicit key list with no description (describeServedObject in packages/mcp/src/mcp-server-runtime.ts and its twin in packages/runtime/src/domains/mcp.ts).

    Side reading: no hand-authored app-crm field carries a description today (the 9 above are registry-injected columns); app-crm objects do.

    Field-level security: both tools already read the object as the caller is served it (ADR-0106 D5), so an unreadable field is removed whole, its description with it. The ADR-0106 projection keeps description on the object and on readable fields as prose (packages/metadata-core/src/object-schema-fls-references.ts, description: keep), which is what the /meta door serves the same caller.

    Next: the authorised build half (existing description only, no new key), with a byte cost and pins on both transports.

  9. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

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

    {
      "issue": 34721,
      "status": "done",
      "branch": "claude/issue-34721-object-descriptions",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34814",
      "session": "session_01WGufzg1NmbJpZhtiWQkTir",
      "premise_still_valid": true,
      "summary": "Reading posted on the card (comment 6945187409): on app-crm at f02f4f63, neither list_objects nor describe_object returned any description key, while the same caller's /meta object door served the object description and 9 field descriptions. Build half: both tools now return the existing description on the object (both tools) and on each field (describe_object), only when a non-blank string is authored, read off the object as the caller is served it (ADR-0106 D5), on both transports (runtime domains/mcp.ts HTTP twin, mcp-server-runtime.ts + stdio-data-bridge.ts stdio twin); McpObjectSummary gains optional description; the two tool descriptions name it. No metadata key added. Declared Clause-②: yes (widening), Metadata-protocol: none, changeset patch on @objectstack/mcp and @objectstack/runtime; the area should restate the claim's Clause-② line (claim says no). Final head fbc4d13d.",
      "tests": "New: packages/runtime/src/domains/mcp-object-descriptions-34721.test.ts (real SecurityPlugin/ObjectQL/SQLite, bridge from the real /mcp entry) 4 passed; packages/mcp/src/stdio-data-bridge.object-descriptions-34721.test.ts (real tools, in-memory MCP client, ADR-0106 security double) 4 passed. Cases: readable field description returned; denied field and its description text withheld; unrestricted control returned it; no key when none or blank authored; list_objects object description, no key when none. Package suites at c204778e: mcp Test Files 67/67, Tests 1230/1230; runtime Test Files 612/612, Tests 11342 passed 19 skipped; mcp + runtime typecheck VERDICT command-exit 0; runtime typecheck and the new runtime test rerun green at fbc4d13d. Ablation (committed fix, scripts/ablation-replace.mjs, source imported by relative path so no build between): deleting the field-level authoredDescription line turned 2/4 red on each transport; restore blob == HEAD, git diff HEAD empty. Live after-reading on app-crm: list_objects 7/7 objects with description; describe_object crm_account object description + 8/12 fields.",
      "gates": "dispatch-gates --commands (repo objectstack-ai/objectstack, tree c204778e): 69 derived; 68 exit 0; node scripts/check-plugin-teardown-shape.mjs --self-test exit 3 = NOT MEASURED, reason: shallow clone, positive-control commit 621a4876 unreachable (CI runs it); pnpm check:test-source-alias first exit 1 on the new runtime test, fixed with a module-top import '@objectstack/metadata' (as the sibling suite), rerun exit 0. At final head fbc4d13d rerun: check:cross-package-test-inputs, check:nul-bytes, check:undeclared-dep-imports, check:tier-file-adoption, check:issue-citations all exit 0. --ran reconciliation: 69 accounted, 68 run, 1 NOT-MEASURED (derived from recorded exit 3). check-changeset-no-major simulated with the PR body payload: exit 0, LEVEL AXIS widening/none at patch. overlap-check before each push: VERDICT clean (shares files with objectstack-ai/objectstack#34753 and objectstack-ai/objectstack#34790, merges cleanly). PR check-runs at fbc4d13d when reported: all in_progress (Check Changeset, Lint x8, Type Check x4, PR-body guards, filter, Governed Surface Queue Guard, Check PR Size, Flag docs affected); opt-in/queue jobs skipped.",
      "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "4 — POST issues/34721/comments (reading, via post-stamped relay); POST pulls (pr_create, draft forced) + POST issues/34814/assignees (os-support-ai) in one relay stroke; POST issues/34721/comments (this report, via post-stamped)",
      "open_questions": [
        { "question": "Serve descriptions on platform-injected system columns? On app-crm about 1.05 KB of the ~1.1 KB per describe_object increase is the same 8 system-column descriptions on every object (crm_account 2738 to 3849; 2803 without them).", "options": ["A keep, as the ruling reads (each field's existing description)", "B omit description on system: true fields, saving ~1 KB per describe_object"], "recommendation": "A, because it follows the ruling literally and texts such as owner_id and queue help a client choose fields; revisit only if a token budget for the fallback path is set" }
      ],
      "security_findings": "none",
      "out_of_scope_findings": ["carrier: none · noted, not filed — a readable field's or object's description is prose the ADR-0106 projection does not scan for denied field names (description: keep); MCP now serves the same text the /meta object door already serves that caller, so no new exposure; in PR Acceptance notes"]
    }
  10. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Claim: PM loop round 1 (restated: Clause-② widening, PR #34814) · 2026-11-17T11:17Z
    Session: session_01WGufzg1NmbJpZhtiWQkTir
    Account: os-support-ai
    Branch: claude/issue-34721-object-descriptions
    Worktree: objectstack-issue-34721
    Domain: domain:server
    Seat: repo:objectstack#3
    File surface: packages/mcp/src/mcp-server-runtime.ts (describeServedObject), packages/mcp/src/stdio-data-bridge.ts and packages/runtime/src/domains/mcp.ts (the listObjects projections), packages/mcp/src/mcp-http-tools.ts (McpObjectSummary, the two tool descriptions), new card-named tests, root .changeset/. Build half only if the reading shows the descriptions absent (the card authorises it: existing description, caller field-level security, byte cost stated, no new metadata key).
    Container & model: S/M, mode:subagent (area o3-F), model: TIER_DEFAULT (dispatch-gates --tier on packages/mcp paths: no path-derived mandate), effort: high
    Clause-②: yes (widening)
    Metadata-protocol: none
    Responsibility: n/a — not a defect card (a reading card with an authorised build half)
    Thread-read: 6946496562
    Premise: holds (area code read at origin/main f02f4f6: list_objects serves McpObjectSummary = name, label, fieldCount (packages/mcp/src/mcp-http-tools.ts:130-134, stdio-data-bridge.ts:1167-1171); describe_object serves describeServedObject (packages/mcp/src/mcp-server-runtime.ts:147), which projects name/label per object and field with no description; app-crm objects carry description (e.g. examples/app-crm/src/objects/account.object.ts:15). The live reading decides.)
    Serial constraints cleared: overlap-check before the first push; no in-flight claim of this seat on packages/mcp
    Pre-claim lane: domain:server — packages/mcp/**, packages/runtime/src/domains/mcp.ts; routed to area o3-F by the seat (6944452341)
    Pre-claim deps: no Blocked-by:; hold lifted for milestone 1 by the maintainer 09:42Z (6944452341)
    Prior rulings read: list_objects,describe_object,description → 17 hits, none on a tool's description output (ADR-0106 D5 caller-served objects, ADR-0003 §2, ADR-0057 D2, ADR-0061 D7, ADR-0066 D1, ADR-0068 D2/D4, ADR-0073 D1, ADR-0076 D11); epic #34659 chat: no synonyms on objects or fields (this card adds none); thread: triage 6943226313, 6944664605 (queue); reading 6945187409; os-dev-report 6946496562.

    Lease o3-F (seat post #34584); child of epic #34659. Restated because the build half ran: the reading (6945187409) found no description key from either tool, so draft PR #34814 (head fbc4d13) serves the existing object and field description on both transports under the caller-served object (ADR-0106 D5), and the exported McpObjectSummary gains an optional description member. That widens a public surface: Clause-②: yes (widening), Metadata-protocol: none, patch on @objectstack/mcp and @objectstack/runtime. Every changed file is inside the File surface above. Area call on the dev's open question: platform-injected system columns keep their description (option A, the card's wording "each field's existing description"); the byte cost is stated in the PR body.

  11. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Close-out · 2026-11-17T13:00Z

    Card closed by Fixes; pm:dispatched and lease:o3-F leave with this comment.

  12. 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:p2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions