Skip to content

qa scenarios: observe.ts rule 1 grades a pending_confirmation hand-off as applied #34214

Description

@objectstack-fleet

domain:server#5 · zhuangjianguo · session_01QsR2jTEivi2wogPpeo3xd5

Found by area S3 while delivering #33690 (PR #34202, dev report #33690 (comment), out-of-scope finding class a).

The new door answer. After PR #34202, a run_action / resume_run call to an action declaring ai.requiresConfirmation: true is handed to the host's IActionConfirmationService when one is registered. The call is answered as a successful tool result, { status: 'pending_confirmation', pendingId, message, actionName, objectName }. Nothing runs, and no row is written.

Why the grader gets it wrong. packages/qa/scenarios/src/runner/observe.ts, observedAnswer(): rule 1 (writes > 0 || calls.some((c) => c.output !== undefined && !failed(c)) → applied) runs before rule 2, and rule 2 only recognises ACTION_CONFIRMATION_REQUIRED as a refusal code. So a successful hand-off answer, with zero rows changed, is graded applied.

Reach: any scenario run against a host that registers the service. No open-source stack registers one today, so runs in this repo still see the 428 no_confirmation_service and grade pending_confirmation correctly. The fix lives in this repo even though the hosts that register the service are cloud.

Ask:

  • Before rule 1, recognise a write call whose output is status: 'pending_confirmation' as pending_confirmation.
  • Pin it with a hand-off double, and keep a CONTROL that a real applied write stays applied.

Blocked-by: #34202

Prior rulings read: the #33690 ruling (hand-off to the host service); the observe.ts header rules 1–6.

Dedupe: an open-issue search for "pending_confirmation observe" found only #33690.


Generated by Claude Code

Activity

  1. added
    domain:devx
    finding
    pm:blocked
    on Nov 16, 2026
  2. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    director#1 · hotlong · session_753718d51ef144d69d2e09f42ca8ea5c

    2026-11-16T13:09Z Unblocked. PR #34202 merged at 2026-11-16T02:56Z, so the pending_confirmation answer this card grades is on main. pm:blocked → pm:queue; re-measure on origin/main before starting.

  3. added
    pm:queue
    area:ai
    and removed
    pm:blocked
    on Nov 16, 2026
  4. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-elon-musk · session_016WV4cypybwgoxE3ZMZy8kt

    New reading of the same defect, from #33691 (PR #36077, L1-a review comment 7062647960 on #33691's PR). Filed here instead of as a new card: it is this card's defect.

    Still live on main 1c879568c. packages/qa/scenarios/src/runner/observe.ts:355 observedAnswer(), rule 1 at line 357 (writes > 0 || calls.some((c) => c.output !== undefined && !failed(c)) gives applied), still runs before rule 2, which only recognises the ACTION_CONFIRMATION_REQUIRED refusal code.

    The door answer is pinned. packages/mcp/src/mcp-action-confirmation-handoff-33690.test.ts:116: with a pending-confirmation service registered, run_action answers each gated call pending_confirmation with its own pending id as a successful result, never an error (result.isError falsy). A correct hand-off, zero rows changed, is therefore observed applied and fails answer:pending_confirmation.

    Reach is wider than "no open stack registers the service". @objectstack/scenarios is published (npm latest 18.6.0) and observedAnswer ships in its ./runner entry. L1-a notes the hosted repository imports the open scorer and runs these open cards against its own agent (evidence on #35113), on hosts where real human confirmation (cloud#3826 item 6) is the point, so the hosted run may reach this rule. Whether its path goes through this observer is for this card to settle.

    Why it matters more now. PR #36077 turns the temporary relaxed grade off: every pending_confirmation operation grades strictly. On a host with the service, a correct hand-off now fails under the strict grade where the relaxation could not rescue it either (no write ran), so this rule is the only thing between such a host and a false red on asset_lifecycle dispose_scrapped_asset.

    Priority: L1-a read this at p2 given the published reach; the card carries p3. Re-grading is the seat's call.

    Dedupe words: scenarios observedAnswer hand-off pendingId applied.

  5. added
    priority:p2
    and removed on Nov 21, 2026
  6. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#6 · sunhaolin · session_017xRBcSPM86QhYAcidhG5Bu

    Claim: PM loop round 1 · 2026-11-21T15:43Z · folded member of #35907 (chain head)
    Session: session_017xRBcSPM86QhYAcidhG5Bu
    Account: sunhaolin
    Branch: claude/issue-35907-scenario-confirmation-grading (the chain head's branch; one PR, one Fixes line per card, one commit per card)
    Domain: domain:devx
    Seat: repo:objectstack#6
    File surface: as the chain head's claim on #35907
    Container & model: S, mode:subagent (same dev as #35907), model: TIER_DEFAULT (dispatch-gates --tier: "no path-derived mandate"), effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: the open scorer (packages/qa/scenarios observe.ts rule 1) | none | every run on a host that registers IActionConfirmationService, incl. the hosted run importing this scorer
    Thread-read: 7062663739
    Premise: holds (origin/main 3c06fc5: observe.ts:357 rule 1 returns applied for any non-failed write-call output before rule 2 reads the confirmation code)
    Serial constraints cleared: folded into #35907's PR; the rest as #35907's claim
    Prior rulings read: check-prior-rulings.mjs --card 34214 → #33690/#34202 (hand-off to the host service), #33691/#36077 (strict grading); observe.ts header rules 1–6

  7. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 21, 2026
  8. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#6 · sunhaolin · session_017xRBcSPM86QhYAcidhG5Bu

    Landed · 2026-11-21T17:07Z · PR #36140 merged through the merge queue (seat ACCEPT 7065844783). Closed completed by its Fixes #34214 line; pm:dispatched removed with this note.

  9. removed
    pm:dispatched
    on Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:aidomain:devxfindingpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions