oracle icon indicating copy to clipboard operation
oracle copied to clipboard

Option to fail closed when the model picker reports success without a label

Open postoso opened this issue 2 months ago • 1 comments

When browser mode is asked for a specific model and the picker reports already-selected or switched while ChatGPT exposes no readable label, oracle records the selection as unverified and submits anyway. Nothing is hidden: ensureModelSelection logs Model picker: current model (label unavailable) (src/browser/actions/modelSelection.ts:94) and sessionRunner prints the evidence line with verified=no on every run, not only under --verbose (src/browser/sessionRunner.ts:350-356).

I read this as deliberate rather than a gap. f1d12438 ("fix(browser): keep unlabeled model selections unverified") is what moved the assertion behind the observedLabel !== null guard at modelSelection.ts:91, and tests/browser/modelSelection.test.ts locks the behaviour in with "does not promote the requested picker target to verified evidence without a label" and "does not reject GPT-5.6 Sol when the picker reports success without a label". #317 covers the display half of the same ground, and the current behaviour matches what it asked for. So this is not a request to change the default.

The question is whether there should be an opt-in way to refuse the submission instead. The effort picker already has one: strictProEffort in src/browser/actions/thinkingTime.ts throws "refusing to submit without confirmed Pro" rather than sending at an unconfirmed effort. The model picker has no equivalent, so a caller who cares about model identity has to read the evidence line after the run instead of having the run stop.

What motivates it here: we drive oracle from an agent that asks for a specific Pro model, and a run answered by a different model is worse for us than no run. Our wrapper currently reads verified= out of the evidence line and throws the run away when it says no. A fourth strategy value, say --browser-model-strategy strict beside select / current / ignore, would put that check where the picker's own knowledge of the DOM already is.

Two things I have not done, in case they change the answer. I have not captured a live transcript of a blank-label run for this report; the reading above comes from the source at 1866b146 and from the test suite, which passes on main for both tests named above. And I have not proposed which models the strict mode should cover, though the natural scope is the set assertResolvedModelSelection already protects (Latest, GPT-5.6 Sol, GPT-5.5 Pro) rather than every model key.

If a strict mode is wanted I can open the PR. If the evidence line is the intended contract and callers are meant to read it, that answers it too and I will say so in our own docs.

Environment: oracle 0.21.1 (Homebrew, macOS), source read at commit 1866b146.

postoso avatar Sep 20 '26 05:09 postoso

Codex review: this still needs some work.

Summary Keep open for a maintainer product decision: current main and v0.21.6 intentionally permit successful unlabeled selections, and the related open PR does not add the requested refusal policy.

Reproducibility: Current source and existing tests establish successful unlabeled selection with verified=false; this confirms the capability gap without a live reproduction or a broken existing contract.

Maintainer decision needed

  • Question: Should Oracle offer an opt-in refusal policy for successful model selection without a readable label, and which targets and browser entry points should it cover?
  • Recommendation: Approve a bounded opt-in guard: Define supported targets and resume behavior, then enforce the policy through shared selection code exposed consistently in CLI and MCP.
  • Why: The existing permissive behavior is intentional, while source, tests, and discussion do not settle the public option or supported scope.

Next step Decide whether to add the opt-in guard and define its model coverage, public option, and resume behavior before implementation.

Review details

Best possible solution:

If approved, provide a shared opt-in pre-submission guard with an explicit UI-evidence guarantee and unchanged default behavior.

Do we have a high-confidence way to reproduce the issue?

Current source and existing tests establish successful unlabeled selection with verified=false; this confirms the capability gap without a live reproduction or a broken existing contract.

Is this the best way to solve the issue?

A shared guard can prevent submission where post-run wrapper checks cannot, but adding a fourth strategy requires agreement on scope and updates to existing select-specific branches.

AGENTS.md: found and applied where relevant.

Remaining risk / open question:

  • The public option shape, supported model targets, and treatment of resumed conversations remain undecided.
  • A readable picker label supplies UI evidence rather than backend model attestation; no live blank-label transcript was supplied or executed.

Codex review notes: model internal, reasoning medium; reviewed against 42a162f53971.

Label changes

Label changes:

  • add issue-rating: 🦞 diamond lobster: Current issue advisory state selects this label.
  • add clawsweeper:source-repro: Current issue advisory state selects this label.
  • remove issue-rating: 🌊 off-meta tidepool: Current issue advisory state no longer selects this label.

Label justifications:

  • P3: This is an optional safeguard for an advanced automation workflow with an existing wrapper workaround and no demonstrated regression.
  • impact:auth-provider: The requested safeguard concerns assurance about the model chosen for browser-provider requests.
Evidence reviewed

What I checked:

  • Current default branch: GitHub identifies main as the default branch; its SHA matches the review checkout, which remained clean. (42a162f53971)
  • Intentional permissive behavior: Successful selection validates only a nonempty observed label; a missing label returns resolvedLabel=null and verified=false without throwing. (src/browser/actions/modelSelection.ts:90, 42a162f53971)
  • Existing test contract: Tests explicitly require successful unlabeled GPT-5.5 Pro and GPT-5.6 Sol selections to resolve with unverified evidence; these tests were read, not executed. (tests/browser/modelSelection.test.ts:1883, 42a162f53971)
  • Public strategy boundary: The normalizer accepts only select, current, and ignore; the MCP consult schema and browser documentation expose the same choices. (src/browser/modelStrategy.ts:13, 42a162f53971)
  • Evidence is reported after execution: The session runner prints model-selection evidence without a verbose condition after browser execution returns; the browser runners do not reject verified=false. (src/browser/sessionRunner.ts:352, 42a162f53971)
  • Separate effort safeguard: Thinking-time selection already refuses unconfirmed Pro or Pro Extended effort, but that policy does not establish model-label verification. (src/browser/actions/thinkingTime.ts:124, 42a162f53971)
How this review workflow works
  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge; those execution lanes are retired.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

Reviewed October 18, 2026, 12:45 PM ET / 16:45 UTC.

clawsweeper[bot] avatar Sep 20 '26 05:09 clawsweeper[bot]