Repository navigation
fix(scenarios): asked-back:asks reads a request phrase after a clause mark - #35090
Conversation
… mark Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufziH9rnXEpD9ne7yFhD
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufziH9rnXEpD9ne7yFhD
📓 Docs Drift Check3 anchor(s) derived from 1 changed package(s); no hand-written page names any of them. What this run could not see
Coarse fallback — 1 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 14524556d61962edeed7a2654f87e2966c54324f && git checkout 14524556d61962edeed7a2654f87e2966c54324f
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 301b7c11c5f24a52db706f9016155293c066756d 5f12a0c2323dc5b43d1ecf6817c81870e31a0825 && git checkout -B drift-repro 301b7c11c5f24a52db706f9016155293c066756d && git merge --no-ff 5f12a0c2323dc5b43d1ecf6817c81870e31a0825
node scripts/docs-audit/affected-docs.mjs --json 301b7c11c5f24a52db706f9016155293c066756d |
|
repo:objectstack#3 · os-support-ai · session_01WGufzfWpJ96QY9T7d8DvFg L1: ACCEPT · 2026-11-18T02:27ZHead-sha: 5f12a0c 席位核对
What I checked
Must-fixNone. Should-fixNone. Notes
NextThis ACCEPT is conditional on CI finishing green on 5f12a0c. With Clause-② no and not governed, it is an ordinary queue landing by the area, and then #34996 is unblocked. Any push after 5f12a0c owes a delta read. |
|
repo:objectstack#3 · os-support-ai · session_01WGufziH9rnXEpD9ne7yFhD Landing · area o3-F · 2026-11-18T02:46Z · #35058 asked-back:asks accepts a request after a clause mark
State change: ready for review + auto-merge (merge queue). #35058 closes on merge via |
Requested by Yibo Wang · project thread
Fixes #35058
Clause-②: no
Metadata-protocol: none
维护者速读
asked-back:asks)现在也认逗号、分号、冒号(全角半角都算)后面的请求短语,例如「我不替你选,请确认你要哪一个:」;asked-back 规则版本从 rev 2 升到 rev 3,记分卡显示asked-back rev 3。dq_travel_spend第 3 次回答其实正确地反问了,却因为「请确认」跟在逗号后、又没有问号,被判成「没有问用户任何问题」,datasets 只拿到 24/25。@objectstack/scenarios),不影响运行时。rev 2 与 rev 3 的轮次不能直接对比,记分卡上的版本号会区分它们。回滚即还原本 PR。packages/qa/scenarios/src/score/scenario-dataset-grade.ts(REQUEST_PHRASE/ASKS两处正则,以及DATASET_GRADER_REVISIONS改成 3)、packages/qa/scenarios/test/score/scenario-dataset-grade.test.ts(新的asked-back:asksdescribe)。pnpm --filter @objectstack/scenarios exec vitest run test/score/scenario-dataset-grade.test.ts,预期 26 个测试全过,其中包括第 6 轮第 3 次回答的原文。What changes
asked-back:asks(ASKSinscenario-dataset-grade.ts): a request phrase (please confirm/clarify/specify/tell me/let me know,could you clarify/confirm/specify, 请确认, 请说明, 请告诉我, 请明确, 您是指, 你是指) now asks when it opens a clause, after,,;;::. Before, it counted only at the start of the text, a line, or a sentence (after.。!!). The question-mark path and the phrase list did not change.I asked finance to please confirm the totals). The phrase still has to open its clause. Opening quotes and plain words are not boundaries, so both still failasks.which one/which of. This keeps the sentence-only anchor. After a comma it is usually a relative clause (…, which of course differ,…, which one team maintains), and a real question spelled that way ends in a question mark, which the?path already reads.REQUEST_PHRASE), so the two anchors share one list.DATASET_GRADER_REVISIONS['asked-back']goes from 2 to 3. I followed fix(scenarios): asked-back no-figure no longer reads option places or dates as figures #35023: a line in the table's doc block, and theRun · datasetsrow now readsasked-back rev 3 k/N(the scorecard code did not change, it reads the table). README: theasked-backentry now says what counts as an ask, and "asked-backis at 3".patchon@objectstack/scenarios. No export was added, removed or changed shape (DATASET_GRADER_REVISIONSkeeps its type, and only its value moves), soClause-②: no.Tests
All readings are at head
5f12a0c23.describeintest/score/scenario-dataset-grade.test.ts, graded againsttravel_expensedq_travel_spend(the travel card loader moved to module scope so both travel describes share it):asks,names-candidates,no-figure) atrevision3. Clause-mark variants in both widths and both languages also pass (,请确认,;请说明,: 您是指,, please confirm,; could you clarify,: please let me know).asked-back:no-figurefailing. One case is the recorded reply plus 「目前报销金额合计 10,290 元。」, and the other is 「报销金额合计 10,290 元,请确认…」. Both read[10290].to please confirm, and, which of course differ/, which one team maintainseach fail onlyasked-back:asks.revision3 instead of 2.Package suite, typecheck, ablation
5f12a0c23, run under the verification lock:pnpm --filter '@objectstack/scenarios...' build && pnpm --filter @objectstack/scenarios typecheck && pnpm --filter @objectstack/scenarios test. Exit 0.Test Files 39 passed (39),Tests 1120 passed (1120).tsc --listFilesincludes the edited test file.scripts/ablation-replace.mjsat468dc95f0. The tests importsrc/, so there is no dist leg. The mutation put the old sentence-only anchor back onREQUEST_PHRASE. The tool reported "anchor x1 -> x0, replace x0 -> x1, blob 76317b6c -> c28725a5". Result:Tests 3 failed | 23 passed (26). The recorded-reply pin (1) fails, and so do the clause-mark variants and the second negative case (its 请确认 follows a comma, soasksfails there too). After the restore, the blob matched HEAD (76317b6c) andgit diff HEADwas empty.Acceptance notes
dq_claimed_so_farrep 1, 「如果"claim"指的是其他对象…,请告诉我,我再查。」. That grade still fails, onnames-candidatesandno-figure. An ask-back passes only when it also names every candidate and states no figure, so a reply that answers cannot pass through this widening.、, a dash, a closing quote), andwhich oneafter a comma with no question mark.Seedreads757/757andRun-问数reads25/65(iteration 3 and 5:24/65). The loop's own regrades (regrade-rev2/) read173/757 · 584 refusedand25/25 · 40 not measured. The seed difference comes from the build the packages are packed from, not from this diff, which touches only the dataset grader. The datasets row does not read the seed.Verification
Regrading the ask-loop recordings (travel_expense, --driver recorded:)
Command, one iteration at a time, with work and out directories in a scratch dir:
pnpm --filter @objectstack/scenarios run-scenarios --only travel_expense --modes ask --template …/ask-round-2026-11-17/build/travel_expense/template.json --ask-repeats 5 --packages workspace --driver recorded:…/skill-iter/iterN/ask.rec.json --work … --out ….24/25 (metric-selected 10/10 · asked-back rev 2 9/10 · fallback-labelled 5/5)25/25 (metric-selected 10/10 · asked-back rev 3 10/10 · fallback-labelled 5/5)25/25 (… asked-back rev 2 10/10 …)25/25 (metric-selected 10/10 · asked-back rev 3 10/10 · fallback-labelled 5/5)25/25 (… asked-back rev 2 10/10 …)25/25 (metric-selected 10/10 · asked-back rev 3 10/10 · fallback-labelled 5/5)25/25 (… asked-back rev 2 10/10 …)25/25 (metric-selected 10/10 · asked-back rev 3 10/10 · fallback-labelled 5/5)25/25 (… asked-back rev 2 10/10 …)25/25 (metric-selected 10/10 · asked-back rev 3 10/10 · fallback-labelled 5/5)24/25 (metric-selected 9/10 · asked-back rev 2 10/10 · fallback-labelled 5/5)24/25 (metric-selected 9/10 · asked-back rev 3 10/10 · fallback-labelled 5/5)19/25 (metric-selected 10/10 · asked-back rev 2 5/10 · fallback-labelled 4/5)19/25 (metric-selected 10/10 · asked-back rev 3 5/10 · fallback-labelled 4/5)468dc95f0, the fix before the merge of origin/main. Iteration 6 ran twice: once at468dc95f0and again at the merged head5f12a0c23, after origin/main brought in fix(scenarios): a replay maps the row a recorded run_action created to its live id #35064 (driver.ts). Both runs read the row shown.dq_travel_spendrep 3, which went from fail to pass. As a cross-check, I graded every recorded dataset turn directly, outside the runner, with this branch's grader and with baseeb7b09d4's grader. Every iteration matched the table. Per check, one other result moved: iteration 0dq_claimed_so_farrep 1 now passesasksbut still failsnames-candidatesandno-figure(see Acceptance notes). No ask-back went the wrong way.Local gates
node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstackat5f12a0c23derived 60 commands. Each was run, and its exit code was captured before any pipe. 59 exited 0. One exited 3 (PREREQUISITE NOT MET), so it is NOT MEASURED:node scripts/check-plugin-teardown-shape.mjs --self-test. Its positive-control fixture is pinned to a commit this clone cannot reach ("Deepen the clone: git fetch --unshallow origin main"), and it tests the checker itself, which this diff does not touch.--ranreconciliation:60 derived, 59 run, 1 NOT-MEASURED, 0 UNRUN, with every line carrying its exit code.node scripts/pm/overlap-check.mjs:VERDICT clean exit 0. It merges cleanly with origin/main and with fix(scenarios): travel_expense filing checks per-type amounts via aggregate post-states and relation paths; records stamp the card sha256 and summaries refuse mixed cards #35044, which sharespackages/qa/scenarios/README.md.Generated by Claude Code