Skip to content

scenarios grader: asked-back:asks false-fails a Chinese ask-back whose request phrase (请确认) follows a comma and that has no question mark #35058

Closed

Description

@objectstack-fleet

triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

Filed by triage at the request of repo:objectstack#3 (area o3-F, mailbox #32588, 6965351956). Follow-up to #34997.

What happens

packages/qa/scenarios/src/score/scenario-dataset-grade.ts, const ASKS (line 93 on main): the pattern passes on a question mark of either width, or on a request phrase (请确认, 请说明, please confirm, …) only when the phrase opens the text or follows [.。!!\n].

Repro: ask-loop iteration 6, dq_travel_spend rep 3 (template b7ab31a7, haiku medium, workspace 090a48eb). The recording key is travel_expense/ask/run/dq_travel_spend/-/repeat-3.

  • The reply opens 「“差旅花费总额”有两个口径都能对上,我不替你选,请确认你要哪一个:」, then lists both measures with no figure.
  • names-candidates and no-figure pass, but asks fails ("the reply asks the person nothing"), because 请确认 follows a full-width comma , and there is no ?.

Effect: a correct ask-back is graded as a miss. Iteration 6 reads asked-back 9/10 and datasets 24/25 instead of 10/10 and 25/25. The loop's done rule reads off this check.

Done when

  • A clause boundary (,,;;::) is accepted before the request phrase.
  • A positive pin covers this reply, and a negative pin shows a figure-bearing reply with a mid-sentence 请确认 still failing no-figure.
  • The loop's recordings are regraded (--driver recorded:), and the scorecard notes the grader change.

Parent: #34659. Blocks: #34996.
Grade: p1 · domain:devx · area:ai. A grader false-fail on Chinese replies directly moves the maintainer-requested loop's target.

Activity

  1. added
    priority:p1
    pm:queue
    domain:devx
    finding
    area:ai
    on Nov 18, 2026
  2. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Claim: PM loop round 1 · 2026-11-18T01:07Z
    Session: session_01WGufziH9rnXEpD9ne7yFhD
    Account: os-support-ai
    Branch: claude/issue-35058-asks-after-comma
    Worktree: objectstack-issue-35058
    Domain: domain:devx
    Seat: repo:objectstack#3
    File surface: packages/qa/scenarios/src/score/scenario-dataset-grade.ts (ASKS), its test packages/qa/scenarios/test/score/scenario-dataset-grade.test.ts, the scenarios README's asked-back grader line if it describes the request-phrase anchor, and a changeset. Not driver.ts (open PR #35064) nor the files open PR #35044 edits (observe.ts, orchestrate.ts, schema.ts, loader.ts).
    Container & model: M, mode:subagent (area o3-F), model: TIER_DEFAULT, effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: scenarios dataset grader (packages/qa/scenarios)
    Thread-read: none
    Premise: holds (main 339c2f42 after #35023: const ASKS anchors the request phrase on (?:^|[.。!!\n]\s*); iteration 6 dq_travel_spend rep 3 fails asked-back:asks on 「…我不替你选,请确认你要哪一个:」, the regrade at /mnt/project-files/issue-34869/skill-iter/iter6/out/). check-governed-merges --test on the surface: NOT governed (same file as #34997's PR #35023).
    Serial constraints cleared: overlap-check before push (#35044 and #35064 share the package, not this file).
    Pre-claim lane: domain:devx, routed to area o3-F by the seat (2026-11-18T00:45Z); after #35048, ahead of #35005.
    Pre-claim deps: none open.
    Prior rulings read: none on the scenarios grader (corpus hits are title-word noise: ADR-0151, ADR-0155, ADR-0044); thread: none; repo: objectstack-ai/objectstack

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

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

    @objectstack-fleet
    ContributorAuthor

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

    {
      "issue": 35058,
      "status": "done",
      "branch": "claude/issue-35058-asks-after-comma",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/35090",
      "session": "session_01WGufziH9rnXEpD9ne7yFhD",
      "premise_still_valid": true,
      "summary": "asked-back:asks now reads a request phrase (please confirm/clarify/..., could you ..., 请确认/请说明/请告诉我/请明确, 您是指/你是指) after a clause mark of either width (, , ; ; : :) as well as at the start of the text, a line or a sentence. The question-mark path and phrase list are unchanged. The anchor (from the grader's introduction in #34808, untouched by #34997/#35023) is kept: the phrase must still open its clause, so quoted or reported mid-clause phrases fail, and 'which one'/'which of' keeps the sentence-only anchor because after a comma it is usually a relative clause. asked-back is bumped to rev 3 (DATASET_GRADER_REVISIONS + doc line, README 'at 3'), so the scorecard reads 'asked-back rev 3'. Changeset: patch @objectstack/scenarios.",
      "tests": "At 5f12a0c23 (after merging origin/main) under the lock: pnpm --filter '@objectstack/scenarios...' build && pnpm --filter @objectstack/scenarios typecheck && pnpm --filter @objectstack/scenarios test, VERDICT command-exit 0, Test Files 39 passed (39), Tests 1120 passed (1120). tsc --listFiles includes the edited test file. New describe pins: (1) the verbatim iter6 rep 3 reply passes the whole grade at revision 3, plus clause-mark variants in both widths/languages; (2) a figure-bearing reply with 请确认 after a comma fails only no-figure ([10290]); (3) quoted 「“请确认”」, reported 'to please confirm', and ', which of course differ' / ', which one team maintains' fail only asks. Ablation via scripts/ablation-replace.mjs at 468dc95f0, restoring the old anchor on REQUEST_PHRASE: anchor x1->x0, blob 76317b6c->c28725a5, Tests 3 failed | 23 passed (26), pin (1) among the failures. Restored with blob == HEAD and git diff HEAD empty. No dist leg because the tests import src/. Live regrade (--driver recorded:, --packages workspace), Run · datasets after the fix: iter6 25/25 (metric-selected 10/10 · asked-back rev 3 10/10 · fallback-labelled 5/5), both at 468dc95f0 and at 5f12a0c23 (main rev 2: 24/25, 9/10); iter5/4/3/2 25/25 rev 3 10/10; iter1 24/25 (metric-selected 9/10 · asked-back rev 3 10/10); iter0 19/25 (asked-back rev 3 5/10 · fallback-labelled 4/5). All equal main's readings except iter6. A direct per-turn regrade against base eb7b09d4's grader agrees: the only pass/fail flip is iter6 dq_travel_spend rep 3. At check level, iter0 dq_claimed_so_far rep 1 now passes asks but still fails names-candidates + no-figure.",
      "gates": "Local, at 5f12a0c23: dispatch-gates --commands --repo objectstack-ai/objectstack derived 60, run with exit codes captured before any pipe: 59 exit 0, 1 exit 3 NOT MEASURED (node scripts/check-plugin-teardown-shape.mjs --self-test: its fixture commit is unreachable in this clone, and it tests the checker itself). --ran: '60 derived, 59 run, 1 NOT-MEASURED, 0 UNRUN'. overlap-check: VERDICT clean exit 0 (origin/main and #35044). CI check-runs on 5f12a0c2 when reported: all in_progress (Check Changeset, Lint · *, Type Check · *, Governed Surface Queue Guard, PR-body guards); opt-in/queue jobs skipped. Test Core etc. not yet listed.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "2 — relay pr_create (POST /repos/objectstack-ai/objectstack/pulls + POST /issues/35090/assignees), post-stamped issue comment on #35058 (POST /repos/objectstack-ai/objectstack/issues/35058/comments). Plus git push of the branch (not REST).",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed — the replays on this checkout's workspace packages seed 757/757 and read Run-问数 25/65, where the loop's regrade worktree read 173/757 (584 refused) and 25/25 · 40 not measured. The difference is in the packed build, not this diff (dataset grader only). The datasets row does not read the seed. Recorded in the PR's Acceptance notes."
      ]
    }
  5. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Landed · area o3-F · 2026-11-18T03:12Z · PR #35090 merged at 2026-11-18T03:11Z (b4b6761). asked-back:asks accepts a request phrase after a clause mark in either width; the grader is asked-back rev 3. The ask loop's iteration 6 regrades to datasets 25/25, asked-back 10/10; every other recording reads as on rev 2. Lease cleared.

  6. 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:devxfindingpriority:p1

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions