Repository navigation
fix(scenarios): asked-back no-figure reads a markdown-wrapped list marker as numbering, not a figure - #37346
Conversation
…rker as numbering, not a figure Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QSeKYo86w1wqy2z2fMrryr
📓 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 5417f50ecd844cf0ae8e98ec30877ac9779d0733 && git checkout 5417f50ecd844cf0ae8e98ec30877ac9779d0733
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin a182fbe37765ab486f3aa5e372ffa9d6af1f6758 f7c375284e5a46972f342bab615cb67b07d8bb01 && git checkout -B drift-repro a182fbe37765ab486f3aa5e372ffa9d6af1f6758 && git merge --no-ff f7c375284e5a46972f342bab615cb67b07d8bb01
node scripts/docs-audit/affected-docs.mjs --json a182fbe37765ab486f3aa5e372ffa9d6af1f6758 |
|
repo:objectstack#4 · os-justin · session_01QSeKYo86w1wqy2z2fMrryr 席位核对 — ACCEPT · L1 · head
|
|
repo:objectstack#4 · os-justin · session_01QSeKYo86w1wqy2z2fMrryr Landing · head
State: L1 ACCEPT on this head (7173881356); every check-run green or expected skip. Ready and auto-merge in this stroke. On MERGED, #35546 closes by |
Fixes #35546
repo:objectstack#4 · os-justin · session_01QSeKYo86w1wqy2z2fMrryr
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
packages/qa/scenarios/src/score/scenario-dataset-grade.ts:LIST_MARKER(the option-list numberingstatedFiguresstrips before reading figures) now also strips a marker markdown wraps at a line's start: emphasis around the marker or the whole item (**1.** X,**1. X**,__1)__ X), emphasis right after it with no space (1.**X**), a blockquote (> 1.) and a heading (### 1.). Only the marker is stripped, so a figure after it (**1.** 1,234 claims) still reads as a figure. A number inside a sentence (… 1. claimed amount or 2. estimated spend?) is not at a line's start and still reads as a figure, unchanged.asked-backrule revision 3 → 4 (DATASET_GRADER_REVISIONS, per that table's own bump rule), README line and the two existing revision pins updated.@objectstack/scenariospatch changeset.Tests
an option list's numbering markdown wraps at a line's start is no figure; a figure after the marker still is: 8 no-figure shapes (incl.①and the already-passing1. **X**) and 5 still-a-figure shapes (1. 1,234 claims,**1.** 1,234 claims,> 1. Claimed amount: 412,300, the inline1. … or 2. …,1.5 claims).dq_travel_spendask-back listing its candidates as**1. Claimed amount**/**2. Estimated spend**passes every asked-back check.LIST_MARKERrestored viascripts/ablation-replace.mjs, anchor 1 → 0, blob104f8f53e192→0f054601e95c): both new pins fail (Tests 2 failed | 26 passed (28); the card-level one fails with['asked-back:no-figure']); restore blob equals HEAD blob,git diff HEADempty.@objectstack/scenariosbuild + typecheck + test under the verify lock atf7c375284e:VERDICT command-exit 0,Test Files 43 passed (43),Tests 1344 passed (1344).Acceptance notes
/tmp/askday/in the runner's container, which is gone; no issue or comment quotes the reply text. So the exact failing shape is NOT MEASURED. What was measured onmain(a182fbe377): a plain1. X/2) X/- 1. X/1. **X**list already reads as no figure, so the recorded reply cannot have been that shape. Shapes that do read as1, 2on main: bold-wrapped (**1.**,**1. X**),1.**X**,> 1.,### 1., an inline1. … or 2. …, an inline(1) … (2) …, a table| 1 |,1 — X,1: X. This PR exempts the line-start markdown-wrapped family, the shape a model most often emits for a list. A①marker already read as no figure (no digit) and is now pinned.1. … or 2. …,(1) … (2) …) and table cells, because a number before.or inside parentheses mid-sentence is as often a figure; widening there would hide real figures. If the next ask round shows the reply used one of these, that is a separate rule decision.LIST_MARKERhas been unchanged since it was added; rev 3 did not regress it. The earlier pass on eval: a daily MCP ask round on the open-source runner — local boot, subscription login, no cloud access #34869 was a different reply shape.Verification
Two-minute check:
pnpm --filter @objectstack/scenarios exec vitest run --maxWorkers=2 test/score/scenario-dataset-grade.test.ts— expectTests 28 passed (28).Read first:
scenario-dataset-grade.tsLIST_MARKER(the one regex; risk: over-stripping a real figure at a line's start), then the new pins inscenario-dataset-grade.test.ts.Generated by Claude Code