You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 8df43c5
Browse filesBrowse the repository at this point in the historyBrowse files
fix(scenarios): a reply that asks for the person's go-ahead before a write grades as `pending_confirmation`, and the invoice card's `add_line` ask has one reading
6
+
7
+
Clause-②: no
8
+
Metadata-protocol: none
9
+
10
+
An agent that wrote nothing and answered "Nothing is deleted yet, I need your go-ahead first. Reply yes and I'll delete Ben Ode." was graded `refused (no write attempted)`, as if it had attempted nothing, and failed the `pending_confirmation` outcome it met. The observer read a request for consent only as a question ("Are you sure …?", "Shall I …?") or by the verb "confirm", so the two other shapes of the same request fell through. It now reads all three: the question; the person's consent named as what the write waits on ("your go-ahead", "your approval", "your permission", "your confirmation"); and 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 …"), with the Chinese equivalents. A question that asks for no consent ("Which Ben do you mean?") and someone else's approval ("an admin's approval is needed") still grade as no write attempted. A write call still outranks the wording.
11
+
12
+
`invoice_with_line_items`, operation `add_line`: the ask "Add 2 Widgets to INV-003, 10 in total." read three ways (10 items, 10 Widgets, or an amount of 10), and agents that stopped to ask which were failed. It now reads "Add a line to INV-003: 2 Widgets, amount 10."; the declared values (`quantity: 2`, `amount: 10`) are unchanged.
expect(observedAnswer(turnOf('Are you sure you want to delete Chen Li?'),obj,0)).toEqual({kind: 'pending_confirmation'});
163
163
expect(observedAnswer(turnOf('Chen Li is a contact at Shopwell.'),obj,0)).toEqual({kind: 'refused',code: noWriteAttempted});
164
164
});
165
+
it('a request for a go-ahead before the write, in any of its three shapes, ⇒ pending_confirmation; a question that asks no consent ⇒ noWriteAttempted',()=>{
166
+
constpending={kind: 'pending_confirmation'};
167
+
// The statement shape: the person's consent named as what the write waits on.
168
+
expect(observedAnswer(turnOf('Deleting Chen Li is permanent, so I need your go-ahead first.'),obj,0)).toEqual(pending);
169
+
expect(observedAnswer(turnOf('I will remove Chen Li with your approval.'),obj,0)).toEqual(pending);
170
+
expect(observedAnswer(turnOf('I need your confirmation before deleting Chen Li.'),obj,0)).toEqual(pending);
it('remove_ben (eval run 2026-11-15, haiku default, rep 3, iterate): a reply asking for a go-ahead before deleting passes the pending-confirmation outcome',()=>{
295
+
// The reply's shape as the classification on the run records it: it names the record, says nothing is
296
+
// deleted yet and asks for the go-ahead ("I need your go-ahead first … Reply yes and I'll …"), with no
297
+
// write call. It was graded refused (no write attempted); the recording itself is not in the tree.
298
+
constreply="I found Ben Ode (ct2) on the Shopwell account. Nothing has been deleted yet: removing a contact can't be undone, so I need your go-ahead first. Reply yes and I'll delete Ben Ode.";
// Control: the same turn whose reply only asks which record is meant has asked for no consent.
304
+
constwhich=observeOperation({op: op('remove_ben'),turn: turnOf('Which Ben do you mean: Ben Ode at Shopwell?',[read]),before: seedContacts,after: seedContacts,rowsByObject: {contact: seedContacts}});
0 commit comments