OCG LabTask-Domain Decision System
Search evidence
Live
中文

Domain Decision Packet

cost-benefit threshold at ~300 lines / single-call scope

Back to domains
c

My Python function returns wrong output on second call

r

locate@code_engineering/single_file_debug

C'

Sonnet 4.6 sufficient for isolated bugs under ~300 lines. Escalate to Opus 4.8 when bug involves shared state or requires multi-step causal chain.

Decision Stack

Use

bug is isolated, context fits one prompt, cost matters

claude/sonnet-4.6
Use

bug involves subtle state, multiple suspects, correctness is critical

claude/opus-4.8
Avoid

you need precise root-cause location, not symptom description

openai/gpt-5.5
Use

terminal-heavy debugging workflow

openai/gpt-5.5

Cognitive Transitions

model layer
IDRelationActorResultOutput
CT-D1-001identify@single_file_debugclaude/opus-4.8acceptedclassifies bug type accurately, including subtle state issues
CT-D1-002identify@single_file_debugclaude/sonnet-4.6acceptedmatches Opus for common patterns; preferred by devs
CT-D1-003identify@single_file_debugopenai/gpt-5.5boundedaccurate classification but sometimes stops at symptom level
CT-D1-004validate@single_file_debugclaude/opus-4.8acceptedmore likely to flag own code flaws vs prior Opus; stronger dishonest-summary resistance
CT-D1-005validate@single_file_debugclaude/sonnet-4.6boundedreliable for isolated bugs; can miss subtle flaws silently vs Opus 4.8
E-D1-001bounded

Opus 4.8 is 4x less likely to miss code flaws than Opus 4.7

E-GLOBAL-004
E-D1-002bounded

Sonnet 4.6 preferred by developers over prior flagship Opus 4.5 in controlled preference testing

Anthropic Sonnet 4.6 release, 2026
E-D1-003uncertain

GPT-5.5 weaker than Opus 4.8 on precise root-cause location vs symptom description in debugging

inferred from SWE-Bench Pro gap