Skip to content

Scenario runner: a pending_confirmation operation runs as two turns, ask then confirm, so the confirmed write is graded too #34293

Closed

Description

@objectstack-fleet

epic:#33595#1 · os-tesla · session_01L9qiby1cctpVpRbJzjccvY

Filing-gate category: ③ maintainer-directed child of #33595 (M3 row of its milestone table, Blocked-by M2, which closed 2026-11-16 with #33818). Maintainer, 2026-11-15 02:10Z: 「你建议的任务全部立卡,你负责开 devx 车道派发处理」; 08:36Z, on the epic seat's decision card "M2/M3 的行现在立卡吗?立了交给谁派发?": "立卡,留给本专题席位派发".

Mechanism

A pending_confirmation operation (packages/qa/scenarios/src/schema.ts ~347) runs as one turn in runHalf (src/runner/orchestrate.ts, the operations loop). It passes when the agent asks first and writes nothing (askedFirst in src/score/scenario-operation-grade.ts ~283), or, temporarily, when it applied the write through the action's own confirmation gate (confirmedByAgent, cloud#3826 item 6). No turn ever says "yes", so the write the user would approve is never made or graded.

Why it matters

Half of a confirm-then-execute flow is measured. An agent that asks well and then writes the wrong row, or writes nothing after "yes", scores the same as one that does it right, and the temporary confirmedByAgent exception has no measured replacement.

Done when

  • A pending_confirmation operation whose first turn asked and wrote nothing gets a second turn in the same agent session context the driver allows (or a fresh turn carrying the first reply), saying the user confirms; the second turn's writes are graded against the operation's declared target state.
  • The record keeps both turns; the scorecard states asked-first and confirmed-write apart, so neither half hides the other.
  • recorded: replays both turns under their own keys; a recording without the second turn reads as before (first half only, second not measured), never a fail.
  • With the second turn in place, the AGENT_CONFIRMATION_MEETS_PENDING exception's fate is stated in the PR (kept, narrowed or removed), with cloud#3826 item 6 named.
  • Tests pin: asked then wrote the right row (pass both), asked then wrote nothing (second half fails), wrote on the first turn (first half fails, no second turn).

Reader

The epic seat epic:#33595#1 dispatches it to os-dev (domain:devx, packages/qa/scenarios), serial with the other M3 runner cards where files overlap.

Dedup: repo:objectstack-ai/objectstack is:issue confirm two-turn operation scenario → 11 hits; #33676 (closed) added the confirmation-gate path this card follows up, none runs a second turn.

Activity

  1. added
    domain:devx
    pm:epic
    area:devpath
    on Nov 16, 2026
  2. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: first-touch audit → domain:devx · p2 · pm:epic kept (reserved for epic:#33595#1) · 2026-11-16T04:29Z

    ⛔ Not a claim. Requested by epic:#33595#1 (mailbox comment 6907332523). An M3 row of #33595, filed on the maintainer's 「你建议的任务全部立卡…」 and 「立卡,留给本专题席位派发」.

    A pending_confirmation operation runs as two turns, ask then confirm, so the confirmed write is graded too. Today a correct 'ask first' answer ends the case ungraded, which hides how each model performs the write the user approves. Scoring accuracy feeds the hosted model choice (#33920, #33924), so p2.

  3. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    epic:#33595#1 · os-tesla · session_01L9qiby1cctpVpRbJzjccvY

    Claim: PM loop M3 round 1 · epic #33595 M3 · 2026-11-16T04:34Z
    Session: session_01L9qibxijcWjmD65kuJ3g7m (card thread; seat session_01L9qiby1cctpVpRbJzjccvY)
    Account: os-tesla
    Branch: claude/project-thread-dd7j11 (the card thread's harness-pinned branch; the thread can push only this name)
    Worktree: objectstack-issue-34293
    Domain: domain:devx
    Seat: epic:#33595#1
    File surface: packages/qa/scenarios/src/runner/orchestrate.ts (the operations loop, OperationResult), src/runner/driver.ts only for the second turn's step key and RecordedDriver's lookup, src/runner/prompts.ts (the confirm prompt), src/runner/scorecard.ts, src/score/scenario-operation-grade.ts (grading the second turn), tests, the package README and docs/qa/scenarios/README.md scorer prose, its own changeset (stop on breach; explain in the report)
    Container & model: M, mode:thread, model: default (dispatch-gates --tier: no path-derived mandate), effort: default (the thread was started at the default effort)
    Clause-②: yes (widening) for each new export, field, flag or subcommand, named with its entry
    Metadata-protocol: none
    Responsibility: the scenario evaluation runner and operation grader in objectstack (a pending_confirmation operation is one turn, so the confirmed write is never made or graded); no platform path covers it; reached by eval#1's scenario runs on #33595
    Thread-read: 6907345119
    Premise: holds. Seat read origin/main 31eb2aed: runHalf runs each operation as one driver.ask turn, AgentDriver.ask takes one prompt and resumes no session, and nothing sends a confirmation turn
    Serial constraints cleared: queue ③ first (M2 closed, 6907341187; eval#1 pinned its close-out at 31eb2ae, 6907348212 thread reply); #34294 opens after this merges

    Order: /mnt/project-files/epic-33595-1/m3/dispatch-34293.md under that folder's FRAME.md. Contract review: arranged by this seat.

  4. added
    pm:dispatched
    on Nov 16, 2026
  5. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    epic:#33595#1 · os-tesla · session_01L9qibxijcWjmD65kuJ3g7m
    os-dev-report

    Report at 2026-11-16T05:26Z for PR #34312 at head 077aa59.

    {
      "issue": 34293,
      "status": "done",
      "branch": "claude/project-thread-dd7j11",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34312",
      "head": "077aa59237aefb75eea16a1c632c339698d6770d",
      "session": "session_01L9qibxijcWjmD65kuJ3g7m",
      "premise_still_valid": true,
      "gates": "dispatch-gates --commands at 077aa592: 70 derived, each run with </dev/null and recorded `<command> :: exit <code>` before any pipe; 70/70 exit 0. --ran reconciliation exit 0: 70 run, 0 NOT-MEASURED, 0 UNRUN. Two lines first ran exit 3 (prerequisite not met) and were rerun after the prerequisite: `node scripts/check-plugin-teardown-shape.mjs --self-test` after `git fetch origin 621a4876… --depth=1` (48 cases pass), `pnpm check:dual-build-cjs-loads` after `turbo run build --filter=./packages/**` under the verify lock (123 entries / 72 packages load). Package suite `pnpm --filter @objectstack/scenarios test`: 34 files, 945 tests passed; `pnpm typecheck` exit 0. PR CI: not yet read.",
      "line_budget": "size M; 681 added / 43 deleted over 12 files (src + docs + changeset 381/18, tests 300/25); under the 3,000-line tier line; no governed path, no packages/spec",
      "deviations": [
        "packages/qa/scenarios/test/export/fixture.ts (a test fixture, not src/export/**) answers the confirmation turn so the export tests keep their scripted run; src/export/** untouched",
        "Two gates first exited 3 on missing prerequisites and passed on rerun (see gates); the ran-file records the rerun codes",
        "pr_create carried assignees [os-tesla] per os-dev rule 2 (the claim Account); no reviewers, no labels; the harness assignee/reviewer step was skipped per FRAME",
        "ExternalDriver stepOf is unchanged, so the external command receives the confirmation turn as an ordinary step and tells it by its prompt (acceptance note on the PR)"
      ],
      "files_changed": [
        ".changeset/34293-scenario-confirm-turn.md",
        "docs/qa/scenarios/README.md",
        "packages/qa/scenarios/README.md",
        "packages/qa/scenarios/src/runner/driver.ts",
        "packages/qa/scenarios/src/runner/orchestrate.ts",
        "packages/qa/scenarios/src/runner/prompts.ts",
        "packages/qa/scenarios/src/runner/scorecard.ts",
        "packages/qa/scenarios/src/score/scenario-operation-grade.ts",
        "packages/qa/scenarios/test/export/fixture.ts",
        "packages/qa/scenarios/test/runner/external-driver.test.ts",
        "packages/qa/scenarios/test/runner/orchestrate.test.ts",
        "packages/qa/scenarios/test/score/scenario-operation-grade.test.ts"
      ],
      "mcp_calls": "4 — all reads: issue_read get #34293, issue_read get_comments #34293 ×2, issue_read get #33595; no write tool",
      "api_writes": "0 REST writes; relay writes 2: pr_create (run 43810059557, body read back 9017/9017 bytes identical) and this os-dev-report comment; git pushes to claude/project-thread-dd7j11 only",
      "open_questions": [],
      "security_findings": "withheld",
      "out_of_scope_findings": []
    }

    Generated by Claude Code

  6. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    epic:#33595#1 · os-tesla · session_01L9qiby1cctpVpRbJzjccvY

    Landed · 2026-11-16T06:59Z

    PR #34312 merged as 951eceee (ACCEPT 6909386089; contract review PASS 6908208275, delta PASS 6909372506 after the merge of main). A pending_confirmation operation whose first turn asked first and wrote nothing now gets a second turn: the same persona answers Yes, I confirm. Go ahead. (or 是的,我确认,请执行。 under --lang zh), and that turn is graded on its own against the operation's declared kind / target / values (confirmed-write:applied, confirmed-write:rows). The operation scores only when both halves pass, so the operations score of a pending_confirmation operation moves. The scorecard shows confirmed write k/N beside asked first. The first turn's replay key is unchanged; an older recording reads the second turn as not measured, never a fail. AGENT_CONFIRMATION_MEETS_PENDING stays until cloud#3826 item 6 lands; the second turn is its measured replacement. A card with no pending_confirmation operation is byte-identical. pm:dispatched dropped; card thread resolved. Queue ③ continues with #34294.

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

Metadata

Metadata

Assignees

Labels

area:devpathdomain:devxpm:epicpriority:p2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions