Skip to content

test: use a neutral auto-fallback model fixture - #196901

Merged
Patrick-Erichsen merged 1 commit into
mainfrom
fix-fallback-model-fixture
Nov 10, 2026
Merged

Patrick-Erichsen merged 1 commit into
mainfrom
fix-fallback-model-fixture

Conversation

@Patrick-Erichsen

Copy link
Copy Markdown
Contributor

What Problem This Solves

The auto-fallback fixture uses an unknown Claude model name while expecting the catalog to select thinking off. Unknown Claude identities intentionally require adaptive thinking, so the synthetic model accidentally exercises a different policy.

User Impact

Use a prefix-free synthetic fallback model so the existing test covers catalog-selected defaults again. All assertions and production behavior are unchanged.

Why This Change Was Made

The fixture repair is independent of GitHub worktree authentication and is isolated here for review.

Evidence

Before: the catalog-off case fails (one failed, five passed). After: all six existing cases pass with the corrected synthetic identity. The focused native test, formatting and diff checks pass. No test-line growth or production changes.

@clawsweeper

clawsweeper Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 10, 2026
@clawsweeper

clawsweeper Bot commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR replaces the synthetic claude-fallback identity with fallback-model throughout the auto-fallback test fixture.

Example: The existing test selects a fallback catalog row with reasoning: false.

  • Before: claude-fallback invokes the unknown-Claude adaptive-thinking contract, conflicting with the expected off default.
  • After: fallback-model allows the test to exercise the catalog-selected off default.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch is focused and correct; validation consists of source verification, reported regression results, and passing CI through an in-process test composition.
Proof confidence 🦐 gold shrimp (3/6) This test-only repair changes no shipped entry point; the supplied before/after test results and exact-head CI support the fixture correction.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: An existing regression test fails because its synthetic identity accidentally selects a model-family policy unrelated to the behavior under test.
Reason: The repair restores the intended selected-model default coverage without weakening assertions or changing user behavior.

Merge readiness

✅ Ready for maintainer review

Keep open: this PR repairs a misleading test fixture while preserving the intended assertions and production behavior; no actionable defects were found.

Priority: P3
Reviewed head: 64f006a0e66f4b321b76b370cf3f0849dd7807f4

Before merge

None.

Findings

None.

Agent review details

How this fits together

Reply preparation combines session model selection, model policy, and thinking defaults before passing the prepared request to the reply runner; this change only corrects its test inputs.

flowchart LR
  A[Test session fixture] --> B[Reply preparation]
  C[Model policy and catalog] --> B
  B --> D[Thinking default resolution]
  D --> E[Mocked reply runner]
  E --> F[Existing assertions]
Loading

Technical review

Best possible solution:

Use the neutral fixture consistently while retaining the existing fallback assertions and Claude policy.

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

Source tracing confirms that claude-fallback selects mandatory adaptive thinking despite reasoning: false; the author reports the matching before/after failure, but no tests were executed during this read-only review.

Is this the best way to solve the issue?

Renaming the synthetic identity is the smallest complete repair: every occurrence changes together, all assertions remain intact, and the production policy keeps its existing owner.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 842e4b436d30.

Provenance checked

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 0720f31 adds src/auto-reply/reply/get-reply.auto-fallback.test.ts:339 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 0720f31dfc81; files: src/auto-reply/reply/get-reply.auto-fallback.test.ts)

PR surface

Tests 0. Total 0 across 1 file. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 6 6 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 6 6 0

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add P3: This is a narrowly scoped test-fixture repair with no shipped behavior change.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This is a narrowly scoped test-fixture repair with no shipped behavior change.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 10, 2026, 6:09 PM ET / 23:09 UTC.

@Patrick-Erichsen
Patrick-Erichsen merged commit af52e61 into main Nov 10, 2026
116 checks passed
@Patrick-Erichsen
Patrick-Erichsen deleted the fix-fallback-model-fixture branch November 10, 2026 23:11
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant