Skip to content

mcp: name notRecorded in the record tools' descriptions, add one not-recorded ask question, and keep __search out of notRecorded #35429

Done

Description

@objectstack-fleet

repo:objectstack#6 · hotlong · session_01Q4EjjNq58cmHeqckjZkTFE

Filing gate: ③ follow-up of an accepted delivery (cross-repo-coordination.md rule 3). #35138 closes with PR #35408 (PR 5, its last table row). Its owed follow-up "PR 3b", recorded in #35138 comment 6983113781 as "not rows of its table" and "A later claim picks these up", would otherwise be lost with the card. This card carries it.

What is owed (verbatim from 6983113781)

  1. "A sentence in the query_records, aggregate_records and get_record tool descriptions that names notRecorded / ifNotRecorded (os-dev report 6979330524, open question; area note 6979387847 answered A)."
  2. "One ask-card question for an object or field that is not recorded, in scenarios: the open ask cards cover the ten question kinds the hosted ask set asks, so an ask regression is caught here first #35113's open ask cards."
  3. "__search (the search companion key), on a where refused for another reason, is named in notRecorded (L1 note N1 in 6981423771). It is narrow, and the name is the caller's own string: skip it in whereFieldNames or list it in ALWAYS_ADDRESSABLE_COLUMNS."

Where

Also noted by PR #35408 (Acceptance notes, not filed separately)

  • The open citation grader (packages/qa/scenarios/src/score/scenario-run-grade.ts, SOURCE_LINE) reads Source: / 来源: but not 來源: / 出典:, which source.line now writes for zh-Hant and ja callers. No zh-Hant or ja ask question exists today; fold it into item 2's PR if one is added.

Suggested-grade: p3 · small follow-ups on a landed member, no user-visible defect today.
Dedupe: notRecorded description and __search notRecorded found only #35138.

Activity

  1. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:server · pm:queue; rationale: area:cloud (objectstack side, intake of repo:objectstack#6) · Bug · Impeded (the record tools' descriptions do not name notRecorded, so an agent can read an unrecorded value as empty) · builders, often (every MCP ask) · carried from #35138 comment 6983113781 → p2.

  2. added
    domain:server
    pm:queue
    priority:p2
    on Nov 19, 2026
  3. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:cloud#1 · os-warren · session_01JQwxbZEHjgBkgmgj9G9xr4

    Routed by the coordinator to a card thread of the cloud zone on the maintainer's order (quoted at the end).

    Claim: PM loop round 1 (cloud zone, card thread)
    Session: session_01JQwxbZEHjgBkgmgj9G9xr4
    Account: os-warren
    Branch: claude/project-thread-7jrrt0
    Worktree: /home/user/w35429/objectstack-issue-35429
    Domain: domain:server
    Seat: repo:cloud#1
    Area: cloud zone
    File surface: packages/mcp/src/mcp-http-tools.ts (the query_records / aggregate_records / get_record descriptions beside OBJECT_QUERY_SOURCE_DESCRIPTION; whereFieldNames or ALWAYS_ADDRESSABLE_COLUMNS), the mcp package's tests for these tools, docs/qa/scenarios/order_to_cash.json or docs/qa/scenarios/travel_expense.json (one question), docs/qa/scenarios/README.md (the per-kind table), packages/qa/scenarios/test/dataset-cards.test.ts (its figures), one changeset (stop on breach; explain in the report)
    Container & model: S, not mechanical (judgment in the description sentence and the question), mode:thread (card thread; os-dev subagent inside it), model: default (dispatch-gates --tier: "no path-derived mandate"; floor sonnet · default opus · ceiling fable), effort: medium (small follow-up of an accepted delivery, coordinator brief)
    Clause-②: no
    Metadata-protocol: none
    Responsibility: the mcp package's own record tools (objectstack-ai/objectstack, packages/mcp): their descriptions never say what notRecorded means, and a where carrying the caller's search companion key names __search as not recorded | the refusal already carries notRecorded / ifNotRecorded with a sentence (#35138 PR 3); nothing tells the model up front | every MCP ask caller whose read is refused on a name the schema does not show; reachable today
    Thread-read: 7005648411
    Premise: holds at origin/main 5d21d43. The three descriptions (mcp-http-tools.ts query_records ~4113, aggregate_records ~4269, get_record ~4483) carry OBJECT_QUERY_SOURCE_DESCRIPTION (first two) and never name notRecorded / ifNotRecorded; whereFieldNames (~1758) pushes every non-$ key, and ALWAYS_ADDRESSABLE_COLUMNS (~1734) holds only id / created_at / updated_at, so __search (spec SEARCH_COMPANION_FIELD) is named when a where is refused for another reason. Item 2: the open dataset cards' two unanswerable questions (september_commission, travel_expense's tax one) ask for a concept no object records; whether either drives a record-tool call that sends an unrecorded object or field name (the notRecorded path) is unmeasured, so the dev adds one that does.
    Pre-claim lane: packages/mcp/** is domain:server (file ownership only); docs/qa/scenarios/** and packages/qa/** are domain:devx file ownership; all developed in this seat per the stay-in-lane rule. None is a governed path.
    Pre-claim deps: no Blocked-by: line; #35138 closed and PR #35408 merged. Open PRs on the surface: #37436 (draft, os-bill) touches mcp-http-tools.ts at one hunk near line 3852, not these descriptions or the not-recorded helpers; no open PR touches the scenario files.
    Prior rulings read: card terms → 269 ADR candidates, none on these descriptions; the in-file ⛔ lines on the surface read: NOT_RECORDED_SENTENCE (「One sentence for every case the member is served on, naming nothing」) and notRecordedMembersOf (「an object or a field the caller's schema does not show is answered exactly as one that does not exist」) are constraints, kept; README.md:370 「No question here is copied from the hosted set」 kept; thread: 0 rulings.
    Serial constraints cleared: zone in-flight cards (#37130, #4463, #5011) share no file with this surface; #37436 shares the file at a different hunk, later lander resolves.

    Provenance: the maintainer wrote 「area:cloud p1 p2 开专区继续处理」 in the project chat at 2026-11-25T23:34Z.

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

    @objectstack-fleet
    ContributorAuthor

    repo:cloud#1 · os-warren · session_01JQwxbZEHjgBkgmgj9G9xr4

    Handoff at 2026-11-26T05:32Z (maintainer's order, project chat 2026-11-26T05:30Z: 「token 快用完了,要求开发尽快提交代码。进入交接模式」). The claim 7183123521 stays with this card; the next holder continues on the same branch.

    • Branch: claude/project-thread-7jrrt0, last pushed head 5a1a0cb1 (one commit on main 5d21d431).
    • PR: fix(mcp): name notRecorded in the record tools descriptions; never name __search as not recorded #37443 (draft, Part of this card, assignee os-warren). CI at handoff: 4 success, 16 skipped, 20 pending; not read to the end.
    • Done: item 1 (one shared NOT_RECORDED_DESCRIPTION sentence in the query_records, aggregate_records and get_record descriptions) and item 3 (whereFieldNames skips SEARCH_COMPANION_FIELD). Tests in packages/mcp/src/mcp-not-recorded.test.ts: 27 pass; with mcp-http-tools.ts at 5d21d431 the 5 new ones fail. @objectstack/mcp test + typecheck green locally (85 files, 1526 tests). Local gate run: 53 of 67 derived commands ran, 51 exit 0, 2 NOT MEASURED (dual-build needs a full build; teardown-shape fixture beyond the shallow clone); the last 14 NOT MEASURED (handoff).
    • Not done: item 2. Both open dataset cards already ask 10 questions, and order-to-cash.test.ts:184 / travel-expense.test.ts:159 pin toBeLessThanOrEqual(10) (README mid-tier band 「8–10 questions」), outside the claim's file surface. Options the dev reported: A raise the band to 8–11 and add an order_to_cash question naming a field sales_order lacks (e.g. a discount), recommended; B replace an existing question; C reword september_commission to name a field. Not ruled; this is a scope question for the seat, not decided here.
    • Not done either: the os-dev-report comment, L1 review, landing.
    • Next step: read fix(mcp): name notRecorded in the record tools descriptions; never name __search as not recorded #37443's check-runs at its head; L1 it for items 1 and 3; settle item 2 (A widens the surface by one card test and one README sentence) either on this PR or as a follow-up, then land fix(mcp): name notRecorded in the record tools descriptions; never name __search as not recorded #37443 with Part of and keep this card open for item 2.
  6. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:cloud#1 · os-warren · session_01JQwxbam7Qn8Y5gwjc5wtYP

    Release: handed to repo:objectstack#6 · 2026-11-26T06:3xZ · state pm:dispatched → pm:queue, assignee cleared.

    Release: items 1 and 3 are done and pushed in a draft PR; item 2 needs a routing choice.
    Resume-from: claude/project-thread-7jrrt0@5a1a0cb1

    Order: Warren, 2026-11-26T06:34Z, verbatim 「area:cloud 的剩余任务交接给 objectstack#6」, in the project's main chat.


    Generated by Claude Code

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#6 · hotlong · session_01Q4EjjQkY5yXZrN9BEA3rEK

    Taken over on the maintainer's word in this seat's project, verbatim: 「你接手他的卡」, answering repo:cloud#1's release 7184591958; intake then 「继续处理 area:cloud p1 p2」.

    Claim: PM loop round 1
    Session: session_01Q4EjjQkY5yXZrN9BEA3rEK
    Account: hotlong
    Branch: claude/project-thread-7jrrt0
    Worktree: objectstack-issue-35429
    Domain: domain:server
    Seat: repo:objectstack#6
    File surface: packages/mcp/src/mcp-http-tools.ts, packages/mcp/src/mcp-not-recorded.test.ts, one changeset (items 1 and 3, as pushed in draft PR #37443) (stop on breach; explain in the report)
    Container & model: S, mode:subagent, model: default (dispatch-gates --tier: "no path-derived mandate"), effort: medium (resume of a pushed small follow-up: bring the branch up to main, read CI, write the report)
    Clause-②: no
    Metadata-protocol: none
    Responsibility: the mcp package's own record tools (objectstack-ai/objectstack, packages/mcp) | the refusal already carries notRecorded / ifNotRecorded; nothing tells the model up front | every MCP ask caller; reachable today
    Thread-read: 7184591958
    Premise: holds (items 1 and 3 pushed at 5a1a0cb with tests that fail on main; the handoff 7183583455 reads)
    Serial constraints cleared: #37436 shares mcp-http-tools.ts at another hunk; overlap-check.mjs merges cleanly against main and #37436 (exit 0)
    Resume-from: claude/project-thread-7jrrt0@5a1a0cb1

    Item 2 routing (seat's call, maintainer veto window): PR #37443 lands items 1 and 3 as Part of this card. Item 2 (one not-recorded ask question) needs the dataset-card 10-question band widened, which is outside this card's file surface; it is split to its own follow-up card after #37443 lands, and this card then closes.

  9. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 26, 2026
  10. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

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

    {
      "issue": 35429,
      "status": "done",
      "branch": "claude/project-thread-7jrrt0",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/37443",
      "session": "session_01Q4EjjQkY5yXZrN9BEA3rEK",
      "premise_still_valid": true,
      "summary": "Resumed claude/project-thread-7jrrt0 at 5a1a0cb1 (items 1 and 3 already implemented by the previous holder), merged origin/main a46efa8c in cleanly (merge commit cf2ba9b6, no conflicts; #37436's mcp-http-tools.ts hunk did not collide) and pushed. Delta vs main is unchanged and inside the file surface: 3 files, +83/-1 (.changeset/35429-mcp-not-recorded-description.md, packages/mcp/src/mcp-http-tools.ts, packages/mcp/src/mcp-not-recorded.test.ts). Item 2 untouched (no docs/qa/scenarios or dataset-card edits). PR body NOT edited: os-dev.md says a subagent writes a PR body only at pr_create and never PATCHes it (the seat writes it), which outranks the dispatch's 'make sure the PR body says item 2 is split'. The body still reads 'Part of #35429' (correct) but its Acceptance notes and the fourth 维护者速读 line still describe item 2 as an open decision on this PR, and its Tests section cites the tree of 5a1a0cb1; proposed seat edits are in open_questions. PR assignee is os-warren (previous holder), left as found.",
      "tests": "Head cf2ba9b6 (post-merge). Dependency closure: os-verify-lock 'pnpm turbo run build --filter=@objectstack/mcp^... --concurrency=2' -> Tasks 35 successful / 35, VERDICT command-exit 0. 'pnpm --filter @objectstack/mcp test && pnpm --filter @objectstack/mcp typecheck' -> Test Files 85 passed (85), Tests 1526 passed (1526), VERDICT command-exit 0 (typecheck = tsc --noEmit plus check:test-typecheck via tsconfig.test.json, which reaches the test files). Ablation re-run on the merged head: mcp-http-tools.ts restored tree-only from origin/main (NOT_RECORDED_DESCRIPTION count 0 on disk) -> vitest src/mcp-not-recorded.test.ts: Tests 5 failed / 22 passed (27), the 5 new cases red; restored from HEAD (count 4, git status clean) -> Tests 27 passed (27), VERDICT command-exit 0.",
      "gates": "Local: dispatch-gates --commands --repo objectstack-ai/objectstack at cf2ba9b6 derived 67 commands; all 67 run, 65 exit 0, 2 exit 3 = NOT MEASURED (node scripts/check-plugin-teardown-shape.mjs --self-test: fixture commit beyond the shallow clone; pnpm check:dual-build-cjs-loads: needs a full pnpm build, 46 package dists absent). --ran reconciliation with exit codes recorded: '67 derived, 65 run, 2 NOT-MEASURED, 0 UNRUN' (exit 0). No renamed/removed export, no new error code, no fake engine, no gate script edited. CI at head cf2ba9b6: 53 check-runs, 37 completed/success and 16 completed/skipped, 0 failure, 0 in progress, no rerun used. Required set: Lint & Repo Gates success, TypeScript Type Check success, Test Core success (10/10 shards success), Build Core success, Governed Surface Queue Guard success, Dogfood Regression Gate success, Live E2E UI success; Lint UI, Type Check UI, Build & E2E UI skipped (no ui/ path); Test UI success. Also Check Changeset success, Check PR Size success, PR-body guards success.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "1 — POST /repos/objectstack-ai/objectstack/issues/35429/comments (this os-dev-report, via post-stamped.mjs). git push of cf2ba9b6 is not a REST write.",
      "open_questions": [
        { "question": "Seat edit of PR #37443 body (not done by the dev, per os-dev.md): item 2 is now split to a follow-up card, and the Tests line cites 5a1a0cb1.", "options": ["A seat replaces the Acceptance notes item-2 bullet with 'Item 2 (one not-recorded ask question) is split to its own follow-up card; it widens the dataset-card question band, outside this card's file surface. This PR stays Part of #35429.', changes the fourth 维护者速读 line to 无 (or the follow-up's one-line Chinese note), and updates Tests to head cf2ba9b6: 85 files / 1526 tests, ablation 5 failed / 22 passed then 27/27", "B leave the body as is"], "recommendation": "A, because the body currently asks the maintainer for an item-2 decision this PR no longer carries" }
      ],
      "security_findings": "none",
      "out_of_scope_findings": []
    }
  11. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#6 · hotlong · session_01Q4EjjQkY5yXZrN9BEA3rEK

    Closed as delivered · 2026-11-26T08:12Z: PR #37443 merged (items 1 and 3; L1 ACCEPT 7185485307). Item 2, the not-recorded ask question, lives on #37473.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:clouddomain:serverpriority:p2

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions