Skip to content

fix(scenarios): read a go-ahead request as pending_confirmation, and give add_line's ask one reading - #34039

Merged
objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/project-thread-x59ass
Nov 15, 2026
Merged

objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/project-thread-x59ass

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Steve · project thread

Fixes #33977
Clause-②: no
Metadata-protocol: none

维护者速读

  • 改了什么:评测打分器把「还没删、请你回复同意后我再删」这类回复判成了「没尝试写」,现在按请求同意的三种说法(反问、点明需要你的同意、以你同意为条件的提议)都判为「待确认」;发票卡 add_line 的问句改成只有一种读法。
  • 为什么改:这两处是卡片和打分器自己的错,每个模型同样被扣分(2026-11-15 评测 121 个失败里占 25 个),会掩盖云端选模型要看的真实差距。
  • 风险与回滚:只动评测包的打分判定和一张场景卡的问句,不碰产品运行时;判定变宽只影响「没有任何写调用、也没改行」的回合;回滚即 revert 本 PR。
  • 先看:packages/qa/scenarios/src/runner/observe.ts 的 asksToConfirm 与三条短语表;再看 units.test.ts 新增的两条测试(含不该判成待确认的对照)。
  • 两分钟验证:pnpm --filter @objectstack/scenarios exec vitest run test/runner/units.test.ts,预期全绿,其中两条新测试名含 go-ahead。
  • 需要你做的:无,席位落地。

What changes

Two fixes from the eval#1 classification on #33973 (comment 6896724405), both the card's own wording or reading rather than any model.

  1. Grader, rule 5 (packages/qa/scenarios/src/runner/observe.ts). Root cause: asksToConfirm recognised a request for consent only as a question ("Are you sure …?", "Shall I …?", "Do you want me to …?") or by the bare verb confirm (its trailing word boundary also missed the noun "confirmation"). An agent that wrote nothing and said "Nothing has been deleted yet … I need your go-ahead first. Reply yes and I'll delete Ben Ode." asked for consent in the two other shapes of the same request, so the turn fell through to rule 7 and graded refused (no write attempted) on a pending_confirmation operation it had met. The reading is now split by shape, each a closed phrase list:
    • ASKS_WHETHER: the question, as before, plus "confirmation";
    • NAMES_CONSENT: the person's own consent named as what the write waits on ("your go-ahead", "your approval", "your permission", "your consent", "your OK", "your sign-off"; Chinese 需要你的同意/批准/许可/授权). Only "your …" counts: "an admin's approval is needed" names someone else and stays a refusal;
    • OFFERS_ON_ASSENT: the write offered on the person's assent ("Reply yes and I'll …", "Once you approve, I'll …", "Let me know if you want me to …"; Chinese 回复“是” …, 你同意后 …).
      Rule order is unchanged: a write call, a coded refusal and a read refusal still outrank the reply's wording (rule 5 applies only with no write call). The module header's rule 5 line names the three shapes.
  2. Card (docs/qa/scenarios/invoice_with_line_items.json, add_line). The ask "Add 2 Widgets to INV-003, 10 in total." read three ways (10 items, 10 Widgets, amount 10). It now reads "Add a line to INV-003: 2 Widgets, amount 10."; values are unchanged (quantity: 2, amount: 10). Edited as a text fragment, not reserialised. The loader's card checks still pass (library.test.ts, refusals.test.ts, and the whole package suite below).
  3. Changeset .changeset/33977-scenarios-go-ahead-request.md (@objectstack/scenarios patch, both declaration lines).

Not touched (out of scope per the card): whether a delete the user asked for by name still needs a confirmation (76 of the 121, waiting on the maintainer), the delete tool's description, and any card's confirmation rule. packages/qa/scenarios/README.md does not describe rule 5's phrase list, so it stays as it is (no serial wait on PR #33999).

Tests

  • New, packages/qa/scenarios/test/runner/units.test.ts:
    • observedAnswer — the ordered rules › "a request for a go-ahead before the write, in any of its three shapes, ⇒ pending_confirmation; a question that asks no consent ⇒ noWriteAttempted": each shape in English and Chinese; controls: a which-record question, someone else's approval, a bare "yes", and a go-ahead request after an applied write (still applied).
    • observeOperation → gradeCardOperation, on the real crm card › "remove_ben (eval run 2026-11-15 …)": the eval reply's shape through observeOperation and gradeCardOperation passes pending_confirmation; control: the same turn asking only which Ben is meant grades (no write attempted) and fails.
  • Changed because of the card edit, packages/qa/scenarios/test/runner/mid-tier-run-readings.test.ts: R3's verb roster row invoice_with_line_items/add_line goes from add 2 Widgets to add a line to INV-003. The row must be a word-for-word run of the ask, and the old phrase is no longer in it; "I didn't add a line to INV-003." still reads as a decline.

Acceptance notes

  • Acceptance item 1 (add_line's ask has one reading) is checked by the next live round, not here: a replay of the 2026-11-15 recordings is not the check because the ask changed.
  • Another invoice operation, line_without_product, asks "Add a line of 2, 10 in total, to INV-001, no product." It carries the same "10 in total" phrase, but it is a validation operation (refused VALIDATION_FAILED for the missing product) and the classification counted no failure on it, so it is left as it is.

Verification

All at head 75662f13 (branch merged with origin/main a3aa1d29), after a full pnpm build --concurrency=2 under the verify lock (VERDICT command-exit 0).

  • pnpm --filter @objectstack/scenarios test: Test Files 34 passed (34), Tests 867 passed (867), VERDICT command-exit 0.
  • pnpm --filter @objectstack/scenarios typecheck: exit 0.
  • Ablation (one-shot, not left in the tree): node scripts/ablation-replace.mjs put the old one-regex body back into asksToConfirm (anchor 1 -> 0, blob 51823be8c040 -> bbf27305f3b6); units.test.ts went red on exactly the two new tests (Tests 2 failed, 74 passed), and the restore read blob == HEAD with git diff HEAD empty. The tests import observe.ts from source, so no dist rebuild was involved.
  • Derived gates: node scripts/pm/dispatch-gates.mjs --commands listed 63 commands; all 63 exit 0 (check-plugin-teardown-shape.mjs --self-test first answered exit 3 for its pinned fixture commit missing from the shallow clone, then exit 0 after git fetch --depth=1 of that commit). --ran: "63 derived, 63 run, 0 NOT-MEASURED, 0 UNRUN", a derived zero.
  • CI-only families (type-check lanes, Build Core, dogfood shards) are left to this PR's check runs.

Generated by Claude Code

@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 15, 2026
@github-actions

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

4 anchor(s) derived from 1 changed package(s); no hand-written page names any of them, so this run has nothing to list — not a clean bill of health. This check sees only pages that NAME a derived anchor: one that documents this change in prose, or enumerates it in an authoring dialect, names none and stays invisible to it on every run.

What this run could not see
  • the SDK route bridge reached 65 of 247 client-bound route-ledger rows — the other 182 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 182: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 123 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • 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 159757abc17394bcb0b1240fe382ae3d11a0d549 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 44335e04683fd37fadb8dd2537120419424c19f9 — the merge of head 75662f132658896f5b397b8f834929c351eceb03 into base 159757abc17394bcb0b1240fe382ae3d11a0d549, 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 44335e04683fd37fadb8dd2537120419424c19f9 && git checkout 44335e04683fd37fadb8dd2537120419424c19f9
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 159757abc17394bcb0b1240fe382ae3d11a0d549 75662f132658896f5b397b8f834929c351eceb03 && git checkout -B drift-repro 159757abc17394bcb0b1240fe382ae3d11a0d549 && git merge --no-ff 75662f132658896f5b397b8f834929c351eceb03

node scripts/docs-audit/affected-docs.mjs --json 159757abc17394bcb0b1240fe382ae3d11a0d549

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

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:devx#2 · os-steve · session_01ADHkmQTVjryTSkqydKVS6z

席位核对 · ACCEPT · head 75662f1326 · 2026-11-15T17:30Z

  • Shape: draft to main, first line Fixes #33977, Clause-②: no / Metadata-protocol: none at line start in the body and the changeset (@objectstack/scenarios patch). Five files: the invoice_with_line_items card, observe.ts, two tests and the changeset. check-governed-merges --pr 34039: NOT governed, 90 lines.
  • Coverage of the card: (1) add_line now asks "Add a line to INV-003: 2 Widgets, amount 10.", one reading; values unchanged (quantity: 2, amount: 10); the forced test change is the R3 verb row in mid-tier-run-readings.test.ts, named in the body. (2) Root cause in the grader: asksToConfirm knew only the question shape and the bare verb (its trailing \b also missed "confirmation", and "proceed?" before a space), so a reply that names the person's go-ahead or offers the write on their assent fell to rule 7. Rule 5 now reads three shapes (question, the person's consent named, the write offered on assent) as closed phrase lists, rule order unchanged, a write call still outranking the wording. Pinned with the remove_ben reply shape and controls (a which-record question, "an admin's approval", a bare "yes"); ablation to the old regex turns exactly the two new tests red.
  • Seat read of the change: none of the three phrase constants is exported, so no public surface moves and Clause-②: no holds; the graded answer that moves (refused (no write attempted) → pending_confirmation for these replies) is declared in the changeset. The delete-confirmation rule question (76 of 121) is untouched, as the card scopes it.
  • Gates: check-runs on 75662f13: 35 success, 16 skipped, 0 failure, 0 pending; K = 0 behind its merged-in origin/main a3aa1d29; scenarios 867/867, typecheck green, full build, dispatch-gates 63/63 exit 0, --ran 0 NOT-MEASURED (report 6898126557).
  • Open question answered by the seat: line_without_product keeps "10 in total": a validation operation the classification shows no failure on.
  • Accepted deviations: none. packages/qa/scenarios/README.md needed no edit (it does not list rule 5's phrases), so no wait on fix(scenarios): keep a working-day card's dates on working days on every run date #33999. The seat adds the signed footer.
  • Out of scope: none.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 15, 2026 17:30
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 15, 2026
Merged via the queue into main with commit 63db724 Nov 15, 2026
56 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-x59ass branch November 15, 2026 18:06
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.

Scenario cards: make the invoice add_line ask unambiguous, and read "reply yes and I'll delete" as pending_confirmation

2 participants