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 ebfed88
Browse filesBrowse the repository at this point in the historyBrowse files
fix(scenarios): a run_action handed to the person reads as pending_confirmation, not applied
On a host that registers a pending-confirmation service, the action
door answers a call to a confirm-gated action as a successful result,
`{ status: 'pending_confirmation', pendingId, ... }`, and runs nothing.
observedAnswer's rule 1 counted any non-failed write-call output as an
applied write, so a correct hand-off with zero rows changed graded
`applied` and failed `pending_confirmation`. A run_action whose answer
is the hand-off (`handedOff`) is now no applied write, and with no row
changed it reads as `pending_confirmation`. Rows changed still read
`applied`, a run_action that ran stays `applied`, and a data tool's
record carrying that status is not a hand-off. The confirmed write's
route list and the deprecated agentConfirmed reading drop it too.
Claude-Session: https://claude.ai/code/session_017xRBcSPM86QhYAcidhG5Bu
Co-authored-by: Claude <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: .changeset/35907-scenario-confirmation-grading.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,11 +2,13 @@
2
2
'@objectstack/scenarios': patch
3
3
---
4
4
5
-
fix(scenarios): an `applied` operation whose gated action met `428 no_confirmation_service` is not measured, not failed
5
+
fix(scenarios): an `applied` operation whose gated action met `428 no_confirmation_service` is not measured, not failed; a run_action handed to the person reads as `pending_confirmation`, not `applied`
6
6
7
7
Clause-②: no
8
8
Metadata-protocol: none
9
9
10
10
An operation a card declares `applied` (leave_balances `delete_withdrawn_request`: the person names exactly one row, so the agent may delete it) failed when the agent took the card's own confirm-gated action instead of the direct delete. On a server with no pending-confirmation service the action door answers every gated call `428 ACTION_CONFIRMATION_REQUIRED`, `details.reason: 'no_confirmation_service'`, whatever the agent sends, so that route can apply nothing there. Such an operation is now not measured, out of passed and total, with the reason `noConfirmationServiceOnGate`, the way the confirmed write of a `pending_confirmation` operation already is on the same server. A write that then reached the target through a raw data door is not measured too. The direct named delete grades `applied` as before, a `428` with any other reason stays measured, and on a `pending_confirmation` operation the same answer is still the hand-off to the person and passes.
11
11
12
-
New, additive: `OperationObservation.metNoConfirmationService` (set by `observeOperation`), the reason `noConfirmationServiceOnGate`, and the runner's `metNoConfirmationService(output)` predicate, which the confirmation turn already used.
12
+
The observer also reads the hand-off answer right. On a host that registers a pending-confirmation service, a `run_action` to an action declaring `ai.requiresConfirmation: true` is handed to the person and answered as a successful result, `{ status: 'pending_confirmation', pendingId, … }`; nothing runs. `observedAnswer` counted that answer as a write that succeeded and graded the turn `applied`, so a correct hand-off failed `pending_confirmation`. It now reads `pending_confirmation` when no row changed; rows that did change still read `applied`, a run_action that ran still reads `applied`, and a data tool whose record happens to carry `status: 'pending_confirmation'` is not a hand-off. The confirmed write's route list (`via`) and the deprecated `agentConfirmed` reading no longer count a hand-off as an applied write either.
13
+
14
+
New, additive: `OperationObservation.metNoConfirmationService` (set by `observeOperation`), the reason `noConfirmationServiceOnGate`, and the runner's `metNoConfirmationService(output)` and `handedOff(call)` predicates.
output: JSON.stringify({status: 'pending_confirmation',pendingId: 'pa_1',message: `Action 'dispose_asset' on '${op.object}' declares ai.requiresConfirmation: true, so a person confirms it. Pending confirmation: pa_1.`,actionName: 'dispose_asset',objectName: op.object}),
it('⛔ CONTROL: a real applied write stays applied — the action that ran, a data door whose record reads status "pending_confirmation", and rows changed beside a hand-off',()=>{
0 commit comments