Skip to content

MCP 问数: list_datasets(["booking total"]) answers no_measure, so the agent states a non-governed figure instead of asking which booking measure — a stable loss on both arms, 4 measured runs in a row (order_to_cash dq_booking_total) #38953

Done

Description

@objectstack-fleet

eval#1 · os-justin · session_01QSeKYpxQpmErd1ixfkgbYh

Filing gate: ① product defect, reproduced through the public entry (the MCP door, list_datasets then query_dataset / object tools) · Source: maintainer. The seat proposed splitting this out of #34996 at p1, and the maintainer answered 「同意」 (2026-12-01, verification seat session).
Ruling-ref: priority:p1 — maintainer 「都应该是 p1 吧?」 then 「同意」 (2026-12-01; GA focus #38907)

Grading: area:ai · domain:server · Bug · p1. This meets the daily round's filing rule, addition 3 of #34687 6952197238. The loss is stable on both arms on one day (0/5 off, 0/5 on, record #38946), and it is lost in at least the on arm on four measured runs in a row: #37997, #38816, #38853 and #38946.

Business reason

A user asks the business-term question "what is our booking total?" on an app whose governed datasets hold a Booked amount measure. The agent should answer from that metric, or ask which booking measure is meant. Instead it computes 546,400 itself from the object tools, labelled "not from a governed metric", and never offers the governed measure. That is the failure #34869's 问数 track exists to remove: a figure that differs from the governed one, with no question asked.

Reproduction (record #38946, main ac97540f, workspace packages, haiku medium, 5 reps per arm)

  1. Install the committed fixture docs/qa/scenarios/builds/order_to_cash.json (sha 5d1696c8…) into a blank host, seed it, and ask as the card's persona: the dq_booking_total question.
  2. In all 10 reps, the agent calls list_datasets with terms: ["booking total"], because the skill and the fix(mcp): send the user's whole phrase to list_datasets; re-send a cut word instead of asking #37919 tool description ask for the user's whole noun phrase.
  3. The door answers nextStep.decision: no_measure, with a note to answer from the object tools.
  4. The agent answers 546,400 from aggregate_records and asks nothing. The card expects asked-back.
  5. Control, 11-27, Eval run · MCP ask round · fixture · travel_expense + order_to_cash × 2 arms × 1 rep · 0b539b6a · 2026-11-27 #37997: the off arm sent ["booking total", "booking"]. The single word booking returned candidates_only with Booked amount, and the agent asked.

Expected

One of the following. The owner chooses, and the card records the choice:

  • (P) The door's term match yields Booked amount as a candidate for the phrase "booking total". A measure whose label or synonyms contain "booking" or "booked" should match a phrase whose head word does, so the answer is candidates_only or one_measure and the agent asks or answers from the metric.
  • (A) With no_measure on a business-term phrase, the skill and tool description send the agent to re-query with the phrase's head word before falling back. That is the inverse of fix(mcp): send the user's whole phrase to list_datasets; re-send a cut word instead of asking #37919's "re-send the user's own phrase".
  • (R) If neither is wanted, the card's asked-back expectation for this question is changed by ruling, and the change is recorded in the card's provenance.

Reader

The owner of the dataset door's term matching (list_datasets / dataset-next-step.ts, #37919's area) together with the objectstack-ask skill owner. #34996, the skill and tool-description iteration card, is where this reading was held until now; it stays the place for the overall target.

Acceptance: the daily round passes dq_booking_total on both arms on two consecutive days, or at 5 reps it reaches 4/5 or better on both arms.

Dedupe

Split from #34996 on the maintainer's word; that card gets a pointer.

Activity

  1. added
    bug
    priority:p1
    area:ai
    domain:server
    on Dec 1, 2026
  2. objectstack-fleet commented on Dec 1, 2026

    @objectstack-fleet
    ContributorAuthor

    triage@os-warren · os-warren · session_01JQwxbZzZ2f5mzcvJbRrRNZ

    Triage: first-touch · lane grade kept: area:ai · Bug · p1 (maintainer 「同意」) · pm:queue.

  3. added
    pm:queue
    on Dec 1, 2026
  4. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-support-ai · os-support-ai · session_01WGufzeatqKfTRUzTJVa9jQ

    Claim: PM loop round 10 · 2026-12-02T00:16Z · zone osa-ai takes this card on the seat's word (the lane's owner)
    Area: osa-ai
    Session: session_01WGufzeatqKfTRUzTJVa9jQ
    Account: os-support-ai
    Branch: claude/issue-38953-booking-head-word
    Worktree: objectstack-issue-38953
    Domain: domain:server
    Seat: repo:objectstack@os-support-ai
    File surface: packages/services/service-analytics/src/dataset-term-matcher.ts, packages/services/service-analytics/src/dataset-next-step.ts, packages/services/service-analytics/src/__tests__/dataset-term-matcher.test.ts where a pin reads a changed node, packages/services/service-analytics/src/__tests__/dataset-term-matcher-38953-head-word.test.ts, .changeset/38953-booking-head-word.md. ⛔ Not skills/** (route A is not chosen), not packages/spec/**, not docs/adr/**: if the build finds that ADR-0149 D3's text must change, the dev stops and the zone amends this claim. Stop on breach; explain in the report.
    Container & model: M, mode:subagent, model: default (dispatch-gates --tier: "floor sonnet · default opus · ceiling fable", no path-derived mandate), effort: high (reason: p1, a matching rule every dataset question passes through)
    Clause-②: no (the list_datasets answer keeps its shape; a term with no hit may now carry a candidate it did not carry before, which D3's amendment of 2026-11-19 leaves to the executor)
    Metadata-protocol: none
    Thread-read: 7315392885
    Route: P, chosen by the seat as this lane's owner. The door's near-term rule yields a measure as a CANDIDATE (never a hit) for a phrase whose head word its label or a synonym carries, so list_datasets(["booking total"]) on the card's fixture answers candidates_only (or one_measure only where rule 1 equality already holds) and the agent asks. Route A (skill text) and route R (a ruling on the expectation) are not taken.
    Scope: Part of this card. A red-first pin on the card's fixture shape: booking total against Booked amount red on today's matcher and green on the fix, with the existing candidate and named-field pins unchanged. Acceptance (the daily round passing dq_booking_total on both arms) is the eval seat's measurement, carried there.
    Serial constraints cleared: check-handover.mjs --inflight --card=38953 over this surface: no overlap with any held claim (exit 5 on claims naming no path).

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-support-ai · os-support-ai · session_01WGufzeatqKfTRUzTJVa9jQ
    os-dev-report

    {
     "issue": 38953,
     "status": "done",
     "branch": "claude/issue-38953-booking-head-word",
     "pr": "https://github.com/objectstack-ai/objectstack/pull/39017",
     "session": "session_01WGufzeatqKfTRUzTJVa9jQ",
     "premise_still_valid": true,
     "summary": "Route P built in dataset-term-matcher.ts: a list_datasets term near no member by itself (today's two-way containment) is read a second time by its HEAD word, and a member near the head is a candidate for the phrase, never a hit. The head is the last space-separated word before the first of by/per/for/in/at/on/from/to/during/over/across/vs/versus that is not a total word (total, sum, overall, grand...) or a joining word (of, the, our, so, far...), with an unspaced total word (合计/總計/総額...) cut once from its end or start; kind words (amount, value, count, number, 金额, 数量) stay heads. On the order_to_cash build, booking total now answers candidates_only with order_book.measures.booked_amount, reached through the synonym 'bookings' the fixture already carries (no stem or prefix rule). The first commit used 'any non-generic word'; the existing dataset-tools.test.ts pins went red on two real false positives (sales orders offered a sales amount, deal value offered a count), so the second commit narrowed it to the head word and those pins went green again unedited. Design points: (1) today misses because no target contains 'booking total' and the phrase contains no whole target ('bookings' is not inside it). (2) head-word containment via the existing isNear; the file's 'no edit distance, stem or embedding' sentence stays true. (3) head, not any word, for the two false positives above; over the two scenario builds (115 terms = 65 member names/labels/synonyms + 50 phrases) 13 terms gain candidates, each from 0, max 3, 102 unchanged; cap still holds (pinned). (4) 2026-12-01 note: dataset-term-names-field-38551.test.ts green; 2026-11-19 and 2026-11-24 notes: the grouping-word, precedence and app-crm blocks of dataset-tools.test.ts green; no nextStep sentence became false, so dataset-next-step.ts is unchanged. (5) CJK: the whole-term reading is unchanged (金额/合同金额 pinned again); 成交合计 gives 成交, inside 成交额. (6) No ADR-0149 text has to change: rule 1 already says a substring may be offered and not acted on, and the 2026-11-17 note leaves nearness to the executor. (7) Red-first ablation done, see tests. The second reading never adds to the first: a term near any member by itself keeps exactly today's candidates. The 2026-12-01 take-out still tests the WHOLE term (open question 1).",
     "tests": "Final head 91325724b6 (merge of origin/main ce0d0da26e into 91598879fa). (a) pnpm --filter @objectstack/service-analytics exec vitest run --maxWorkers=2 (full package, under os-verify-lock): 'Test Files 230 passed (230)', 'Tests 5942 passed | 345 skipped (6287)', VERDICT command-exit 0, run at 93f617f736 + changeset-only commits (the merge after it touched only skills/, a script and a changeset, outside this package). (b) the four affected files (new pin, dataset-term-matcher.test.ts, dataset-term-names-field-38551.test.ts, dataset-tools.test.ts): 'Tests 129 passed | 10 skipped (139)'. (c) pnpm --filter @objectstack/service-analytics typecheck: exit 0; the new test is in the program (tsc --listFiles count 1). Ablation (the pin imports ../dataset-term-matcher.js, src, no dist or alias, so no build leg): HEAD 93f617f7 matcher blob 0ca02122; mutated by git restore --source=571b4947b1, on-disk blob b67074bf = BASE blob (phraseHead count 5 at HEAD, 0 at BASE); run of new pin + matcher suite + 38551 suite: 'Tests 5 failed | 28 passed', the 5 red being the door case (\"expected 'no_measure' to be 'candidates_only'\"), the matcher case, head word, CJK and cap; the 2 preservation pins stay green on both trees, as they should. Restored with git checkout HEAD --: blob 0ca02122, git diff HEAD 0 bytes, git status --porcelain empty.",
     "gates": "Local: node scripts/pm/dispatch-gates.mjs --commands at 91325724b6 (merge base ce0d0da26), 66 families; each run with its exit code captured before any pipe; --ran reconciliation: 'Run reconciliation — 66 derived, 64 run, 2 NOT-MEASURED, 0 UNRUN', every line carrying an exit code. 64 exit 0 (including pnpm check:nul-bytes, check:cross-package-test-inputs, check:test-source-alias, check:doc-authoring, check:issue-citations, check:engine-double-contract, check-empty-changeset --base origin/main, check-changeset-no-major --base origin/main). NOT MEASURED: node scripts/check-plugin-teardown-shape.mjs --self-test, reason: PREREQUISITE NOT MET exit 3, the shallow clone cannot reach the pinned positive-control commit 621a4876. NOT MEASURED: pnpm check:dual-build-cjs-loads, reason: PREREQUISITE NOT MET exit 3, it reads every package dist and only the service-analytics closure was built. No export renamed or removed, so check-platform-checklist was not owed. CI families: NOT MEASURED, reason: the report is delivered when the PR opens; PR #39017's check-runs had not concluded and are the PM's to read.",
     "mcp_calls": "0",
     "api_writes": "2 — fleet-write relay strokes, each a POST /repos/objectstack-ai/objectstack/dispatches: (1) pr_create (the executor sent POST /pulls draft and POST /issues/39017/assignees os-support-ai; read-back 10799 bytes sent, 10799 stored, identical); (2) this os-dev-report comment through post-stamped.mjs. git pushes (probe plus 4 pushes) are not REST writes.",
     "classifier_refusals": [],
     "open_questions": [
      {
       "question": "Should the 2026-12-01 take-out (a filtered measure whose aggregated field the term names, answered from the field) also apply when the second reading found the measure through the phrase's HEAD word? Today it tests the whole term only, as the note defines 'named by the term'. So 'hours total' beside a filtered 'Billable hours' over field hours is now ASKED about that measure (candidates_only); before this PR it was no_measure with no candidate and no field sentence; 'hours' alone is still answered from the field. Verified with readDatasetTerms on the built matcher.",
       "options": [
        "A Keep the take-out on the whole term, as built. No ADR text changes. Cost: a phrase whose head names the field asks one question where the bare word would be answered from the field. Work: none.",
        "B Test the head word in the take-out when the second reading supplied the candidate. Cost: the 2026-12-01 note's definition of 'named by the term' changes, so its ADR text must change first (the zone amends the claim; this dev did not write it). Work: about 10 lines plus one pin, after the record changes."
       ],
       "recommendation": "A for this PR, because the ADR text stays as written and the question replaces a figure the agent used to compute with no question at all. B is the better match to the ruling's intent (「不再反问」) if the zone wants it, as a follow-up after the record is amended. The dispatch supplied no decision axes, so this recommendation rests on the claim's own fence (ADR text out of scope) and is not an axis-by-axis analysis."
      }
     ],
     "security_findings": "none",
     "out_of_scope_findings": [],
     "files_changed": [
      "packages/services/service-analytics/src/dataset-term-matcher.ts",
      "packages/services/service-analytics/src/__tests__/dataset-term-matcher-38953-head-word.test.ts",
      ".changeset/38953-booking-head-word.md"
     ],
     "line_budget": "348 changed lines (+328/-20) over 3 files, against the 3000 human-merge line; dataset-term-matcher.ts is 439 lines, under 1000. No skills/** file touched, so no skill byte budget applies.",
     "deviations": [
      "The gate loop (66 derived families, one foreground command) passed the 600 s foreground limit, and the harness moved it to the background. I did not start it in the background. I waited for it in the foreground with bounded polls and read every exit code before reporting. No monitor or background job is still running.",
      "The new pin is a new file, as the dispatch fence names it. AGENTS.md says a new pin for a component that already has a shared harness file goes into that file as a top-level describe (ruling record 6583487846). dataset-term-matcher.test.ts may be that file. I followed the dispatch and am flagging the conflict for the seat. dataset-term-matcher.test.ts was not edited, because no pin there reads a changed node.",
      "Attribution follows AGENTS.md, not the harness reminder. The commits carry the model-free trailer pair (Claude-Session plus 'Co-authored-by: Claude'), not the reminder's model-named Co-Authored-By. The PR body ends in AGENTS.md's session-URL footer form, not the reminder's 'Generated with' line, followed by the dispatch's signed trailer as its last line.",
      "The origin/main merge (ce0d0da26e) was made before pr_create, as AGENTS.md section 10 says to do before opening a PR. It carries the dispatch's message and the Claude-Session trailer. It touched only skills/, a script and a changeset, so nothing was rebuilt; the gates were derived again at the merged head."
     ],
     "worktree": "removed after PR open (node_modules deleted, git worktree remove exit 0); all work is on origin/claude/issue-38953-booking-head-word at 91325724b6."
    }
  7. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-support-ai · os-support-ai · session_01WGufzeatqKfTRUzTJVa9jQ
    Update to the os-dev-report above. The seat chose option A: the field take-out keeps testing the whole term. The pins now live in packages/services/service-analytics/src/__tests__/dataset-term-matcher.test.ts, one [#38953] describe, and the separate pin file is gone. The head reading now offers measures only (contract review S1). PR #39017 head is now bd0821d8c2.

  8. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-support-ai · os-support-ai · session_01WGufzeatqKfTRUzTJVa9jQ

    Hand-off: zone osa-ai stands down · 2026-12-02T11:52Z · maintainer 2026-12-02T11:46Z 「各区可以下班了,下面只负责专题任务。」 (seat lease row 7344423709 on #38765)

    • Landed: PR fix(analytics): list_datasets offers a measure for a phrase whose head word it carries #39017 (head-word candidate in service-analytics), Part of.
    • Branch: none in flight. Nothing unmerged; no backup branch is needed.
    • Owed: the eval seat's daily round measuring dq_booking_total on both arms; watch the two fallback_labelled controls (L1 nit N1). No development is owed by this card's claim.
    • The zone's claim passes to the seat repo:objectstack@os-support-ai (same account), which keeps pm:dispatched under landing rule B until the measurement lands, then closes the card. Labels and assignee are unchanged by this comment.
  9. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhPdWmTd47Fi2bKYZS

    Release: 2026-12-02T11:56Z · seat os-support-ai releases this card to the queue. The maintainer stood the area zones down at 2026-12-02T11:46Z (「各区可以下班了,下面只负责专题任务。」, lease row 7344423709), and this card is not part of an epic the seat still works. What osa-ai left for the next holder is in its hand-off above. No code or branch is held.

  10. added
    pm:queue
    and removed
    pm:dispatched
    on Dec 2, 2026
  11. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

    eval#1 · os-justin · session_01QSeKYpxQpmErd1ixfkgbYh

    2026-12-02T14:51Z · from runner session_01QSeKYoVHtw3WFhezYcfhxx's report; the runner made no GitHub write.

    Daily ask round, record #39154 (main 27ce3c0a, workspace packages, haiku medium, 1 rep per arm). dq_booking_total passes on both arms, for the first time on a measured run (#38946 was 0/5 · 0/5).

  12. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-bill · os-bill · session_01Utp6CaQsbKBMQtm6Tpsamd

    Claim: PM loop round 8 (measurement hold, landing rule B)
    Session: session_01Utp6CaQsbKBMQtm6Tpsamd
    Account: os-bill
    Branch: none — no build is owed; PR #39017 (head-word candidate in service-analytics) landed Part of this card.
    Domain: unchanged
    Seat: repo:objectstack@os-bill
    File surface: packages/services/service-analytics/src/dataset-term-matcher.ts (read only: the measurement hold writes no file; stop on breach; explain in the report)
    Container & model: XS, mode:subagent, model: default — dispatch-gates --tier: "no path-derived mandate" (no build dispatched), effort: medium
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — not a defect build: the fix landed; what is owed is a measurement
    Thread-read: 7349289442
    Premise: holds — hand-off 7344535825 lists the fix as landed and owes only: the eval seat's daily round measuring dq_booking_total on both arms (two consecutive daily passes, or 4/5 on both arms at 5 reps). Round #39154 passed it once on both arms (7349289442), so one more daily pass closes it.
    Serial constraints cleared: none — no repository file in this stroke.
    Intake: p1 queue, on the maintainer's words 「你应该优先处理 各区的 p1 和阻塞 p1 的任务,有问题及时和我沟通。is:issue state:open label:pm:queue label:priority:p1」 (2026-12-02T21:53Z) and 「p1 队列可以并发10」 (2026-12-02T22:00Z), relayed by the project coordinator.
    Landing rule B: the card leaves the queue (nothing for a dev to pick up) and this seat closes it when the eval seat's round records the measurement above; a loss on that round reopens a build by a claim amendment.

  13. added
    pm:dispatched
    and removed
    pm:queue
    on Dec 2, 2026
  14. objectstack-fleet commented on Dec 3, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-bill · os-bill · session_01Utp6CaQsbKBMQtm6Tpsamd

    Progress: 2026-12-03T08:13Z · answering triage@hotlong's knock (PR #39129 comment 7371975595). This card is a measurement hold under claim 7360252940. No build is owed and no file is held. It closes on the eval seat's next daily ask round reading dq_booking_total on both arms. The last reading was record #39154 at 2026-12-02T14:51Z: it passed on both arms, 1 rep each. Two changes to the same route have landed since then: #39235 (the step 1 matcher of #39152) and PR #39275 (the step 2 no-ask-back of #39221, now in the merge queue). So the next round reads the current main. The seat holds the card until that reading; idle time here is waiting on the eval round, not stalled work.

  15. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

    eval@os-elon-musk · os-elon-musk · session_016WV4cys3d4KkznXzBcQvKF

    Reading · 2026-12-04T00:50Z · daily ask round record #39451 (main 4eca9da0, holds #39235 and #39275; haiku / medium, 1 rep per arm).

  16. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

    eval@os-elon-musk · os-elon-musk · session_016WV4cys3d4KkznXzBcQvKF

    Reading · 2026-12-04T00:54Z · daily ask round record #39451 (main 4eca9da0, holds #39235 and #39275; haiku / medium, 1 rep per arm).

  17. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-bill · os-bill · session_01Utp6CaQsbKBMQtm6Tpsamd

    Close-out: 2026-12-04T01:10Z · verified by the daily MCP ask eval round #39451 (every config scored 12 to 13 of 13, no leak): the second day in a row that the card's question passes. Closed as completed; the state label leaves with this note.
    Source: the maintainer (Bill), project chat of seat repo:objectstack@os-bill, 2026-12-04 01:02Z: 「今天的问数评测已经跑完(#39451)…#38953 连续第二天通过,#39152 之前失败的 4 道题今天也都过了,卡由 os-bill 座位来关。」

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

Metadata

Metadata

Assignees

Labels

area:aibugdomain:serverpriority:p1

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions