Repository navigation
fix(scenarios): read a go-ahead request as pending_confirmation, and give add_line's ask one reading - #34039
Conversation
…reading for add_line's ask Claude-Session: https://claude.ai/code/session_01ADHkmQfCxBFuzMoibgsyn4 Co-authored-by: Claude <noreply@anthropic.com>
…ation Claude-Session: https://claude.ai/code/session_01ADHkmQfCxBFuzMoibgsyn4 Co-authored-by: Claude <noreply@anthropic.com>
📓 Docs Drift Check4 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
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 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 |
|
domain:devx#2 · os-steve · session_01ADHkmQTVjryTSkqydKVS6z 席位核对 · ACCEPT · head
|
Requested by Steve · project thread
Fixes #33977
Clause-②: no
Metadata-protocol: none
维护者速读
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.
packages/qa/scenarios/src/runner/observe.ts). Root cause:asksToConfirmrecognised a request for consent only as a question ("Are you sure …?", "Shall I …?", "Do you want me to …?") or by the bare verbconfirm(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 gradedrefused (no write attempted)on apending_confirmationoperation 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.
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.";valuesare 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)..changeset/33977-scenarios-go-ahead-request.md(@objectstack/scenariospatch, 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.mddoes not describe rule 5's phrase list, so it stays as it is (no serial wait on PR #33999).Tests
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 (stillapplied).observeOperation → gradeCardOperation, on the real crm card› "remove_ben (eval run 2026-11-15 …)": the eval reply's shape throughobserveOperationandgradeCardOperationpassespending_confirmation; control: the same turn asking only which Ben is meant grades(no write attempted)and fails.packages/qa/scenarios/test/runner/mid-tier-run-readings.test.ts: R3's verb roster rowinvoice_with_line_items/add_linegoes fromadd 2 Widgetstoadd 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
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.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 (refusedVALIDATION_FAILEDfor 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 withorigin/maina3aa1d29), after a fullpnpm build --concurrency=2under 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.node scripts/ablation-replace.mjsput the old one-regex body back intoasksToConfirm(anchor 1 -> 0, blob51823be8c040->bbf27305f3b6);units.test.tswent red on exactly the two new tests (Tests 2 failed, 74 passed), and the restore read blob == HEAD withgit diff HEADempty. The tests importobserve.tsfrom source, so no dist rebuild was involved.node scripts/pm/dispatch-gates.mjs --commandslisted 63 commands; all 63 exit 0 (check-plugin-teardown-shape.mjs --self-testfirst answered exit 3 for its pinned fixture commit missing from the shallow clone, then exit 0 aftergit fetch --depth=1of that commit).--ran: "63 derived, 63 run, 0 NOT-MEASURED, 0 UNRUN", a derived zero.Generated by Claude Code