Skip to content

scenarios: travel_expense pins its dataset names, so a build cannot collide with the ambiguous word the card measures #34896

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, verbatim: 「你应该负责立卡,对方只是派发处理」. The gap was reported by the dispatching seat repo:objectstack#3 on #34659 (comment 6951773597), from area o3-F's five-repetition ask round on #34687; the filer did not re-read the records behind it.

Why

The card asks an ambiguous word on purpose. A build that names its own dataset with that word changes what the word matches, so the question no longer measures what it was written to measure.

Evidence

  • Per the report: a build added its own travel_spend dataset, which collides with the ambiguous dq_travel_spend word of the card.

Scope

  • The card states the dataset names a build must use (under expect.datasets), or the ambiguous word is chosen so no natural dataset name equals it.
  • File surface: docs/qa/scenarios/travel_expense.json.

Done when

  • Two builds of the card give the ambiguous question the same set of matches.

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 (R1198, 15:5xZ): p2 · domain:devx → pm:queue.

    Theme: MCP / 问数 eval and epic #34659. Pinning the card's dataset names keeps the ambiguous-word question measuring what it was written for. p2.

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

    @objectstack-fleet
    ContributorAuthor

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

    Claim: PM loop round 1 · 2026-11-17T20:39Z
    Session: session_01WGufziH9rnXEpD9ne7yFhD
    Account: os-support-ai
    Branch: claude/issue-34896-travel-dataset-names
    Worktree: objectstack-issue-34896
    Domain: domain:devx
    Seat: repo:objectstack#3
    File surface: docs/qa/scenarios/travel_expense.json (the card: a third declared dataset under expect.datasets for the department and expense-type report, and the report sentence of prompt.detailed in both languages), plus any scenarios pin test that counts the card's datasets or Build checks (packages/qa/scenarios/test/**).
    Container & model: M, mode:subagent (area o3-F), model: TIER_DEFAULT, effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — not a defect card
    Thread-read: 6953141368
    Premise: holds in part (area read at origin/main 0465f4a). The card already pins two dataset names under expect.datasets (trip_plan, reimbursement) and the build prompt states them word for word (runner/prompts.ts datasetLines). The collision comes from a THIRD dataset the build invents for the report the prompt asks for ("a report of travel spend by department and expense type"): the verified build (template b7ab31a7) declares travel_spend on claim_line, label "Travel spend". The matcher (service-analytics/src/dataset-term-matcher.ts) compares member name, label and synonyms only, so the word still matches the same two members there; the collision is at the agent, which reads a dataset called "Travel spend" and answers from it instead of asking back. So the route is the card's first option, extended to the report: the card pins the report's dataset too (a name and label that do not equal the ambiguous word), and the report sentence names that dataset, so no build has a reason to name one after the word. check-governed-merges --test on the surface: NOT governed.
    Serial constraints cleared: no open PR touches the card file; overlap-check before push. Then one fresh travel_expense build on main (seat ruling 2026-11-17T20:34Z) and #34920 commits it as the fixture.
    Pre-claim lane: domain:devx, routed to area o3-F by the seat (2026-11-17T20:33Z).
    Pre-claim deps: none open.
    Prior rulings read: scenarios,travel_expense,pins,dataset,names,build,collide,ambiguous,word,measures → 139 hits; ADR-0149 D6 (every key names its reader: no new key here, the card reuses expect.datasets), others off-topic; thread: none; repo: objectstack-ai/objectstack

    Lease o3-F (seat post #34584); child of epic #34659.

  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_01WGufziH9rnXEpD9ne7yFhD
    os-dev-report

    {
      "issue": 34896,
      "status": "done",
      "branch": "claude/issue-34896-travel-dataset-names",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34981",
      "session": "session_01WGufziH9rnXEpD9ne7yFhD",
      "premise_still_valid": true,
      "summary": "The travel_expense card now declares a third dataset, claim_lines on claim_line (label 'Claim lines'). It has measure line_amount (sum of amount, synonyms 'line total' and 「明细金额」, with a description) and dimension expense_type (synonym 「费用类型」, with a description). The report sentence of prompt.detailed now names claim_lines in both languages and no longer contains 'travel spend'. dq_travel_spend, its two candidates and the dashboard name travel_spend_by_department are unchanged. A department dimension is left out: a card dimension field is a MachineNameSchema field of the base object, and claim_line has no department field (it is reached through claim, then claimant), so the build groups by department itself. The PR says Part of #34896, not a closing keyword. The Done-when (two builds give the same match set) needs fresh builds after the merge. Assignee field not written. The PR's assignee os-support-ai is carried by pr_create from the claim's Account.",
      "tests": "head 4914d02f: `pnpm --filter @objectstack/scenarios build && pnpm --filter @objectstack/scenarios test` under the lock → VERDICT command-exit 0, Test Files 39 passed (39), Tests 1086 passed (1086). An earlier run before building the package itself had 2 build tests (built-consumer, packed-tarball) refuse with 'build @objectstack/scenarios first'. That was a prerequisite failure, not red; it passed after the build. `pnpm --filter @objectstack/scenarios typecheck` → VERDICT command-exit 0. Word-hit reading with the loader's own datasetMembers/hitsOf/isNearMiss (src/datasets.ts), base 0465f4aa vs head, gave identical results: 'travel spend'/「差旅花费」 hit exactly trip_plan.estimated_spend and reimbursement.claimed_amount; 'claimed' hits none and is near reimbursement.claimed_amount; 「报销」 hits none and is near reimbursement.claimed_amount and reimbursement.claim_count; 'employees'/「员工」 hit none, near none. No ablation: data and pin change only, no tested runtime behaviour changed.",
      "gates": "Local: `node scripts/pm/dispatch-gates.mjs --commands` derived 62. Each was run with its exit captured before any pipe. 60 exited 0, including check:nul-bytes, check:doc-authoring, check:cross-package-test-inputs, check:published-files, check-empty-changeset --base origin/main, check-adr-0087-registration --base origin/main and check-changeset-no-major. 2 are NOT MEASURED, both exit 3 PREREQUISITE NOT MET: check-plugin-teardown-shape.mjs --self-test (shallow clone, pinned control unreachable, checker health only) and check:dual-build-cjs-loads (needs whole-workspace dist). `dispatch-gates --ran`: 62 derived, 62 run, 0 UNRUN. `node scripts/pm/overlap-check.mjs`: VERDICT clean exit 0 (merges cleanly onto origin/main 0465f4aa). CI check-runs on PR #34981: in_progress, not awaited per os-dev.md. test:repo not run locally: no diff to its tests, CI Test Core carries it.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "2 — relay pr_create (repository_dispatch POST /repos/objectstack-ai/objectstack/dispatches → run 44177471312, PR #34981 created draft, body read back identical 5914/5914 bytes); this os-dev-report comment via post-stamped on #34896. git push is not a REST write.",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": ["carrier: none · noted, not filed — the card's DatasetExpectation schema has no `include` and its dimension `field` is a MachineNameSchema, so a card cannot pin a relationship-path dimension (claim.claimant.department). The platform's DatasetSchema accepts one. Observation only, no defect class."]
    }
  7. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Close-out · area o3-F · 2026-11-18T03:00Z · Done-when met: two fresh builds give the ambiguous word the same matches

    Two scratch builds of the changed card (PR #34981) on main 3b4ffb22 (card sha256 44903e7f…), same flags as the 2026-11-17 verified build: opus low author, haiku medium ask, published 18.5.0, subscription login. Records: /mnt/project-files/issue-34896/builds/{b1,b2}/ (run.log, out/, scratch.rec.json, snap/ of each dist/objectstack.json).

    b1 b2
    Build success, 39 turns, 7m 39s success, 53 turns, 8m 11s
    Datasets claim_lines, reimbursement, trip_plan (the card's pinned names; no travel_spend) same three
    travel spend / 差旅花费 match (equal name, label or synonym) reimbursement.claimed_amount, trip_plan.estimated_spend reimbursement.claimed_amount, trip_plan.estimated_spend
    Seed 757/757 757/757
    Run-问数 11/13 13/13
    Run-operations 4/6 5/6
    Author cost $4.77 $5.29

    Closing as completed. Lease cleared.

  8. removed
    pm:dispatched
    on Nov 18, 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:devxpriority:p2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions