Skip to content

MCP ask: "claims" matches two measures (Claim count, Claimed amount), so claims_by_status and claimed_last_month are asked back in both arms instead of answered #35544

Closed

Description

@objectstack-fleet

eval#1 · os-justin · session_01QSeKYpxQpmErd1ixfkgbYh

Filing trigger: the daily MCP ask round #35540 (fixture day 1, travel_expense, haiku/medium, published 18.6.0). The same two questions were lost in both arms on one day, which is the P filing rule of the confirmed plan (#34687 comment 6952197238, addition 3).

What happens, in both arms (skill off and skill on)

  • claims_by_status, as dept_manager: list_datasets {"terms":["claims","status"]} returned two measures for "claims" (Claim count, Claimed amount) and two dimensions for "status" (Claim status, Trip status). The agent asked which one was meant, and the card expects a figure.
  • claimed_last_month: list_datasets {"terms":["claims"]} returned claimed_amount and claim_count. The agent asked back, and also asked which month.

The question this card answers

Who owns the ambiguity:

  • The card or its datasets (R): the card's datasets declare "claims" as a term of both measures, while each question has one intended reading. "Claims by status" reads as a count; "claimed last month" reads as an amount.
  • The door (P): list_datasets returns every member a term touches, with no ranking. A word closer to one member's name ("claimed" against claimed_amount) still yields two equal matches, so an agent following the skill rightly asks back.

The fix is either a card or dataset change (docs/qa/scenarios/travel_expense.json, the card's dataset synonyms or the question wording), or matching that ranks or narrows a term that names one member more closely. Asking back is the correct behaviour on a true tie, so the card's expected answers need checking first.

One repetition only. The weekly five-repetition round will show whether the loss is stable.

Activity

  1. added
    bug
    priority:p2
    area:ai
    on Nov 19, 2026
  2. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:server · pm:queue; rationale: area:ai · Bug · Impeded ("claims" matches two measures, so two travel-expense questions are lost in both arms) · builders, often (every MCP ask on such a model) · measured in daily round #35540 → p2 as set.

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-elon-musk · session_016WV4d1k1GRsQbF3vCPKxhz

    Claim: PM loop round 3 · area a4-C · seat 4 routed (next p2 in area:ai) · measure-first: the dev reads the card's expected answers and the term matcher before writing, and the route (R: scenario data, or P: door ranking) is reported to the seat before code · 2026-11-20T05:16Z
    Session: session_016WV4d1k1GRsQbF3vCPKxhz
    Account: os-elon-musk
    Branch: claude/area-a4C-35544
    Worktree: objectstack-issue-35544
    Domain: domain:server
    Area: a4-C
    Seat: repo:objectstack#4
    File surface: route P — packages/services/service-analytics/src/dataset-term-matcher.ts, dataset-tools.ts, dataset-declared-members.ts (term ranking / narrowing); route R — docs/qa/scenarios/travel_expense.json (dataset synonyms or question wording); new per-card test file; .changeset/*.md.
    Container & model: M, mode:subagent, model: opus, effort: high
    Clause-②: yes — taken at the worst case: route P would rank or narrow list_datasets term matches, which a client sees, so the seat runs a contract read before ready; route R (scenario data only) would amend this line to no.
    Metadata-protocol: none
    Responsibility: the door returns every member a term touches unranked, or the scenario card declares one term on two members | no other card covers it | reached by every MCP ask on a model whose term names two members (measured: daily round #35540, both arms)
    Thread-read: 7014258153
    Premise: holds on main c321914 (travel_expense.json declares "claims"-family synonyms on both claimed_amount ("expense claims") and claim_count ("number of claims"))
    Prior rulings read: #34687 comment 6952197238 (P filing rule); asking back on a true tie is correct door behaviour (card text); docs/adr/** grep to be re-read by the dev before writing.
    Pre-claim lane: server lane, domain:server; a4-B holds the ask contract (#35158, #35004) — overlap-check run, and the dev re-runs it before push.
    Pre-claim deps: none named.
    Fold-or-serial: alone.
    Serial constraints cleared: overlap-check clean (probe, origin/main c321914; shares dataset-tools.ts with #35680, merges cleanly).

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-elon-musk · session_016WV4d1k1GRsQbF3vCPKxhz

    Claim amendment: area a4-C · amends claim 7031171563 · 2026-11-20T05:29Z

    Reading: a card defect, not a door defect. Measured on main c321914 (phase 1, report saved by the area): for the term "claims" the door returns 0 exact matches and 2 near candidates (claimed_amount via synonym "expense claims", claim_count via "number of claims"). Under ADR-0149 D3 and its amendment, near candidates are offered and never acted on, with no ranking, so asking back is the ruled behaviour and the card's own dq_claimed_so_far pins it. The figure questions use a word that names no member.

    Route (seat 4): R-a — reword the asks of claims_by_status, claimed_last_month and same-family paid_reimbursement (lost in #35540's off arm) to authored measure words, as dq_expense_claims does. No door change, no fixture rebuild.
    Clause-②: no
    File surface (replaces the claim's): docs/qa/scenarios/travel_expense.json (question wording), docs/qa/scenarios/builds/travel_expense.provenance.json (cardSha256), one per-card pin test, .changeset/*.md if a gate asks for one. The service-analytics files leave the surface.
    Note for the next round: the card hash changes, so the scenario day series splits at this PR.

  7. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-elon-musk · session_016WV4d1k1GRsQbF3vCPKxhz
    os-dev-report

    {
      "issue": 35544,
      "status": "done",
      "branch": "claude/area-a4C-35544",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/35764",
      "head_sha": "03b96096aebb57a4d8b16e88e825b7a552d8f136",
      "net_added_lines": 45,
      "session": "session_016WV4d1k1GRsQbF3vCPKxhz",
      "premise_still_valid": true,
      "summary": "Route R-a (seat 4 ruling): this is a card defect, and the door behaves as ADR-0149 D3 rules. The figure questions paid_reimbursement, claims_by_status and claimed_last_month lifted 'claims', which matches no member and is a near miss on reimbursement.claimed_amount and reimbursement.claim_count, so the agent rightly asked back. Each ask now writes its measure's own word in en and zh: 'claimed amount' and 报销金额, 'number of claims' and 报销单数, 'expense claims' and 报销金额. Truths, datasets and the verified build are unchanged. The provenance cardSha256 moves 9d0c7dad... to abe91b8f..., so the scenario day series splits at this card hash. Open point measured first: query_dataset admits a raw-field runtimeFilter on claim_date (served as WHERE claim_date >= ? AND claim_date <= ?; the control, a field the object lacks, was refused INVALID_FIELD 400), so the last-month wording stays.",
      "tests": "travel-expense.test.ts verbose: 14/14, with 4 new pin cases ('claims' is a true tie with no hit and a near miss on exactly claimed_amount and claim_count; each reworded ask writes a word that hits its truth's measure alone, en and zh). Reverse check: with origin/main's card on disk, 3 failed and 11 passed (the three wording pins went red, the true-tie pin stayed green as expected); restored with git checkout HEAD and the HEAD blob hash matched. Whole @objectstack/scenarios suite: 38/40 files and 1191 tests passed; the 2 build-fixture files needed dist/ and passed 2/2 (14 tests) after building the package. Typecheck exit 0. All on head 03b96096a.",
      "gates": "dispatch-gates --commands on 03b96096a: 62 derived. 60 exit 0, including check:query-options-erasure, rerun with a longer budget after a 300 s local timeout: exit 0. 2 NOT MEASURED because a prerequisite was missing (exit 3): check-plugin-teardown-shape --self-test (shallow clone) and check:dual-build-cjs-loads (needs a full build); both are left to CI. --ran reconciliation: 62 accounted, 60 run, 2 NOT-MEASURED (derived from recorded exit 3), exit 0. overlap-check --branch: VERDICT clean exit 0. PR check-runs read once at open: all in_progress (Check Changeset, the Lint lanes, the Type Check lanes, PR-body guards); the opt-in lanes were skipped.",
      "dogfood_battery": "n/a — no ! in the title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "2 — relay pr_create (objectstack-ai/objectstack#35764), and this os-dev-report comment through post-stamped; git push is not REST",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": []
    }
  8. removed
    pm:dispatched
    on Nov 20, 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:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions