Paper deep dive
Prompt Architecture Determines Reasoning Quality: A Variable Isolation Study on the Car Wash Problem
Heejin Jo
Intelligence
Status: succeeded | Model: Gemma-4-26B-A4B | Prompt: intel-v1 | Confidence: 91%
Last extracted: 7/20/2026, 12:08:08 PM
Summary
This study investigates why Large Language Models (LLMs) fail the 'car wash problem' (a reasoning benchmark requiring implicit physical constraint inference) and identifies which prompt architecture layers correct this failure. Using Claude 3.5 Sonnet (referred to as Claude Sonnet 4.5 in the text), the authors conducted a variable isolation study with six conditions. They found that a bare prompt or role definition alone resulted in 0% accuracy. Implementing the STAR (Situation-Task-Action-Result) reasoning framework alone raised accuracy to 85%. Adding user profile context increased it to 95%, and adding RAG context achieved 100% accuracy. The key finding is that structured reasoning scaffolds (specifically forced goal articulation via the STAR 'Task' step) are significantly more effective than context injection for solving implicit constraint reasoning tasks.
Entities (7)
Relation Signals (6)
STAR Framework â improvesaccuracyon â Car Wash Problem
confidence 95% ¡ STAR reasoning framework alone raises accuracy from 0% to 85%
Claude 3.5 Sonnet â usedinstudyfor â Car Wash Problem
confidence 95% ¡ Using Claude 3.5 Sonnet... we find that the STAR... framework alone raises accuracy
User Profile Context â contributestoaccuracy â Car Wash Problem
confidence 90% ¡ Adding user profile context via vector database retrieval provides a further 10 percentage point gain
RAG â contributestoaccuracy â Car Wash Problem
confidence 90% ¡ RAG context contributes an additional 5 percentage points
Ryan Allen â created â Car Wash Problem
confidence 85% ¡ Ryan Allen later published a benchmark repository to measure this failure across models
McCarthy and Hayes â described â Frame Problem
confidence 80% ¡ McCarthy and Hayes (1969) described the frame problem in classical AI
Cypher Suggestions (0)
No Cypher suggestions yet.
Abstract
Abstract:Large language models consistently fail the "car wash problem," a viral reasoning benchmark requiring implicit physical constraint inference. We present a variable isolation study (n=20 per condition, 6 conditions, 120 total trials) examining which prompt architecture layers in a production system enable correct reasoning. Using Claude 3.5 Sonnet with controlled hyperparameters (temperature 0.7, top_p 1.0), we find that the STAR (Situation-Task-Action-Result) reasoning framework alone raises accuracy from 0% to 85% (p=0.001, Fisher's exact test, odds ratio 13.22). Adding user profile context via vector database retrieval provides a further 10 percentage point gain, while RAG context contributes an additional 5 percentage points, achieving 100% accuracy in the full-stack condition. These results suggest that structured reasoning scaffolds -- specifically, forced goal articulation before inference -- matter substantially more than context injection for implicit constraint reasoning tasks.
Tags
Links
- Source: https://arxiv.org/abs/2602.21814v2
- Canonical: https://arxiv.org/abs/2602.21814v2
Trouble viewing inline? Open PDF directly â
Full Text
23,356 characters extracted from source content.
Expand or collapse full text
Prompt Architecture Determines Reasoning Quality: A Variable Isolation Study on the Car Wash Problem Heejin Jo Independent Researcher info@birth2death.com https://w.heejinjo.me (February 25, 2026) Abstract The car wash problem asks a simple question: âI want to wash my car. The car wash is 100 meters away. Should I walk or drive?â Every major LLM testedâClaude, GPT-4, Geminiârecommended walking. The correct answer is to drive, because the car itself must be at the car wash. We ran a variable isolation study to determine which prompt architectural layer resolves this failure. Six conditions were tested, 20 trials each, on Claude Sonnet 4.5. A bare prompt with no system instructions scored 0%. Adding a role definition alone also scored 0%. A STAR reasoning framework (Situation, Task, Action, Result) reached 85%. User profile injection with physical contextâcar model, location, parking statusâreached only 30%. STAR combined with profile injection reached 95%. The full stack combining all layers scored 100%. The central finding is that structured reasoning outperformed direct context injection by a factor of 2.83Ă (Fisherâs exact test, p=0.001p=0.001). STAR forces the model to articulate the task goal before generating a conclusion, which surfaces the implicit physical constraint that context injection leaves buried. The addition of a sixth condition resolved a confound in the original five-condition design by isolating per-layer contributions: STAR accounts for +85p, profile adds +10p, and RAG provides the final +5p to reach perfect reliability. 1 Introduction The question originated on Mastodon, posted by Kevin (@knowmadd)111https://mastodon.world/@knowmadd/116072773118828295: âI want to wash my car. The car wash is 50 meters away. Should I walk or drive?â He tested Perplexity, ChatGPT, Claude, and Mistral. All four said walk. The correct answer is driveâyou cannot wash a car that is not there. The post reached Hacker News and accumulated 1,499 points and 943 comments.222https://news.ycombinator.com/item?id=47031580 Discussion centered on three themes: that LLMs cannot infer implicit prerequisites humans take for granted; the classical frame problem (McCarthy and Hayes, 1969), where models fail to identify which unstated facts matter; and whether the gap between natural and structured communication is something models can be made to bridge. Ryan Allen later published a benchmark repository333https://github.com/ryan-allen/car-wash-evals to measure this failure across models. We encountered this problem through InterviewMate, a real-time interview coaching system. During a routine test session, the system answered âdriveâ while every standalone LLM we tested said âwalk.â We did not expect this. InterviewMateâs system prompt has multiple layersârole definition, a STAR reasoning framework, user profile data, and RAG context retrievalâand we had no way to tell which layer produced the correct answer. The result was interesting, but we could not explain it, and a result you cannot explain is not one you can build on. So we designed a variable isolation experiment. Instead of asking why LLMs fail at this problemâa question the Hacker News thread had already covered extensivelyâwe asked which specific prompt layer fixes it within a single model. This question has practical weight. InterviewMate operates during live interviews. The system must interpret the interviewerâs question, retrieve relevant context from the userâs stored profile and STAR stories, and deliver a structured answer in real time. The prompt architecture follows this sequence: Role definition â STAR reasoning framework â User profile (vector DB) â RAG context retrieval We needed to know where the reasoning quality actually comes from in this stack. The car wash problem gave us a clean instrument for testing it: one correct answer, implicit constraint reasoning required, and simple enough to isolate variables without confounds. 2 Related Work The Car Wash Benchmark. Ryan Allen published a formal evaluation repository (ryan-allen/car-wash-evals) that measures car wash problem failure rates across models. His work established a baseline: most frontier LLMs fail on first pass. Our study starts from this baseline but asks a different questionânot which models fail, but which prompt layers fix the failure within a single model. The Frame Problem. McCarthy and Hayes (1969) described the frame problem in classical AI: a system must determine which facts remain unchanged when an action occurs, but has no principled method for knowing which unstated facts are relevant. The car wash problem is a clean modern example. The carâs location is never mentioned in the question. A human infers immediately that the car is at home. The model does not. Chain-of-Thought Prompting. Wei et al. (2022) showed that prompting models to reason step-by-step significantly improves performance on multi-step tasks. Our STAR resultâ85% versus a 0% baselineâis broadly consistent with this. Structured reasoning forces the model to work through intermediate steps rather than jumping to a conclusion. Self-Consistency. Wang et al. (2023) extended chain-of-thought by sampling multiple reasoning paths and selecting the most frequent answer. Our experimental design differsâwe measure pass rates across 20 independent trials per condition rather than sampling multiple paths within a single trialâbut the underlying observation is related. Reasoning quality varies across runs even with identical prompts, and aggregation can reveal the underlying success rate. ReAct. Yao et al. (2023a) interleaved reasoning steps with action steps, allowing models to gather external information during the reasoning process. STAR is structurally simpler: it does not involve external actions. But both frameworks share the principle that forcing explicit intermediate steps before a conclusion changes the output distribution. Tree of Thoughts. Yao et al. (2023b) proposed exploring multiple reasoning branches and evaluating them before committing to an answer. We did not implement branching in our study, but the Tree of Thoughts result supports a broader point: the structure imposed on a modelâs reasoning process has measurable effects on accuracy, independent of the information available. Where STAR Fits. STAR (Situation, Task, Action, Result) is not a research contribution of this paper. It is a standard interview preparation framework that we repurposed as a prompt structure. What makes it interesting in this context is the Task step specifically. Chain-of-thought asks the model to reason step by step. STAR forces the model to name what it is trying to accomplish before it begins reasoning about how. The distinction is between general sequential reasoning and explicit goal articulation. Section 5.1 examines this mechanism in detail. 3 Methodology This is a pilot study. The sample size (n=20n=20 per condition, 120 total API calls) is sufficient to identify behavioral patterns and directional differences between conditions. We report pass rates, observed patterns, and statistical significance testing where applicable. 3.1 Experimental Setup All trials used claude-sonnet-4-5-20250929 via the Anthropic Python SDK. This version was chosen for consistency with the ryan-allen/car-wash-evals baseline. Hyperparameters were fixed: max_tokens at 512, temperature at 0.7. We chose 0.7 rather than 0 because deterministic decoding would collapse results toward binary outcomes, making per-layer contributions impossible to distinguish. The variance introduced by temperature 0.7 across 20 runs lets us measure probabilistic pass rates. The prompt was modified from the original Mastodon question (50 meters) to 100 meters: âI want to wash my car. The car wash is 100 meters away. Should I walk or drive?â This follows the ryan-allen/car-wash-evals benchmark. At 100 meters, the distance is more ambiguous than 50 meters, which may make âdriveâ slightly more intuitive and the task slightly easier than the original (see Limitations). Despite this, all baseline conditions without structured reasoning still defaulted to âwalk,â suggesting that distance alone does not trigger correct implicit reasoning. For any trial that failed or produced an ambiguous result, a challenge prompt was given: âHow will I get my car washed if I am walking?â This measures self-correction capability, which we report as Recovery Rate. 3.2 Variable Isolation Design Six conditions were tested. Each ran 20 independent trials. ⢠Condition A (Bare): No system prompt. Pure baseline to measure the modelâs default behavior. ⢠Condition B (Role Only): An expert advisor persona was injected as the system prompt. ⢠Condition C (Role + STAR): The STAR reasoning framework was added on top of the role, requiring the model to articulate Situation, Task, Action, and Result in sequence. ⢠Condition D (Role + Profile): Instead of STAR, physical user context was injectedâname, location, vehicle model, current situation. Conditions C and D branch from B in parallel. They are not cumulative. ⢠Condition E (Full Stack): All layers combinedâRole, STAR, Profile, and simulated RAG context. ⢠Condition F (Role + STAR + Profile): STAR and profile combined, without RAG context. Added to resolve the E_full_stack confound identified during initial analysis, isolating per-layer contributions between profile and RAG. The design isolates STAR (C vs B), profile injection (D vs B), profileâs marginal contribution on top of STAR (F vs C), RAGâs marginal contribution (E vs F), and the full interaction (E vs C, D, and F). 3.3 Scoring Methodology The first evaluation run used bare word matching, checking for âwalkâ or âdriveâ in the response. This failed. Every response that discussed both options was classified as ambiguous, which produced 0% pass rates across all conditions regardless of actual recommendation. The scorer was not measuring intent. Run 2 replaced word matching with intent-based pattern matching: 14 pass patterns detecting drive recommendations (e.g., +drive ) and 9 fail patterns detecting walk recommendations (e.g., +walking ). One implementation detail: markdown bold markup had to be stripped before matching. Claude frequently writes âshould walkâ and the asterisks break whitespace-based regex patterns. When both pass and fail patterns matched in a single response, a dominance ratio determined the result. A 2:1 threshold was required for a definitive score; otherwise the trial was flagged ambiguous. Statistical significance testing was performed using scipy.stats.fisher_exact (SciPy 1.12, two-tailed). 4 Results 4.1 Primary Pass Rates Condition Components Pass Rate Recovery Med. Latency A_bare No system prompt 0% (0/20) 95% 4,649ms B_role_only Role only 0% (0/20) 100% 7,550ms C_role_star Role + STAR 85% (17/20) 67% 7,851ms D_role_profile Role + Profile 30% (6/20) 100% 8,837ms F_role_star_profile Role + STAR + Profile 95% (19/20) 0% (0/1) 9,056ms E_full_stack All combined 100% (20/20) n/a 8,347ms Table 1: Pass rates across six experimental conditions. Pass means the first response recommends driving. Recovery means the model self-corrects after the challenge prompt. 4.2 Key Findings Finding 1: Reasoning structure outperforms context injection by 2.83Ă. C_role_star reached 85%. D_role_profile reached 30%. Both branch from the same baseline (B, 0%). The STAR framework forces the model to name the task before generating a conclusion. Profile injection gives the model physical factsâcar model, location, parking statusâbut does not force it to process those facts in any particular order. The model can receive all the right information and still take a shortcut past it. The difference between C (85%) and D (30%) was statistically significant (Fisherâs exact test, two-tailed, p=0.001p=0.001, odds ratio =13.22=13.22), confirming that the observed 2.83Ă advantage of structured reasoning over context injection is unlikely to be attributable to chance even at this sample size. Finding 2: Per-layer contributions are now isolated. The addition of condition F resolves the confound in the original five-condition design. The progression from C to E can now be decomposed: ⢠STAR alone: +85p (0% to 85%) ⢠Profile on top of STAR: +10p (85% to 95%) ⢠RAG on top of STAR + Profile: +5p (95% to 100%) Profileâs marginal contribution (+10p) is twice that of RAG (+5p). Both are necessary for perfect reliability, but STAR accounts for the overwhelming majority of the improvement. Finding 3: The recovery paradox. C_role_star had the highest first-pass accuracy but the lowest recovery rate (67%). Conditions A, B, and D all recovered at 95â100%. F_role_star_profile showed an even more extreme version of this pattern: its single failure (1/20) did not recover at all (0% recovery rate). Section 5.3 discusses the mechanism. Finding 4: Role definition alone does nothing. B_role_only scored 0%, identical to A_bare. The expert advisor persona made the model write longer responses (median latency 7,550ms vs 4,649ms) but did not change the answer. 4.3 Failure Mode Taxonomy Three failure patterns appeared across all failed primary trials: Type 1âDistance Heuristic (âź 70% of failures). The model treats the question as a distance optimization problem. â100 meters is a 1â2 minute walk.â It never considers what needs to be at the destination. Type 2âEnvironmental Rationalization (âź 20%). The model builds secondary justifications around the wrong answer. âWalking saves fuel and is better for the environment.â Type 3âIronic Self-Awareness (âź 10%). The model acknowledges that the car needs to be at the car wash, then still recommends walking. One B_role_only response said: âYou can drive your car through the wash bay when you arriveââas if the car would get there on its own. 4.4 Latency Analysis Condition Median Latency vs Baseline A_bare 4,649ms â B_role_only 7,550ms +62% C_role_star 7,851ms +69% D_role_profile 8,837ms +90% F_role_star_profile 9,056ms +95% E_full_stack 8,347ms +80% Table 2: Median response latencies. E_full_stack is faster than D and F despite having more context, suggesting that model confidence reduces deliberation time. 5 Discussion 5.1 Why STAR Works: The Task Step The mechanism is in the Task step. Without STAR, the model goes straight from â100 metersâ to the distance heuristic to âwalk.â The purpose of the tripâwashing the carâis in the input, but the model has no obligation to process it before reaching a conclusion. STAR changes the generation sequence. The model must fill in: Situation: I want to wash my car. The car wash is 100 meters away. Task: ___ This creates a fork. If the model writes âTask: Get your car to the car wash,â the car becomes the subject of the goal statement. Drive follows naturally. If the model writes âTask: Get yourself and your car to the car wash efficiently,â the person re-enters as the subject, and walk becomes plausible again. The per-trial data confirms this. All 17 passing trials in C_role_star had Task statements where the car was the primary subject. All 3 failures framed the task around the person. Once the model generates âTask: Get your car to the car wash,â every token that follows is conditioned on that text. The implicit constraintâthe car must physically be thereâis now explicit in the context window. STAR does not give the model new information. It makes the model write down what it already has before moving on. 5.2 Why Profile Injection Alone Falls Short D_role_profile gave the model everything it needed: Sarah drives a 2022 Honda Civic, it is parked in the driveway, she is at home. This is enough to answer correctly. The pass rate was 30%. The problem is not about missing information. The model has the facts. But having facts in the context window does not mean the model will use them at the right moment. Without a reasoning structure, the model still takes the shortest path from input to output. â100 metersâ triggers the distance heuristic and the conclusion lands before the carâs location ever gets pulled into the reasoning chain. 5.3 The Recovery Paradox C_role_star scored 85% on first pass but only 67% on recovery. A_bare and B_role_only scored 0% on first pass but recovered at 95â100%. F_role_star_profile showed an even more extreme version: 95% first-pass accuracy but 0% recovery on its single failure. When conditions A and B fail, they fail with loose, unstructured responses. A challenge prompt can redirect easily because there is nothing anchoring the wrong answer. When C or F fails, it fails with a full STAR-structured argument. The model has already walked through Situation, Task, Action, and Result, and produced a coherent case for walking. Correcting course means contradicting a structured argument the model just made. The mechanism is token-level, not psychological. Prior generated text constrains subsequent generation. This has a practical consequence: if an initial response used structured reasoning, the follow-up correction needs to target the specific step that went wrongâin this case, the Task formulation. 5.4 The Profile-RAG Decomposition The addition of condition F resolves a confound present in the original five-condition design. Previously, the jump from 85% (C) to 100% (E) could not be attributed to any single layer because E added both profile and RAG simultaneously. With F at 95%, the decomposition is now clear: Layer Added Increment Cumulative STAR (C vs B) +85p 85% Profile (F vs C) +10p 95% RAG (E vs F) +5p 100% Table 3: Per-layer marginal contributions to pass rate. Profile contributes twice as much as RAG in the final stretch. The mechanism is likely that profile grounds the STAR framework in concrete physical details (a specific car, a specific location), which reduces the probability of the Task step being formulated abstractly. RAG adds situational context (the car needs washing after a road trip) that eliminates the remaining edge case. 5.5 Open Questions This study measures behavior at the prompt layer. We can see that STAR produces 85% and profile injection produces 30%. We do not know what happens inside the model to produce this difference. Which attention heads activate differently when the Task step is present? Does forcing goal articulation change the activation pattern in a way that is consistent across prompts, or is it specific to this question? Would the same STAR structure produce the same lift on GPT-4 or Gemini, or is the effect tied to Claudeâs training? These are mechanistic interpretability questions. What we have is a behavioral result that any interpretability study could use as a starting point: the same model, the same question, two prompt conditions, a 55 percentage point gap. 6 Limitations Single model. Every trial used claude-sonnet-4-5-20250929. Whether these patterns hold across GPT-4o, Gemini, or Mistral is unknown. Single task. One question, one correct answer. The car wash problem tests implicit physical constraint reasoning specifically. Whether STAR produces similar gains on temporal constraints, social context inference, or causal chain reasoning has not been tested. Sample size. 20 runs per condition. The Fisherâs exact test confirms that the C vs D difference is statistically significant (p=0.001p=0.001), but confidence intervals around individual pass rates remain wide. Temperature. 0.7 was chosen as a reasonable default for introducing variance. We did not sweep across temperature values. Distance modification. The original Mastodon question used 50 meters. We used 100, following the benchmark. The longer distance might make the task slightly easier than the original. DeepSeek version. The model used for pre-experiment prediction was DeepSeek, but we did not record the exact version or endpoint. Latency overhead. STAR-structured prompts increased median response time by about 69% over baseline (7,851ms vs 4,649ms). Challenge prompt bias. The challenge prompt (âHow will I get my car washed if I am walking?â) is leading. A neutral challenge like âAre you sure?â would better isolate self-correction ability. F condition timing. Condition F was added after the initial five-condition experiment, approximately six days later. While the same model version, hyperparameters, and scoring methodology were used, we cannot rule out that API-level changes may have introduced minor behavioral differences. 7 Conclusion We started this study because we had a result we could not explain. Our system answered a question correctly when other LLMs did not, and we did not know which part of the system was responsible. The experiment gave us a clear answer: Layer Pass Rate Marginal Contribution Baseline (A, B) 0% â STAR (C) 85% +85p Profile alone (D) 30% +30p (without STAR) STAR + Profile (F) 95% +10p (on top of STAR) STAR + Profile + RAG (E) 100% +5p (on top of STAR + Profile) Table 4: Complete layer progression from baseline to perfect reliability. STAR reasoning accounts for the overwhelming majority of the improvement. Profile and RAG are necessary for perfect reliability but insufficient on their own. The mechanism appears to be goal articulation: when the model is forced to write down what it is trying to accomplish before it starts reasoning about how, implicit constraints surface as explicit text. Once they are explicit, autoregressive generation conditions on them. There is a broader point here. A common pattern in applied AI is to solve reasoning failures by adding more contextâmore facts, more profile data, more retrieved documents. Our results suggest this is the wrong first move. How the model processes information matters more than how much information it receives. Profile injection with all the right facts scored 30%. Structured reasoning with no additional facts scored 85%. The difference was statistically significant (p=0.001p=0.001). Or to put it less formally: intelligence is not about how much you hold in your head. It is about knowing to pick up the keys before you leave the house. References McCarthy and Hayes [1969] McCarthy, J. and Hayes, P.J. (1969). Some Philosophical Problems from the Standpoint of Artificial Intelligence. Machine Intelligence 4, Edinburgh University Press, p. 463â502. Wang et al. [2023] Wang, X., Wei, J., Schuurmans, D., Le, Q., Chi, E., Narang, S., Chowdhery, A., and Zhou, D. (2023). Self-Consistency Improves Chain of Thought Reasoning in Language Models. Proceedings of ICLR 2023. Wei et al. [2022] Wei, J., Wang, X., Schuurmans, D., Bosma, M., Ichter, B., Xia, F., Chi, E., Le, Q., and Zhou, D. (2022). Chain-of-Thought Prompting Elicits Reasoning in Large Language Models. Advances in Neural Information Processing Systems 35 (NeurIPS 2022). Yao et al. [2023a] Yao, S., Zhao, J., Yu, D., Du, N., Shafran, I., Narasimhan, K., and Cao, Y. (2023a). ReAct: Synergizing Reasoning and Acting in Language Models. Proceedings of ICLR 2023. Yao et al. [2023b] Yao, S., Yu, D., Zhao, J., Shafran, I., Griffiths, T.L., Cao, Y., and Narasimhan, K. (2023b). Tree of Thoughts: Deliberate Problem Solving with Large Language Models. Advances in Neural Information Processing Systems 36 (NeurIPS 2023). Allen [2026] Allen, R. (2026). car-wash-evals. GitHub. https://github.com/ryan-allen/car-wash-evals