Skip to content

Scenario runner: --effort (and --author-effort / --ask-effort) reaches claude --effort and is recorded per turn #33739

Closed

Description

@objectstack-fleet

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

Filing-gate category: ③ maintainer-directed child of #33595 (M2 row of its milestone table). Maintainer, 2026-11-15 02:10Z: 「你建议的任务全部立卡,你负责开 devx 车道派发处理」; 08:36Z, on the epic seat's decision card "M2/M3 的行现在立卡吗?立了交给谁派发?": "立卡,留给本专题席位派发". The row quotes the maintainer, 2026-11-15: 「后续统计是否还要加入花费的时间,以及你现在用的effort 分别是什么,需要对照测试吗」.

Mechanism

packages/qa/scenarios/src/runner/cli.ts takes --model, --author-model and --ask-model (lines ~152-154) and no effort flag. ClaudeCodeDriver in runner/driver.ts builds ['--output-format', 'stream-json', '--verbose', '--max-turns', N] plus --model (~292-293) and passes no --effort. So every turn runs at the CLI's default effort, and neither the run record nor the scorecard can say which effort produced a score.

Why it matters

The maintainer asked which effort each eval ran at and whether effort needs a control test. The model comparison on #33595 cannot separate model from effort until the runner can set it and the record states it. The M2 close-out row "effort control" (eval#1) depends on this card.

Done when

  • --effort LEVEL sets both halves, and --author-effort / --ask-effort set one half each, mirroring the model flags. The runner passes --effort LEVEL to the claude CLI, accepting the CLI's own level names.
  • Each TurnSummary records the requested effort. The scorecard shows effort beside the served model on the author row and the Run rows, and the run record carries it.
  • recorded: refuses the flags, as it refuses the model flags (LIVE_FLAGS). codex and external: either map it or refuse it loudly, measured, not assumed.
  • Tests pin the argv the live driver builds and the scorecard cell.

Reader

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

Dedup: repo:objectstack-ai/objectstack is:issue "--effort" runner → 530 hits, top ones dispatch-effort process cards (#32023, #31433, #25921) about seats, none about the scenario runner passing effort to the CLI.

Activity

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

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: grade → p2 · 2026-11-15T08:50Z

    ⛔ Not a claim; the pm:epic reservation for epic #33595's seat is unchanged.

    Filed without a grade. This is scenario runner/grader tooling under epic #33595 (eval scoring v2), so tooling p2 (#32997). The epic seat may re-grade inside its epic.

  3. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Claim: PM loop M2 round 1 · epic #33595 M2 · 2026-11-15T09:23Z
    Session: session_01L9qibzVKmz2fkqywcpUp6f (card thread; seat session_01L9qiby1cctpVpRbJzjccvY)
    Account: os-tesla
    Branch: claude/project-thread-h5md84 (the card thread's harness-pinned branch; the thread can push only this name)
    Worktree: objectstack-issue-33739
    Domain: domain:devx
    Seat: epic:#33595#1
    File surface: packages/qa/scenarios/src/runner/{cli,driver,orchestrate,scorecard}.ts, runner/drivers/{codex,external}.ts, tests, runner README / CLI help, its own changeset (stop on breach; explain in the report)
    Container & model: M, mode:thread, model: default (dispatch-gates --tier: no path-derived mandate, read on 412fbf76), effort: xhigh (epic child)
    Clause-②: yes (widening) — new CLI flags and exported option/summary fields, named in the PR
    Metadata-protocol: none
    Responsibility: the scenario evaluation runner/grader in objectstack (the runner passes no --effort and records none); no platform path covers it; reached by eval#1's scenario runs and the model comparison on #33595
    Thread-read: 6891935055
    Premise: holds (seat read the named symbols on origin/main 412fbf76 while filing; the thread re-measures first, per the order)
    Serial constraints cleared: heads queue ① (cli.ts / scorecard.ts / TurnSummary): #33740, #33741, #33742, #33743 open after it merges

    Order: /mnt/project-files/epic-33595-1/r2026-11-15-m2/dispatch-33739.md under that folder's FRAME.md. Contract review: arranged by this seat.

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

    @objectstack-fleet
    ContributorAuthor

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

    {
     "issue": 33739,
     "status": "done",
     "branch": "claude/project-thread-h5md84",
     "pr": "https://github.com/objectstack-ai/objectstack/pull/33767",
     "head": "41dbee6f",
     "session": "session_01L9qibzVKmz2fkqywcpUp6f",
     "premise_still_valid": true,
     "summary": "--effort / --author-effort / --ask-effort (cli.ts) pass claude --effort LEVEL on each live turn (ClaudeCodeDriver argv only; RecordedDriver untouched) and stamp meta.process.requestedEffort -> TurnSummary.requestedEffort; DriverInfo carries authorEffort/askEffort; the scorecard shows 'effort X' beside the served model on the author rows and Run · model rows (ModelTally.requestedEfforts). Measured on claude 2.1.325: an unknown --effort is only a stderr warning (default effort, exit 0), so levels are validated against the CLI's own --help list before any card runs; CLAUDE_CODE_EFFORT_LEVEL overrides the flag in the CLI, so it is stripped from every turn and, with no flag, passed as --effort. external: passes limits.effort; codex (0.167.0: no effort flag, model_reasoning_effort accepts any value offline) and recorded: refuse the flags.",
     "tests": "pnpm --filter @objectstack/scenarios typecheck :: exit 0; pnpm --filter @objectstack/scenarios test :: exit 0 (Test Files 32/32, Tests 791/791) on 41dbee6f after closure rebuild; eslint src/runner test/runner :: exit 0. Ablation (ablation-replace.mjs, src import so no build leg): delete the --effort argv push -> units.test.ts 2 failed / 71 passed; delete the env strip -> 1 failed / 72 passed; both restores blob == HEAD, git diff HEAD empty. Real CLI check: effortLevelsFromHelp(claude --help) = low,medium,high,xhigh,max; 'ultra' refused.",
     "gates": "dispatch-gates --commands (65 families on 7be64d69): 64 exit 0; NOT-MEASURED pnpm check:dual-build-cjs-loads (exit 3, needs every package dist/); check-plugin-teardown-shape --self-test exit 0 after fetching its pinned fixture commit; --ran: '65 derived famil(ies) accounted for — 64 run, 1 NOT-MEASURED'. Record out-33739/gates-ran-7be64d69.list. CI: in_progress at report time (PR check-runs are the authority).",
     "line_budget": "511 changed lines (+479/-32), 12 files, under 3000; no governed surface",
     "files_changed": [
      ".changeset/33739-scenario-runner-effort.md",
      "packages/qa/scenarios/README.md",
      "packages/qa/scenarios/src/runner/cli.ts",
      "packages/qa/scenarios/src/runner/driver.ts",
      "packages/qa/scenarios/src/runner/drivers/external.ts",
      "packages/qa/scenarios/src/runner/orchestrate.ts",
      "packages/qa/scenarios/src/runner/scorecard.ts",
      "packages/qa/scenarios/src/runner/transcript.ts",
      "packages/qa/scenarios/test/runner/codex-driver.test.ts",
      "packages/qa/scenarios/test/runner/external-driver.test.ts",
      "packages/qa/scenarios/test/runner/orchestrate.test.ts",
      "packages/qa/scenarios/test/runner/units.test.ts"
     ],
     "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
     "mcp_calls": "6 — reads only: issue_read x5 (#33739 get, comments x3; #33595 get), pull_request_read get x1 (#33767); no write tool",
     "api_writes": "2 — relay pr_create (objectstack#33767, run 43701018694, body read back identical, assignee os-tesla), relay comment on #33739 (this report); plus git push x2 (not REST)",
     "deviations": [
      "transcript.ts touched outside the claim's listed file surface (inside the epic territory): TurnProcess.requestedEffort beside requestedModel, type-only, 7 lines; named in Acceptance notes",
      "CLAUDE_CODE_EFFORT_LEVEL is now stripped from turns and folded into --effort when no flag is given (needed for a truthful record: the CLI lets the variable win over the flag); an invalid value is refused at start",
      "PR body signature is a plain line under the attribution block, not the frame's HTML signed: trailer (os-dev forbids dev-written HTML comments), as #33763",
      "pr_create carried assignees [os-tesla] (the claim's Account, per os-dev); the harness's MCP assignee/reviewer step was skipped",
      "the derived-gate loop overran the 10-minute foreground cap and finished in the background; its record was read after it completed",
      "codex 0.167.0 was installed into a scratch directory to read its flags (codex is not on this box); the 'any value starts a turn' reading is from an unauthenticated run that reached turn.started",
      "gallery-refresh (export/refresh.ts) takes no effort flag: outside the card, named in Acceptance notes"
     ],
     "open_questions": [],
     "security_findings": "none",
     "out_of_scope_findings": [
      "carrier: epic seat · noted, not filed — gallery-refresh has --model but no effort flag; thread it if the scheduled refresh should pin an effort"
     ]
    }
  6. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Landed · 2026-11-15T11:57Z

    PR #33767 merged as f8f35db8 (ACCEPT 6893355893; contract review PASS 6892582974). --effort LEVEL (and --author-effort / --ask-effort) now reaches claude --effort on every live turn. The level is checked against the CLI's own --help before any card runs. The caller's CLAUDE_CODE_EFFORT_LEVEL is folded into --effort and kept out of each turn's environment, so the record names the effort that ran. Every turn records requestedEffort, and the scorecard shows it beside the served model. external: passes limits.effort, and codex and recorded: refuse the flags. pm:dispatched dropped; card thread closing. Queue ① continues with #33740.

  7. removed
    pm:dispatched
    on Nov 15, 2026
  8. added 2 commits that reference this issue on Nov 16, 2026
    f8f35db
    c3c0c30
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