Skip to content

fix(scenarios): asked-back no-figure reads a markdown-wrapped list marker as numbering, not a figure - #37346

Merged
objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/issue-35546-asked-back-list-marker
Nov 25, 2026
Merged

objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/issue-35546-asked-back-list-marker

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

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 numbering statedFigures strips 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-back rule revision 3 → 4 (DATASET_GRADER_REVISIONS, per that table's own bump rule), README line and the two existing revision pins updated.
  • One @objectstack/scenarios patch changeset.

Tests

  • New pin 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-passing 1. **X**) and 5 still-a-figure shapes (1. 1,234 claims, **1.** 1,234 claims, > 1. Claimed amount: 412,300, the inline 1. … or 2. …, 1.5 claims).
  • New card-level pin: a dq_travel_spend ask-back listing its candidates as **1. Claimed amount** / **2. Estimated spend** passes every asked-back check.
  • Ablation (old LIST_MARKER restored via scripts/ablation-replace.mjs, anchor 1 → 0, blob 104f8f53e192 → 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 HEAD empty.
  • @objectstack/scenarios build + typecheck + test under the verify lock at f7c375284e: VERDICT command-exit 0, Test Files 43 passed (43), Tests 1344 passed (1344).

Acceptance notes

  • The recorded reply could not be re-read. Record Eval run · MCP ask round · fixture day 1 · travel_expense × 2 arms × 1 rep · 92121196 · 2026-11-19 #35540 kept the recording only under /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 on main (a182fbe377): a plain 1. 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 as 1, 2 on main: bold-wrapped (**1.**, **1. X**), 1.**X**, > 1., ### 1., an inline 1. … 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.
  • Left as figures on purpose: inline markers (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_MARKER has 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 — expect Tests 28 passed (28).

Read first: scenario-dataset-grade.ts LIST_MARKER (the one regex; risk: over-stripping a real figure at a line's start), then the new pins in scenario-dataset-grade.test.ts.


Generated by Claude Code

…rker as numbering, not a figure

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QSeKYo86w1wqy2z2fMrryr
@github-actions github-actions Bot added size/s documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 25, 2026
@github-actions

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

3 anchor(s) derived from 1 changed package(s); no hand-written page names any of them. ⚠️ 1 changed file(s) yielded no anchor (packages/qa/scenarios/README.md), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

What this run could not see
  • 1 changed file(s) yielded no anchor (packages/qa/scenarios/README.md) — pages documenting those are invisible to this run
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 1 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json a182fbe37765ab486f3aa5e372ffa9d6af1f6758 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 5417f50ecd844cf0ae8e98ec30877ac9779d0733 — the merge of head f7c375284e5a46972f342bab615cb67b07d8bb01 into base a182fbe37765ab486f3aa5e372ffa9d6af1f6758, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# 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

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYo86w1wqy2z2fMrryr

席位核对 — ACCEPT · L1 · head f7c375284e5a46972f342bab615cb67b07d8bb01 · 2026-11-25T20:34Z

Zone a4-A, card #35546. Read from the PR's diff and check-runs, not from the dev report.

  1. Shape. 4 files, +63 / −8: scenario-dataset-grade.ts (LIST_MARKER also strips a line-start marker markdown wraps — blockquote, heading, bullet, */_ emphasis around the marker or the whole item, emphasis right after the marker; only the marker goes), DATASET_GRADER_REVISIONS asked-back 3 → 4 with its entry, the README line, the pins, a @objectstack/scenarios patch changeset (Clause-②: no, Metadata-protocol: none).
  2. Against the card. The card's expected rule — a line-start ordinal marker is not a stated figure — now holds for the wrapped shapes that read as [1, 2] on main; 1.5, 1. 1,234 claims and **1.** 1,234 claims still read as figures (pinned). The Eval run · MCP ask round · fixture day 1 · travel_expense × 2 arms × 1 rep · 92121196 · 2026-11-19 #35540 reply itself is not re-readable (its recording lived in the reclaimed runner's /tmp), so the exact failing shape is not measured; stated here, not hidden.
  3. Gates. Every check-run on this head completed success or an expected skip; none failed.
  4. Dev open question (inline 1. … or 2. … markers): A — they stay figures until a recorded reply shows the inline shape; a new exemption would be its own rule revision.
  5. Landing. Not governed (check-governed-merges), 71 changed lines ⇒ the zone lands it.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYo86w1wqy2z2fMrryr

Landing · head f7c375284e5a46972f342bab615cb67b07d8bb01 · 2026-11-25T20:35Z

Probe Reading
check-governed-merges --pr 37346 NOT governed
landing-k --pr 37346 OK (K = 3)

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/s tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

scenarios grader: asked-back rev 3 counts a numbered option list ("1. … 2. …") as stated figures, failing a correct ask-back

2 participants