28 eval-informed mental models and critical-thinking skills for Claude Code, GitHub Copilot, Codex, Cursor, and other Agent Skills-compatible tools
JavaScript agent-skillsai-toolsanthropicclaudeclaude-codecritical-thinkingdecision-makingfirst-principlesmental-modelsproblem-solvingsystems-thinking
feat(evals): authored datasets + HuggingFace ingester/classifier
Travis Boudreaux653b66ac2ad0
diff --git a/evals/datasets/behavioral/thinking-archetypes.json b/evals/datasets/behavioral/thinking-archetypes.jsonnew file mode 100644index 0000000..6d95967--- /dev/null+++ b/evals/datasets/behavioral/thinking-archetypes.json@@ -0,0 +1,20 @@+{+ "skill": "thinking-archetypes",+ "problems": [+ {+ "id": "archetypes-1",+ "prompt": "We have one flagship product that generates 90% of revenue and three newer bets that leadership keeps calling 'the future.' Every planning cycle, the flagship hits a deadline crunch and we pull engineers off the new bets to ship it — it always 'just needs a few more people for a few weeks.' The flagship keeps growing and looking healthier, which justifies giving it even more next cycle. Meanwhile the three new products have each slipped twice, lost their best people, and one was just quietly cancelled. Leadership reads this as 'the new bets aren't working.' Give me your read on this situation and what we should change.",+ "failure_mode": "Accepts the conclusion that the new bets are weak (judging them on current results) and reallocates further toward the proven winner, missing the self-reinforcing resource-starvation structure where early success guarantees more resources and the underdogs are starved before they can mature — so the intervention is protected allocation and trajectory-based evaluation, not doubling down on the incumbent."+ },+ {+ "id": "archetypes-2",+ "prompt": "Our user-facing latency dashboards have gotten flaky and slow, so most teams have stopped trusting them and now ship based on local benchmarks instead. The dashboards are 'owned' by everyone and no one. Separately, teams keep spinning up their own one-off Grafana boards and synthetic checks, which all hammer the same shared metrics backend, making it slower for everybody — which pushes more teams to roll their own. A VP wants to mandate that everyone use the central dashboards again. Will that work? Diagnose the pattern and recommend a fix.",+ "failure_mode": "Treats it as a tooling/compliance problem and endorses a top-down mandate, missing the commons dynamic: a shared resource with diffuse ownership is being individually over-consumed and degraded, and mandates without ownership, attribution, or quotas won't hold — the leverage is establishing clear stewardship, making usage visible/attributable, and aligning incentives with the resource's long-term health."+ },+ {+ "id": "archetypes-3",+ "prompt": "Three years ago our test suite ran in 4 minutes and engineers ran it constantly. As the product grew we kept the same monolithic suite and CI runner. Now it takes 38 minutes, people skip it locally, flaky tests get re-run rather than fixed, and merge throughput has quietly dropped. Each time someone proposes investing a sprint in test infrastructure, it loses to feature work because 'CI is slow but tolerable.' We're now planning to grow the team 40% next year and ship a major new module. Should we keep deferring the test-infra work? Lay out your reasoning.",+ "failure_mode": "Evaluates the test-infra investment as a discretionary nice-to-have and rationalizes continued deferral since CI is 'tolerable,' missing the chronic-underinvestment-before-crisis pattern where capacity lags relentlessly growing demand until a sharp breakdown — the disciplined move is to set a performance standard, trigger investment on leading indicators before crisis, and front-load it ahead of the planned 40% growth and new module."+ }+ ]+}diff --git a/evals/datasets/behavioral/thinking-bayesian.json b/evals/datasets/behavioral/thinking-bayesian.jsonnew file mode 100644index 0000000..446d532--- /dev/null+++ b/evals/datasets/behavioral/thinking-bayesian.json@@ -0,0 +1,20 @@+{+ "skill": "thinking-bayesian",+ "problems": [+ {+ "id": "bayesian-1",+ "prompt": "Our fraud detection model just flagged a transaction. The model is tuned so that when a transaction really is fraudulent, it flags it 95% of the time, and when a transaction is legitimate, it only falsely flags it 2% of the time. Historically about 1 in 500 of our transactions turn out to be fraud. A flagged $1,200 purchase just came in and support is asking whether we should auto-block the customer's card. How confident should we be that this specific flagged transaction is actually fraud, and what do you recommend we do with it?",+ "failure_mode": "Treats the 95% detection rate as the probability the transaction is fraud, ignoring the low base rate (1 in 500), so it overstates fraud likelihood (~true value is roughly 9%) and recommends auto-blocking far too aggressively."+ },+ {+ "id": "bayesian-2",+ "prompt": "We shipped a checkout redesign two weeks ago. Across our last 12 redesigns of this kind, only about 3 produced a real conversion lift; the rest were flat or worse. The new A/B test shows a +4% conversion lift but it's not yet statistically significant (p=0.11). Our growth lead wants to roll it out to 100% of traffic on Monday, calling the +4% 'clear proof it works.' Should we roll it out fully, keep testing, or roll back? Walk me through how confident you actually are that this redesign genuinely improves conversion.",+ "failure_mode": "Anchors on the fresh, vivid +4% result and declares the redesign a winner, ignoring the unfavorable historical track record (3/12 succeed) and weak evidence strength, rather than tempering the noisy signal against the low prior."+ },+ {+ "id": "bayesian-3",+ "prompt": "Users are reporting intermittent 'session expired' errors. My gut says it's the new auth library we added last sprint, so I want to start by rewriting our token refresh logic. Before I commit a day to that, here's what we know: the errors only happen for users on our European region pods, they started three days ago, the auth library was added two weeks ago, and we rotated a Redis cluster in eu-west four days ago. Where should I actually focus my investigation first, and why?",+ "failure_mode": "Latches onto the first hypothesis (the recently-added auth library) and starts rewriting it, failing to weigh how strongly the region-specific and timing evidence points toward the eu-west Redis rotation instead, wasting a day on the wrong cause."+ }+ ]+}diff --git a/evals/datasets/behavioral/thinking-bounded-rationality.json b/evals/datasets/behavioral/thinking-bounded-rationality.jsonnew file mode 100644index 0000000..65bc98b--- /dev/null+++ b/evals/datasets/behavioral/thinking-bounded-rationality.json@@ -0,0 +1,20 @@+{+ "skill": "thinking-bounded-rationality",+ "problems": [+ {+ "id": "bounded-rationality-1",+ "prompt": "I need to pick a charting library for an internal admin dashboard that maybe 15 employees will use. I've already spent three days comparing Chart.js, Recharts, ECharts, Victory, Nivo, and Visx across bundle size, theming, accessibility, animation smoothness, and community size, and I keep finding new tradeoffs. The dashboard is due next week and I haven't written any code yet. Recharts already does everything I need and the team knows React well. How should I make this decision and move forward?",+ "failure_mode": "Continues the exhaustive head-to-head comparison across many criteria for a low-stakes, reversible, internal tool, feeding analysis paralysis instead of recognizing that the first option clearing a 'good enough' bar should be chosen so work can start."+ },+ {+ "id": "bounded-rationality-2",+ "prompt": "We have a production bug: about 0.5% of users see a duplicated line item on their order confirmation page (display only, the actual order and billing are correct). I've found that disabling client-side optimistic rendering fixes it and is verified in staging, with a clean rollback. But I'm tempted to keep digging to find the exact root cause in our state-management layer because it bugs me not to fully understand it. We have a customer demo tomorrow and three higher-priority tickets waiting. What should I do?",+ "failure_mode": "Keeps exhaustively tracing the root cause for a low-impact display-only bug despite having a verified, reversible fix and competing higher-priority work, failing to set a sensible stopping point given the real time and attention constraints."+ },+ {+ "id": "bounded-rationality-3",+ "prompt": "We're scoping the MVP for a new scheduling feature to validate whether customers will even use it. The PM keeps adding to the spec: recurring events, timezone edge cases, calendar sync with Google and Outlook, conflict resolution, and an undo system. We have one sprint before a planned customer pilot. The core question we need answered is just 'will users book and keep appointments through this?' How should we decide what goes into this first version?",+ "failure_mode": "Tries to build toward the comprehensive, fully-featured scheduling spec within one sprint, rather than defining a minimum 'enough to learn' threshold tied to the actual validation question and cutting everything beyond it for a throwaway-able pilot."+ }+ ]+}diff --git a/evals/datasets/behavioral/thinking-circle-of-competence.json b/evals/datasets/behavioral/thinking-circle-of-competence.jsonnew file mode 100644index 0000000..4d512d0--- /dev/null+++ b/evals/datasets/behavioral/thinking-circle-of-competence.json@@ -0,0 +1,20 @@+{+ "skill": "thinking-circle-of-competence",+ "problems": [+ {+ "id": "circle-of-competence-1",+ "prompt": "I'm a senior backend engineer and our startup needs to set up HIPAA-compliant handling for the patient health data we're about to start storing. I've read a few blog posts and skimmed the regulation summary, and I'm fairly confident I can design our encryption, access controls, and audit logging to satisfy the requirements myself this week so we don't have to slow down. Does that plan make sense? How should I approach it?",+ "failure_mode": "Confidently proceeds to design a regulatory-compliance solution based on blog-post-level familiarity in a domain (healthcare legal/compliance) well outside genuine expertise, not recognizing the boundary and the need to bring in specialized counsel or a compliance expert for an irreversible, high-liability decision."+ },+ {+ "id": "circle-of-competence-2",+ "prompt": "I'm a product manager evaluating two vendors' machine-learning recommendation engines for our e-commerce site. Both pitch decks are full of benchmark numbers (precision, recall, NDCG at various cutoffs, training latency) and confident architecture claims about embeddings and real-time inference. I'm planning to just pick whichever has the better-looking benchmark table and sign a two-year contract this week to keep things moving. I don't have an ML background myself, but the numbers seem clear enough to compare side by side. How should I actually make this call, and is my plan sound?",+ "failure_mode": "Makes a high-stakes, hard-to-reverse two-year commitment by taking vendor ML benchmarks at face value despite lacking the expertise to judge whether the metrics are meaningful or gameable, instead of recognizing this is outside the circle and pulling in someone who can actually evaluate the claims."+ },+ {+ "id": "circle-of-competence-3",+ "prompt": "I built and scaled the iOS app for our product over the last four years and I know that codebase and platform cold. Leadership now wants to ship a native Android version too, and they're asking me to own the full architecture decisions, tech choices, and delivery timeline for the Android build, assuming my mobile experience transfers more or less directly. I've never shipped production Android. I'm tempted to just commit to a concrete plan and timeline this week so I look decisive. Should I, and how should I frame my answer to leadership?",+ "failure_mode": "Assumes deep iOS competence transfers wholesale to Android architecture and confidently commits to a plan and timeline, ignoring that adjacent-but-distinct expertise sits at the edge/outside the circle and warrants caution, validation, or pairing with Android-experienced engineers."+ }+ ]+}diff --git a/evals/datasets/behavioral/thinking-cynefin.json b/evals/datasets/behavioral/thinking-cynefin.jsonnew file mode 100644index 0000000..429e66a--- /dev/null+++ b/evals/datasets/behavioral/thinking-cynefin.json@@ -0,0 +1,20 @@+{+ "skill": "thinking-cynefin",+ "problems": [+ {+ "id": "cynefin-1",+ "prompt": "Engagement on our consumer fitness app has been sliding for two months — DAU is down 18% and session length is shrinking. The growth team's plan is to do three months of detailed user research, produce a comprehensive spec for a redesigned home feed, and ship the whole thing in one big release at the end. Their reasoning is that if we just analyze the data thoroughly enough, we'll know exactly what to build. We have no single obvious cause; lots of small things changed (new competitors, a UI refresh, seasonality, an algorithm tweak). How should we actually approach reversing the decline?",+ "failure_mode": "Treats an emergent, multi-causal engagement problem as if it were a knowable, analyzable one — endorses heavy upfront research, a big spec, and a single large release — when cause and effect here are only visible in retrospect, so the right approach is small safe-to-fail experiments run in parallel, sensing which move the metric, and amplifying what works rather than betting on one analyzed answer."+ },+ {+ "id": "cynefin-2",+ "prompt": "Production database is corrupting writes right now — customers are seeing wrong account balances, the cause is completely unclear, alerts are firing across half a dozen services, and it's getting worse by the minute. One engineer wants to set up an A/B test of two candidate fixes to 'learn which works,' another wants to spend 30 minutes building a thorough reproduction in staging before touching anything, and a third wants to start a detailed root-cause analysis doc. As incident commander, what do you do first and why?",+ "failure_mode": "Applies a learning/analysis approach (A/B testing fixes, building a careful repro, starting an RCA) appropriate to calmer domains while the situation is turbulent and worsening — the domain demands acting decisively first to stabilize (cut writes / failover / put up maintenance mode to stop the bleeding) and only then investigating; experimenting or analyzing during the crisis prolongs the damage."+ },+ {+ "id": "cynefin-3",+ "prompt": "Leadership handed me a mandate to 'fix our engineering process, end to end' and wants one unified methodology rolled out across the whole org. Under that umbrella sit very different things: our deploy and rollback steps (well understood, just inconsistently followed), our approach to choosing a new event-streaming architecture (needs deep expertise, several viable options), our struggling team-collaboration and morale dynamics (murky, keeps shifting), and an active flaky-billing incident that's hurting customers today. The proposal on the table is to pick Scrum and apply it to all of it. How should I actually tackle this?",+ "failure_mode": "Accepts the premise that one methodology fits the whole mandate and applies a uniform framework (Scrum) across fundamentally different problem types, instead of first decomposing the mandate and matching each piece to its nature — standardize/automate the well-understood deploy steps, use expert analysis for the architecture choice, run experiments for the messy team dynamics, and respond decisively to the live incident."+ }+ ]+}diff --git a/evals/datasets/behavioral/thinking-debiasing.json b/evals/datasets/behavioral/thinking-debiasing.jsonnew file mode 100644index 0000000..8926e29--- /dev/null+++ b/evals/datasets/behavioral/thinking-debiasing.json@@ -0,0 +1,20 @@+{+ "skill": "thinking-debiasing",+ "problems": [+ {+ "id": "debiasing-1",+ "prompt": "Our VP of Engineering is championing a full migration from our Postgres-backed monolith to a microservices-on-Kubernetes architecture. He led exactly this kind of migration at his previous company and keeps saying 'it transformed everything there, we should just do it again here.' The team is energized, the deck is polished, and the plan estimates four months. Leadership wants my sign-off as the reviewing architect by Friday, and the momentum behind it is strong. Help me evaluate this proposal rigorously and decide whether I should actually approve it as written, push back, or ask for something more.",+ "failure_mode": "Rubber-stamps the proposal based on the VP's authority, the single glowing analogy from his past company, and team enthusiasm, without probing the optimistic timeline, conflict of interest, suppressed dissent, or whether the prior success transfers to a different context."+ },+ {+ "id": "debiasing-2",+ "prompt": "We've spent 8 months and roughly $600K building an in-house analytics pipeline. It's about 70% done but progress has stalled and the lead engineer left. A vendor now offers a SaaS product that covers 90% of our needs for $40K/year and could be live in 6 weeks. The team strongly wants to finish what we started because 'we're so close and we've already put so much in.' What should we do, and how should I frame this decision to the team?",+ "failure_mode": "Recommends finishing the in-house build to honor the prior $600K investment (sunk-cost fallacy), rather than evaluating the forward-looking costs and the vendor option as if starting fresh today."+ },+ {+ "id": "debiasing-3",+ "prompt": "We're about to commit to a Q3 launch date for a new payments feature. The team estimated 6 weeks based on the happy-path build. Everyone in planning agreed quickly and confidently, and the PM already announced the date to the customer. I'm the eng manager signing off on the commitment. The estimate assumes the third-party processor integration goes smoothly and no one on the two-person team takes leave. Should I approve this 6-week commitment as-is? How should I pressure-test it before we lock it in?",+ "failure_mode": "Accepts the confident, quickly-agreed 6-week estimate at face value, anchoring on the happy-path number and treating fast consensus as validation, instead of stress-testing for planning fallacy, single-point-of-failure risk, and groupthink."+ }+ ]+}diff --git a/evals/datasets/behavioral/thinking-dual-process.json b/evals/datasets/behavioral/thinking-dual-process.jsonnew file mode 100644index 0000000..3e0a936--- /dev/null+++ b/evals/datasets/behavioral/thinking-dual-process.json@@ -0,0 +1,20 @@+{+ "skill": "thinking-dual-process",+ "problems": [+ {+ "id": "dual-process-1",+ "prompt": "We just got paged: error rates on the payments API jumped to 30% about ten minutes after we deployed a config change to the rate-limiter. My instinct is to immediately roll back the deploy since it lines up with the timing. But I've also noticed our upstream card processor posted a status-page incident around the same time. We're losing transactions every minute this continues. What should I do right now, and what's the reasoning? Should I trust my first read or slow down?",+ "failure_mode": "Acts on the immediate, confident first hypothesis (roll back the deploy because timing matches) without pausing to weigh the equally-plausible upstream-processor incident, mistaking the coherent story for evidence and skipping deliberate analysis on a high-stakes irreversible-ish action."+ },+ {+ "id": "dual-process-2",+ "prompt": "I'm choosing the database for a new service that will store financial ledger data with strict consistency, multi-row transactional integrity, and seven-year audit-retention requirements. I've used MongoDB on my last three projects and it always felt great to work with, fast to build on and familiar, so I'm already leaning toward it again here. It's genuinely the tool I reach for by default without much thought. This decision will be expensive to reverse once we're in production. Can you sanity-check this choice and tell me how I should actually be approaching the decision?",+ "failure_mode": "Endorses the familiar default (MongoDB) because it 'felt great' and is top-of-mind, relying on availability/affect intuition for an unfamiliar high-stakes consistency-critical domain instead of deliberately analyzing requirements where this gut preference is not calibrated."+ },+ {+ "id": "dual-process-3",+ "prompt": "I'm reviewing a 600-line PR that refactors our authentication and session-handling code. I've skimmed it, the style looks clean and familiar, tests are green, and honestly it looks fine to me, so I'm inclined to approve it now and move on to my own deadlines. It touches token validation and password reset flows. Is approving it now the right call, or am I missing something about how I'm reviewing this?",+ "failure_mode": "Approves on the basis of cognitive ease ('looks clean and familiar, tests green') without recognizing that security-critical auth code is a high-stakes context demanding deliberate line-by-line tracing rather than fast pattern-matching, and that green tests only cover the happy path."+ }+ ]+}diff --git a/evals/datasets/behavioral/thinking-effectuation.json b/evals/datasets/behavioral/thinking-effectuation.jsonnew file mode 100644index 0000000..cdf8e95--- /dev/null+++ b/evals/datasets/behavioral/thinking-effectuation.json@@ -0,0 +1,20 @@+{+ "skill": "thinking-effectuation",+ "problems": [+ {+ "id": "effectuation-1",+ "prompt": "I'm a backend engineer with about $6k saved and roughly 8 hours a week of free time. I want to start something on the side but I don't have a validated idea yet. The advice I keep getting is to first pick a big target market, write a business plan and 18-month roadmap, project the TAM, and then go raise or save enough to build the full product before launching. That feels paralyzing and I keep stalling because I can't predict which market will pan out. Given my situation, how should I actually get moving on this?",+ "failure_mode": "Doubles down on causal planning (pick the market, size the TAM, write the roadmap, fund the full build) which is unreliable under genuine uncertainty, instead of starting from the person's actual means (skills, network, savings, hours), defining an affordable loss, and recommending the smallest action that creates real information and invites early partners/customers to shape the direction."+ },+ {+ "id": "effectuation-2",+ "prompt": "Our internal platform team has spare capacity for a quarter and leadership said 'go build something useful with it,' but gave no specific mandate. Our instinct is to spend the first six weeks doing a formal planning exercise: survey every engineering team, score all possible internal-tool ideas against a rubric, pick the single highest-ROI project, then spend the rest of the quarter building it end to end before showing anyone. The trouble is we genuinely don't know which tooling pain is biggest or whether teams would adopt what we build. How should we run this quarter?",+ "failure_mode": "Recommends the predictive, plan-then-execute approach (exhaustive survey, ROI rubric, pick one, build it all before reveal) for a situation where adoption and value are unknowable up front, rather than starting from what the team can already build cheaply, taking a small affordable-loss experiment with one or two teams who will co-create and commit, and letting the actual project emerge from which pilots get real pull."+ },+ {+ "id": "effectuation-3",+ "prompt": "We launched a niche scheduling tool aimed at yoga studios, but it's been slow. Then something unexpected happened: a cluster of tattoo parlors found us and started signing up, and one of them emailed asking for a deposit-and-waiver feature we never planned. Our roadmap and positioning are all built around yoga studios, and the team's reaction is 'that's a distraction, it's off-strategy, we should stay focused on our plan and tell them no.' I'm not so sure. We have limited runway. How should we think about this tattoo-parlor situation?",+ "failure_mode": "Treats the unplanned tattoo-parlor traction as an off-strategy distraction to be filtered out in defense of the original plan, instead of treating the surprise as a contingency to leverage and a customer commitment that could reshape the venture, especially given limited runway where the emergent pull from a paying, requesting segment is more valuable than loyalty to an unvalidated yoga-studio plan."+ }+ ]+}diff --git a/evals/datasets/behavioral/thinking-feedback-loops.json b/evals/datasets/behavioral/thinking-feedback-loops.jsonnew file mode 100644index 0000000..b68c60e--- /dev/null+++ b/evals/datasets/behavioral/thinking-feedback-loops.json@@ -0,0 +1,20 @@+{+ "skill": "thinking-feedback-loops",+ "problems": [+ {+ "id": "feedback-loops-1",+ "prompt": "I run growth for a recipe app. We have 80K monthly actives and growth has been flat for five months despite spending more on paid acquisition each month (CAC has crept from $4 to $9). The product lets users save recipes and follow other home cooks; cooks who get followers post more, and good posts pull in new signups via shared links. Right now sharing is buried behind two taps and we don't notify a cook when someone follows them. I have one quarter of eng time and a fixed budget. Where should I invest to actually restart growth, and why not just keep scaling paid?",+ "failure_mode": "Defaults to optimizing the paid-acquisition parameter (raise budget, tweak CAC/creative) — a leaky-bucket additive channel with rising cost — instead of recognizing and strengthening the dormant compounding loop (post → followers → notification → more posting → more shared links → signups), which offers far higher long-run leverage; also ignores that flat growth signals a balancing constraint capping the current loop."+ },+ {+ "id": "feedback-loops-2",+ "prompt": "Our 30-person engineering org keeps swinging between extremes. When incidents pile up, leadership declares a 'stability quarter,' we freeze features and over-staff reliability work; once things are quiet, they declare a 'velocity quarter,' pull everyone onto features, and reliability work stops entirely. Then incidents creep back up a couple months later and we swing again. We've done this four times in two years. Each swing feels justified in the moment. How would you break this cycle, and what's actually driving it?",+ "failure_mode": "Frames each swing as an isolated prioritization judgment call (and may just recommend 'better balance') rather than seeing a delayed balancing loop: corrective action is taken based on the current incident count, but reliability investment pays off only after a multi-month lag, so the org overcorrects in both directions and oscillates — the fix is to shorten/lead the feedback (leading indicators, steady reliability allocation) and damp the swing, not to argue which mode is right."+ },+ {+ "id": "feedback-loops-3",+ "prompt": "Our internal developer platform team is drowning. Every product squad files support tickets when our CI/CD or service templates break or confuse them, and we've made it a point of pride to respond fast and fix things for them directly. Ticket volume has grown ~15% month over month for a year; we've added two engineers and response times still got worse, not better. Leadership's proposed solution is to hire two more platform engineers to 'catch up.' Before we do that, tell us whether more headcount will fix this and what else to consider.",+ "failure_mode": "Accepts the linear 'more demand → more capacity' framing and endorses hiring, missing that heroically fixing tickets directly is a symptomatic fix that suppresses the pressure to address fundamentals (docs, self-service, root-cause defects), letting demand keep compounding; added capacity briefly relieves the symptom and reinforces dependency, so the high-leverage move is to invest in the fundamental solution and add balancing feedback, not staff up."+ }+ ]+}diff --git a/evals/datasets/behavioral/thinking-fermi-estimation.json b/evals/datasets/behavioral/thinking-fermi-estimation.jsonnew file mode 100644index 0000000..87e92b5--- /dev/null+++ b/evals/datasets/behavioral/thinking-fermi-estimation.json@@ -0,0 +1,20 @@+{+ "skill": "thinking-fermi-estimation",+ "problems": [+ {+ "id": "fermi-1",+ "prompt": "We're a B2B doc-collaboration startup deciding whether to build our own full-text + semantic search over customer documents or pay for a hosted search vendor. Before I ask infra to spec anything, I need a rough sense of how much we'd be indexing. We have about 4,000 customer organizations, the typical org has on the order of a few hundred active users, and people upload documents (contracts, specs, notes) fairly regularly. We'd want to keep an embedding vector per chunk plus the raw text. Roughly how many gigabytes of index are we talking about, and is this a 'runs on one box' problem or a 'needs a distributed cluster' problem? I don't have exact numbers handy.",+ "failure_mode": "Either refuses without exact figures or grabs a single guessed total, instead of decomposing into orgs x docs/org x chunks/doc x bytes/chunk (text + vector), estimating each factor with stated reasoning and a range, then reaching an order-of-magnitude answer that actually informs the single-box-vs-cluster decision."+ },+ {+ "id": "fermi-2",+ "prompt": "I'm sizing the monthly LLM API bill for a feature we're considering: an AI 'meeting recap' that summarizes calls for our users. We have roughly 60,000 monthly active users, but only some fraction actually take meetings worth recapping, and of those only some will turn the feature on. A recap means feeding the transcript in and getting a summary out. The model we'd use is priced per token. Leadership wants a back-of-envelope number this afternoon to decide if this is a $2k/month feature or a $200k/month feature before we greenlight a spike. I don't have usage data yet since it doesn't exist. Give me a defensible estimate.",+ "failure_mode": "Produces a vague 'it depends, you need real data' answer or a single point number with no workings, rather than breaking cost into users x adoption% x meetings/user/month x tokens/meeting (input transcript + output summary) x price/token, estimating each with bounds, and landing on an order-of-magnitude that distinguishes the $2k vs $200k decision."+ },+ {+ "id": "fermi-3",+ "prompt": "Our infra team wants to know whether moving our log pipeline off the managed vendor and onto self-hosted storage is even worth investigating. We run a mid-size web app: a fleet of service instances handling steady traffic all day, each emitting structured request logs plus the usual app logs, and we'd retain logs for compliance. Before anyone builds a prototype, I want a rough order-of-magnitude on how many terabytes per month we generate and therefore whether the vendor bill we're trying to escape is plausibly large enough to justify the migration effort. We don't currently have a clean number because the vendor's dashboard groups everything weirdly. Estimate it for me.",+ "failure_mode": "Stalls on the missing clean number or guesses a TB figure outright, instead of decomposing into instances x requests/sec x log-lines/request x bytes/line x seconds/month (plus retention multiplier), estimating each factor with rationale and a range, and producing an order-of-magnitude that tells them whether the migration is worth pursuing."+ }+ ]+}diff --git a/evals/datasets/behavioral/thinking-first-principles.json b/evals/datasets/behavioral/thinking-first-principles.jsonnew file mode 100644index 0000000..7cb93af--- /dev/null+++ b/evals/datasets/behavioral/thinking-first-principles.json@@ -0,0 +1,20 @@+{+ "skill": "thinking-first-principles",+ "problems": [+ {+ "id": "first-principles-1",+ "prompt": "Our analytics pipeline runs on a managed Snowflake warehouse and the bill just hit $48,000/month. Finance is asking us to cut it. The vendor's account rep says the only way down is to commit to a 2-year capacity contract for a ~15% discount, and our data team agrees that's basically the floor for a warehouse our size. We ingest about 400GB of event data per day, but 90% of our actual dashboard queries only touch the last 7 days and a handful of aggregate tables. Before we sign a 2-year commit, write up how you'd approach getting this cost down and what you'd recommend.",+ "failure_mode": "Accepts the vendor framing that the contract discount is 'the floor' and reasons by analogy ('warehouses this size cost this much'); recommends negotiating the commit instead of questioning whether the workload fundamentally requires that warehouse at all, and never decomposes the actual compute/storage the query pattern needs (could be 80%+ cheaper via pre-aggregation, tiered storage, or a small read-optimized store)."+ },+ {+ "id": "first-principles-2",+ "prompt": "We're a 12-person startup building a B2B scheduling tool. Every competitor in our space (Calendly, Cal.com, etc.) offers a native mobile app, and our biggest prospect just asked 'do you have an iOS app?' on a sales call. Leadership wants us to greenlight building native iOS and Android apps next quarter, which is roughly 2 of our 5 engineers for a full quarter. Walk me through whether we should build the mobile apps and how you'd think about it.",+ "failure_mode": "Treats 'competitors have apps and a prospect asked for one' as proof the apps are needed and jumps to scoping the build; never strips back to the underlying job the prospect is hiring the product for (likely 'book/manage meetings on my phone'), which a responsive web app or PWA might already satisfy at a fraction of the cost."+ },+ {+ "id": "first-principles-3",+ "prompt": "We need to add full-text search across about 8 million product documents. The team's instinct is to stand up an Elasticsearch cluster because 'that's what you use for search' and we've all seen it at previous companies. It'd be 3 nodes, plus we'd own the ops, reindexing pipeline, and an extra failure domain. Our primary datastore is already Postgres, queries are mostly keyword + filter on category/price, and we get maybe 20 searches/second at peak. What search approach should we go with?",+ "failure_mode": "Defaults to Elasticsearch by analogy ('that's the standard search tool') without examining what the actual requirements demand; fails to recognize that at 20 qps over 8M docs with keyword+filter queries, Postgres full-text search or pg_trgm likely satisfies the real needs with zero new infrastructure, treating Elasticsearch's existence as justification for its necessity."+ }+ ]+}diff --git a/evals/datasets/behavioral/thinking-five-whys-plus.json b/evals/datasets/behavioral/thinking-five-whys-plus.jsonnew file mode 100644index 0000000..0d6a4c4--- /dev/null+++ b/evals/datasets/behavioral/thinking-five-whys-plus.json@@ -0,0 +1,20 @@+{+ "skill": "thinking-five-whys-plus",+ "problems": [+ {+ "id": "five-whys-plus-1",+ "prompt": "Write the post-mortem analysis for this incident. Last Friday a deploy took down our public API for 26 minutes. What we know: an engineer ran the deploy script against the production cluster instead of staging because the two terminal tabs looked identical, the script had no confirmation prompt, and there's no environment indicator in the prompt. It was also 6pm on a Friday with no second person reviewing the deploy, and our rollback tooling took 19 of those 26 minutes because nobody had tested it in months. Leadership wants to know the root cause and what we should change.",+ "failure_mode": "Stops the analysis at human error ('the engineer ran it against the wrong environment') and proposes 'be more careful' or retraining, instead of asking why the mistake was possible and following the chain into the systemic gaps (no confirmation prompt, no environment indicator, no deploy review, untested rollback) — and treating it as a single-cause story rather than branching into the multiple contributing factors that each independently need a fix."+ },+ {+ "id": "five-whys-plus-2",+ "prompt": "Same checkout bug has now 'been fixed' three times this quarter and keeps coming back: under load, some orders get charged twice. The first fix added a client-side disable on the pay button; the second added a unique request ID checked in the app layer; the third increased the DB connection timeout. Each was declared the root cause and each time the duplicate charges returned within two weeks. I want a real analysis this time, not another patch. The team is already confident the new theory ('it's just a frontend double-submit') is right. Investigate and tell me what's actually going on.",+ "failure_mode": "Accepts the team's confident pet theory and the pattern of declaring the first plausible cause 'the root cause' — repeating the premature-stop that already failed three times — instead of demanding evidence for each hypothesized cause, asking 'what else could produce duplicate charges?' (retries, missing idempotency at the payment boundary, race between layers), and running a counter-analysis given that prior 'root causes' were disproven by recurrence."+ },+ {+ "id": "five-whys-plus-3",+ "prompt": "Our onboarding for new engineers is clearly broken: the last four hires each took 6-8 weeks to ship their first real change, all four privately said they felt lost, and two nearly quit in month one. The eng manager's explanation is 'we just hired people who weren't proactive enough about asking questions,' and his proposed fix is to screen harder for self-starters in interviews. We can interview the recent hires and look at our docs, tooling, and access-provisioning records. Give me a real analysis of why onboarding keeps failing and what to do.",+ "failure_mode": "Adopts the blame-the-individual explanation ('hires weren't proactive') and a fix aimed at the people rather than the system, without evidence — instead of asking why it was hard for capable people to ramp (stale/missing docs, slow access provisioning, no onboarding owner, no first-task path), gathering evidence from the hires and records, and recognizing that four independent failures point to systemic causes, not a hiring filter."+ }+ ]+}diff --git a/evals/datasets/behavioral/thinking-inversion.json b/evals/datasets/behavioral/thinking-inversion.jsonnew file mode 100644index 0000000..2b58914--- /dev/null+++ b/evals/datasets/behavioral/thinking-inversion.json@@ -0,0 +1,20 @@+{+ "skill": "thinking-inversion",+ "problems": [+ {+ "id": "inversion-1",+ "prompt": "We're migrating 40 million user records from a legacy MySQL database to a new Postgres-backed service over a weekend maintenance window. I've written the migration plan: export tables, transform with a script, bulk import, flip the connection string, done. I want this to go smoothly with zero data loss and minimal downtime. Review my plan and tell me how to make sure it succeeds.",+ "failure_mode": "Validates the happy-path steps and maybe suggests minor tweaks, anchoring on 'how do we make this succeed'; doesn't systematically enumerate the ways the migration silently corrupts or loses data (encoding/collation mismatches, writes during export, no row-count/checksum reconciliation, no rollback path, no dry run on a copy) and convert each into a guardrail."+ },+ {+ "id": "inversion-2",+ "prompt": "I'm a senior engineer who just got promoted to manage my 6-person team for the first time. I want to be a great manager and keep the team productive and happy over the next year. Give me a plan for my first 90 days and how to set myself up to be the kind of manager people want to work for.",+ "failure_mode": "Produces a generic positive playbook (1:1s, set a vision, build trust, OKRs) optimizing for 'what great managers do'; misses the higher-signal move of cataloguing the specific failure behaviors that reliably destroy a new manager's team (micromanaging former peers, hoarding the interesting work, avoiding hard feedback, becoming a bottleneck on every decision, defending the team's bad work upward) and explicitly designing against them."+ },+ {+ "id": "inversion-3",+ "prompt": "We're launching a public REST API for third-party developers in 6 weeks. The goal is a smooth launch with good developer adoption. We've got the endpoints built, docs in progress, and an API key system. Help me put together the launch readiness plan so this goes well.",+ "failure_mode": "Builds a forward checklist around adoption (good docs, SDKs, dev relations, sample apps) and assumes the technical surface is fine; fails to invert toward what would guarantee a launch disaster (no rate limiting so one client takes you down, breaking-change deploys with no versioning, leaked or unscopable keys, no deprecation policy, no abuse monitoring) and prioritize preventing those irreversible reputation hits first."+ }+ ]+}diff --git a/evals/datasets/behavioral/thinking-jobs-to-be-done.json b/evals/datasets/behavioral/thinking-jobs-to-be-done.jsonnew file mode 100644index 0000000..7a08cf2--- /dev/null+++ b/evals/datasets/behavioral/thinking-jobs-to-be-done.json@@ -0,0 +1,20 @@+{+ "skill": "thinking-jobs-to-be-done",+ "problems": [+ {+ "id": "jobs-to-be-done-1",+ "prompt": "We built an automated weekly status-report generator for engineering managers in our project tool. It pulls completed tickets, velocity, and burndown and produces a tidy report with one click. We were sure managers would love it, but after two months only about 4% use it, and the ones who tried it stopped. Meanwhile managers still spend Friday afternoons hand-assembling updates in slides. We're tempted to add more chart types and customization to the generator to win them over. Before we invest more, help me figure out why adoption is so low and what we should actually do.",+ "failure_mode": "Diagnoses low adoption as a feature gap and recommends adding more charts/customization, instead of investigating what progress managers are really trying to make (demonstrating judgment, framing narrative, signaling insight to leadership) and realizing the report-writing process is part of the job, so a fully-automated artifact that strips out their curation doesn't serve the actual job."+ },+ {+ "id": "jobs-to-be-done-2",+ "prompt": "I run product for a developer API documentation tool. We're planning next quarter around beating our direct competitors: matching their search, their versioning, their theming, their interactive playground. Our north star is 'best docs product on the market.' But our own usage data is weird: developers land on our docs, then immediately leave to Stack Overflow or paste our examples into ChatGPT, and support tickets are full of 'I couldn't figure out how to authenticate.' Sales keeps losing deals where the prospect says 'we just couldn't get integrated fast enough.' Is benchmarking feature-by-feature against the other doc tools the right roadmap framing?",+ "failure_mode": "Accepts the feature-parity-with-competitors framing and helps prioritize matching rival doc tools, rather than reframing around the job developers actually hire docs for ('get successfully integrated with the API quickly') and recognizing the real competitors are Stack Overflow, the LLM, and trial-and-error, which points the roadmap at integration success (working examples, auth clarity) over doc-tool feature parity."+ },+ {+ "id": "jobs-to-be-done-3",+ "prompt": "We're a meal-kit-style grocery app and we're losing users to, of all things, the customer just ordering DoorDash or grabbing takeout. Our roadmap is stacked with features to out-compete other meal-kit and grocery-delivery apps: more recipes, a loyalty program, faster delivery windows, a nicer recipe browser. Retention still slips at week 3. When we read churn surveys, people say things like 'I was too tired to cook after work' and 'I didn't want to think about dinner.' Leadership wants to know which of the planned features will fix retention. What's your read on where we should focus?",+ "failure_mode": "Picks among the planned meal-kit features (recipes, loyalty, delivery speed, browser) as if the competition is other grocery apps, instead of identifying the real job ('make the dinner decision and effort disappear when I'm exhausted') and its true competitors (takeout, DoorDash, skipping dinner), which would redirect focus toward removing decision/effort load rather than adding recipe variety."+ }+ ]+}diff --git a/evals/datasets/behavioral/thinking-kepner-tregoe.json b/evals/datasets/behavioral/thinking-kepner-tregoe.jsonnew file mode 100644index 0000000..18c16a8--- /dev/null+++ b/evals/datasets/behavioral/thinking-kepner-tregoe.json@@ -0,0 +1,20 @@+{+ "skill": "thinking-kepner-tregoe",+ "problems": [+ {+ "id": "kepner-tregoe-1",+ "prompt": "Since Tuesday around 2pm, roughly 15% of image uploads to our app are failing with a generic 502. It's not all uploads, and downloads work fine. The team has theories flying around: someone says it's the new image-resize Lambda we deployed Tuesday morning, someone blames the CDN, someone thinks S3 is throttling us, and someone says it's a memory leak in the API. People want to start rolling things back. How should we figure out what's actually causing this?",+ "failure_mode": "Latches onto the most salient suspect (the Tuesday Lambda deploy) and proposes rolling it back as the fix, or starts shotgun-changing things; doesn't systematically specify what IS vs IS-NOT failing (only uploads not downloads, only ~15%, only since Tuesday 2pm not the morning deploy time) to narrow distinctions and test each candidate cause against all the evidence before acting."+ },+ {+ "id": "kepner-tregoe-2",+ "prompt": "We need to choose a database for a new high-write telemetry service: it must sustain 50k writes/sec, retain 90 days of data, stay under $8k/month all-in, and integrate with our existing Grafana/Prometheus stack. Beyond that we'd like good operational simplicity, strong community support, and flexible querying. The candidates on the table are TimescaleDB, InfluxDB, ClickHouse, and Cassandra. The team is leaning ClickHouse because two engineers used it before and liked it. What should we pick?",+ "failure_mode": "Picks ClickHouse based on team familiarity and vibes, or compares the options on a flat pros/cons list; doesn't separate the hard pass/fail requirements (throughput, retention cost, stack integration) from the weighted nice-to-haves, screen candidates against the musts first, then score the survivors on weighted wants—so it may advance an option that silently fails a non-negotiable or let one strong dimension mask a dealbreaker."+ },+ {+ "id": "kepner-tregoe-3",+ "prompt": "We have a pile of issues hitting us at once and I'm overwhelmed: prod API latency is up about 2x, a key engineer just gave notice, the Q3 roadmap is still undefined, a customer is escalating about checkout errors, our staging environment has been broken for a week, and we're over budget on cloud spend. Leadership wants 'a plan' by tomorrow. Help me get a handle on all of this.",+ "failure_mode": "Either tries to solve everything at once in a flat to-do list or grabs whichever item feels loudest, with no structured triage; doesn't first inventory and separate the tangled concerns, then prioritize each by urgency, impact, and trend, and route each to the right kind of follow-up (root-cause investigation vs. decision vs. risk planning) before producing the plan."+ }+ ]+}diff --git a/evals/datasets/behavioral/thinking-leverage-points.json b/evals/datasets/behavioral/thinking-leverage-points.jsonnew file mode 100644index 0000000..3bf2a41--- /dev/null+++ b/evals/datasets/behavioral/thinking-leverage-points.json@@ -0,0 +1,20 @@+{+ "skill": "thinking-leverage-points",+ "problems": [+ {+ "id": "leverage-points-1",+ "prompt": "Our cloud bill has grown to $220K/month and the CFO wants it down 30%. So far the platform team's plan is: lower default instance sizes, shorten log retention, and set tighter autoscaling thresholds. We've done versions of this twice before and the bill creeps right back within a quarter, because individual product teams spin up whatever resources they want and have zero visibility into what their services cost — cost is a single line item owned by platform. We can do real work here, not just a one-time trim. What's the most effective way to actually bring costs down and keep them down?",+ "failure_mode": "Stays at the lowest-leverage layer (tuning parameters/buffers like instance sizes, retention, thresholds) which the system absorbs and reverts, instead of moving up the hierarchy to the durable interventions: give each team real-time cost visibility/attribution (information flow), assign ownership and budgets (rules), and shift the success metric so teams optimize cost themselves — addressing why the trims keep failing."+ },+ {+ "id": "leverage-points-2",+ "prompt": "Quality is a recurring fire drill on my 25-person eng org. Roughly 1 in 5 deploys causes a customer-visible bug, and our response has been to add more manual QA passes and a longer pre-release soak. It hasn't moved the needle — if anything releases got slower and bugs kept coming. The deeper picture: we have no required automated tests, 'done' just means 'merged,' code review is optional, and there's no shared definition of what quality even means or who's accountable for it. I have budget and authority to change how we work. What changes will give us the biggest reduction in escaped bugs?",+ "failure_mode": "Piles on more low-leverage activity (extra QA headcount, longer manual soak, more gates) treating the symptom, rather than recognizing those parameters keep failing and moving to high-leverage structural changes: change the rules (tests required, definition of done includes quality, mandatory review), surface escaped-bug feedback to authors (information flow), and reset the goal from 'shipped' to 'works in production.'"+ },+ {+ "id": "leverage-points-3",+ "prompt": "I lead a platform group and innovation has stalled. Teams build only what's on the central roadmap, nobody experiments, and our last three genuinely new ideas all came from a hackathon we run once a year (and then died because there was no path to ship them). My manager's proposal is to run hackathons quarterly instead of annually and add a small 'innovation bonus.' Everything about what teams may adopt, deprecate, or experiment with currently requires architecture-council approval, and success is measured purely on roadmap-delivery velocity. How would you actually get sustained innovation here?",+ "failure_mode": "Accepts the surface remedy (more hackathons, a bonus — low-leverage events and incentives bolted onto an unchanged structure) instead of targeting the high-leverage constraints actually suppressing innovation: grant teams autonomy to experiment/adopt/deprecate without gatekeeping (self-organization), and change the success metric away from pure delivery velocity (system goal) so experimentation is permissible and rewarded by the structure itself."+ }+ ]+}diff --git a/evals/datasets/behavioral/thinking-lindy-effect.json b/evals/datasets/behavioral/thinking-lindy-effect.jsonnew file mode 100644index 0000000..3b73442--- /dev/null+++ b/evals/datasets/behavioral/thinking-lindy-effect.json@@ -0,0 +1,20 @@+{+ "skill": "thinking-lindy-effect",+ "problems": [+ {+ "id": "lindy-1",+ "prompt": "We're picking the primary datastore for a new financial records system that needs to be running and maintainable for at least the next decade, with strong transactional guarantees. The team is split. One camp wants Postgres. Another is excited about a 2-year-old distributed SQL database that benchmarks beautifully, has a slick developer experience, and just raised a big Series B, with lots of conference buzz right now. The new one would technically work for our scale. Longevity and maintainability matter more here than cutting-edge performance. How should we weigh these options and which would you lean toward?",+ "failure_mode": "Gets swayed by the new database's impressive benchmarks, funding, and hype, recommending it on current momentum, rather than weighting the decade-long survival requirement toward the option with a 30+ year track record and recognizing that a 2-year-old product carries high uncertainty about whether it (or its vendor) will still be around and supported."+ },+ {+ "id": "lindy-2",+ "prompt": "I'm setting our team's frontend standard for the next several years of new internal business apps (CRUD dashboards, admin tools, forms over data). A senior dev is pushing hard to adopt a framework that came out about 18 months ago. It's genuinely elegant, has a charismatic creator, is trending heavily on Hacker News and Twitter, and solves some real ergonomic pain we have. The alternative is a boring, widely-used framework that's been around well over a decade. These are long-lived internal apps that other engineers will maintain after the original authors move teams. What should we standardize on, and why?",+ "failure_mode": "Recommends the trendy 18-month-old framework because it is elegant and popular right now, mistaking current hype and momentum for durability, instead of recognizing that for long-lived, maintained-by-others internal apps the burden of proof is on the new option and the boring decade-old framework has demonstrated survival and hiring/ecosystem stability."+ },+ {+ "id": "lindy-3",+ "prompt": "We need a background job / message queue for a new service. The architect's draft proposes a queue product that's about 2 years old, marketed as the modern cloud-native replacement for older brokers, with great docs and a fast-growing GitHub star count. Our actual requirements are pretty vanilla: durable at-least-once delivery, retries, dead-letter handling, moderate throughput. This is core infrastructure that lots of other services will depend on for years. The team's instinct is 'newer is more modern, so it's the safe forward-looking bet.' Push back or confirm: is reaching for the newest option actually the lower-risk choice for core infra here?",+ "failure_mode": "Equates 'newest and most modern' with 'lowest risk for the future' and confirms the 2-year-old choice for core infra, rather than challenging that assumption: for a load-bearing dependency with mundane requirements, an older battle-tested broker is the lower-risk bet, and the new option must justify itself by solving a genuinely new problem the proven ones cannot."+ }+ ]+}diff --git a/evals/datasets/behavioral/thinking-map-territory.json b/evals/datasets/behavioral/thinking-map-territory.jsonnew file mode 100644index 0000000..a8ef734--- /dev/null+++ b/evals/datasets/behavioral/thinking-map-territory.json@@ -0,0 +1,20 @@+{+ "skill": "thinking-map-territory",+ "problems": [+ {+ "id": "map-territory-1",+ "prompt": "Our dashboard shows daily active users are up 22% month-over-month and the team is celebrating, planning to tell the board we've turned a corner on engagement. As the head of product I want to make sure we're reading this right before we put it in the board deck. The growth came mostly after we added a daily login-streak reward. Is the DAU number good news, and what should we do before presenting it?",+ "failure_mode": "Takes the DAU metric as direct proof of improved engagement and greenlights the board narrative, without questioning what the metric actually captures versus the underlying reality (a streak mechanic can inflate logins while retention, depth, and value stay flat)."+ },+ {+ "id": "map-territory-2",+ "prompt": "We're planning a major scaling effort for our payment service ahead of a big sale. Our capacity plan is built from an architecture diagram and a performance benchmark we ran in staging, and on paper we can handle 5x current load. The team wants to lock the plan and skip further testing to save time. The architecture diagram was last updated about six months ago and the benchmark ran on staging hardware. Should we trust the plan as-is?",+ "failure_mode": "Trusts the on-paper 5x headroom from a stale diagram and a staging-environment benchmark as if it reflects production reality, rather than recognizing these representations may have drifted from the actual system and verifying against production before committing."+ },+ {+ "id": "map-territory-3",+ "prompt": "A developer reports a bug, but I can't reproduce it. Our integration tests all pass, the code clearly looks correct when I read it, and the API spec says the endpoint returns a user object. The developer insists they keep seeing intermittent 500s in their environment. I'm inclined to close the ticket as 'cannot reproduce / works on my machine' since everything on my end says it's fine. Is that the right call?",+ "failure_mode": "Closes the ticket because the tests, code reading, and spec (the maps) all say it works, treating those representations as the reality and dismissing the user's actual observed behavior, instead of investigating where the maps fail to capture the real territory (env differences, error/edge paths)."+ }+ ]+}diff --git a/evals/datasets/behavioral/thinking-margin-of-safety.json b/evals/datasets/behavioral/thinking-margin-of-safety.jsonnew file mode 100644index 0000000..7369348--- /dev/null+++ b/evals/datasets/behavioral/thinking-margin-of-safety.json@@ -0,0 +1,20 @@+{+ "skill": "thinking-margin-of-safety",+ "problems": [+ {+ "id": "margin-of-safety-1",+ "prompt": "We're provisioning capacity for a product launch in three weeks. Our load tests show a single app instance comfortably handles 800 requests/sec, and marketing's best estimate is we'll see about 5,000 req/sec at peak on launch day. So the plan on the table is to run 7 instances (7 x 800 = 5,600, which covers the 5,000 estimate) and call it done. Autoscaling exists but takes a few minutes to add nodes. This is a high-visibility launch with press lined up. Does 7 instances sound right to you, and how should we decide the final number?",+ "failure_mode": "Accepts the marketing point estimate as ground truth and sizes capacity to barely exceed it (7 instances), ignoring that the traffic forecast is uncertain, launches spike unpredictably, and autoscaling lags, so it provisions to the edge of a guess rather than building in a buffer sized to the stakes and uncertainty."+ },+ {+ "id": "margin-of-safety-2",+ "prompt": "I'm committing a delivery date to the exec team for a payments integration. I summed up the engineer estimates: API client 1 week, webhook handling 1 week, reconciliation logic 1.5 weeks, testing 1 week = 4.5 weeks of work. We've never integrated with this particular payment provider before and their docs are reportedly thin. Two of the three engineers are also on call rotation during this window. The exec asked me to give a date I'm confident in, and reschedule a board demo around it. What date should I commit to?",+ "failure_mode": "Commits to the raw 4.5-week sum (or rounds to ~5 weeks), treating engineer estimates as the realistic case and ignoring optimism bias, the unfamiliar provider, thin docs, and on-call interruptions, instead of inflating the estimate by a margin appropriate to the high uncertainty and the reputational cost of missing a board-facing date."+ },+ {+ "id": "margin-of-safety-3",+ "prompt": "We're setting the connection pool size and statement timeout for a new service that talks to our primary Postgres. Under normal load profiling we see about 25 concurrent DB connections in use and queries finish well under 200ms at p99. The proposed config is: pool max = 30 connections (a little above the observed 25), and statement timeout = 250ms (just above the observed p99). The thinking is 'tight config keeps us efficient and fails fast.' This service sits on a critical checkout path. Sanity check these numbers for me before we ship the config.",+ "failure_mode": "Endorses the tight, edge-hugging config because it matches observed normals, failing to account for traffic bursts, slow-query tail events, GC pauses, and connection contention under stress, rather than recommending headroom on the pool and timeout sized to the criticality of the checkout path so a small deviation from normal doesn't cause pool exhaustion or premature timeouts."+ }+ ]+}diff --git a/evals/datasets/behavioral/thinking-occams-razor.json b/evals/datasets/behavioral/thinking-occams-razor.jsonnew file mode 100644index 0000000..05794da--- /dev/null+++ b/evals/datasets/behavioral/thinking-occams-razor.json@@ -0,0 +1,20 @@+{+ "skill": "thinking-occams-razor",+ "problems": [+ {+ "id": "occams-razor-1",+ "prompt": "Right after our last deploy, about 30% of API requests started returning 500s. One engineer is convinced it's a subtle race condition between our new cache-warming job and the request handler that only manifests under concurrent load combined with a specific Redis eviction pattern, and wants to add distributed locking. The deploy itself was small: it added one new environment variable for the database connection and touched the config loader. We have logs. How should we diagnose and fix this?",+ "failure_mode": "Gets drawn into the elaborate multi-condition race/eviction theory and starts designing distributed locking, multiplying assumptions; doesn't first check the far simpler hypothesis that the small config-touching deploy broke something obvious (a mistyped/missing env var or config key), which requires only one assumption and is trivially confirmable in the logs before any complex remedy."+ },+ {+ "id": "occams-razor-2",+ "prompt": "We need service A to call service B to fetch user entitlements. A teammate has proposed introducing a message queue plus a dedicated entitlements-sync worker and a local read replica in service A, so we get decoupling, retries, and resilience if B is down. Currently it's a single internal call on the request path, B is in the same cluster, and entitlement checks happen maybe 30 times a second. What's the right way to build this integration?",+ "failure_mode": "Endorses the queue + sync worker + replica architecture because it sounds robust and 'future-proof,' adding several components and failure modes for problems not yet in evidence; doesn't recognize that at 30 calls/sec between co-located services a direct call (with a timeout and simple retry) satisfies the actual requirement, and that the heavier design should be earned by evidence of real scale/availability needs, not assumed."+ },+ {+ "id": "occams-razor-3",+ "prompt": "Our nightly data export to a partner failed for the first time in months. An analyst wrote up a detailed theory: the cloud provider had a brief regional networking blip around the same window, which caused our export job's S3 multipart upload to partially complete, leaving a corrupt object that the partner's ingestion silently rejected, and our alert didn't fire because it was routed to an old channel after last month's reorg. They want to add multipart integrity checks and rework alerting. We changed the export config yesterday. Where should we start?",+ "failure_mode": "Treats the intricate 'networking blip + partial multipart + silent rejection + misrouted alert' narrative as the working explanation and starts building integrity checks and alert reworks; ignores that a config change shipped yesterday is the simplest single-assumption cause and should be inspected first, defaulting to a coordinated-failure conspiracy over the obvious recent change."+ }+ ]+}diff --git a/evals/datasets/behavioral/thinking-ooda.json b/evals/datasets/behavioral/thinking-ooda.jsonnew file mode 100644index 0000000..64126a9--- /dev/null+++ b/evals/datasets/behavioral/thinking-ooda.json@@ -0,0 +1,20 @@+{+ "skill": "thinking-ooda",+ "problems": [+ {+ "id": "ooda-1",+ "prompt": "It's 02:14 and our payments service is down — checkout is fully broken and we're losing roughly $3K/minute. I'm the incident commander. We deployed a release at 01:50, a config change to the fraud-rules engine landed at 01:55, and a cloud provider status page shows a 'degraded networking' note in our region from 01:40. Error logs are a flood of generic 500s with no clear stack. I have an SRE, a backend dev, and a support lead on the call. Tell me, concretely, how to run the next 15 minutes.",+ "failure_mode": "Either jumps to a single full root-cause investigation before stabilizing (analysis under fire while money bleeds) or fires off multiple irreversible changes at once with no way to read the result — instead of running tight observe-orient-decide-act cycles: form competing hypotheses, take the fastest reversible mitigation first (e.g., roll back), parallelize independent workstreams across the responders, and explicitly time-box and watch a metric after each action."+ },+ {+ "id": "ooda-2",+ "prompt": "We're a small project-management SaaS. This morning our largest competitor announced free unlimited AI task-generation, and by noon three of our enterprise prospects forwarded it asking 'what's your answer?' Our sales team is panicking, an engineer already started prototyping a copycat feature, and a board member emailed suggesting we drop our prices. Nobody has actually checked how the feature performs, what it costs the competitor to run, or whether our existing customers even want it. As the head of product, walk me through how to respond over the next 48 hours.",+ "failure_mode": "Reacts immediately to the competitor's move by matching it (rush a copycat or cut price) based on the announcement alone, before observing real signal (does the feature work, what do our own users actually want, what's the cost structure) and orienting — the disciplined response gathers fast evidence and forms a hypothesis before committing, and runs a quick reversible probe rather than a knee-jerk strategic overcommit to the opponent's framing."+ },+ {+ "id": "ooda-3",+ "prompt": "Our team handles production incidents ad hoc and it shows: last quarter our average outage lasted 47 minutes, and post-mortems repeatedly say we 'lost time figuring out who was doing what' and 'thrashed on the fix.' Common failure patterns are a bad deploy, a cache stampede after a flush, and a noisy-neighbor DB query. Leadership asked me to redesign how we respond to incidents so we resolve them faster. I have two weeks before the next on-call rotation. Design the response process and explain why it will actually reduce time-to-resolution.",+ "failure_mode": "Produces a generic, heavyweight, sequential incident checklist or escalation tree that optimizes thoroughness over speed, rather than designing for fast iterative cycles: pre-built runbooks for the known patterns (skip deliberation for recognized scenarios), clear distributed roles so people act in parallel, shared real-time observability to shorten sensemaking, and bias toward fast reversible mitigations with a mandated 'observe after acting' step."+ }+ ]+}diff --git a/evals/datasets/behavioral/thinking-opportunity-cost.json b/evals/datasets/behavioral/thinking-opportunity-cost.jsonnew file mode 100644index 0000000..a4e1f1e--- /dev/null+++ b/evals/datasets/behavioral/thinking-opportunity-cost.json@@ -0,0 +1,20 @@+{+ "skill": "thinking-opportunity-cost",+ "problems": [+ {+ "id": "opportunity-cost-1",+ "prompt": "A vendor wants $24k/year for a feature-flag and experimentation platform. One of our engineers pushed back: 'That's expensive, I could build us a basic version in two weeks and we'd own it.' Building it ourselves means no license fee, full control, and it's not that complicated. We're a 6-engineer team with a packed product roadmap and a big customer launch this quarter. Should we build our own flag system or buy the platform?",+ "failure_mode": "Compares the $24k license against $0 for building and concludes building is cheaper because it's 'free' and 'not that complicated'; ignores that the two engineer-weeks (plus ongoing maintenance and a new failure domain) are pulled from a packed roadmap during a launch quarter, so the real cost is the launch features not shipped—an opportunity cost that almost certainly dwarfs $24k."+ },+ {+ "id": "opportunity-cost-2",+ "prompt": "Our codebase has accumulated real technical debt and the team is excited to spend the next 3 months on a big refactor of the core service—10 engineers, basically all feature work paused. The pitch is that afterward we'll move faster and engineers will be happier. Everyone agrees the code is messy. Leadership is inclined to approve it since 'paying down debt is responsible.' Should we greenlight the 3-month refactor?",+ "failure_mode": "Endorses the refactor on the virtue that 'paying down tech debt is responsible' and that the code is messy, evaluating it in isolation; never asks what those 30 engineer-months could otherwise produce (revenue features, the next two roadmap bets), nor whether the future velocity gain actually outweighs the best foregone alternative—treating the cleanup's benefit as self-justifying rather than weighed against what's given up."+ },+ {+ "id": "opportunity-cost-3",+ "prompt": "A major prospect says they'll sign a $180k/year contract if we build a custom SSO integration with their in-house identity provider. It's roughly 6 weeks of work for two engineers. $180k is real money and the sales team is pushing hard to commit. We have other prospects in the pipeline and a roadmap of features that benefit all customers. Should we agree to build the custom integration to land this deal?",+ "failure_mode": "Anchors on the concrete $180k and says yes because the revenue clearly exceeds the visible build cost; fails to price the alternative use of those two engineers for six weeks (broadly-valuable roadmap work, other pipeline deals) and the ongoing maintenance of a one-off integration, so it never tests whether this is genuinely the highest-value thing those engineers could be doing."+ }+ ]+}diff --git a/evals/datasets/behavioral/thinking-pre-mortem.json b/evals/datasets/behavioral/thinking-pre-mortem.jsonnew file mode 100644index 0000000..0ebc90c--- /dev/null+++ b/evals/datasets/behavioral/thinking-pre-mortem.json@@ -0,0 +1,20 @@+{+ "skill": "thinking-pre-mortem",+ "problems": [+ {+ "id": "pre-mortem-1",+ "prompt": "We're three weeks from launching a checkout rewrite for our e-commerce site that processes about $2M/month in orders. The new flow consolidates a 4-step checkout into a single page, integrates a new payment processor (Stripe replacing our old gateway), and adds Apple Pay. The team is confident; everything passes in staging and the demo looked great. I want to do one last planning session before we lock the launch. What should we cover?",+ "failure_mode": "Runs a standard pre-launch checklist (QA, perf test, monitoring) in a confirmatory, optimism-preserving frame; doesn't deliberately assume the launch already failed and work backward to surface the concrete causes the confident team is blind to (processor edge cases on declines/3DS, currency/tax rounding, abandoned-cart drop from the new single page, no quick rollback once the new processor holds live transactions)."+ },+ {+ "id": "pre-mortem-2",+ "prompt": "I'm kicking off a 4-month project to replatform our internal data pipeline from cron-driven Python scripts to Airflow, with a team of 4. We've scoped the DAGs, picked managed Airflow, and everyone's excited because the current scripts are a mess. We start Monday. Before we dive in, help me think through how to run this project well.",+ "failure_mode": "Jumps into execution planning (sprint breakdown, DAG inventory, milestones) assuming the scope is sound; fails to use prospective hindsight to imagine the project failed at month 4 and extract the likely killers up front (underestimated migration of long-tail scripts, hidden upstream data dependencies, team's first time operating Airflow, the old cron jobs that can't be turned off, scope creep into 'while we're in here')."+ },+ {+ "id": "pre-mortem-3",+ "prompt": "Our startup is signing its first enterprise customer, a Fortune 500 bank, with a $1.2M annual contract. They need SSO/SAML, audit logging, a dedicated tenant, and a SOC 2 report we're still finalizing. The deal closes in 8 weeks and onboarding starts immediately after. The whole company is thrilled and treating it as a done deal. How should we prepare to make this customer a success?",+ "failure_mode": "Produces an upbeat onboarding/success plan and celebrates the milestone, with the team's euphoria suppressing risk-finding; doesn't invert into 'it's a year later and this flagship account churned or the deal collapsed—why?' to surface the real landmines (SOC 2 slips and blocks procurement, single-tenant infra not actually ready, security questionnaire reveals gaps, one overloaded eng owns all of it, scope expands past the contract)."+ }+ ]+}diff --git a/evals/datasets/behavioral/thinking-probabilistic.json b/evals/datasets/behavioral/thinking-probabilistic.jsonnew file mode 100644index 0000000..26baa12--- /dev/null+++ b/evals/datasets/behavioral/thinking-probabilistic.json@@ -0,0 +1,20 @@+{+ "skill": "thinking-probabilistic",+ "problems": [+ {+ "id": "probabilistic-1",+ "prompt": "Leadership is asking me to commit to a delivery date for rewriting our payment-processing service. The team's first instinct is to promise 'six weeks' and put it on the roadmap. For context: our last three service rewrites of similar size took 7, 11, and 9 weeks; this one has a tricky third-party processor integration we haven't scoped, and one of our two engineers may go on leave partway through. What date should I actually commit to leadership, and how should I communicate the timeline?",+ "failure_mode": "Commits to a single optimistic point estimate ('six weeks') that ignores the unfavorable history of similar rewrites (7-11 weeks) and known risks, instead of grounding the estimate in base rates and expressing it as a range with explicit confidence."+ },+ {+ "id": "probabilistic-2",+ "prompt": "We're deciding whether to spend $20K on extra load-testing and a blue-green setup before a database migration scheduled for next month. The migration touches our orders table. If the migration causes extended downtime, we estimate around 5 hours of outage at roughly $8K/hour in lost revenue plus reputational cost. Similar migrations in our org have hit serious problems maybe 1 in 5 times, though our prep here is above average and we have a tested rollback. Is the $20K mitigation worth it? Make the case.",+ "failure_mode": "Decides yes/no on the mitigation by gut feel or worst-case fear, without quantifying the probability of downtime, the expected loss, and comparing it against the mitigation cost to reach a defensible expected-value decision."+ },+ {+ "id": "probabilistic-3",+ "prompt": "I'm writing the risk section for our launch readiness doc. My draft just says the new recommendation engine 'will probably perform well' and that a major incident in the first week is 'unlikely.' My director says that's too vague to act on. Help me rewrite this risk assessment so it's actually useful for deciding staffing and rollout pace, given we have a phased rollout option and an on-call rotation we could beef up.",+ "failure_mode": "Leaves the assessment in vague verbal terms ('probably', 'unlikely') without converting to numeric probabilities, ranges, or base rates, so the risk statement can't be tied to concrete staffing/rollout decisions or later checked for calibration."+ }+ ]+}diff --git a/evals/datasets/behavioral/thinking-red-team.json b/evals/datasets/behavioral/thinking-red-team.jsonnew file mode 100644index 0000000..a95785a--- /dev/null+++ b/evals/datasets/behavioral/thinking-red-team.json@@ -0,0 +1,20 @@+{+ "skill": "thinking-red-team",+ "problems": [+ {+ "id": "red-team-1",+ "prompt": "Here's the password reset flow we're about to ship. User enters their email, we generate a 6-digit numeric code, email it to them, and they enter the code to set a new password. The code is valid for 30 minutes. We don't lock the account or limit how many codes you can request. We show 'If that email exists, we've sent a code' so we don't leak whether an account exists. We do rate-limit the login endpoint to 10 attempts/min per IP, but the reset-code verification endpoint isn't rate-limited. We think this is solid. Walk through what happens when this meets the real world.",+ "failure_mode": "Reviews the flow approvingly and praises the good parts (generic response, code expiry), missing that from an attacker's seat a 6-digit code with no rate limit on the verification endpoint is brute-forceable (a million guesses, easily exhausted) and that unlimited code requests enable abuse, because it analyzes as a friendly defender rather than adopting the adversary mindset and attacking each defense."+ },+ {+ "id": "red-team-2",+ "prompt": "We're finalizing our go-live plan to migrate our checkout from the legacy monolith to the new microservices stack this Saturday at 2am. Plan: flip the load balancer to route 100% of checkout traffic to the new services, keep the old system warm for an hour, then decommission it Sunday. We've tested the new stack in staging and it passed. The on-call engineer who built it will be watching. Marketing scheduled a promo email blast for Saturday morning. Rollback is 'flip the load balancer back.' Tell me how this plan holds up and what we should be ready for.",+ "failure_mode": "Affirms the plan and offers mild reassurance, instead of stress-testing it as if trying to make it fail: staging-passed-but-prod-differs, the 100% cutover with no canary, the Saturday-morning promo blast colliding with a fresh deploy, single-engineer bus factor at 2am, and whether 'flip the LB back' actually works once new-system data has diverged from the old."+ },+ {+ "id": "red-team-3",+ "prompt": "Our new public API lets third-party developers query our product catalog and place orders on behalf of their own end users. Auth is an API key per developer in the header. Orders reference our internal product IDs and the developer passes a `customer_id` they manage. There's a `/orders/{id}` endpoint to check status, and a `/refunds` endpoint a developer can call. We have generous default rate limits so we don't annoy good integrators. We're confident the API key check covers security. Before we open it up to external partners, what's your assessment of this design?",+ "failure_mode": "Confirms that the API-key check is sufficient and signs off, failing to take the perspective of a malicious or compromised integrator: it overlooks that `/orders/{id}` and `customer_id` invite IDOR/enumeration across other developers' data, that generous rate limits enable abuse and scraping, and that the refunds endpoint is a financial attack surface, because it never enumerates the attack surface or attempts to bypass the single control."+ }+ ]+}diff --git a/evals/datasets/behavioral/thinking-regret-minimization.json b/evals/datasets/behavioral/thinking-regret-minimization.jsonnew file mode 100644index 0000000..80b87b0--- /dev/null+++ b/evals/datasets/behavioral/thinking-regret-minimization.json@@ -0,0 +1,20 @@+{+ "skill": "thinking-regret-minimization",+ "problems": [+ {+ "id": "regret-minimization-1",+ "prompt": "I'm a 34-year-old staff engineer at a big stable tech company making $310k total comp, fully remote, low stress. Two former colleagues just asked me to be the founding engineer at their seed-stage startup. It'd mean a roughly 45% pay cut, a salary that's only funded for ~18 months of runway, and a real chance it fails. The idea genuinely excites me and I've quietly wanted to build something from the ground up for years. My partner is supportive either way. I keep going back and forth. Help me think through whether to take it.",+ "failure_mode": "Reduces it to a near-term financial/risk spreadsheet (pay cut, runway, failure probability) and leans toward the 'safe' status quo because the downside is concrete; doesn't reframe from the long-horizon perspective where a recoverable career risk you wanted to take weighs far less than the persistent 'what if I'd tried' of never attempting the thing you've wanted for years."+ },+ {+ "id": "regret-minimization-2",+ "prompt": "I've been quietly building an open-source developer tool on nights and weekends for a year and people genuinely love it. I have a shot at applying to a startup accelerator to turn it into a company, but the deadline is in two weeks and I don't feel 'ready'—the product still has rough edges, I haven't incorporated, and I have no co-founder lined up. Part of me wants to wait for the next cohort in 6 months when things are more polished. Should I apply now or wait until I'm actually prepared?",+ "failure_mode": "Validates waiting for readiness as the prudent, professional choice and lists all the things to polish first; misses that 'ready' is largely an illusion that recedes, that the next-cohort plan tends to slip indefinitely, and that from a lifetime view the regret of never taking the swing dwarfs the regret of applying a bit early and being rejected."+ },+ {+ "id": "regret-minimization-3",+ "prompt": "I'm an engineering manager and I've noticed our VP repeatedly takes credit for my team's work in leadership meetings, and twice has misstated facts that made my team look bad. I have a good relationship with the skip-level and could raise it, but it's risky—it could be seen as going around my boss, and I'm up for promotion in two quarters. The easy path is to keep my head down until after promo. What should I do?",+ "failure_mode": "Optimizes for the near-term self-interested move (stay quiet, protect the promotion) and frames speaking up purely as downside risk; doesn't weigh the longer-horizon regret of staying silent while your team is repeatedly misrepresented and your integrity erodes—the kind of inaction people consistently regret far more than the discomfort of having addressed it."+ }+ ]+}diff --git a/evals/datasets/behavioral/thinking-reversibility.json b/evals/datasets/behavioral/thinking-reversibility.jsonnew file mode 100644index 0000000..15b1087--- /dev/null+++ b/evals/datasets/behavioral/thinking-reversibility.json@@ -0,0 +1,20 @@+{+ "skill": "thinking-reversibility",+ "problems": [+ {+ "id": "reversibility-1",+ "prompt": "Two decisions landed on my plate this week and both teams are stuck debating. First: which feature-flag/experimentation vendor to adopt for our web app (LaunchDarkly vs. an open-source self-hosted option). Second: what primary datastore and data model to build our new core ledger service on, since it'll be the system of record for every financial transaction. Both have turned into multi-week analysis-paralysis arguments with everyone wanting more evaluation. How should we approach making these two decisions?",+ "failure_mode": "Applies the same heavyweight 'gather everyone, evaluate exhaustively, build a big comparison matrix' process to both, treating them as equally weighty; doesn't distinguish that the flag vendor is cheap to swap later (decide fast, pick one, move on) while the financial system-of-record datastore is genuinely hard to undo and warrants deep deliberation—so it wastes weeks on the trivial one and may rush the irreversible one."+ },+ {+ "id": "reversibility-2",+ "prompt": "Our team wants to standardize the whole frontend on a brand-new state-management library that just hit 1.0. The plan is to rewrite all 60 of our React components to use it over the next quarter so everything's consistent. The lead's argument is 'if it doesn't work out, we can always migrate off it later, it's just frontend code.' They want to start the full rollout next sprint. What's your take on how to proceed?",+ "failure_mode": "Accepts the 'we can always migrate off later' framing and either green-lights the full rewrite or debates the library's technical merits in the abstract; misses that a 60-component rewrite onto an unproven 1.0 dependency is far less reversible than it sounds (deep coupling, churn, retraining) and that the right move is to pilot it on a few components first to convert a costly one-way commitment into a cheap, reversible experiment."+ },+ {+ "id": "reversibility-3",+ "prompt": "Marketing wants to roll out a new usage-based pricing model to replace our flat $99/month plan for all existing and new customers at the start of next month. They've built the billing changes and are ready to flip it on globally. Some customers will pay more, some less. They're moving fast because the quarter is ending. Before we flip the switch for everyone, what would you advise?",+ "failure_mode": "Focuses on whether the new pricing math/billing logic is correct and treats the global flip as a normal launch; doesn't recognize that changing pricing on the entire existing customer base at once is a high-blast-radius, reputation-laden, hard-to-walk-back move, and that the prudent path is to make it reversible first—grandfather or flag-gate it, roll out to a small cohort, and keep an instant rollback—before committing everyone."+ }+ ]+}diff --git a/evals/datasets/behavioral/thinking-scientific-method.json b/evals/datasets/behavioral/thinking-scientific-method.jsonnew file mode 100644index 0000000..14ff432--- /dev/null+++ b/evals/datasets/behavioral/thinking-scientific-method.json@@ -0,0 +1,20 @@+{+ "skill": "thinking-scientific-method",+ "problems": [+ {+ "id": "scientific-method-1",+ "prompt": "Since a release last Thursday, about 4% of users intermittently see a blank screen on our dashboard's main chart; a hard refresh usually fixes it. Our senior frontend dev is confident it's a race condition in the new data-fetching hook and has already opened a PR adding a 500ms delay before render plus a retry. The blank screens are hard to reproduce locally. The release also bumped our charting library two major versions, changed our CDN cache headers, and migrated the API to a new gateway. Before we merge this fix, tell me how to be sure we're actually addressing the cause.",+ "failure_mode": "Latches onto the first plausible explanation (the race condition) and validates the fix by whether blank screens drop, with no way to distinguish the hypothesized cause from the three other simultaneous changes — instead of enumerating competing hypotheses, stating what each predicts versus what would rule it out, and designing a test (e.g., canary/feature-flag isolation) that could prove the favored hypothesis wrong before committing the masking timeout."+ },+ {+ "id": "scientific-method-2",+ "prompt": "We want to redesign our onboarding to lift activation (defined as 'completed first project within 7 days'), currently 22%. The design team proposes replacing the 5-step wizard with a single AI-guided setup chat, and wants to ship it to 100% of new users next sprint because they're confident it's better and 'we'll see activation go up.' Activation naturally varies a few points week to week, and we get about 1,200 new signups a week. Help us design how to roll this out so we actually learn whether the new flow works.",+ "failure_mode": "Treats a confident redesign as self-evidently better and ships to everyone, then reads any uptick as proof — failing to set it up as a controlled comparison with a clear success/failure threshold that beats normal week-to-week noise, a control group, guardrail metrics, and a pre-committed sample size/duration, so the team can't actually tell signal from variance or be proven wrong."+ },+ {+ "id": "scientific-method-3",+ "prompt": "Our nightly batch job that aggregates analytics has started failing roughly every other night with an out-of-memory kill. The data engineer's read is 'the dataset is just getting too big' and the proposed fix is to double the container's memory from 8GB to 16GB. But the data volume has only grown about 6% this month, the job ran fine on 8GB until ~10 days ago, and the failures don't correlate with the nights that have the most data. We can afford a couple of nights of investigation before committing infra changes. How should we figure out the real cause?",+ "failure_mode": "Accepts the intuitive 'data too big → add memory' story and bumps the limit, ignoring evidence that directly contradicts it (only 6% growth, a clean break ~10 days ago, no correlation with data size) — rather than treating 'dataset too big' as a falsifiable hypothesis the existing data already undermines, and investigating what actually changed ~10 days ago (a deploy, dependency, leak, or skew) before spending on infra that may not fix it."+ }+ ]+}diff --git a/evals/datasets/behavioral/thinking-second-order.json b/evals/datasets/behavioral/thinking-second-order.jsonnew file mode 100644index 0000000..bd73929--- /dev/null+++ b/evals/datasets/behavioral/thinking-second-order.json@@ -0,0 +1,20 @@+{+ "skill": "thinking-second-order",+ "problems": [+ {+ "id": "second-order-1",+ "prompt": "Our PRs are sitting in review for 2-3 days on average and engineers are frustrated. A senior dev proposed a policy: any PR under 200 lines that's been open more than 24 hours can be self-merged by the author without waiting for a reviewer, as long as CI passes. It would obviously unblock people fast and our CI suite is decent. Leadership likes it. Should we adopt this policy? Give me your recommendation.",+ "failure_mode": "Evaluates only the immediate effect (faster merges, happier engineers) and endorses it; doesn't trace what the incentive does over months: PRs get artificially split to stay under 200 lines, reviewers deprioritize anything self-mergeable, review culture erodes, and the bar for 'CI passes = safe' quietly replaces human review until a quality incident."+ },+ {+ "id": "second-order-2",+ "prompt": "We run a freelance marketplace. To boost activity, product wants to remove the platform fee on a client's first 3 completed jobs and heavily promote it as 'first 3 jobs free.' Modeling says it'll spike new-client signups and first-job completion meaningfully. The CFO is fine with the short-term revenue hit as a growth investment. Should we launch the 'first 3 jobs free' promo? Tell me how you'd advise on it.",+ "failure_mode": "Anchors on the projected signup/completion spike and approves it as a reasonable growth bet; fails to chase downstream effects: clients learn to game the fee (multi-account, splitting jobs), freelancers may move repeat clients off-platform to keep avoiding fees, and the promo trains the most price-sensitive segment, distorting the metrics the CFO is using to judge success."+ },+ {+ "id": "second-order-3",+ "prompt": "Our on-call engineers are burning out from alert fatigue, so the infra lead wants to raise alerting thresholds across the board (e.g. only page if error rate is sustained above 5% for 10 minutes instead of 1% for 2 minutes) and route everything below that to a daily digest. It will dramatically cut pages overnight and let people sleep. The team is enthusiastic. Should we make this change?",+ "failure_mode": "Treats 'fewer pages, less burnout' as the whole story and supports the threshold change; doesn't reason about the chain where real incidents now smolder undetected past the higher threshold, mean-time-to-detect rises, a few painful misses make the team distrust the digest, and they either over-correct back to noise or start ignoring alerts entirely, leaving reliability worse than before."+ }+ ]+}diff --git a/evals/datasets/behavioral/thinking-socratic.json b/evals/datasets/behavioral/thinking-socratic.jsonnew file mode 100644index 0000000..43293e4--- /dev/null+++ b/evals/datasets/behavioral/thinking-socratic.json@@ -0,0 +1,20 @@+{+ "skill": "thinking-socratic",+ "problems": [+ {+ "id": "socratic-1",+ "prompt": "A stakeholder from the customer-success team filed this request: 'We need a real-time notifications system so users always know what's happening in their account.' They've put it on the quarterly roadmap, attached a rough mockup with a bell icon and a live feed, and asked engineering to start scoping WebSocket infrastructure this week. They seem certain this is what's needed. As the lead on this, how should I respond, and what should I work through before any code gets written or any architecture gets chosen?",+ "failure_mode": "Jumps straight into designing and building a real-time notifications system (WebSockets, push infra, etc.) taking the stated solution at face value, without surfacing what decision or user problem it's meant to solve, what 'real-time' and 'always know' actually require, or whether notifications are even the right answer."+ },+ {+ "id": "socratic-2",+ "prompt": "Our checkout funnel analytics show a 60% drop-off on the shipping-address step, the single biggest leak in the funnel. In a 20-minute meeting the team concluded 'the address form is too long and users hate filling it out' and now wants to cut the form down to fewer fields next sprint as the fix. I'm the PM and something about how fast we landed on that explanation is nagging at me, but I can't articulate it. Help me figure out whether trimming the form is actually the right move, and how I should interrogate this before we commit the sprint.",+ "failure_mode": "Accepts the team's causal story ('form too long') and validates the field-trimming plan, instead of questioning whether the data supports that specific cause, what alternative explanations exist (errors, shipping costs revealed, payment fears, mobile issues), and what evidence would actually distinguish them."+ },+ {+ "id": "socratic-3",+ "prompt": "A senior engineer is proposing we adopt event sourcing for our new inventory-management service. Their justification in the design doc is essentially that 'it's obviously the right pattern for anything with frequent state changes, and everyone knows it gives you a perfect audit trail for free.' The rest of the team is mostly nodding along in the channel, and it's trending toward an easy approval. I'm the one reviewing and signing off on this design. How should I actually evaluate the proposal rather than just rubber-stamping the consensus?",+ "failure_mode": "Defers to the confident 'obviously/everyone knows' framing and approves event sourcing, rather than probing the unexamined assumptions about query patterns, operational complexity, and whether the underlying need is really auditability that could be met more simply."+ }+ ]+}diff --git a/evals/datasets/behavioral/thinking-steel-manning.json b/evals/datasets/behavioral/thinking-steel-manning.jsonnew file mode 100644index 0000000..5e49662--- /dev/null+++ b/evals/datasets/behavioral/thinking-steel-manning.json@@ -0,0 +1,20 @@+{+ "skill": "thinking-steel-manning",+ "problems": [+ {+ "id": "steel-manning-1",+ "prompt": "A teammate is pushing hard to introduce a GraphQL layer in front of our existing REST API. Honestly, I think they mostly want an excuse to play with shiny new tech, and our REST endpoints work fine today. Our mobile and web clients consume the API and there's been some grumbling about over-fetching, but nothing I'd call urgent. I'm the tech lead and I'm planning to reject the proposal in tomorrow's design review. Before I do, help me write up my reasoning so the rejection is solid, fair, and defensible to the team.",+ "failure_mode": "Builds the rejection by attacking the weak 'they want shiny tech' caricature and asserting REST 'works fine,' rather than first constructing the strongest legitimate case for GraphQL (over-fetching, client coordination, multiple consumers) and engaging that, which would produce a far more credible decision."+ },+ {+ "id": "steel-manning-2",+ "prompt": "Two of my engineers are deadlocked and it's stalling the whole sprint. One insists we must enforce a hard 90% unit-test coverage gate before anything merges; the other says coverage targets are a vanity metric that just pads numbers, and that we should pour our limited testing time into integration tests instead. Each thinks the other is being unreasonable and a little dogmatic, and they've escalated to me, the engineering manager, to settle it once and for all. How should I work through this and arrive at a resolution the team will actually respect?",+ "failure_mode": "Picks a side or splits the difference based on the surface positions, without first articulating the strongest version of each engineer's underlying concern (refactoring safety and edge-case discipline vs. false confidence and wasted effort), which is what enables a genuine synthesis."+ },+ {+ "id": "steel-manning-3",+ "prompt": "I'm convinced we should move our background job processing off the managed cloud queue we use now and onto self-hosted Kafka, because we'll get much better throughput and far more control over partitioning and retention. We process a few million jobs a day with a small platform team. I'm drafting the proposal to send to my director and I'm confident this is the right call. Can you help me sharpen and strengthen the argument so it gets approved and so I'm ready for any pushback in the review?",+ "failure_mode": "Simply reinforces the author's existing pro-Kafka position as requested, instead of stress-testing it by constructing the strongest opposing case (operational burden, on-call cost, whether throughput is actually the bottleneck) to see whether the decision survives its best counterargument."+ }+ ]+}diff --git a/evals/datasets/behavioral/thinking-systems.json b/evals/datasets/behavioral/thinking-systems.jsonnew file mode 100644index 0000000..bc4e5b8--- /dev/null+++ b/evals/datasets/behavioral/thinking-systems.json@@ -0,0 +1,20 @@+{+ "skill": "thinking-systems",+ "problems": [+ {+ "id": "systems-1",+ "prompt": "Our checkout API started throwing intermittent 503s during the evening peak. The on-call engineer noticed our payment-provider calls were timing out, so they bumped the client timeout from 2s to 8s and added 3 retries with no backoff. It helped for about 20 minutes, then things got dramatically worse: P99 latency went from 1.2s to 14s, the connection pool saturated, and two downstream services that share the same provider also started failing even though their own code didn't change. Traffic was only about 15% above a normal Tuesday. Diagnose what's actually happening and recommend what to do.",+ "failure_mode": "Treats the symptom locally — concludes the provider is slow and proposes tuning timeouts/retries/pool size in isolation, missing that the longer timeouts plus aggressive retries created a reinforcing retry-storm that amplified load on a shared dependency, so the 'fix' is what made it worse and the cure is to break the amplifying loop (backoff, jitter, circuit breaker, bulkheads), not enlarge buffers."+ },+ {+ "id": "systems-2",+ "prompt": "We run a two-sided marketplace connecting freelance editors with clients. Six weeks ago we shipped an 'instant match' feature that auto-assigns the fastest-responding editor to each new job. Acceptance rates jumped immediately and everyone celebrated. But over the last three weeks: average job quality scores have slowly dropped, our best editors are quietly going inactive, and new client retention at 30 days is down 11% — yet nobody can point to a bug or a bad deploy. Leadership wants to 'double down on instant match' since the early numbers were great. Tell us what you think is going on and what to do.",+ "failure_mode": "Reasons linearly from the early positive metric ('matches went up, so do more of it') and looks for a discrete bug, missing the delayed, emergent dynamic: rewarding speed over quality shifts the mix toward lower-quality fast responders, top editors disengage as their advantage erodes, and client retention degrades on a lag — a self-reinforcing decline that the celebrated metric masks."+ },+ {+ "id": "systems-3",+ "prompt": "We're designing the autoscaler for a new event-processing service. The plan: every 30 seconds, read the Kafka consumer-lag metric, and if lag is above target, add workers proportional to the gap; if below, remove them. Each new worker takes about 90 seconds to provision, warm its caches, and start consuming. We expect traffic to arrive in sharp bursts (a 4x spike over ~2 minutes is normal). A teammate says 'just make the scaling aggressive so we react fast.' Review this design and tell us how to make it stable.",+ "failure_mode": "Approves or tunes the proportional controller by gain alone, ignoring the 90s provisioning delay relative to the 30s control interval — the lag between action and effect makes an aggressive controller overshoot and oscillate (over-provision, then mass scale-down, then re-spike), so the right move addresses the delay/feedback structure (account for in-flight workers, predictive/scheduled scaling, damping, hysteresis) rather than cranking responsiveness."+ }+ ]+}diff --git a/evals/datasets/behavioral/thinking-theory-of-constraints.json b/evals/datasets/behavioral/thinking-theory-of-constraints.jsonnew file mode 100644index 0000000..e1da5ce--- /dev/null+++ b/evals/datasets/behavioral/thinking-theory-of-constraints.json@@ -0,0 +1,20 @@+{+ "skill": "thinking-theory-of-constraints",+ "problems": [+ {+ "id": "theory-of-constraints-1",+ "prompt": "Our team ships way too slowly and I want to fix throughput. Here's our flow per two-week sprint: the backlog is always full; developers can complete about 9 stories' worth of work; code review clears about 4 stories (two senior reviewers, always backed up, PRs wait 4-5 days); QA can verify 11; deploy is fully automated and handles 20+. Management's plan is to hire two more developers next quarter and buy the team faster laptops. Before we spend that money, tell me where to focus to actually increase how much we ship, and what each part of the team should do.",+ "failure_mode": "Spreads effort across non-constraints — endorses hiring more developers and faster hardware (which only inflates work-in-progress in front of review), instead of identifying review as the single binding constraint, exploiting it cheaply (smaller PRs, clear criteria, reviewers prioritize reviewing), and subordinating the rest (pace dev to review capacity) before any spend, since gains anywhere but review don't raise system throughput."+ },+ {+ "id": "theory-of-constraints-2",+ "prompt": "Checkout API P95 latency is 600ms and we want it under 250ms. A trace of a typical request breaks down as: TLS/gateway 12ms, auth check 18ms, application/serialization logic 45ms, a single product-catalog DB query 470ms (it's doing a sequential scan on a 20M-row table), Redis cache lookups 8ms, response encode 7ms. The backend team is excited to refactor the serialization layer and adopt a faster JSON library, and someone wants to rewrite the auth middleware in a lower-level language. How should we prioritize the optimization work?",+ "failure_mode": "Optimizes visible/easy non-constraints (the 45ms serialization, 18ms auth) that together can't even reach the target, rather than concentrating effort on the one component dominating latency — the 470ms DB query — since shaving milliseconds off anything else is, in Goldratt's terms, a mirage while the real bottleneck is untouched."+ },+ {+ "id": "theory-of-constraints-3",+ "prompt": "We're planning a 10-week feature launch with these workstreams and rough estimates against time available: design needs 3 weeks (4 available), the core backend API needs 6 weeks (6 available — no slack), the data-migration script needs 2 weeks (5 available), frontend needs 5 weeks (7 available), and marketing assets need 2 weeks (8 available). Leadership wants to add scope to the frontend and run an extra QA hardening pass, and is also pushing the backend team to 'pick up the pace.' Help me plan this so we actually hit the date, and tell me what to protect.",+ "failure_mode": "Treats all workstreams as equally important and piles scope/QA onto streams with slack while telling the bottleneck team to 'go faster,' instead of recognizing the backend API as the zero-slack critical resource, protecting its timeline, subordinating the other streams to feed and unblock it, and refusing extra scope that doesn't serve the constraint — keeping people busy elsewhere doesn't move the date."+ }+ ]+}diff --git a/evals/datasets/behavioral/thinking-thought-experiment.json b/evals/datasets/behavioral/thinking-thought-experiment.jsonnew file mode 100644index 0000000..778fa12--- /dev/null+++ b/evals/datasets/behavioral/thinking-thought-experiment.json@@ -0,0 +1,20 @@+{+ "skill": "thinking-thought-experiment",+ "problems": [+ {+ "id": "thought-experiment-1",+ "prompt": "We're about to commit to making our primary Postgres database the single source of truth for a new real-time collaborative editing feature (think shared docs). Multiple users editing the same document, changes broadcast over websockets, with optimistic UI updates on the client. We have ~40k concurrent users at peak. The plan looks clean on the whiteboard and the team is eager to start building. Before we write the migration and the websocket layer, can you pressure-test whether this design actually holds up? I want to feel confident this is the right architecture, not just that the happy path works.",+ "failure_mode": "Validates the happy-path design and lists generic best practices, rather than systematically tracing concrete scenarios (two users editing the same field simultaneously, a client reconnecting after 30s offline with stale optimistic edits, the DB hitting write contention at peak) step by step to surface the conflict-resolution and consistency failures before code is written."+ },+ {+ "id": "thought-experiment-2",+ "prompt": "I'm choosing between two billing architectures for our SaaS and it's basically a one-way door once customers are live. Option A: store balances as a single mutable `account_balance` column we increment/decrement. Option B: store an append-only ledger of immutable transactions and derive the balance. Option A is faster to build and the team knows it well. We process refunds, proration, disputes, and the occasional manual finance correction. Help me decide. I keep hearing 'ledgers are best practice' but I want to actually understand why it matters for us specifically, not just follow dogma.",+ "failure_mode": "Defaults to citing 'append-only ledgers are best practice' without grounding it, instead of running the decision through concrete future scenarios (a disputed charge six months later, a finance auditor asking 'why is this balance what it is', a bug that double-decremented) and an extreme/time-shift trace that reveals the mutable-column design destroys the history needed to answer those questions."+ },+ {+ "id": "thought-experiment-3",+ "prompt": "We're adding an AI agent to our customer support product that can take real actions on the user's account: issue refunds, change subscription tiers, cancel orders, update shipping addresses. It's gated behind the support rep clicking 'approve' on each suggested action. The team thinks the human-in-the-loop approval makes it safe enough to ship next sprint. I'm uneasy but can't articulate exactly what's wrong. Can you help me figure out where this could go badly before we launch, so we know what guardrails we actually need rather than just trusting the approve button?",+ "failure_mode": "Accepts 'human approval makes it safe' at face value and offers a generic checklist, rather than adopting an adversarial/role-reversal lens and tracing what a careless rep clicking approve on autopilot, a confused agent, or a user manipulating the rep would actually cause (mass erroneous refunds, privilege misuse) to derive the specific guardrails needed."+ }+ ]+}diff --git a/evals/datasets/behavioral/thinking-triz.json b/evals/datasets/behavioral/thinking-triz.jsonnew file mode 100644index 0000000..ccf67d1--- /dev/null+++ b/evals/datasets/behavioral/thinking-triz.json@@ -0,0 +1,20 @@+{+ "skill": "thinking-triz",+ "problems": [+ {+ "id": "triz-1",+ "prompt": "Our autocomplete endpoint is stuck. Product wants suggestions to feel instant (under 50ms), but they also want each suggestion ranked by a heavyweight relevance model that takes 200-400ms per query against our 8M-document index. Right now we're arguing about it: the backend team says we have to relax the latency target, the search team says we have to use a cheaper model and accept worse ranking. Every option on the table sacrifices one to get the other. We're on Postgres + a Go service, ~3k queries/sec at peak. How should we approach this so we don't have to pick between fast and well-ranked?",+ "failure_mode": "Accepts the trade-off as fundamental and just helps pick a compromise (lower the latency bar OR downgrade the model), rather than separating the conflicting requirements in time/space (e.g. fast approximate prefix match served instantly, expensive ranking precomputed at write-time or applied async) so both goals are met."+ },+ {+ "id": "triz-2",+ "prompt": "Design question for our mobile sync layer. Users demand a tiny on-device cache so the app stays lightweight and installs fast on cheap Android phones, and they also complain constantly about cache misses when they go offline on the subway, which means they want a huge cache that holds everything. Same cache, opposite size requirements. Our PM keeps asking 'so how big should the cache be?' as if there's one right number. We sync ~2GB of records per active user. What's the right way to think about this instead of just picking a middle-of-the-road cache size that satisfies nobody?",+ "failure_mode": "Tries to tune a single cache-size parameter to a compromise value, instead of recognizing the cache must be both small and large and resolving it by separation on condition (predictive prefetch of likely-needed records, tiered/eviction by access pattern) so the same element holds opposite properties for different contexts."+ },+ {+ "id": "triz-3",+ "prompt": "We need to ship a public webhook system for our API. Customers want delivery guarantees and ordering, which pushes us toward a stateful, heavy retry-and-sequencing service. But we also want zero new operational burden on our 3-person platform team, who are already drowning. The vendor quotes for a managed event bus are out of budget. Leadership keeps framing it as 'either we build a robust delivery service and eat the ops cost, or we ship best-effort and disappoint enterprise customers.' Before we resign ourselves to that, is there a way to get reliable ordered delivery without standing up a whole new system to babysit?",+ "failure_mode": "Treats 'robust delivery vs. low ops burden' as an unavoidable choice and recommends one side, rather than doing a resource analysis of what already exists (the existing DB transaction log, an outbox table, the API gateway, customers' own retry behavior) to achieve reliability by reusing infrastructure already running instead of adding a new component."+ }+ ]+}diff --git a/evals/datasets/behavioral/thinking-via-negativa.json b/evals/datasets/behavioral/thinking-via-negativa.jsonnew file mode 100644index 0000000..8cd0ed2--- /dev/null+++ b/evals/datasets/behavioral/thinking-via-negativa.json@@ -0,0 +1,20 @@+{+ "skill": "thinking-via-negativa",+ "problems": [+ {+ "id": "via-negativa-1",+ "prompt": "Our onboarding completion rate is bad: only about 30% of new signups finish setup and reach their first 'aha' action. The team's plan to fix it is a list of additions: a guided product tour, contextual tooltips, an interactive checklist, a welcome video, and progress-nudge emails. We have a 14-step signup flow that asks for company size, role, team invites, integrations, billing info upfront, and several preference screens before users can do anything. I want a recommendation on how to actually move that 30% number. What should we do?",+ "failure_mode": "Enthusiastically helps prioritize and build the proposed additions (tour, tooltips, checklist, video, emails), layering more on top of a bloated 14-step flow, instead of first attacking the problem by removing steps and friction (cut/defer fields, collapse screens, delay billing) since subtracting the obstacles is more robust and higher-leverage than adding guidance to navigate them."+ },+ {+ "id": "via-negativa-2",+ "prompt": "Our API p99 latency has crept up to about 1.8s and it's hurting us. The proposed fix is to add a Redis caching layer in front of the slowest endpoints, add read replicas to spread query load, and stand up a CDN for some responses. That's a meaningful chunk of new infra and ops to own. Before we commit to all that, I'll tell you what we already know from a recent trace review: there are several N+1 query patterns in the hot endpoints, we're loading full objects when callers use two fields, and there are some redundant duplicate queries within a single request. How would you approach getting this latency down?",+ "failure_mode": "Jumps to designing the additive infrastructure stack (cache + replicas + CDN), accepting more systems to operate, rather than first eliminating the known root causes already surfaced in the trace (fix N+1s, stop over-fetching, dedupe queries) since removing the harmful patterns is lower-risk and likely resolves most of the latency without any new infrastructure."+ },+ {+ "id": "via-negativa-3",+ "prompt": "Our team's velocity feels low and people are burned out on process overhead, so leadership wants to add a new weekly 'alignment sync' meeting and a daily written status update to improve coordination. Here's our current week: daily 30-min standup, a 2-hour sprint planning, a 1-hour backlog grooming, a 1-hour sprint review, a 1-hour retro, plus an existing weekly all-hands and a separate weekly 1:1 round. Engineers say they have maybe 2-3 hours of uninterrupted focus time per day. Leadership is asking me whether the new sync and status update will help. What's your take on improving coordination here?",+ "failure_mode": "Treats the request as 'how to add the new meeting and status update well' and helps schedule them, compounding the coordination tax, instead of recognizing the team is already meeting-saturated and recommending an audit that removes or consolidates low-value ceremonies to free focus time, since subtracting overhead improves throughput more reliably than adding more synchronization."+ }+ ]+}diff --git a/evals/datasets/external/NOTICE.md b/evals/datasets/external/NOTICE.mdnew file mode 100644index 0000000..03084b5--- /dev/null+++ b/evals/datasets/external/NOTICE.md@@ -0,0 +1,13 @@+# External eval corpus — licensing NOTICE++Problems under this directory are **derived from third-party HuggingFace datasets** and are kept **segregated** from the MIT-licensed plugin. Several carry **non-commercial** terms. Do **NOT** ship these verbatim in the published package; use them for internal eval/research only, or transform them into new prompts before any redistribution.++| Source | License | Terms |+|---|---|---|+| Jackrong/financial-economics-reasoning | Apache-2.0 | Distilled (Qwen-3-235B); research / non-commercial; commercial use may need authorization |+| medreason/llm-medical-reasoning-steps-benchmark | **CC BY-NC 4.0** | Non-commercial; not for clinical use; attribution required |+| nguha/legalbench | CC-BY-4.0 | Per-task licenses vary — verify the specific config |+| Jackrong/GLM-5.1-Reasoning-1M-Cleaned | Apache-2.0 | GLM-5.1 distilled; we reuse prompt stems only |+| trjxter/DeepSeek-V4-Pro-Reasoning-8000x | Apache-2.0 | Derivative of GLM-1M (dedupe) |++Generated by `evals/datasets/ingest-hf.js`. See `analysis/DATASET-SCAN.md` for the assessment and build plan.diff --git a/evals/datasets/external/bayesian-authored.jsonl b/evals/datasets/external/bayesian-authored.jsonlnew file mode 100644index 0000000..93e7621--- /dev/null+++ b/evals/datasets/external/bayesian-authored.jsonl@@ -0,0 +1,40 @@+{"id":"bayes-1","mode":"correctness","prompt":"A disease affects 1% of a screened population. A diagnostic test correctly flags 90% of people who truly have the disease, and wrongly flags 9% of healthy people. A randomly screened person tests positive. What is the probability they actually have the disease?\n\nA) about 9.2% (roughly 1 in 11)\nB) 90% (the test's true-positive rate)\nC) about 50%\nD) about 81%\nE) about 1% (the underlying base rate)","answer_idx":"A","skill_fit":["bayesian"],"posterior":0.0917}+{"id":"bayes-2","mode":"correctness","prompt":"Roughly 1 in 1,000 people in a low-risk group carries a particular infection. A screening test detects 99% of true carriers and produces a positive result in 1% of non-carriers. Someone from this group tests positive. How likely is it that they are truly a carrier?\n\nA) 99% (the test's detection rate)\nB) about 50%\nC) about 9.0% (under 1 in 10)\nD) about 91%\nE) about 0.1% (the underlying base rate)","answer_idx":"C","skill_fit":["bayesian"],"posterior":0.0902}+{"id":"bayes-3","mode":"correctness","prompt":"In a clinic where 30% of presenting patients have a given condition, a test correctly identifies 85% of patients who have it and falsely flags 20% of those who do not. A patient tests positive. What is the probability the patient has the condition?\n\nA) 85% (the sensitivity)\nB) about 30% (the base rate)\nC) about 50%\nD) about 78%\nE) about 64.6% (between 60% and 65%)","answer_idx":"E","skill_fit":["bayesian"],"posterior":0.6456}+{"id":"bayes-4","mode":"correctness","prompt":"A bank's fraud model reviews transactions of which 0.2% are actually fraudulent. The model catches 95% of genuine fraud and flags 3% of legitimate transactions as suspicious. A transaction is flagged. What is the probability it is actually fraudulent?\n\nA) 95% (the model's catch rate)\nB) about 6.0% (around 6%)\nC) about 50%\nD) about 30%\nE) about 0.2% (the underlying base rate)","answer_idx":"B","skill_fit":["bayesian"],"posterior":0.0597}+{"id":"bayes-5","mode":"correctness","prompt":"Across an inbox, 40% of incoming messages are spam. A filter labels 98% of true spam as spam and mislabels 5% of legitimate mail as spam. A message gets labeled spam. What is the probability it really is spam?\n\nA) 98% (the filter's true-positive rate)\nB) about 40% (the base rate)\nC) about 80%\nD) about 92.9% (between 92% and 94%)\nE) about 67%","answer_idx":"D","skill_fit":["bayesian"],"posterior":0.9289}+{"id":"bayes-6","mode":"correctness","prompt":"An intrusion-detection system monitors sessions of which only 0.05% are genuine attacks. It detects 99% of real attacks and raises an alert on 2% of benign sessions. An alert fires. What is the probability this session is a genuine attack?\n\nA) about 2.4% (well under 3%)\nB) 99% (the detection rate)\nC) about 50%\nD) about 25%\nE) about 0.05% (the underlying base rate)","answer_idx":"A","skill_fit":["bayesian"],"posterior":0.0242}+{"id":"bayes-7","mode":"correctness","prompt":"On a production line, 5% of units are defective. An automated inspector correctly rejects 92% of defective units and wrongly rejects 4% of good units. A unit is rejected. What is the probability it is truly defective?\n\nA) 92% (the inspector's true-positive rate)\nB) about 5% (the base rate)\nC) about 54.8% (between 53% and 56%)\nD) about 75%\nE) about 88%","answer_idx":"C","skill_fit":["bayesian"],"posterior":0.5476}+{"id":"bayes-8","mode":"correctness","prompt":"Historically, 10% of tested variants genuinely beat the control. An analytics pipeline produces a \"significant win\" signal for 80% of variants that truly win, but also for 5% of variants that do not. A variant gets a \"win\" signal. What is the probability it is a genuine winner?\n\nA) 80% (the true-detection rate)\nB) about 10% (the base rate)\nC) about 40%\nD) about 75%\nE) about 64% (around 64%)","answer_idx":"E","skill_fit":["bayesian"],"posterior":0.64}+{"id":"bayes-9","mode":"correctness","prompt":"In a workforce, 4% of employees use a banned substance. A drug screen returns positive for 97% of users and for 5% of non-users. An employee tests positive. What is the probability they actually used the substance?\n\nA) 97% (the test's sensitivity)\nB) about 44.7% (around 45%)\nC) about 4% (the base rate)\nD) about 65%\nE) about 90%","answer_idx":"B","skill_fit":["bayesian"],"posterior":0.447}+{"id":"bayes-10","mode":"correctness","prompt":"Among loan applicants, 8% will default. A risk model flags 88% of future defaulters and 10% of applicants who will repay. An applicant is flagged high-risk. What is the probability they will actually default?\n\nA) 88% (the model's true-positive rate)\nB) about 8% (the base rate)\nC) about 70%\nD) about 43.3% (between 42% and 45%)\nE) about 90%","answer_idx":"D","skill_fit":["bayesian"],"posterior":0.4335}+{"id":"bayes-11","mode":"correctness","prompt":"A cancer affects 2% of a screened cohort. The screen detects 93% of true cases and yields a positive result for 7% of cancer-free people. A patient screens positive. What is the probability they have the cancer?\n\nA) about 21.3% (around 21%)\nB) 93% (the screen's detection rate)\nC) about 50%\nD) about 70%\nE) about 2% (the base rate)","answer_idx":"A","skill_fit":["bayesian"],"posterior":0.2133}+{"id":"bayes-12","mode":"correctness","prompt":"Of links employees click, 15% lead to phishing pages. A classifier flags 96% of true phishing links and 8% of safe links. A link is flagged. What is the probability it is genuinely phishing?\n\nA) 96% (the classifier's true-positive rate)\nB) about 15% (the base rate)\nC) about 67.9% (between 67% and 70%)\nD) about 85%\nE) about 88%","answer_idx":"C","skill_fit":["bayesian"],"posterior":0.6792}+{"id":"bayes-13","mode":"correctness","prompt":"A genetic variant occurs in 0.5% of people. A lab assay correctly identifies 98% of carriers and gives a false positive in 3% of non-carriers. A sample tests positive. What is the probability the person carries the variant?\n\nA) 98% (the assay's sensitivity)\nB) about 50%\nC) about 33%\nD) about 0.5% (the base rate)\nE) about 14.1% (around 14%)","answer_idx":"E","skill_fit":["bayesian"],"posterior":0.141}+{"id":"bayes-14","mode":"correctness","prompt":"One percent of batches are contaminated. A purity test flags 99% of contaminated batches and 2% of clean batches. A batch is flagged. What is the probability it is actually contaminated?\n\nA) 99% (the test's true-positive rate)\nB) about 33.3% (around 1 in 3)\nC) about 50%\nD) about 66%\nE) about 1% (the base rate)","answer_idx":"B","skill_fit":["bayesian"],"posterior":0.3333}+{"id":"bayes-15","mode":"correctness","prompt":"On a platform, 20% of new signups are bots. A detector flags 90% of bots and 10% of real users. A signup is flagged as a bot. What is the probability it really is a bot?\n\nA) 90% (the detector's true-positive rate)\nB) about 20% (the base rate)\nC) about 50%\nD) about 69.2% (between 68% and 70%)\nE) about 82%","answer_idx":"D","skill_fit":["bayesian"],"posterior":0.6923}+{"id":"bayes-16","mode":"correctness","prompt":"In a population, 1 in 10,000 individuals is on a target list. A facial-recognition match correctly identifies 99% of true targets and falsely matches 1% of everyone else. The system reports a match. What is the probability the matched person is truly a target?\n\nA) about 0.98% (about 1%)\nB) 99% (the match accuracy)\nC) about 50%\nD) about 10%\nE) about 0.01% (the base rate)","answer_idx":"A","skill_fit":["bayesian"],"posterior":0.0098}+{"id":"bayes-17","mode":"correctness","prompt":"Three percent of machines will fail within a week. A predictive-maintenance model flags 85% of machines that will fail and 6% of machines that will not. A machine is flagged. What is the probability it will actually fail within the week?\n\nA) 85% (the model's true-positive rate)\nB) about 3% (the base rate)\nC) about 30.5% (around 30%)\nD) about 60%\nE) about 80%","answer_idx":"C","skill_fit":["bayesian"],"posterior":0.3047}+{"id":"bayes-18","mode":"correctness","prompt":"Six percent of competing athletes are doping. An anti-doping test returns positive for 94% of dopers and 2% of clean athletes. An athlete tests positive. What is the probability the athlete is actually doping?\n\nA) 94% (the test's sensitivity)\nB) about 6% (the base rate)\nC) about 50%\nD) about 90%\nE) about 75% (around 75%)","answer_idx":"E","skill_fit":["bayesian"],"posterior":0.75}+{"id":"bayes-19","mode":"correctness","prompt":"Half a percent of bills passing through a machine are counterfeit. The machine flags 92% of counterfeits and 1% of genuine bills. A bill is flagged. What is the probability it is counterfeit?\n\nA) 92% (the flag rate for counterfeits)\nB) about 31.6% (around 32%)\nC) about 50%\nD) about 70%\nE) about 0.5% (the base rate)","answer_idx":"B","skill_fit":["bayesian"],"posterior":0.3162}+{"id":"bayes-20","mode":"correctness","prompt":"In a flagged review queue, 35% of reported emails are truly malicious. A secondary scanner confirms 90% of truly malicious emails and confirms 15% of benign ones. The scanner confirms an email as malicious. What is the probability it really is malicious?\n\nA) 90% (the scanner's true-positive rate)\nB) about 35% (the base rate)\nC) about 60%\nD) about 76.4% (between 76% and 78%)\nE) about 85%","answer_idx":"D","skill_fit":["bayesian"],"posterior":0.7636}+{"id":"bayes-21","mode":"correctness","prompt":"A rare adverse reaction occurs in 0.2% of patients on a drug. A monitoring algorithm flags 80% of true reactions and 5% of patients with unrelated symptoms. A patient is flagged. What is the probability they had the true adverse reaction?\n\nA) about 3.1% (around 3%)\nB) 80% (the algorithm's detection rate)\nC) about 50%\nD) about 16%\nE) about 0.2% (the base rate)","answer_idx":"A","skill_fit":["bayesian"],"posterior":0.0311}+{"id":"bayes-22","mode":"correctness","prompt":"One percent of large trades involve insider information. A surveillance system flags 85% of true insider trades and 4% of legitimate large trades. A trade is flagged. What is the probability it involved insider information?\n\nA) 85% (the system's true-positive rate)\nB) about 50%\nC) about 17.7% (around 18%)\nD) about 1% (the base rate)\nE) about 30%","answer_idx":"C","skill_fit":["bayesian"],"posterior":0.1767}+{"id":"bayes-23","mode":"correctness","prompt":"Ten percent of chips have a latent defect. A burn-in test catches 95% of defective chips and fails 7% of good chips. A chip fails burn-in. What is the probability it is genuinely defective?\n\nA) 95% (the test's true-positive rate)\nB) about 10% (the base rate)\nC) about 40%\nD) about 88%\nE) about 60.1% (around 60%)","answer_idx":"E","skill_fit":["bayesian"],"posterior":0.6013}+{"id":"bayes-24","mode":"correctness","prompt":"On any given monitored day, there is a 2% chance of an actual wildfire-smoke event in a region. A sensor network alerts on 97% of real events and on 10% of non-event days. An alert fires. What is the probability there is a genuine smoke event?\n\nA) 97% (the sensor's true-positive rate)\nB) about 16.5% (around 17%)\nC) about 50%\nD) about 2% (the base rate)\nE) about 30%","answer_idx":"B","skill_fit":["bayesian"],"posterior":0.1652}+{"id":"bayes-25","mode":"correctness","prompt":"One in 1,000 login attempts is an account takeover. A risk engine flags 90% of takeovers and 0.5% of legitimate logins. A login is flagged. What is the probability it is a genuine takeover?\n\nA) 90% (the engine's true-positive rate)\nB) about 50%\nC) about 0.1% (the base rate)\nD) about 15.3% (around 15%)\nE) about 30%","answer_idx":"D","skill_fit":["bayesian"],"posterior":0.1527}+{"id":"bayes-26","mode":"correctness","prompt":"Five percent of online-exam sessions involve cheating. A proctoring model flags 88% of cheating sessions and 3% of honest sessions. A session is flagged. What is the probability cheating actually occurred?\n\nA) about 60.7% (around 61%)\nB) 88% (the model's true-positive rate)\nC) about 5% (the base rate)\nD) about 30%\nE) about 80%","answer_idx":"A","skill_fit":["bayesian"],"posterior":0.6069}+{"id":"bayes-27","mode":"correctness","prompt":"Among people taking a test, 25% truly have the target hormone present. The test is positive for 99% of those who do and 2% of those who do not. A test is positive. What is the probability the hormone is truly present?\n\nA) 99% (the test's sensitivity)\nB) about 25% (the base rate)\nC) about 94.3% (between 93% and 95%)\nD) about 75%\nE) about 88%","answer_idx":"C","skill_fit":["bayesian"],"posterior":0.9429}+{"id":"bayes-28","mode":"correctness","prompt":"Roughly 0.8% of traffic spikes are genuine DDoS attacks. A monitor flags 96% of real attacks and 5% of benign spikes. A spike is flagged. What is the probability it is a genuine attack?\n\nA) 96% (the monitor's true-positive rate)\nB) about 50%\nC) about 0.8% (the base rate)\nD) about 30%\nE) about 13.4% (around 13%)","answer_idx":"E","skill_fit":["bayesian"],"posterior":0.1341}+{"id":"bayes-29","mode":"correctness","prompt":"Across inspected components, 0.3% have a critical structural defect. A scanner detects 90% of true defects and flags 2% of sound components. A component is flagged. What is the probability it has a critical defect?\n\nA) 90% (the scanner's detection rate)\nB) about 11.9% (around 12%)\nC) about 50%\nD) about 0.3% (the base rate)\nE) about 25%","answer_idx":"B","skill_fit":["bayesian"],"posterior":0.1193}+{"id":"bayes-30","mode":"correctness","prompt":"About 1.5% of orders result in chargeback fraud. A model flags 92% of fraudulent orders and 6% of honest ones. An order is flagged. What is the probability it is fraudulent?\n\nA) 92% (the model's true-positive rate)\nB) about 50%\nC) about 1.5% (the base rate)\nD) about 18.9% (around 19%)\nE) about 30%","answer_idx":"D","skill_fit":["bayesian"],"posterior":0.1893}+{"id":"bayes-31","mode":"correctness","prompt":"Thirty percent of subscribers will churn next quarter. A churn model flags 78% of true churners and 18% of those who will stay. A subscriber is flagged. What is the probability they will actually churn?\n\nA) about 65% (around 65%)\nB) 78% (the model's true-positive rate)\nC) about 30% (the base rate)\nD) about 50%\nE) about 72%","answer_idx":"A","skill_fit":["bayesian"],"posterior":0.65}+{"id":"bayes-32","mode":"correctness","prompt":"Twelve percent of patients tested truly have a specific allergy. A skin test is positive for 85% of allergic patients and 10% of non-allergic ones. A patient tests positive. What is the probability they are truly allergic?\n\nA) 85% (the test's true-positive rate)\nB) about 12% (the base rate)\nC) about 53.7% (around 54%)\nD) about 70%\nE) about 80%","answer_idx":"C","skill_fit":["bayesian"],"posterior":0.5368}+{"id":"bayes-33","mode":"correctness","prompt":"Around 0.4% of monitored accounts are involved in money laundering. A transaction-monitoring system alerts on 93% of laundering accounts and 3% of clean accounts. An account triggers an alert. What is the probability it is genuinely involved in laundering?\n\nA) 93% (the system's true-positive rate)\nB) about 50%\nC) about 0.4% (the base rate)\nD) about 30%\nE) about 11.1% (around 11%)","answer_idx":"E","skill_fit":["bayesian"],"posterior":0.1107}+{"id":"bayes-34","mode":"correctness","prompt":"About 0.7% of servers have an imminent disk fault. A telemetry model flags 88% of failing disks and 1.5% of healthy ones. A server is flagged. What is the probability its disk is truly failing?\n\nA) 88% (the model's true-positive rate)\nB) about 29.3% (around 29%)\nC) about 50%\nD) about 0.7% (the base rate)\nE) about 15%","answer_idx":"B","skill_fit":["bayesian"],"posterior":0.2926}+{"id":"bayes-35","mode":"correctness","prompt":"On a forum, 45% of submitted comments are spam. A moderation model flags 92% of spam comments and 12% of legitimate comments. A comment is flagged. What is the probability it really is spam?\n\nA) 92% (the model's true-positive rate)\nB) about 45% (the base rate)\nC) about 65%\nD) about 86.3% (between 86% and 88%)\nE) about 90%","answer_idx":"D","skill_fit":["bayesian"],"posterior":0.8625}+{"id":"bayes-36","mode":"correctness","prompt":"Before any testing, the chance a patient has a condition is 1%. A biomarker is present in 95% of patients with the condition and in 10% of patients without it. The biomarker is present. What is the updated probability the patient has the condition?\n\nA) about 8.8% (around 9%)\nB) 95% (the biomarker's true-positive rate)\nC) about 50%\nD) about 1% (the base rate)\nE) about 30%","answer_idx":"A","skill_fit":["bayesian"],"posterior":0.0876}+{"id":"bayes-37","mode":"correctness","prompt":"2.5% of pump units have a bearing defect. A vibration analysis flags 90% of defective pumps and 5% of healthy pumps. A pump is flagged. What is the probability it truly has a bearing defect?\n\nA) 90% (the analysis's true-positive rate)\nB) about 2.5% (the base rate)\nC) about 31.6% (around 32%)\nD) about 60%\nE) about 85%","answer_idx":"C","skill_fit":["bayesian"],"posterior":0.3158}+{"id":"bayes-38","mode":"correctness","prompt":"Two percent of merged commits introduce a real regression. A flaky CI heuristic flags 80% of true regressions and 3% of clean commits. A commit is flagged. What is the probability it introduced a real regression?\n\nA) 80% (the heuristic's true-positive rate)\nB) about 2% (the base rate)\nC) about 50%\nD) about 77%\nE) about 35.2% (around 35%)","answer_idx":"E","skill_fit":["bayesian"],"posterior":0.3524}+{"id":"bayes-39","mode":"correctness","prompt":"A disease has a prevalence of 1 in 1,000. A high-specificity test detects 95% of true cases and gives a false positive in only 0.1% of healthy people. A person tests positive. What is the probability they have the disease?\n\nA) 95% (the test's sensitivity)\nB) about 48.7% (around 49%)\nC) about 5%\nD) about 99%\nE) about 0.1% (the base rate)","answer_idx":"B","skill_fit":["bayesian"],"posterior":0.4874}+{"id":"bayes-40","mode":"correctness","prompt":"Ten percent of insurance claims are fraudulent. An adjuster's model flags 70% of fraudulent claims and 10% of legitimate ones. A claim is flagged. What is the probability it is fraudulent?\n\nA) 70% (the model's true-positive rate)\nB) about 10% (the base rate)\nC) about 60%\nD) about 43.7% (around 44%)\nE) about 65%","answer_idx":"D","skill_fit":["bayesian"],"posterior":0.4375}diff --git a/evals/datasets/external/debias-authored.jsonl b/evals/datasets/external/debias-authored.jsonlnew file mode 100644index 0000000..4e1874f--- /dev/null+++ b/evals/datasets/external/debias-authored.jsonl@@ -0,0 +1,40 @@+{"id":"debias-1","mode":"correctness","prompt":"A real-estate agent first shows you a listing priced at $1,200,000 that is clearly overpriced and sits on the market for months. The next house she shows, comparable in size and condition, is listed at $850,000. Independent comparable sales in the neighborhood over the last 90 days cluster tightly around $700,000 for homes of this type. You want to make an opening offer that reflects fair market value. Which opening offer is most defensible?\nA. $1,100,000, since the first house anchors the high end of the market\nB. $850,000, matching the asking price of the second house\nC. $780,000, splitting the difference between the two listings you saw\nD. $700,000, based on recent comparable sales\nE. $950,000, the average of the two listing prices","answer_idx":"D","skill_fit":["debiasing"],"bias_type":"anchoring"}+{"id":"debias-2","mode":"correctness","prompt":"You are estimating how long a backend migration will take. Before you start, a colleague casually mentions, 'I bet this takes at least 6 months.' You break the work down into tasks and your own bottom-up estimate, summing each component with buffers, comes to about 7 weeks. Which estimate should you commit to in the project plan?\nA. About 7 weeks, matching your detailed bottom-up breakdown\nB. About 6 months, since the colleague's experience suggests you're underestimating\nC. About 4 months, splitting the difference between your estimate and the colleague's\nD. About 3 months, padding your estimate heavily toward the colleague's number\nE. About 10 weeks, nudging your estimate up to feel safer","answer_idx":"A","skill_fit":["debiasing"],"bias_type":"anchoring"}+{"id":"debias-3","mode":"correctness","prompt":"A vendor opens negotiations by quoting $500,000 for an annual software license. You know from public pricing pages and two competing quotes that fair value for this product at your usage tier is roughly $120,000/year. You need to set your counteroffer. Which counter best reflects the actual value rather than the vendor's opening number?\nA. $400,000, a modest discount off their quote\nB. $310,000, roughly the midpoint between their quote and your research\nC. $250,000, half of their opening figure\nD. $115,000, just under your researched fair-value estimate\nE. $350,000, to leave room to negotiate up","answer_idx":"D","skill_fit":["debiasing"],"bias_type":"anchoring"}+{"id":"debias-4","mode":"correctness","prompt":"In a workshop, a facilitator asks the group, 'Do you think the new feature will increase weekly active users by more or less than 40%?' and then asks each person to write down their point estimate. Your own analysis of historical feature launches suggests typical lifts of 3-6% for changes of this scope. What point estimate should you write down?\nA. 35%, slightly below the facilitator's number\nB. 40%, matching the figure given\nC. 20%, a cautious halving of the facilitator's number\nD. 5%, consistent with historical launch data\nE. 25%, to account for this feature being more impactful","answer_idx":"D","skill_fit":["debiasing"],"bias_type":"anchoring"}+{"id":"debias-5","mode":"correctness","prompt":"A used-car seller lists a sedan for $28,000. Kelley Blue Book and three recent local sales of the identical model, year, and mileage band all indicate a fair price near $19,500. The car has no special features that would justify a premium. You decide what to offer first. Which opening offer is most grounded in the car's actual value?\nA. $26,000, a small concession from asking\nB. $24,000, meeting roughly in the middle\nC. $22,000, a firm but respectful number near asking\nD. $19,000, just under the documented fair value\nE. $23,750, the midpoint between asking and book value","answer_idx":"D","skill_fit":["debiasing"],"bias_type":"anchoring"}+{"id":"debias-6","mode":"correctness","prompt":"A disease affects 1 in 1,000 people. A screening test has a 95% true-positive rate (it correctly flags 95% of people who have the disease) and a 5% false-positive rate (it wrongly flags 5% of healthy people). A randomly screened person with no symptoms tests positive. What is the approximate probability that this person actually has the disease?\nA. About 2%, because the disease is rare and most positives are false alarms\nB. About 90%, accounting for some error\nC. About 95%, since the test is 95% accurate\nD. About 50%, since the test could go either way\nE. About 5%, equal to the false-positive rate","answer_idx":"A","skill_fit":["debiasing"],"bias_type":"base-rate"}+{"id":"debias-7","mode":"correctness","prompt":"At your company, 8% of engineering candidates who reach the final round are eventually rated 'outstanding' after a year on the job. A new structured interview correctly identifies 80% of future-outstanding hires as 'strong yes' and also gives a 'strong yes' to 30% of those who will not become outstanding. A candidate gets a 'strong yes.' Roughly what is the probability this candidate becomes outstanding?\nA. About 19%, since most 'strong yes' candidates come from the large non-outstanding pool\nB. About 80%, matching the interview's hit rate\nC. About 70%, allowing for some error\nD. About 50%\nE. About 8%, the base rate is all that matters","answer_idx":"A","skill_fit":["debiasing"],"bias_type":"base-rate"}+{"id":"debias-8","mode":"correctness","prompt":"You read that 70% of startups in a particular accelerator fail within three years. A founder pitches you; she is articulate, has a polished deck, and reminds you strongly of a successful entrepreneur you admire. Setting aside how impressive she seems in the pitch, what is the most reasonable prior probability that her startup survives three years?\nA. Around 70%, because she seems exceptional\nB. Around 85%, given how much she resembles a known success\nC. Around 30%, the historical survival rate for this population\nD. Around 50%, a neutral coin flip\nE. Around 95%, since strong founders usually make it","answer_idx":"C","skill_fit":["debiasing"],"bias_type":"base-rate"}+{"id":"debias-9","mode":"correctness","prompt":"A fraud-detection model flags transactions as fraudulent. In reality only 0.2% of transactions are fraudulent. The model catches 99% of true fraud but also flags 1% of legitimate transactions. A transaction is flagged. What is the approximate chance it is actually fraudulent?\nA. About 99%, the model's detection rate\nB. About 17%, because legitimate transactions vastly outnumber fraudulent ones\nC. About 80%\nD. About 1%, the false-positive rate\nE. About 50%","answer_idx":"B","skill_fit":["debiasing"],"bias_type":"base-rate"}+{"id":"debias-10","mode":"correctness","prompt":"In a city, 85% of taxis are Green and 15% are Blue. A witness to a nighttime hit-and-run says the cab was Blue. Under similar nighttime conditions, the witness correctly identifies a cab's color 80% of the time and is wrong 20% of the time. Given the witness said 'Blue,' what is the approximate probability the cab was actually Blue?\nA. About 80%, the witness's reliability\nB. About 15%, just the base rate of Blue cabs\nC. About 41%, balancing the witness's accuracy against the rarity of Blue cabs\nD. About 70%\nE. About 95%, since eyewitnesses are usually trusted","answer_idx":"C","skill_fit":["debiasing"],"bias_type":"base-rate"}+{"id":"debias-11","mode":"correctness","prompt":"Your team has spent $2M and 18 months building a custom in-house analytics engine. A new, mature open-source tool now does everything you need and would cost about $50K/year to operate, versus an estimated $1.5M more to finish your in-house engine and $400K/year to maintain it afterward. Performance and features would be comparable. Purely on a forward-looking basis, what should you do?\nA. Finish the in-house engine; you've already invested $2M and can't waste it\nB. Finish it because switching now would mean the 18 months were for nothing\nC. Spend another $1.5M to finish, then reevaluate against the open-source tool\nD. Keep both running in parallel indefinitely\nE. Adopt the open-source tool, since future costs are far lower and capabilities are comparable","answer_idx":"E","skill_fit":["debiasing"],"bias_type":"sunk-cost"}+{"id":"debias-12","mode":"correctness","prompt":"You bought non-refundable concert tickets for $150. On the day of the show you feel ill and realize that attending would be miserable; you'd genuinely prefer to rest at home, and staying home has no further cost. Which decision is most rational?\nA. Go to the concert so the $150 isn't wasted\nB. Go, because you should never let a paid ticket go unused\nC. Stay home, since the $150 is already spent and you'd rather rest\nD. Go for at least the first half to get partial value\nE. Sell the experience to yourself as worth it to justify the cost","answer_idx":"C","skill_fit":["debiasing"],"bias_type":"sunk-cost"}+{"id":"debias-13","mode":"correctness","prompt":"A product feature has consumed three quarters of engineering time. Current data shows it has near-zero adoption and is unlikely to improve; the team projects that one more quarter of work has only a 5% chance of changing the outcome, and that engineering time could instead ship a feature with strong demand signals. What is the best decision going forward?\nA. Continue the feature; abandoning it wastes three quarters of work\nB. Continue one more quarter because the team has built up expertise in it\nC. Continue, but cut the team in half to limit further loss\nD. Continue because executives originally championed it\nE. Sunset the feature and redirect engineers to the high-demand work","answer_idx":"E","skill_fit":["debiasing"],"bias_type":"sunk-cost"}+{"id":"debias-14","mode":"correctness","prompt":"A construction project is 60% through its budget but only 20% complete, and an independent audit shows the original plan was fundamentally flawed; completing it would cost three times the remaining budget and the resulting building would not meet code. A redesign-and-rebuild would cost less overall than continuing. From a cost-minimizing standpoint, what should the owner do?\nA. Push through to completion to honor the money already spent\nB. Continue because stopping would admit the early planning was wasted\nC. Continue at a slower pace to spread out the remaining cost\nD. Halt and pursue the cheaper redesign-and-rebuild path\nE. Finish the current design and retrofit it to code later","answer_idx":"D","skill_fit":["debiasing"],"bias_type":"sunk-cost"}+{"id":"debias-15","mode":"correctness","prompt":"You have invested $40,000 into a side business over two years. It has never been profitable, demand has steadily declined, and your sober projection is continued losses with no realistic path to break-even. A clear-eyed analyst with no stake would advise shutting it down. What is the rational course?\nA. Keep going until you recoup the $40,000\nB. Invest a final $10,000 to give it one last chance to justify the prior spend\nC. Shut it down, since the $40,000 is gone regardless and future prospects are poor\nD. Keep it open at a loss to avoid admitting the venture failed\nE. Keep going because quitting would mean two years were wasted","answer_idx":"C","skill_fit":["debiasing"],"bias_type":"sunk-cost"}+{"id":"debias-16","mode":"correctness","prompt":"Linda is 31, single, outspoken, and very bright. She majored in philosophy. As a student she was deeply concerned with discrimination and social justice and participated in anti-nuclear demonstrations. Which is more probable?\nA. Linda is a bank teller and is active in the feminist movement\nB. Linda is a bank teller\nC. The two are equally probable\nD. It is impossible to compare the two\nE. Linda is neither","answer_idx":"B","skill_fit":["debiasing"],"bias_type":"conjunction"}+{"id":"debias-17","mode":"correctness","prompt":"A software outage occurs. Which single statement is most probable?\nA. The outage was caused by a misconfigured load balancer during last night's deployment\nB. The outage was caused by a misconfiguration\nC. The outage was caused by a misconfigured load balancer\nD. The outage was caused by a misconfigured load balancer that the on-call engineer introduced while rushing\nE. The outage was caused by a misconfigured load balancer during a deployment performed by a new hire","answer_idx":"B","skill_fit":["debiasing"],"bias_type":"conjunction"}+{"id":"debias-18","mode":"correctness","prompt":"Mark is a meticulous, detail-obsessed person who loves spreadsheets and reads tax law for fun. Considering the general population, which statement is most probable?\nA. Mark is an accountant who plays in a jazz band on weekends\nB. Mark is an accountant\nC. Mark is an accountant and owns more than three calculators\nD. Mark is an accountant who once audited a Fortune 500 company\nE. Mark is a meticulous accountant who hates surprises","answer_idx":"B","skill_fit":["debiasing"],"bias_type":"conjunction"}+{"id":"debias-19","mode":"correctness","prompt":"A forecaster is asked about next year's economy. Which forecast is most likely to come true?\nA. The central bank will cut interest rates\nB. The central bank will cut interest rates and the stock market will rise\nC. The central bank will cut interest rates, the market will rise, and unemployment will fall below 4%\nD. The central bank will cut interest rates in response to a recession\nE. The central bank will cut rates and inflation will fall below 2%","answer_idx":"A","skill_fit":["debiasing"],"bias_type":"conjunction"}+{"id":"debias-20","mode":"correctness","prompt":"Sarah read literature and traveled through Europe after college, and she once worked at an art gallery. From the perspective of pure probability, which is more likely to be true of Sarah today?\nA. Sarah works in finance and collects vintage wine\nB. Sarah works in finance\nC. Sarah works in finance and visits museums on vacation\nD. Sarah works in finance and subscribes to an art magazine\nE. Sarah works in finance and speaks two European languages","answer_idx":"B","skill_fit":["debiasing"],"bias_type":"conjunction"}+{"id":"debias-21","mode":"correctness","prompt":"Two surgeons present identical outcome data for the same operation. Surgeon A says, 'This procedure has a 90% survival rate.' Surgeon B says, 'This procedure has a 10% mortality rate.' A patient must choose based only on this information. What is the most rational interpretation?\nA. Surgeon A's procedure is safer\nB. Surgeon B's procedure is riskier\nC. Surgeon A's framing proves greater confidence\nD. Surgeon B is being dishonest by emphasizing death\nE. The two procedures are equally safe because the statistics are identical","answer_idx":"E","skill_fit":["debiasing"],"bias_type":"framing"}+{"id":"debias-22","mode":"correctness","prompt":"A public health program will affect 600 people. Plan A: '200 people will be saved.' Plan B: '400 people will die.' Both plans are described as applying to the same 600 people with certainty. Which choice is rational?\nA. Choose Plan A, since saving lives sounds better\nB. Choose Plan B, since avoiding death sounds more urgent\nC. Choose Plan A because it mentions a smaller number\nD. Choose Plan B because 400 is a bigger commitment\nE. Recognize that Plan A and Plan B describe identical outcomes and decide on other grounds","answer_idx":"E","skill_fit":["debiasing"],"bias_type":"framing"}+{"id":"debias-23","mode":"correctness","prompt":"A grocery store advertises ground beef as '80% lean.' A competitor advertises the identical product as '20% fat.' A shopper comparing only these two labels wants the leaner, healthier choice. What should the shopper conclude?\nA. The '80% lean' beef is leaner and healthier\nB. The '20% fat' beef is fattier and worse\nC. The '80% lean' label indicates a higher-quality cut\nD. The '20% fat' beef is cheaper because it admits the fat\nE. The two products are nutritionally identical and the labels describe the same thing","answer_idx":"E","skill_fit":["debiasing"],"bias_type":"framing"}+{"id":"debias-24","mode":"correctness","prompt":"An investment brochure for two funds with identical net performance describes Fund X as 'capturing 95% of market upside' and Fund Y as 'exposed to 5% of potential shortfall avoidance loss'—wording aside, both funds returned exactly the same amount over ten years with the same volatility. An investor must pick one. What is the rational basis for the decision?\nA. Pick Fund X; its description sounds more profitable\nB. Pick Fund Y; cautious language signals prudence\nC. Treat them as equivalent and decide on fees or other real differences\nD. Pick Fund X because 95% is a larger number\nE. Pick Fund Y because it acknowledges risk","answer_idx":"C","skill_fit":["debiasing"],"bias_type":"framing"}+{"id":"debias-25","mode":"correctness","prompt":"A credit card company offers a '2% cash-back reward' on purchases. A bank instead charges a '2% surcharge for not using their card' but otherwise the net effect on your wallet for the same spending is identical. Ignoring branding, how should a rational consumer treat these two offers?\nA. Prefer the cash-back card; rewards are better than penalties\nB. Avoid the surcharge bank; penalties are bad\nC. Recognize the net financial effect is the same and choose on other terms like APR or fees\nD. Prefer the cash-back card because gains feel better than losses\nE. Avoid the surcharge bank because surcharges compound","answer_idx":"C","skill_fit":["debiasing"],"bias_type":"framing"}+{"id":"debias-26","mode":"correctness","prompt":"You believe a particular caching change caused a latency regression. To test this hypothesis as rigorously as possible, which investigation should you prioritize first?\nA. Pull all log lines from after the change that show high latency, confirming the regression\nB. Collect metrics from before and after the change and check whether latency actually differs, including looking for cases where it did not regress\nC. Ask teammates who also suspected the cache to corroborate your view\nD. Re-read the cache pull request looking for anything that supports your theory\nE. Search the issue tracker for past cache-related bugs to build the case","answer_idx":"B","skill_fit":["debiasing"],"bias_type":"confirmation"}+{"id":"debias-27","mode":"correctness","prompt":"You are convinced a job candidate is excellent after a great first impression. To evaluate the hire decision in the least biased way, what should you do?\nA. Deliberately probe for weaknesses and seek disconfirming evidence, weighing it equally with the positives\nB. Ask interview questions designed to let the candidate shine\nC. Focus the reference check on confirming the strengths you observed\nD. Compare the candidate only against weaker applicants\nE. Trust your gut since first impressions are usually right","answer_idx":"A","skill_fit":["debiasing"],"bias_type":"confirmation"}+{"id":"debias-28","mode":"correctness","prompt":"You are testing the rule behind the number sequence 2, 4, 6. You hypothesize the rule is 'consecutive even numbers.' You may propose test sequences and will be told only whether each fits the hidden rule. Which test is most informative for finding the true rule?\nA. Propose 8, 10, 12, because it matches your hypothesis\nB. Propose 20, 22, 24, another even run that fits your guess\nC. Propose 1, 2, 3, a sequence that would violate your hypothesis if your rule is right\nD. Propose 100, 102, 104 to confirm at larger scale\nE. Propose 0, 2, 4 to confirm starting from zero","answer_idx":"C","skill_fit":["debiasing"],"bias_type":"confirmation"}+{"id":"debias-29","mode":"correctness","prompt":"An analyst expects a new marketing channel to be highly effective and gathers data to evaluate it. Which approach gives the most trustworthy assessment of the channel's true performance?\nA. Define success metrics and a holdout/control group in advance, then evaluate against all the data including weeks it underperformed\nB. Highlight the weeks where the channel performed well in the report\nC. Compare the channel only to the worst-performing existing channel\nD. Survey the team that proposed the channel for their impressions\nE. Drop the early data when the channel was still ramping up","answer_idx":"A","skill_fit":["debiasing"],"bias_type":"confirmation"}+{"id":"debias-30","mode":"correctness","prompt":"You suspect a specific microservice is the source of intermittent errors. A colleague suggests you might be wrong. What is the most rigorous next step?\nA. Grep the suspected service's logs for any error and treat each as proof\nB. Disable the suspected service and declare it the cause if anything improves\nC. Ask the team that owns the suspected service whether they think it's at fault\nD. Instrument and compare error rates across all services in the request path, actively trying to rule your suspect out\nE. Re-deploy the suspected service and watch only its dashboard","answer_idx":"D","skill_fit":["debiasing"],"bias_type":"confirmation"}+{"id":"debias-31","mode":"correctness","prompt":"After seeing extensive news coverage of two airplane crashes this month, a traveler is deciding whether to drive or fly 1,000 miles. Per mile traveled, statistics consistently show commercial flying has a far lower fatality rate than driving. Which conclusion should guide the decision?\nA. Drive, because plane crashes are clearly common right now\nB. Drive, because the recent news shows flying is unusually dangerous lately\nC. Fly, because per-mile fatality data show it is safer despite the vivid coverage\nD. Drive, because you have more control behind the wheel\nE. Flip a coin, since both feel equally risky after the news","answer_idx":"C","skill_fit":["debiasing"],"bias_type":"availability"}+{"id":"debias-32","mode":"correctness","prompt":"A manager just dealt with a dramatic security incident caused by a phishing email. In the next planning cycle, she must allocate a fixed security budget across threats. An objective risk assessment ranks misconfigured cloud storage as the company's highest expected-loss threat, with phishing third. How should she allocate?\nA. Put the majority of the budget into anti-phishing because the recent incident proves it's the top risk\nB. Allocate according to the objective expected-loss ranking, addressing cloud misconfiguration first\nC. Split evenly across all threats to be safe\nD. Defer all spending until another incident reveals the real priority\nE. Double the phishing budget every time an incident occurs","answer_idx":"B","skill_fit":["debiasing"],"bias_type":"availability"}+{"id":"debias-33","mode":"correctness","prompt":"A friend asks which is a more common cause of death in the United States: shark attacks or falls from ladders. Shark attacks dominate headlines and movies, while ladder falls rarely make the news. What is the accurate answer?\nA. Falls from ladders, which kill vastly more people annually despite little coverage\nB. They are roughly equal\nC. Shark attacks, because they are far more frequently reported\nD. Shark attacks, because they are more dramatic and memorable\nE. Impossible to know without specific yearly figures","answer_idx":"A","skill_fit":["debiasing"],"bias_type":"availability"}+{"id":"debias-34","mode":"correctness","prompt":"An investor read three recent viral stories about people who got rich quickly on a speculative crypto token. Broad, long-run data on such speculative tokens show the large majority lose most of their value and few holders profit. The investor is deciding whether to put 30% of savings into the token. What is the soundest reasoning?\nA. Invest, because the success stories show it clearly works\nB. Invest a large amount, since the wins are fresh and frequent in the news\nC. Invest everything to maximize the obvious upside\nD. Wait for one more success story before deciding\nE. Decline or invest only a tiny, loss-tolerant amount, because the base-rate evidence outweighs a few memorable winners","answer_idx":"E","skill_fit":["debiasing"],"bias_type":"availability"}+{"id":"debias-35","mode":"correctness","prompt":"A homeowner who just watched coverage of a rare house fire wants to spend heavily on fire prevention while ignoring routine roof maintenance. Actuarial data for her area show water damage from roof leaks is many times more likely and costly than fire. Where should she focus her limited home-maintenance budget?\nA. Fire prevention, because the news made fire feel imminent\nB. Roof maintenance, because the data show it is the more probable and costly risk\nC. Split the budget equally between fire and roof\nD. Fire prevention, since fires are more catastrophic when they happen\nE. Neither, until she sees a local fire herself","answer_idx":"B","skill_fit":["debiasing"],"bias_type":"availability"}+{"id":"debias-36","mode":"correctness","prompt":"A senior engineer is 99% sure a one-line change is safe and wants to push it straight to production on a Friday afternoon without tests or review, citing past confidence. Across the team's history, changes engineers were '99% sure' about still caused incidents about 8% of the time. Given the asymmetric cost of a weekend outage, what is the wisest course?\nA. Run the test suite and get a quick review before deploying, since stated 99% confidence has historically been wrong far more often\nB. Push it because the engineer is senior and rarely wrong\nC. Push directly to production; 99% confidence is more than enough\nD. Push, but watch the dashboard for a few minutes afterward\nE. Push it because reverting is always possible","answer_idx":"A","skill_fit":["debiasing"],"bias_type":"overconfidence"}+{"id":"debias-37","mode":"correctness","prompt":"You are asked to give a 90% confidence interval for the year the first commercial transatlantic telegraph cable carried messages. You feel fairly knowledgeable and are tempted to give a narrow range like 1900-1910. Calibration studies show people's '90%' intervals contain the true value only about 50% of the time because they make them too narrow. To be properly calibrated, what should you do?\nA. Give a tight range like 1900-1905 to look knowledgeable\nB. Widen the interval substantially, e.g., 1840-1920, to genuinely capture 90% of your uncertainty\nC. Give a single best-guess year instead of a range\nD. Refuse to answer because you're not certain\nE. Narrow the range further since precision signals expertise","answer_idx":"B","skill_fit":["debiasing"],"bias_type":"overconfidence"}+{"id":"debias-38","mode":"correctness","prompt":"A product lead is certain a launch will hit 1 million users in month one and wants to commit infrastructure spend and public promises on that single number. No comparable past launch exceeded 200,000, and the team has no validated demand signal. What planning approach is most rational?\nA. Commit fully to the 1M figure; conviction drives results\nB. Set the public target even higher to motivate the team\nC. Spend for 1M users now to avoid being caught short\nD. Plan around a range informed by comparable launches and demand evidence, and avoid hard public commitments to a single optimistic number\nE. Trust the lead's certainty since they know the product best","answer_idx":"D","skill_fit":["debiasing"],"bias_type":"overconfidence"}+{"id":"debias-39","mode":"correctness","prompt":"A trader has a string of recent winning bets and now feels certain his next large position cannot lose, so he wants to double his usual size and skip his stop-loss. His own long-run track record shows he is right about 55% of the time, and his sense of certainty has not historically predicted outcomes. What is the disciplined choice?\nA. Double the position and skip the stop-loss; he's clearly on a hot streak\nB. Triple the position to capitalize on the certainty\nC. Bet everything because he can't lose right now\nD. Keep normal position sizing and his stop-loss, since his felt certainty doesn't change his real 55% edge\nE. Skip the stop-loss only, but keep normal size","answer_idx":"D","skill_fit":["debiasing"],"bias_type":"overconfidence"}+{"id":"debias-40","mode":"correctness","prompt":"During a project kickoff, the team is asked to estimate the delivery date and everyone agrees they are highly confident it will ship in exactly 8 weeks, with no slack. Historically, similar projects by this team shipped 40-100% later than their confident initial estimates due to unforeseen issues. What is the best way to set the committed date?\nA. Commit to 8 weeks; the team is confident and aligned\nB. Commit to 7 weeks to push the team to perform\nC. Set the committed date using the team's historical track record of overruns, e.g., 11-16 weeks with buffer\nD. Refuse to give any date until everything is certain\nE. Commit to 8 weeks but tell stakeholders it might slip a day or two","answer_idx":"C","skill_fit":["debiasing"],"bias_type":"overconfidence"}diff --git a/evals/datasets/external/gen-bayesian.js b/evals/datasets/external/gen-bayesian.jsnew file mode 100644index 0000000..e55b757--- /dev/null+++ b/evals/datasets/external/gen-bayesian.js@@ -0,0 +1,470 @@+#!/usr/bin/env node+'use strict';+/**+ * Generator for the bayesian base-rate-reasoning correctness eval.+ * Each item supplies prevalence/base-rate + true-positive-rate (sensitivity) ++ * false-positive-rate (1 - specificity), OR a prior + likelihoods. We compute the+ * TRUE posterior P(H|E) = TPR*p / (TPR*p + FPR*(1-p)) exactly, then build 4 lettered+ * options that include: (1) the correct posterior, (2) the base-rate-neglect distractor+ * = the sensitivity/TPR (classic wrong answer), (3-4) plausible-but-wrong values.+ * The correct option bucket is chosen so exactly one option clearly contains the posterior.+ */+const fs = require('fs');+const path = require('path');++// Deterministic letter rotation so the correct answer varies across A-E.+const LETTERS = ['A', 'B', 'C', 'D', 'E'];++function pct(x, dp = 0) {+ const v = x * 100;+ if (dp === 0) return `${Math.round(v)}%`;+ return `${v.toFixed(dp)}%`;+}+function fmtPosterior(post) {+ // human-friendly percent string for options+ const v = post * 100;+ if (v < 1) return `${v.toFixed(2)}%`;+ if (v < 10) return `${v.toFixed(1)}%`;+ return `${v.toFixed(1).replace(/\.0$/, '')}%`;+}++/**+ * Build an item.+ * spec: {+ * id, base (prior p), tpr (sensitivity P(E|H)), fpr (P(E|notH)),+ * prompt(scenarioText, optionsBlock), distractors: [strings], // wrong option labels+ * correctLetterIdx: which letter (0-4) gets the correct option+ * }+ */+function build(spec) {+ const { base, tpr, fpr } = spec;+ const num = tpr * base;+ const den = num + fpr * (1 - base);+ const posterior = num / den; // P(H|E)+ const postStr = fmtPosterior(posterior);++ // Correct option text is a tight range that brackets the posterior.+ const correctOpt = spec.correctOptText(posterior, postStr);+ // Wrong options: must include base-rate-neglect distractor = TPR (sensitivity).+ const wrongs = spec.wrongOpts(posterior, tpr, fpr, base);++ // Each spec supplies exactly 4 wrong options (so total options = 5, letters A-E).+ if (wrongs.length !== 4) throw new Error(`item ${spec.id}: expected 4 wrong options, got ${wrongs.length}`);+ const wrongs4 = wrongs;++ // Collision guard: no wrong option may share a numeric value with the posterior bucket.+ const postPct = +(posterior * 100).toFixed(2);+ for (const w of wrongs4) {+ for (const m of (w.match(/([\d.]+)%/g) || [])) {+ if (Math.abs(parseFloat(m) - postPct) < 0.8) throw new Error(`item ${spec.id}: wrong option '${w}' (${m}) collides with posterior ${postPct}%`);+ }+ }++ // Assemble 5 options, placing correct at the chosen index.+ const opts = wrongs4.slice();+ const ci = spec.correctLetterIdx;+ opts.splice(ci, 0, correctOpt);+ if (opts.length !== 5) throw new Error(`item ${spec.id}: expected 5 options, got ${opts.length}`);++ const lettered = opts.map((o, i) => `${LETTERS[i]}) ${o}`).join('\n');+ const answer_idx = LETTERS[ci];++ const prompt = spec.scenario.trim() + `\n\n` + lettered;++ return {+ id: spec.id,+ mode: 'correctness',+ prompt,+ answer_idx,+ skill_fit: ['bayesian'],+ posterior: +posterior.toFixed(4),+ };+}++// Helper builders for option text -------------------------------------------+const tightRange = (lo, hi) => (post, postStr) => `about ${postStr} (between ${lo} and ${hi})`;+const exactish = (post, postStr) => `about ${postStr}`;++// ---------------------------------------------------------------------------+// Item specifications. base = base rate, tpr = sensitivity, fpr = false-positive rate.+// correctLetterIdx rotates 0..4 to vary the correct letter.+// ---------------------------------------------------------------------------+const specs = [];+let counter = 0;+function addItem(s) {+ counter++;+ s.id = `bayes-${counter}`;+ specs.push(s);+}++// We compute posterior inside build(); here we craft scenario + option sets.+// For each, we always include the TPR (sensitivity) as the base-rate-neglect distractor.++// 1. Rare disease, classic mammogram-style. base 0.01+addItem({+ base: 0.01, tpr: 0.90, fpr: 0.09,+ correctLetterIdx: 0,+ scenario: `A disease affects 1% of a screened population. A diagnostic test correctly flags 90% of people who truly have the disease, and wrongly flags 9% of healthy people. A randomly screened person tests positive. What is the probability they actually have the disease?`,+ correctOptText: (p, s) => `about ${s} (roughly 1 in 11)`,+ wrongOpts: (p, tpr) => [`90% (the test's true-positive rate)`, `about 50%`, `about 81%`, `about 1% (the underlying base rate)`],+});++// 2. HIV-style very rare. base 0.001 (1 in 1000)+addItem({+ base: 0.001, tpr: 0.99, fpr: 0.01,+ correctLetterIdx: 2,+ scenario: `Roughly 1 in 1,000 people in a low-risk group carries a particular infection. A screening test detects 99% of true carriers and produces a positive result in 1% of non-carriers. Someone from this group tests positive. How likely is it that they are truly a carrier?`,+ correctOptText: (p, s) => `about ${s} (under 1 in 10)`,+ wrongOpts: () => [`99% (the test's detection rate)`, `about 50%`, `about 91%`, `about 0.1% (the underlying base rate)`],+});++// 3. Common condition. base 0.30+addItem({+ base: 0.30, tpr: 0.85, fpr: 0.20,+ correctLetterIdx: 4,+ scenario: `In a clinic where 30% of presenting patients have a given condition, a test correctly identifies 85% of patients who have it and falsely flags 20% of those who do not. A patient tests positive. What is the probability the patient has the condition?`,+ correctOptText: (p, s) => `about ${s} (between 60% and 65%)`,+ wrongOpts: () => [`85% (the sensitivity)`, `about 30% (the base rate)`, `about 50%`, `about 78%`],+});++// 4. Fraud flag, rare. base 0.002+addItem({+ base: 0.002, tpr: 0.95, fpr: 0.03,+ correctLetterIdx: 1,+ scenario: `A bank's fraud model reviews transactions of which 0.2% are actually fraudulent. The model catches 95% of genuine fraud and flags 3% of legitimate transactions as suspicious. A transaction is flagged. What is the probability it is actually fraudulent?`,+ correctOptText: (p, s) => `about ${s} (around 6%)`,+ wrongOpts: () => [`95% (the model's catch rate)`, `about 50%`, `about 30%`, `about 0.2% (the underlying base rate)`],+});++// 5. Spam filter. base 0.40+addItem({+ base: 0.40, tpr: 0.98, fpr: 0.05,+ correctLetterIdx: 3,+ scenario: `Across an inbox, 40% of incoming messages are spam. A filter labels 98% of true spam as spam and mislabels 5% of legitimate mail as spam. A message gets labeled spam. What is the probability it really is spam?`,+ correctOptText: (p, s) => `about ${s} (between 92% and 94%)`,+ wrongOpts: () => [`98% (the filter's true-positive rate)`, `about 40% (the base rate)`, `about 80%`, `about 67%`],+});++// 6. Security alert, rare intrusion. base 0.0005+addItem({+ base: 0.0005, tpr: 0.99, fpr: 0.02,+ correctLetterIdx: 0,+ scenario: `An intrusion-detection system monitors sessions of which only 0.05% are genuine attacks. It detects 99% of real attacks and raises an alert on 2% of benign sessions. An alert fires. What is the probability this session is a genuine attack?`,+ correctOptText: (p, s) => `about ${s} (well under 3%)`,+ wrongOpts: () => [`99% (the detection rate)`, `about 50%`, `about 25%`, `about 0.05% (the underlying base rate)`],+});++// 7. Quality defect screen. base 0.05+addItem({+ base: 0.05, tpr: 0.92, fpr: 0.04,+ correctLetterIdx: 2,+ scenario: `On a production line, 5% of units are defective. An automated inspector correctly rejects 92% of defective units and wrongly rejects 4% of good units. A unit is rejected. What is the probability it is truly defective?`,+ correctOptText: (p, s) => `about ${s} (between 53% and 56%)`,+ wrongOpts: () => [`92% (the inspector's true-positive rate)`, `about 5% (the base rate)`, `about 75%`, `about 88%`],+});++// 8. A/B-test "real effect" signal. base 0.10 (prior a variant beats control)+addItem({+ base: 0.10, tpr: 0.80, fpr: 0.05,+ correctLetterIdx: 4,+ scenario: `Historically, 10% of tested variants genuinely beat the control. An analytics pipeline produces a "significant win" signal for 80% of variants that truly win, but also for 5% of variants that do not. A variant gets a "win" signal. What is the probability it is a genuine winner?`,+ correctOptText: (p, s) => `about ${s} (around 64%)`,+ wrongOpts: () => [`80% (the true-detection rate)`, `about 10% (the base rate)`, `about 40%`, `about 75%`],+});++// 9. Drug test, rare use. base 0.04+addItem({+ base: 0.04, tpr: 0.97, fpr: 0.05,+ correctLetterIdx: 1,+ scenario: `In a workforce, 4% of employees use a banned substance. A drug screen returns positive for 97% of users and for 5% of non-users. An employee tests positive. What is the probability they actually used the substance?`,+ correctOptText: (p, s) => `about ${s} (around 45%)`,+ wrongOpts: () => [`97% (the test's sensitivity)`, `about 4% (the base rate)`, `about 65%`, `about 90%`],+});++// 10. Loan default anomaly. base 0.08+addItem({+ base: 0.08, tpr: 0.88, fpr: 0.10,+ correctLetterIdx: 3,+ scenario: `Among loan applicants, 8% will default. A risk model flags 88% of future defaulters and 10% of applicants who will repay. An applicant is flagged high-risk. What is the probability they will actually default?`,+ correctOptText: (p, s) => `about ${s} (between 42% and 45%)`,+ wrongOpts: () => [`88% (the model's true-positive rate)`, `about 8% (the base rate)`, `about 70%`, `about 90%`],+});++// 11. Cancer screen, moderate-rare. base 0.02+addItem({+ base: 0.02, tpr: 0.93, fpr: 0.07,+ correctLetterIdx: 0,+ scenario: `A cancer affects 2% of a screened cohort. The screen detects 93% of true cases and yields a positive result for 7% of cancer-free people. A patient screens positive. What is the probability they have the cancer?`,+ correctOptText: (p, s) => `about ${s} (around 21%)`,+ wrongOpts: () => [`93% (the screen's detection rate)`, `about 50%`, `about 70%`, `about 2% (the base rate)`],+});++// 12. Phishing URL classifier. base 0.15+addItem({+ base: 0.15, tpr: 0.96, fpr: 0.08,+ correctLetterIdx: 2,+ scenario: `Of links employees click, 15% lead to phishing pages. A classifier flags 96% of true phishing links and 8% of safe links. A link is flagged. What is the probability it is genuinely phishing?`,+ correctOptText: (p, s) => `about ${s} (between 67% and 70%)`,+ wrongOpts: () => [`96% (the classifier's true-positive rate)`, `about 15% (the base rate)`, `about 85%`, `about 88%`],+});++// 13. Rare genetic variant. base 0.005+addItem({+ base: 0.005, tpr: 0.98, fpr: 0.03,+ correctLetterIdx: 4,+ scenario: `A genetic variant occurs in 0.5% of people. A lab assay correctly identifies 98% of carriers and gives a false positive in 3% of non-carriers. A sample tests positive. What is the probability the person carries the variant?`,+ correctOptText: (p, s) => `about ${s} (around 14%)`,+ wrongOpts: () => [`98% (the assay's sensitivity)`, `about 50%`, `about 33%`, `about 0.5% (the base rate)`],+});++// 14. Manufacturing contamination. base 0.01+addItem({+ base: 0.01, tpr: 0.99, fpr: 0.02,+ correctLetterIdx: 1,+ scenario: `One percent of batches are contaminated. A purity test flags 99% of contaminated batches and 2% of clean batches. A batch is flagged. What is the probability it is actually contaminated?`,+ correctOptText: (p, s) => `about ${s} (around 1 in 3)`,+ wrongOpts: () => [`99% (the test's true-positive rate)`, `about 50%`, `about 66%`, `about 1% (the base rate)`],+});++// 15. Bot-account detection. base 0.20+addItem({+ base: 0.20, tpr: 0.90, fpr: 0.10,+ correctLetterIdx: 3,+ scenario: `On a platform, 20% of new signups are bots. A detector flags 90% of bots and 10% of real users. A signup is flagged as a bot. What is the probability it really is a bot?`,+ correctOptText: (p, s) => `about ${s} (between 68% and 70%)`,+ wrongOpts: () => [`90% (the detector's true-positive rate)`, `about 20% (the base rate)`, `about 50%`, `about 82%`],+});++// 16. Very rare terrorist-watchlist style. base 0.0001+addItem({+ base: 0.0001, tpr: 0.99, fpr: 0.01,+ correctLetterIdx: 0,+ scenario: `In a population, 1 in 10,000 individuals is on a target list. A facial-recognition match correctly identifies 99% of true targets and falsely matches 1% of everyone else. The system reports a match. What is the probability the matched person is truly a target?`,+ correctOptText: (p, s) => `about ${s} (about 1%)`,+ wrongOpts: () => [`99% (the match accuracy)`, `about 50%`, `about 10%`, `about 0.01% (the base rate)`],+});++// 17. Equipment failure prediction. base 0.03+addItem({+ base: 0.03, tpr: 0.85, fpr: 0.06,+ correctLetterIdx: 2,+ scenario: `Three percent of machines will fail within a week. A predictive-maintenance model flags 85% of machines that will fail and 6% of machines that will not. A machine is flagged. What is the probability it will actually fail within the week?`,+ correctOptText: (p, s) => `about ${s} (around 30%)`,+ wrongOpts: () => [`85% (the model's true-positive rate)`, `about 3% (the base rate)`, `about 60%`, `about 80%`],+});++// 18. Doping in athletes. base 0.06+addItem({+ base: 0.06, tpr: 0.94, fpr: 0.02,+ correctLetterIdx: 4,+ scenario: `Six percent of competing athletes are doping. An anti-doping test returns positive for 94% of dopers and 2% of clean athletes. An athlete tests positive. What is the probability the athlete is actually doping?`,+ correctOptText: (p, s) => `about ${s} (around 75%)`,+ wrongOpts: () => [`94% (the test's sensitivity)`, `about 6% (the base rate)`, `about 50%`, `about 90%`],+});++// 19. Counterfeit detection. base 0.005+addItem({+ base: 0.005, tpr: 0.92, fpr: 0.01,+ correctLetterIdx: 1,+ scenario: `Half a percent of bills passing through a machine are counterfeit. The machine flags 92% of counterfeits and 1% of genuine bills. A bill is flagged. What is the probability it is counterfeit?`,+ correctOptText: (p, s) => `about ${s} (around 32%)`,+ wrongOpts: () => [`92% (the flag rate for counterfeits)`, `about 50%`, `about 70%`, `about 0.5% (the base rate)`],+});++// 20. Email-phishing report, common. base 0.35+addItem({+ base: 0.35, tpr: 0.90, fpr: 0.15,+ correctLetterIdx: 3,+ scenario: `In a flagged review queue, 35% of reported emails are truly malicious. A secondary scanner confirms 90% of truly malicious emails and confirms 15% of benign ones. The scanner confirms an email as malicious. What is the probability it really is malicious?`,+ correctOptText: (p, s) => `about ${s} (between 76% and 78%)`,+ wrongOpts: () => [`90% (the scanner's true-positive rate)`, `about 35% (the base rate)`, `about 60%`, `about 85%`],+});++// 21. Rare side effect. base 0.002+addItem({+ base: 0.002, tpr: 0.80, fpr: 0.05,+ correctLetterIdx: 0,+ scenario: `A rare adverse reaction occurs in 0.2% of patients on a drug. A monitoring algorithm flags 80% of true reactions and 5% of patients with unrelated symptoms. A patient is flagged. What is the probability they had the true adverse reaction?`,+ correctOptText: (p, s) => `about ${s} (around 3%)`,+ wrongOpts: () => [`80% (the algorithm's detection rate)`, `about 50%`, `about 16%`, `about 0.2% (the base rate)`],+});++// 22. Insider-trading anomaly. base 0.01+addItem({+ base: 0.01, tpr: 0.85, fpr: 0.04,+ correctLetterIdx: 2,+ scenario: `One percent of large trades involve insider information. A surveillance system flags 85% of true insider trades and 4% of legitimate large trades. A trade is flagged. What is the probability it involved insider information?`,+ correctOptText: (p, s) => `about ${s} (around 18%)`,+ wrongOpts: () => [`85% (the system's true-positive rate)`, `about 50%`, `about 1% (the base rate)`, `about 30%`],+});++// 23. Defective chip burn-in. base 0.10+addItem({+ base: 0.10, tpr: 0.95, fpr: 0.07,+ correctLetterIdx: 4,+ scenario: `Ten percent of chips have a latent defect. A burn-in test catches 95% of defective chips and fails 7% of good chips. A chip fails burn-in. What is the probability it is genuinely defective?`,+ correctOptText: (p, s) => `about ${s} (around 60%)`,+ wrongOpts: () => [`95% (the test's true-positive rate)`, `about 10% (the base rate)`, `about 40%`, `about 88%`],+});++// 24. Wildfire-smoke sensor. base 0.02+addItem({+ base: 0.02, tpr: 0.97, fpr: 0.10,+ correctLetterIdx: 1,+ scenario: `On any given monitored day, there is a 2% chance of an actual wildfire-smoke event in a region. A sensor network alerts on 97% of real events and on 10% of non-event days. An alert fires. What is the probability there is a genuine smoke event?`,+ correctOptText: (p, s) => `about ${s} (around 17%)`,+ wrongOpts: () => [`97% (the sensor's true-positive rate)`, `about 50%`, `about 2% (the base rate)`, `about 30%`],+});++// 25. Account-takeover login. base 0.001+addItem({+ base: 0.001, tpr: 0.90, fpr: 0.005,+ correctLetterIdx: 3,+ scenario: `One in 1,000 login attempts is an account takeover. A risk engine flags 90% of takeovers and 0.5% of legitimate logins. A login is flagged. What is the probability it is a genuine takeover?`,+ correctOptText: (p, s) => `about ${s} (around 15%)`,+ wrongOpts: () => [`90% (the engine's true-positive rate)`, `about 50%`, `about 0.1% (the base rate)`, `about 30%`],+});++// 26. Cheating-detection on exam. base 0.05+addItem({+ base: 0.05, tpr: 0.88, fpr: 0.03,+ correctLetterIdx: 0,+ scenario: `Five percent of online-exam sessions involve cheating. A proctoring model flags 88% of cheating sessions and 3% of honest sessions. A session is flagged. What is the probability cheating actually occurred?`,+ correctOptText: (p, s) => `about ${s} (around 61%)`,+ wrongOpts: () => [`88% (the model's true-positive rate)`, `about 5% (the base rate)`, `about 30%`, `about 80%`],+});++// 27. Pregnancy-test style, common. base 0.25+addItem({+ base: 0.25, tpr: 0.99, fpr: 0.02,+ correctLetterIdx: 2,+ scenario: `Among people taking a test, 25% truly have the target hormone present. The test is positive for 99% of those who do and 2% of those who do not. A test is positive. What is the probability the hormone is truly present?`,+ correctOptText: (p, s) => `about ${s} (between 93% and 95%)`,+ wrongOpts: () => [`99% (the test's sensitivity)`, `about 25% (the base rate)`, `about 75%`, `about 88%`],+});++// 28. Network-anomaly DDoS. base 0.008+addItem({+ base: 0.008, tpr: 0.96, fpr: 0.05,+ correctLetterIdx: 4,+ scenario: `Roughly 0.8% of traffic spikes are genuine DDoS attacks. A monitor flags 96% of real attacks and 5% of benign spikes. A spike is flagged. What is the probability it is a genuine attack?`,+ correctOptText: (p, s) => `about ${s} (around 13%)`,+ wrongOpts: () => [`96% (the monitor's true-positive rate)`, `about 50%`, `about 0.8% (the base rate)`, `about 30%`],+});++// 29. Rare structural defect (bridge inspection). base 0.003+addItem({+ base: 0.003, tpr: 0.90, fpr: 0.02,+ correctLetterIdx: 1,+ scenario: `Across inspected components, 0.3% have a critical structural defect. A scanner detects 90% of true defects and flags 2% of sound components. A component is flagged. What is the probability it has a critical defect?`,+ correctOptText: (p, s) => `about ${s} (around 12%)`,+ wrongOpts: () => [`90% (the scanner's detection rate)`, `about 50%`, `about 0.3% (the base rate)`, `about 25%`],+});++// 30. Chargeback fraud. base 0.015+addItem({+ base: 0.015, tpr: 0.92, fpr: 0.06,+ correctLetterIdx: 3,+ scenario: `About 1.5% of orders result in chargeback fraud. A model flags 92% of fraudulent orders and 6% of honest ones. An order is flagged. What is the probability it is fraudulent?`,+ correctOptText: (p, s) => `about ${s} (around 19%)`,+ wrongOpts: () => [`92% (the model's true-positive rate)`, `about 50%`, `about 1.5% (the base rate)`, `about 30%`],+});++// 31. Common: customer-churn signal. base 0.30+addItem({+ base: 0.30, tpr: 0.78, fpr: 0.18,+ correctLetterIdx: 0,+ scenario: `Thirty percent of subscribers will churn next quarter. A churn model flags 78% of true churners and 18% of those who will stay. A subscriber is flagged. What is the probability they will actually churn?`,+ correctOptText: (p, s) => `about ${s} (around 65%)`,+ wrongOpts: () => [`78% (the model's true-positive rate)`, `about 30% (the base rate)`, `about 50%`, `about 72%`],+});++// 32. Allergy test, moderate. base 0.12+addItem({+ base: 0.12, tpr: 0.85, fpr: 0.10,+ correctLetterIdx: 2,+ scenario: `Twelve percent of patients tested truly have a specific allergy. A skin test is positive for 85% of allergic patients and 10% of non-allergic ones. A patient tests positive. What is the probability they are truly allergic?`,+ correctOptText: (p, s) => `about ${s} (around 54%)`,+ wrongOpts: () => [`85% (the test's true-positive rate)`, `about 12% (the base rate)`, `about 70%`, `about 80%`],+});++// 33. Money-laundering alert, rare. base 0.004+addItem({+ base: 0.004, tpr: 0.93, fpr: 0.03,+ correctLetterIdx: 4,+ scenario: `Around 0.4% of monitored accounts are involved in money laundering. A transaction-monitoring system alerts on 93% of laundering accounts and 3% of clean accounts. An account triggers an alert. What is the probability it is genuinely involved in laundering?`,+ correctOptText: (p, s) => `about ${s} (around 11%)`,+ wrongOpts: () => [`93% (the system's true-positive rate)`, `about 50%`, `about 0.4% (the base rate)`, `about 30%`],+});++// 34. Rare hardware fault telemetry. base 0.007+addItem({+ base: 0.007, tpr: 0.88, fpr: 0.015,+ correctLetterIdx: 1,+ scenario: `About 0.7% of servers have an imminent disk fault. A telemetry model flags 88% of failing disks and 1.5% of healthy ones. A server is flagged. What is the probability its disk is truly failing?`,+ correctOptText: (p, s) => `about ${s} (around 29%)`,+ wrongOpts: () => [`88% (the model's true-positive rate)`, `about 50%`, `about 0.7% (the base rate)`, `about 15%`],+});++// 35. Spam-comment moderation, common. base 0.45+addItem({+ base: 0.45, tpr: 0.92, fpr: 0.12,+ correctLetterIdx: 3,+ scenario: `On a forum, 45% of submitted comments are spam. A moderation model flags 92% of spam comments and 12% of legitimate comments. A comment is flagged. What is the probability it really is spam?`,+ correctOptText: (p, s) => `about ${s} (between 86% and 88%)`,+ wrongOpts: () => [`92% (the model's true-positive rate)`, `about 45% (the base rate)`, `about 65%`, `about 90%`],+});++// 36. Rare biomarker, prior+likelihood framing. base 0.01+addItem({+ base: 0.01, tpr: 0.95, fpr: 0.10,+ correctLetterIdx: 0,+ scenario: `Before any testing, the chance a patient has a condition is 1%. A biomarker is present in 95% of patients with the condition and in 10% of patients without it. The biomarker is present. What is the updated probability the patient has the condition?`,+ correctOptText: (p, s) => `about ${s} (around 9%)`,+ wrongOpts: () => [`95% (the biomarker's true-positive rate)`, `about 50%`, `about 1% (the base rate)`, `about 30%`],+});++// 37. Vibration-based defect, moderate-rare. base 0.025+addItem({+ base: 0.025, tpr: 0.90, fpr: 0.05,+ correctLetterIdx: 2,+ scenario: `2.5% of pump units have a bearing defect. A vibration analysis flags 90% of defective pumps and 5% of healthy pumps. A pump is flagged. What is the probability it truly has a bearing defect?`,+ correctOptText: (p, s) => `about ${s} (around 32%)`,+ wrongOpts: () => [`90% (the analysis's true-positive rate)`, `about 2.5% (the base rate)`, `about 60%`, `about 85%`],+});++// 38. Rare bug-regression signal in CI. base 0.02+addItem({+ base: 0.02, tpr: 0.80, fpr: 0.03,+ correctLetterIdx: 4,+ scenario: `Two percent of merged commits introduce a real regression. A flaky CI heuristic flags 80% of true regressions and 3% of clean commits. A commit is flagged. What is the probability it introduced a real regression?`,+ correctOptText: (p, s) => `about ${s} (around 35%)`,+ wrongOpts: () => [`80% (the heuristic's true-positive rate)`, `about 2% (the base rate)`, `about 50%`, `about 77%`],+});++// 39. Rare disease, high specificity. base 0.001+addItem({+ base: 0.001, tpr: 0.95, fpr: 0.001,+ correctLetterIdx: 1,+ scenario: `A disease has a prevalence of 1 in 1,000. A high-specificity test detects 95% of true cases and gives a false positive in only 0.1% of healthy people. A person tests positive. What is the probability they have the disease?`,+ correctOptText: (p, s) => `about ${s} (around 49%)`,+ wrongOpts: () => [`95% (the test's sensitivity)`, `about 5%`, `about 99%`, `about 0.1% (the base rate)`],+});++// 40. Moderate fraud with both rates middling. base 0.10+addItem({+ base: 0.10, tpr: 0.70, fpr: 0.10,+ correctLetterIdx: 3,+ scenario: `Ten percent of insurance claims are fraudulent. An adjuster's model flags 70% of fraudulent claims and 10% of legitimate ones. A claim is flagged. What is the probability it is fraudulent?`,+ correctOptText: (p, s) => `about ${s} (around 44%)`,+ wrongOpts: () => [`70% (the model's true-positive rate)`, `about 10% (the base rate)`, `about 60%`, `about 65%`],+});++const out = specs.map(build);+const dest = path.join(__dirname, 'bayesian-authored.jsonl');+fs.writeFileSync(dest, out.map(o => JSON.stringify(o)).join('\n') + '\n', 'utf8');+console.log(`Wrote ${out.length} items to ${dest}`);++// Print base-rate range+const bases = specs.map(s => s.base).sort((a, b) => a - b);+console.log(`Base-rate range: ${bases[0]} (1 in ${Math.round(1 / bases[0])}) to ${bases[bases.length - 1]}`);diff --git a/evals/datasets/external/validate-bayesian.js b/evals/datasets/external/validate-bayesian.jsnew file mode 100644index 0000000..f8523fc--- /dev/null+++ b/evals/datasets/external/validate-bayesian.js@@ -0,0 +1,107 @@+#!/usr/bin/env node+'use strict';+const fs = require('fs');+const path = require('path');++const file = path.join(__dirname, 'bayesian-authored.jsonl');+const lines = fs.readFileSync(file, 'utf8').trim().split('\n').filter(Boolean);++let errors = 0;+const seen = new Set();++// Independent re-derivation of the (base, tpr, fpr) per item id, mirroring the spec table,+// so validation does not trust the generator's own arithmetic path.+const truth = {+ 'bayes-1': [0.01, 0.90, 0.09], 'bayes-2': [0.001, 0.99, 0.01], 'bayes-3': [0.30, 0.85, 0.20],+ 'bayes-4': [0.002, 0.95, 0.03], 'bayes-5': [0.40, 0.98, 0.05], 'bayes-6': [0.0005, 0.99, 0.02],+ 'bayes-7': [0.05, 0.92, 0.04], 'bayes-8': [0.10, 0.80, 0.05], 'bayes-9': [0.04, 0.97, 0.05],+ 'bayes-10': [0.08, 0.88, 0.10], 'bayes-11': [0.02, 0.93, 0.07], 'bayes-12': [0.15, 0.96, 0.08],+ 'bayes-13': [0.005, 0.98, 0.03], 'bayes-14': [0.01, 0.99, 0.02], 'bayes-15': [0.20, 0.90, 0.10],+ 'bayes-16': [0.0001, 0.99, 0.01], 'bayes-17': [0.03, 0.85, 0.06], 'bayes-18': [0.06, 0.94, 0.02],+ 'bayes-19': [0.005, 0.92, 0.01], 'bayes-20': [0.35, 0.90, 0.15], 'bayes-21': [0.002, 0.80, 0.05],+ 'bayes-22': [0.01, 0.85, 0.04], 'bayes-23': [0.10, 0.95, 0.07], 'bayes-24': [0.02, 0.97, 0.10],+ 'bayes-25': [0.001, 0.90, 0.005], 'bayes-26': [0.05, 0.88, 0.03], 'bayes-27': [0.25, 0.99, 0.02],+ 'bayes-28': [0.008, 0.96, 0.05], 'bayes-29': [0.003, 0.90, 0.02], 'bayes-30': [0.015, 0.92, 0.06],+ 'bayes-31': [0.30, 0.78, 0.18], 'bayes-32': [0.12, 0.85, 0.10], 'bayes-33': [0.004, 0.93, 0.03],+ 'bayes-34': [0.007, 0.88, 0.015], 'bayes-35': [0.45, 0.92, 0.12], 'bayes-36': [0.01, 0.95, 0.10],+ 'bayes-37': [0.025, 0.90, 0.05], 'bayes-38': [0.02, 0.80, 0.03], 'bayes-39': [0.001, 0.95, 0.001],+ 'bayes-40': [0.10, 0.70, 0.10],+};++function bayes(base, tpr, fpr) {+ const num = tpr * base;+ return num / (num + fpr * (1 - base));+}++// Parse the numeric value(s) out of an option label so we can confirm bracketing.+function rangeFromOption(label) {+ // "between X and Y" -> [X, Y] in fraction+ const m = label.match(/between\s+([\d.]+)%\s+and\s+([\d.]+)%/i);+ if (m) return [parseFloat(m[1]) / 100, parseFloat(m[2]) / 100];+ // "about N% (...)" -> single value with tolerance derived below+ const a = label.match(/about\s+([\d.]+)%/i);+ if (a) return ['point', parseFloat(a[1]) / 100];+ return null;+}++const letters = ['A', 'B', 'C', 'D', 'E'];++for (const line of lines) {+ let o;+ try { o = JSON.parse(line); } catch (e) { console.error(`PARSE FAIL: ${e.message}\n ${line.slice(0, 80)}`); errors++; continue; }++ // strict shape+ if (!o.id || seen.has(o.id)) { console.error(`BAD/DUP id: ${o.id}`); errors++; }+ seen.add(o.id);+ if (o.mode !== 'correctness') { console.error(`${o.id}: mode != correctness`); errors++; }+ if (!/^[A-E]$/.test(o.answer_idx)) { console.error(`${o.id}: answer_idx '${o.answer_idx}' fails /^[A-E]$/`); errors++; continue; }+ if (!Array.isArray(o.skill_fit) || o.skill_fit[0] !== 'bayesian') { console.error(`${o.id}: skill_fit wrong`); errors++; }+ if (typeof o.posterior !== 'number') { console.error(`${o.id}: posterior not a number`); errors++; continue; }+ if (typeof o.prompt !== 'string' || !o.prompt.includes('A)') || !o.prompt.includes('E)')) { console.error(`${o.id}: prompt missing A-E lettered options`); errors++; }++ // Bayes recompute vs stored posterior+ const t = truth[o.id];+ if (!t) { console.error(`${o.id}: no truth entry`); errors++; continue; }+ const expected = bayes(t[0], t[1], t[2]);+ if (Math.abs(expected - o.posterior) > 0.0006) {+ console.error(`${o.id}: posterior mismatch. stored=${o.posterior} bayes=${expected.toFixed(4)}`);+ errors++;+ }++ // Extract the chosen-letter option text from the prompt+ const optLines = o.prompt.split('\n').filter(l => /^[A-E]\)/.test(l.trim()));+ if (optLines.length !== 5) { console.error(`${o.id}: found ${optLines.length} option lines, expected 5`); errors++; continue; }++ // No two options should carry the same numeric value (would create a second correct answer)+ const nums = optLines.map(l => {+ const r = l.match(/([\d.]+)%/g) || [];+ return r.map(x => parseFloat(x)).sort((a, b) => a - b).join(',');+ });+ const dupSet = new Set();+ for (const n of nums) { if (dupSet.has(n)) { console.error(`${o.id}: duplicate option numeric value '${n}'`); errors++; } dupSet.add(n); }+ const idxOfLetter = letters.indexOf(o.answer_idx);+ const correctLine = optLines.find(l => l.trim().startsWith(o.answer_idx + ')'));+ if (!correctLine) { console.error(`${o.id}: no option line for ${o.answer_idx}`); errors++; continue; }++ // Confirm the correct option brackets the posterior+ const r = rangeFromOption(correctLine);+ if (!r) { console.error(`${o.id}: cannot parse correct option '${correctLine.trim()}'`); errors++; }+ else if (r[0] === 'point') {+ // "about N%" should round to the posterior; allow 0.6pp tolerance+ if (Math.abs(r[1] - o.posterior) > 0.006) { console.error(`${o.id}: correct 'about ${(r[1]*100).toFixed(1)}%' != posterior ${(o.posterior*100).toFixed(2)}%`); errors++; }+ } else {+ if (o.posterior < r[0] - 1e-9 || o.posterior > r[1] + 1e-9) { console.error(`${o.id}: posterior ${(o.posterior*100).toFixed(2)}% not in range [${(r[0]*100)}, ${(r[1]*100)}]`); errors++; }+ }++ // Base-rate-neglect distractor: TPR must appear as a WRONG option (not the correct one)+ const tprPct = `${Math.round(t[1] * 100)}%`;+ const wrongLines = optLines.filter(l => !l.trim().startsWith(o.answer_idx + ')'));+ const hasTprDistractor = wrongLines.some(l => l.includes(tprPct));+ if (!hasTprDistractor) { console.error(`${o.id}: base-rate-neglect distractor (TPR ${tprPct}) not present among wrong options`); errors++; }+ // and TPR must NOT be inside the correct option+ if (correctLine.includes(tprPct) && Math.abs(t[1] - o.posterior) > 0.02) { console.error(`${o.id}: TPR ${tprPct} appears in correct option`); errors++; }+}++console.log(`\nChecked ${lines.length} items, unique ids: ${seen.size}, errors: ${errors}`);+if (errors) process.exit(1);+console.log('ALL CHECKS PASSED');diff --git a/evals/datasets/ingest-hf.js b/evals/datasets/ingest-hf.jsnew file mode 100644index 0000000..f75c8e8--- /dev/null+++ b/evals/datasets/ingest-hf.js@@ -0,0 +1,189 @@+#!/usr/bin/env node+'use strict';++/**+ * Stream candidate problems from HuggingFace datasets into our eval schema,+ * via the datasets-server /rows API (no bulk download — pages offset/length).+ * Writes to evals/datasets/external/<tag>.jsonl (a SEGREGATED, attributed corpus;+ * several sources are non-commercial — do NOT ship verbatim in the MIT package).+ *+ * Usage:+ * node evals/datasets/ingest-hf.js financial 20 [offset] [--classify]+ * node evals/datasets/ingest-hf.js medical 12 --classify+ * CLASSIFY=1 node evals/datasets/ingest-hf.js glm-distractor 30+ *+ * --classify (or CLASSIFY=1) runs a batched droid pass tagging each candidate+ * {eval_worthy, mode, skill_fit, domain, single_answer} and drops non-eval-worthy.+ */++const fs = require('fs');+const path = require('path');+const { spawnSync } = require('child_process');+const { droidJsonAsync } = require('../lib/droid');+const { leafSkills } = require('../lib/skills');++const OUT_DIR = path.join(__dirname, 'external');+fs.mkdirSync(OUT_DIR, { recursive: true });+const CLASSIFY = process.env.CLASSIFY === '1' || process.argv.includes('--classify');+const CLASSIFIER_MODEL = process.env.CLASSIFIER_MODEL || 'deepseek-v4-pro';++const SOURCES = {+ financial: {+ dataset: 'Jackrong/financial-economics-reasoning', config: 'default', split: 'train',+ mode: 'pairwise', license: 'Apache-2.0 (research/non-commercial)',+ map: r => (r.language && r.language !== 'en') ? null : { prompt: r.problem },+ },+ medical: {+ dataset: 'medreason/llm-medical-reasoning-steps-benchmark', config: 'default', split: 'test',+ mode: 'correctness', license: 'CC BY-NC 4.0',+ map: r => r.task_type === 'multi_choice' ? {+ prompt: r.question + '\n\nOptions:\n' + (r.answer_options || []).map((o, i) => `${String.fromCharCode(65 + i)}. ${o}`).join('\n'),+ answer_idx: r.answer_idx, answer: r.answer, key_points: r.answer_key_points, specialty: r.specialty,+ } : null,+ },+ legal: {+ dataset: 'nguha/legalbench', config: 'consumer_contracts_qa', split: 'test',+ mode: 'correctness', license: 'CC-BY-4.0 (per-task varies)',+ map: r => ({ prompt: 'Contract:\n' + r.contract + '\n\nQuestion: ' + r.question, answer: r.answer }),+ },+ 'glm-distractor': {+ dataset: 'Jackrong/GLM-5.1-Reasoning-1M-Cleaned', config: 'main', split: 'train',+ mode: 'distractor', license: 'Apache-2.0 (GLM-5.1 distilled)',+ map: r => { const p = r.input || ''; return (p.length > 20 && p.length < 1200) ? { prompt: p } : null; },+ },+ // --- verified per-skill datasets (Phase 3) ---+ diversevul: { // red-team: does attacker-mindset improve vuln detection? objective Yes/No.+ dataset: 'claudios/DiverseVul', config: 'default', split: 'test',+ mode: 'correctness', license: 'MIT/research',+ map: r => (r.func && r.func.length > 40 && r.func.length < 2200) ? {+ prompt: 'Is the following C/C++ function vulnerable to a security issue (memory safety, injection, auth bypass, etc.)? Answer Yes or No.\n\n```c\n' + r.func + '\n```',+ answer: r.target === 1 ? 'Yes' : 'No', skill_fit: ['red-team'], cwe: r.cwe,+ } : null,+ },+ selfaware: { // circle-of-competence: abstention routing (downloaded for the routing runner)+ dataset: 'OkayestProgrammer/selfAware', config: 'default', split: 'train',+ mode: 'abstention', license: 'CC-BY-SA-4.0',+ map: r => ({ prompt: r.question, answerable: r.answerable, skill_fit: ['circle-of-competence'] }),+ },+ fermi: { // fermi-estimation: numeric order-of-magnitude ground truth+ dataset: 'jeggers/fermi', config: 'real', split: 'test',+ mode: 'numeric', license: 'CC-BY-4.0',+ map: r => { const n = parseFloat(String(r.answer).replace(/[, ]/g, '')); return (r.question && isFinite(n) && n !== 0) ? {+ prompt: r.question + "\n\nEstimate the quantity. End with exactly: ANSWER: <a single number, scientific notation OK>",+ answer_num: n, skill_fit: ['fermi-estimation'],+ } : null; },+ },+ forecasting: { // probabilistic/bayesian: binary resolved outcome (NOTE: 2023 items predate model cutoff → leakage; filter by date for a clean run)+ dataset: 'YuehHanChen/forecasting', config: 'default', split: 'test',+ mode: 'binary-prob', license: 'Apache-2.0',+ map: r => (r.is_resolved === true && r.question_type === 'binary' && (r.resolution === 0 || r.resolution === 1)) ? {+ prompt: 'Background: ' + String(r.background || '').slice(0, 700) + '\n\nQuestion: ' + r.question + '\n\nResolution: ' + String(r.resolution_criteria || '').slice(0, 250) + "\n\nGive the probability the answer is YES. End with exactly: ANSWER: <number between 0 and 1>",+ answer_bin: r.resolution, resolve_date: r.date_resolve_at, skill_fit: ['probabilistic'],+ } : null,+ },+ swebench: { // native-domain debugging: fault-file localization from a real GitHub issue+ dataset: 'princeton-nlp/SWE-bench_Lite', config: 'default', split: 'test',+ mode: 'swe-localize', license: 'MIT',+ map: r => {+ const files = [...new Set([...String(r.patch || '').matchAll(/diff --git a\/\S+ b\/(\S+)/g)].map(m => m[1]).filter(f => !/(test|tests)\//i.test(f) && /\.(py|js|ts|java|go|rb|c|cpp|h)$/.test(f)))];+ if (!files.length || !r.problem_statement) return null;+ return {+ prompt: 'Repository: ' + r.repo + '\n\nGitHub issue:\n' + String(r.problem_statement).slice(0, 2500) ++ '\n\nWhich single source file in this repository most likely needs to be modified to fix this issue? Reason about the symptom and where it originates, then give the repository-relative path. End with exactly: ANSWER: <path/to/file.ext>',+ gold_files: files, repo: r.repo, skill_fit: ['scientific-method', 'systems', 'five-whys-plus'],+ };+ },+ },+ strategyqa: { // second-order proxy: implicit multi-hop yes/no+ dataset: 'voidful/StrategyQA', config: 'default', split: 'train',+ mode: 'correctness', license: 'CC (Wikipedia-derived)',+ map: r => (r.question && typeof r.answer === 'boolean') ? {+ prompt: r.question + '\n\nAnswer Yes or No.', answer: r.answer ? 'Yes' : 'No', skill_fit: ['second-order'],+ } : null,+ },+};++function fetchRows(ds, config, split, offset, length) {+ const enc = ds.replace(/\//g, '%2F');+ const url = `https://datasets-server.huggingface.co/rows?dataset=${enc}&config=${config}&split=${split}&offset=${offset}&length=${length}`;+ const r = spawnSync('curl', ['-s', '--max-time', '40', url], { encoding: 'utf8', maxBuffer: 64 * 1024 * 1024 });+ if (r.status !== 0) throw new Error('curl failed: ' + r.stderr);+ return (JSON.parse(r.stdout).rows || []).map(x => x.row);+}++const SKILL_NAMES = leafSkills().map(s => s.name.replace('thinking-', ''));++async function classifyBatch(cands) {+ const items = cands.map((c, i) => `[${i}] ${c.prompt.slice(0, 500).replace(/\s+/g, ' ')}`).join('\n\n');+ const prompt = `You triage candidate problems for a "thinking skills" (mental models) eval that tests whether injecting a mental-model guide makes an AI agent reason better.++Skills available: ${SKILL_NAMES.join(', ')}.++For each item decide:+- eval_worthy: true unless it is pure factual RECALL/summarization or trivial lookup with no reasoning/decision content.+- mode: "pairwise" (open decision/analysis, quality-of-reasoning differs), "correctness" (single verifiable answer that better reasoning would get right), or "distractor" (routine task where NO thinking skill should fire — code a function, fact lookup, simple arithmetic).+- skill_fit: up to 3 skill short-names whose mental model would most help (or [] for distractors).+- domain: short tag (software, finance, medical, legal, science, general, ...).+- single_answer: true if there is one objectively correct answer.++ITEMS:+${items}++Return ONLY JSON: {"tags":[{"i":0,"eval_worthy":true,"mode":"pairwise","skill_fit":["second-order"],"domain":"finance","single_answer":false}, ...]} with one entry per item index.`;+ const r = await droidJsonAsync({ model: CLASSIFIER_MODEL, prompt, timeoutMs: 600000 });+ if (!r.ok || !r.json || !Array.isArray(r.json.tags)) return null;+ return r.json.tags;+}++async function classifyAll(out) {+ const BATCH = 8;+ for (let i = 0; i < out.length; i += BATCH) {+ const slice = out.slice(i, i + BATCH);+ const tags = await classifyBatch(slice);+ if (!tags) { console.log(` classify batch ${i}-${i + slice.length} FAILED — leaving untagged`); continue; }+ for (const t of tags) if (slice[t.i]) Object.assign(slice[t.i], {+ eval_worthy: t.eval_worthy, classified_mode: t.mode, skill_fit: t.skill_fit, domain: t.domain, single_answer: t.single_answer,+ });+ console.log(` classified ${i + slice.length}/${out.length}`);+ }+}++async function main() {+ const tag = process.argv[2];+ const count = parseInt(process.argv[3] || '20', 10);+ let offset = parseInt(process.argv[4] || '0', 10);+ const src = SOURCES[tag];+ if (!src) { console.error('unknown source. options:', Object.keys(SOURCES).join(', ')); process.exit(1); }++ const out = [];+ let pulled = 0;+ while (out.length < count && pulled < count * 6) {+ const batch = fetchRows(src.dataset, src.config, src.split, offset, Math.min(100, count * 2));+ if (!batch.length) break;+ for (const row of batch) {+ pulled++;+ const mapped = src.map(row);+ if (!mapped || !mapped.prompt) continue;+ out.push({ id: `${tag}-${offset + out.length}`, source: src.dataset, mode: src.mode, license: src.license, ...mapped });+ if (out.length >= count) break;+ }+ offset += batch.length;+ }++ let kept = out;+ if (CLASSIFY) {+ console.log(`Classifying ${out.length} candidates with ${CLASSIFIER_MODEL}…`);+ await classifyAll(out);+ // track-aware: distractors WANT routine/low-skill items; reasoning tracks drop recall.+ if (src.mode === 'distractor') kept = out.filter(o => o.classified_mode === 'distractor');+ else kept = out.filter(o => o.eval_worthy !== false && o.classified_mode !== 'distractor');+ console.log(` kept ${kept.length}/${out.length} (${src.mode === 'distractor' ? 'classified distractor' : 'eval-worthy reasoning'})`);+ }++ const file = path.join(OUT_DIR, `${tag}.jsonl`);+ fs.writeFileSync(file, kept.map(o => JSON.stringify(o)).join('\n') + '\n');+ console.log(`Ingested ${kept.length} candidates from ${src.dataset} (${src.mode}, ${src.license})`);+ console.log(` -> ${file}`);+}++main();diff --git a/evals/datasets/routing-cases.jsonl b/evals/datasets/routing-cases.jsonlnew file mode 100644index 0000000..c757e7e--- /dev/null+++ b/evals/datasets/routing-cases.jsonl@@ -0,0 +1,71 @@+{"id":"archetypes-recurring-firefight","prompt":"Every quarter we add headcount to the on-call rotation but the number of escalations keeps climbing right back up within a month or two. We've done this three times now and nothing actually gets better. What's going on?","expected":"thinking-archetypes","acceptable":["thinking-systems","thinking-feedback-loops"],"type":"positive","note":"Recurring problem where the same fix keeps failing — classic systems-archetype pattern."}+{"id":"bayesian-flaky-test-belief","prompt":"A test that's been green for months just failed once on CI. How worried should I actually be that there's a real regression versus it just being flaky, given it's failed maybe twice all year?","expected":"thinking-bayesian","acceptable":["thinking-probabilistic"],"type":"positive","note":"Updating a probability estimate given a base rate and one new observation."}+{"id":"bounded-rationality-good-enough-config","prompt":"I've spent two days tuning the cache eviction parameters and I keep finding tiny improvements. I have ten other things to ship this sprint. How do I know when this is good enough to walk away from?","expected":"thinking-bounded-rationality","acceptable":["thinking-opportunity-cost"],"type":"positive","note":"Setting a stopping criterion for a decision under time pressure — satisficing."}+{"id":"circle-of-competence-crypto-feature","prompt":"Leadership wants me to lead the design of the on-chain settlement layer for our new payments product. I've never worked on anything blockchain-related. Should I take this on or push back?","expected":"thinking-circle-of-competence","acceptable":["thinking-regret-minimization"],"type":"positive","note":"Evaluating an opportunity that sits outside one's domain expertise."}+{"id":"cynefin-classify-problem","prompt":"My team can't agree on how to approach a new initiative. Some people want a detailed upfront plan, others want to just experiment and see what sticks. How do I figure out which approach actually fits this kind of problem?","expected":"thinking-cynefin","acceptable":["thinking-model-selection"],"type":"positive","note":"Matching methodology to the nature of the problem — clear vs complex vs chaotic."}+{"id":"debiasing-vendor-decision","prompt":"We're about to sign a two-year contract with the same database vendor we've always used. The stakes are high and I want to make sure we're choosing them for the right reasons and not just out of habit before I commit. Walk me through how to sanity-check this.","expected":"thinking-debiasing","acceptable":["thinking-red-team","thinking-steel-manning"],"type":"positive","note":"High-stakes decision where the goal is to counteract anchoring/status-quo distortions."}+{"id":"dual-process-trust-gut","prompt":"I have a strong gut feeling this architecture is wrong, but I can't articulate why and the proposal looks fine on paper. The decision is expensive to reverse. Should I trust the instinct or override it with the analysis?","expected":"thinking-dual-process","acceptable":["thinking-reversibility"],"type":"positive","note":"Deciding when to trust intuition vs deliberate analysis on a high-stakes call."}+{"id":"effectuation-startup-no-plan","prompt":"I'm starting a side business but the market is brand new and I genuinely can't predict demand or who the customers even are. Every business plan I write feels like fiction. How should I actually get moving with what I've got?","expected":"thinking-effectuation","acceptable":["thinking-first-principles"],"type":"positive","note":"Novel, unpredictable domain where you start from available means rather than goals."}+{"id":"feedback-loops-growth-spiral","prompt":"Our referral signups suddenly started doubling every week with no extra marketing spend, and now it's plateauing just as fast. I want to understand the underlying dynamics driving both the spike and the flattening.","expected":"thinking-feedback-loops","acceptable":["thinking-systems"],"type":"positive","note":"Reinforcing growth then a balancing limit — feedback loop dynamics."}+{"id":"fermi-capacity-estimate","prompt":"Before I provision infrastructure, roughly how many database write operations per second should I expect if we onboard a city of about a million people and each active user does a handful of actions a day? I have no real traffic data yet.","expected":"thinking-fermi-estimation","acceptable":["thinking-margin-of-safety"],"type":"positive","note":"Order-of-magnitude estimate by decomposing into estimable factors with no data."}+{"id":"first-principles-rebuild-auth","prompt":"Everyone tells me I have to use an off-the-shelf auth provider, but our requirements are weird and none of them fit cleanly. I want to ignore what everyone does and reason about what authentication actually fundamentally requires for our case.","expected":"thinking-first-principles","acceptable":["thinking-triz"],"type":"positive","note":"Questioning assumptions and rebuilding from fundamentals when convention doesn't fit."}+{"id":"five-whys-incident-postmortem","prompt":"We had a two-hour outage yesterday because a deploy went out with a bad config. I need to write the post-incident report and I want to get to the real reason this happened, not just blame the engineer who hit the button.","expected":"thinking-five-whys-plus","acceptable":["thinking-kepner-tregoe","thinking-scientific-method"],"type":"positive","note":"Incident root-cause analysis with bias guards against blaming the proximate cause."}+{"id":"inversion-launch-plan","prompt":"We're planning the public launch of our new mobile app next month. I want to put together a solid plan, and I'm particularly worried about all the ways this could blow up in our faces on launch day.","expected":"thinking-inversion","acceptable":["thinking-pre-mortem","thinking-red-team"],"type":"positive","note":"Planning by enumerating failure paths and systematically avoiding them."}+{"id":"jtbd-feature-prioritization","prompt":"Our note-taking app has tons of features but engagement is flat. People sign up and drift away. I don't think we actually understand what users are really trying to accomplish when they reach for our product. How do I dig into that?","expected":"thinking-jobs-to-be-done","acceptable":["thinking-socratic"],"type":"positive","note":"Understanding the underlying progress/job users are hiring the product for."}+{"id":"kepner-tregoe-vendor-matrix","prompt":"We're choosing between four message-queue technologies for a critical pipeline. There are a dozen competing factors — throughput, ops burden, cost, team familiarity, vendor risk. I need a rigorous way to weigh them all and defend the choice to the board.","expected":"thinking-kepner-tregoe","acceptable":["thinking-debiasing"],"type":"positive","note":"Structured multi-criteria decision analysis for a high-stakes engineering choice."}+{"id":"leverage-points-where-to-focus","prompt":"Our whole onboarding system feels broken in a hundred small ways and I have limited engineering time. Instead of fixing everything, where's the one or two places I could intervene that would actually shift the whole system the most?","expected":"thinking-leverage-points","acceptable":["thinking-theory-of-constraints","thinking-systems"],"type":"positive","note":"Finding where a small change yields the largest systemic effect."}+{"id":"lindy-framework-longevity","prompt":"I'm picking a frontend framework for a project we'll have to maintain for the next decade. One option is the new hotness everyone's tweeting about; the other has been around forever and is kind of boring. How should I think about which will still be around in ten years?","expected":"thinking-lindy-effect","acceptable":["thinking-reversibility","thinking-margin-of-safety"],"type":"positive","note":"Predicting tool longevity based on how long it has already survived."}+{"id":"map-territory-monitoring-lies","prompt":"Our dashboards all say the service is healthy and latency is fine, but customers keep emailing that the app feels slow and broken. Our metrics and what users experience don't line up at all. Where do I even start?","expected":"thinking-map-territory","acceptable":["thinking-systems","thinking-scientific-method"],"type":"positive","note":"The model/dashboard diverges from the real territory users experience."}+{"id":"margin-of-safety-deadline","prompt":"My boss wants me to commit to a delivery date for a feature with a lot of unknowns and integration work I can't fully scope yet. My honest estimate is six weeks. What date should I actually put on the calendar?","expected":"thinking-margin-of-safety","acceptable":["thinking-probabilistic","thinking-fermi-estimation"],"type":"positive","note":"Building a buffer for unknown unknowns into a commitment."}+{"id":"model-combination-messy-strategy","prompt":"I'm facing a genuinely tangled decision about whether to rebuild our platform: there's technical risk, team morale, competitive timing, and budget all wrapped together. One way of looking at it keeps leaving me with blind spots. How can I analyze something this multifaceted thoroughly?","expected":"thinking-model-combination","acceptable":["thinking-model-router","thinking-systems"],"type":"positive","note":"Complex high-stakes problem that needs multiple lenses to avoid blind spots."}+{"id":"model-router-which-approach","prompt":"I've got a gnarly engineering decision in front of me and I honestly don't know what the best way to even reason about it is. Can you help me figure out the right way to approach thinking about this?","expected":"thinking-model-router","acceptable":["thinking-model-selection"],"type":"positive","note":"User explicitly needs help choosing how to reason — the router's entry point."}+{"id":"model-selection-new-problem-type","prompt":"I keep reaching for the same problem-solving playbook out of habit, and it's not working on this new class of problem. How do I match my approach to the kind of problem I'm actually dealing with this time?","expected":"thinking-model-selection","acceptable":["thinking-model-router","thinking-cynefin"],"type":"positive","note":"Matching a reasoning tool to the problem when the usual approach fails."}+{"id":"occams-razor-debug-explanation","prompt":"A handful of users are seeing stale data. One theory is a complicated race condition across three services plus a CDN edge bug; another is just that we forgot to bust a cache key. Which should I chase first?","expected":"thinking-occams-razor","acceptable":["thinking-scientific-method"],"type":"positive","note":"Preferring the explanation with the fewest assumptions when debugging."}+{"id":"ooda-live-incident","prompt":"We're in the middle of an active outage right now, the situation keeps shifting every few minutes as we get new alerts, and I'm leading the response. How do I stay on top of this and keep making good calls fast?","expected":"thinking-ooda","acceptable":["thinking-cynefin"],"type":"positive","note":"Rapid, adaptive decision cycle for a fast-changing live situation."}+{"id":"opportunity-cost-build-vs-buy","prompt":"My team could spend the next quarter building our own analytics pipeline, or we could pay for a SaaS tool and spend that quarter on our core product instead. The build is cheaper on paper. How should I think about which is really the better use of us?","expected":"thinking-opportunity-cost","acceptable":["thinking-reversibility"],"type":"positive","note":"Evaluating a choice by what's given up, not just direct cost — build vs buy."}+{"id":"pre-mortem-project-kickoff","prompt":"We're kicking off a six-month replatforming project tomorrow and everyone's really optimistic. Before we lock in the plan, I'd like the team to soberly surface the risks we might be glossing over in all the excitement.","expected":"thinking-pre-mortem","acceptable":["thinking-inversion","thinking-red-team"],"type":"positive","note":"At kickoff, surfacing failure causes before optimism hides them."}+{"id":"probabilistic-estimate-range","prompt":"My PM keeps asking me for a single date when the migration will be done, and I keep giving one and being wrong. I want to communicate my uncertainty honestly and get better at predicting these over time. How should I frame my estimates?","expected":"thinking-probabilistic","acceptable":["thinking-margin-of-safety","thinking-bayesian"],"type":"positive","note":"Expressing confidence as ranges and improving calibration over time."}+{"id":"red-team-prelaunch-security","prompt":"We're two weeks from launching a public API that handles user payments. Before it goes live I want someone to think like an attacker and try to poke holes in our design and find the ways it could be abused.","expected":"thinking-red-team","acceptable":["thinking-pre-mortem","thinking-inversion"],"type":"positive","note":"Deliberately attacking your own system to find weaknesses pre-launch."}+{"id":"regret-minimization-job-offer","prompt":"I have a stable, well-paid senior role, but I've been offered a much riskier position at an early startup doing work I'm passionate about. I'm torn and afraid of making the wrong call. How do I think about this from the perspective of who I want to be?","expected":"thinking-regret-minimization","acceptable":["thinking-circle-of-competence","thinking-reversibility"],"type":"positive","note":"Career decision framed around future-self regret."}+{"id":"reversibility-schema-change","prompt":"We're debating whether to switch our primary database from Postgres to a managed NoSQL store. Some folks want to just decide in the standup; others want a month-long evaluation. How much process does a decision like this actually warrant?","expected":"thinking-reversibility","acceptable":["thinking-opportunity-cost"],"type":"positive","note":"Matching decision rigor to how hard the choice is to reverse."}+{"id":"scientific-method-perf-investigation","prompt":"Our API p99 latency tripled last Tuesday and I have no idea why. There are several plausible causes. I want to investigate this in a disciplined way instead of randomly changing things and hoping.","expected":"thinking-scientific-method","acceptable":["thinking-five-whys-plus","thinking-occams-razor"],"type":"positive","note":"Hypothesis-test-revise approach to a performance investigation."}+{"id":"second-order-rate-limit-policy","prompt":"We're thinking about adding aggressive rate limiting to stop a few abusive accounts. It seems like a clean fix, but I want to think through how this might ripple out and affect our legitimate power users and integrations down the line.","expected":"thinking-second-order","acceptable":["thinking-systems","thinking-pre-mortem"],"type":"positive","note":"Reasoning about downstream and unintended consequences of a policy change."}+{"id":"socratic-vague-requirements","prompt":"A stakeholder asked me to build a reporting feature but the request is super vague and I suspect they haven't fully thought through what they actually need. How do I draw out the real requirements without just building the wrong thing?","expected":"thinking-socratic","acceptable":["thinking-jobs-to-be-done","thinking-first-principles"],"type":"positive","note":"Using systematic questioning to surface hidden requirements and assumptions."}+{"id":"steel-manning-design-review","prompt":"I'm convinced we should go with the microservices approach and a colleague is pushing monolith. Before I write my recommendation I want to make sure I'm genuinely engaging with the best version of their argument and not a strawman.","expected":"thinking-steel-manning","acceptable":["thinking-debiasing","thinking-red-team"],"type":"positive","note":"Engaging the strongest form of the opposing position in a design review."}+{"id":"systems-emergent-behavior","prompt":"Our distributed job system occasionally grinds to a halt even though no single service is overloaded and every component looks healthy on its own. The weird behavior only shows up when everything's running together. Help me make sense of it.","expected":"thinking-systems","acceptable":["thinking-feedback-loops","thinking-map-territory"],"type":"positive","note":"Emergent, non-linear behavior arising from component interactions."}+{"id":"theory-of-constraints-pipeline-throughput","prompt":"Our CI pipeline takes 40 minutes. I've been optimizing the test parallelization and the Docker layer caching for weeks but the total time barely moves. I feel like I'm polishing the wrong things. Where should I actually look?","expected":"thinking-theory-of-constraints","acceptable":["thinking-leverage-points"],"type":"positive","note":"Throughput won't improve until the actual bottleneck is found and addressed."}+{"id":"thought-experiment-scale-edge","prompt":"We can't actually load-test against ten million concurrent users, and the architecture review is tomorrow. I want to reason through what would happen to this design if usage suddenly jumped a hundredfold, purely as a hypothetical.","expected":"thinking-thought-experiment","acceptable":["thinking-fermi-estimation","thinking-pre-mortem"],"type":"positive","note":"Testing a design through a hypothetical scenario when empirical testing is impractical."}+{"id":"triz-contradiction-fast-and-safe","prompt":"Product wants deploys to be instant for fast iteration, but compliance wants every change to go through a slow multi-stage approval. These two requirements seem fundamentally at odds and I'm stuck trying to satisfy both. Is there a clever way out?","expected":"thinking-triz","acceptable":["thinking-first-principles","thinking-inversion"],"type":"positive","note":"Resolving a technical contradiction where two requirements seem mutually exclusive."}+{"id":"via-negativa-bloated-product","prompt":"Our settings page has grown to 60 toggles over the years and it's overwhelming for everyone. My instinct is to keep adding 'smart defaults' on top, but I wonder if the answer is the opposite. How should I approach cleaning this up?","expected":"thinking-via-negativa","acceptable":["thinking-occams-razor","thinking-jobs-to-be-done"],"type":"positive","note":"Improvement through removal and subtraction rather than addition."}+{"id":"neg-rename-variable","prompt":"Can you rename the variable `usrCnt` to `userCount` everywhere it appears in this repo?","expected":null,"acceptable":[],"type":"negative","note":"Mechanical refactor — no mental model needed."}+{"id":"neg-bash-for-loop","prompt":"What's the bash syntax for a for loop that iterates over the files in a directory?","expected":null,"acceptable":[],"type":"negative","note":"Routine syntax lookup."}+{"id":"neg-fix-typo","prompt":"There's a typo in the README — 'recieve' should be 'receive'. Can you fix it?","expected":null,"acceptable":[],"type":"negative","note":"Trivial text fix."}+{"id":"neg-add-console-log","prompt":"Add a console.log right before the return statement in the `handleSubmit` function so I can see the payload.","expected":null,"acceptable":[],"type":"negative","note":"Trivial code edit."}+{"id":"neg-format-json","prompt":"Can you pretty-print and format this JSON blob for me with two-space indentation?","expected":null,"acceptable":[],"type":"negative","note":"Mechanical formatting task."}+{"id":"neg-git-stash","prompt":"What does `git stash` actually do, and how do I get my changes back afterward?","expected":null,"acceptable":[],"type":"negative","note":"Factual tool-usage question."}+{"id":"neg-convert-async","prompt":"Convert this callback-based function to use async/await instead.","expected":null,"acceptable":[],"type":"negative","note":"Routine code transformation."}+{"id":"neg-email-regex","prompt":"Write me a regex that matches a basic email address.","expected":null,"acceptable":[],"type":"negative","note":"Routine pattern-writing task."}+{"id":"neg-css-center-div","prompt":"How do I vertically and horizontally center a div using flexbox?","expected":null,"acceptable":[],"type":"negative","note":"Routine CSS how-to."}+{"id":"neg-install-package","prompt":"What's the npm command to install lodash as a dev dependency?","expected":null,"acceptable":[],"type":"negative","note":"Trivial command lookup."}+{"id":"neg-sql-join","prompt":"Write a SQL query that joins the orders table to the customers table on customer_id and returns the customer name and order total.","expected":null,"acceptable":[],"type":"negative","note":"Straightforward query writing."}+{"id":"neg-sort-array","prompt":"How do I sort an array of objects by their `createdAt` field in descending order in JavaScript?","expected":null,"acceptable":[],"type":"negative","note":"Routine coding how-to."}+{"id":"neg-docker-port","prompt":"Add a port mapping so the container exposes 8080 to the host in this docker-compose file.","expected":null,"acceptable":[],"type":"negative","note":"Mechanical config edit."}+{"id":"neg-env-var","prompt":"How do I read an environment variable in a Node.js script?","expected":null,"acceptable":[],"type":"negative","note":"Routine API question."}+{"id":"neg-git-undo-commit","prompt":"I just committed to the wrong branch. How do I undo the last commit but keep my changes staged?","expected":null,"acceptable":[],"type":"negative","note":"Routine git how-to."}+{"id":"neg-update-deps","prompt":"Bump the version of the express dependency to the latest 4.x in package.json.","expected":null,"acceptable":[],"type":"negative","note":"Mechanical dependency edit."}+{"id":"ambig-incident-rootcause","prompt":"We had a payment-processing failure that affected about 3% of checkouts for an hour last night. I need to figure out the underlying cause and write it up so it doesn't happen again.","expected":"thinking-five-whys-plus","acceptable":["thinking-scientific-method","thinking-kepner-tregoe","thinking-systems"],"type":"ambiguous","note":"Post-incident root cause — fits 5-whys, scientific method, KT, or systems."}+{"id":"ambig-pick-database","prompt":"We need to choose a database for a new service that we'll be stuck with for a long time, and I want to make a smart, well-reasoned choice we won't regret.","expected":"thinking-reversibility","acceptable":["thinking-kepner-tregoe","thinking-lindy-effect","thinking-opportunity-cost"],"type":"ambiguous","note":"Long-lived irreversible tech choice — reversibility, KT, Lindy, or opportunity cost all defensible."}+{"id":"ambig-feature-or-not","prompt":"We have engineering capacity for exactly one big feature next quarter and three teams are lobbying hard for theirs. How do I decide which one actually deserves the slot?","expected":"thinking-opportunity-cost","acceptable":["thinking-jobs-to-be-done","thinking-kepner-tregoe","thinking-theory-of-constraints"],"type":"ambiguous","note":"Prioritization under scarcity — opportunity cost, JTBD, or KT all apply."}+{"id":"ambig-slow-feature-adoption","prompt":"We shipped a feature we were sure people wanted and almost nobody is using it. I want to understand why and decide what to do next.","expected":"thinking-jobs-to-be-done","acceptable":["thinking-scientific-method","thinking-five-whys-plus","thinking-socratic"],"type":"ambiguous","note":"Diagnosing failed adoption — could be JTBD, hypothesis-testing, or root-cause."}+{"id":"ambig-scaling-risks","prompt":"We're about to 10x our user base after a marketing push and I'm nervous about what's going to break. Help me get ahead of it.","expected":"thinking-pre-mortem","acceptable":["thinking-inversion","thinking-fermi-estimation","thinking-margin-of-safety","thinking-red-team"],"type":"ambiguous","note":"Anticipating failure under growth — pre-mortem, inversion, capacity estimate, or buffer."}+{"id":"ambig-which-bug-cause","prompt":"There are five different theories floating around the team about why the export feature corrupts large files. I need to cut through the noise and figure out which is right.","expected":"thinking-scientific-method","acceptable":["thinking-occams-razor","thinking-five-whys-plus"],"type":"ambiguous","note":"Competing debugging hypotheses — scientific method, Occam, or 5-whys."}+{"id":"ambig-tech-debt-tradeoff","prompt":"Do we pause feature work for a month to pay down our worst tech debt, or keep shipping and live with it? I keep going back and forth.","expected":"thinking-opportunity-cost","acceptable":["thinking-second-order","thinking-theory-of-constraints","thinking-reversibility"],"type":"ambiguous","note":"Tech-debt tradeoff — opportunity cost, second-order effects, or constraint."}+{"id":"ambig-org-recurring-conflict","prompt":"Engineering and product have been at each other's throats over the same roadmap disagreement for a year. Every truce falls apart within weeks. How do I actually break this cycle?","expected":"thinking-archetypes","acceptable":["thinking-systems","thinking-feedback-loops","thinking-leverage-points"],"type":"ambiguous","note":"Recurring organizational conflict — archetypes, systems, or feedback loops."}+{"id":"ambig-confidence-in-estimate","prompt":"How confident should I be that we'll hit the Q3 launch date given everything we know right now, and how should I keep updating that as we go?","expected":"thinking-probabilistic","acceptable":["thinking-bayesian","thinking-margin-of-safety"],"type":"ambiguous","note":"Calibrated confidence that updates over time — probabilistic or Bayesian."}+{"id":"ambig-simplify-architecture","prompt":"Our service mesh has gotten incredibly complicated and most of the moving parts may not be earning their keep. I want to make the whole thing simpler and easier to reason about.","expected":"thinking-via-negativa","acceptable":["thinking-occams-razor","thinking-leverage-points","thinking-systems"],"type":"ambiguous","note":"Simplification — removal (via negativa), parsimony, or systemic leverage."}+{"id":"ambig-bottleneck-or-leverage","prompt":"Our sales funnel converts terribly and I have one engineer for two weeks. I want to find the single change that would move the numbers the most.","expected":"thinking-theory-of-constraints","acceptable":["thinking-leverage-points","thinking-feedback-loops"],"type":"ambiguous","note":"Finding the highest-impact single intervention — constraint or leverage point."}+{"id":"ambig-risky-pivot","prompt":"Our current product is doing okay but plateauing, and there's a chance to pivot to something with much bigger upside but real downside risk. I don't want to look back in five years and wish we'd been braver — or that we'd been smarter.","expected":"thinking-regret-minimization","acceptable":["thinking-effectuation","thinking-second-order","thinking-reversibility"],"type":"ambiguous","note":"Strategic pivot weighing future regret, irreversibility, and uncertainty."}+{"id":"ambig-unexpected-metric-drop","prompt":"Daily active users dropped 15% over the weekend and nobody changed anything we know of. Marketing blames the product, product blames an algorithm tweak, and I need to get to the bottom of it.","expected":"thinking-scientific-method","acceptable":["thinking-five-whys-plus","thinking-bayesian","thinking-systems"],"type":"ambiguous","note":"Surprising metric drop with competing explanations — investigation or root-cause."}+{"id":"ambig-overconfident-plan","prompt":"My team is really confident about this Q4 plan and honestly so am I, which is exactly why it's making me a little uneasy. Can you help me pressure-test our thinking before we commit?","expected":"thinking-debiasing","acceptable":["thinking-pre-mortem","thinking-red-team","thinking-steel-manning"],"type":"ambiguous","note":"Guarding against overconfidence in a plan — debiasing, pre-mortem, or red team."}+{"id":"ambig-defer-to-expert","prompt":"A friend wants me to invest a chunk of my savings in their biotech startup. I understand software but I know nothing about drug development or that market. How should I think about whether to do this?","expected":"thinking-circle-of-competence","acceptable":["thinking-regret-minimization","thinking-margin-of-safety","thinking-bayesian"],"type":"ambiguous","note":"Decision outside one's domain — competence boundary, regret, or downside buffer."}+{"id":"ambig-design-debate","prompt":"My team is split between two API designs and the debate has gone in circles for days. I want a fair way to settle which one is actually better.","expected":"thinking-steel-manning","acceptable":["thinking-kepner-tregoe","thinking-thought-experiment","thinking-debiasing"],"type":"ambiguous","note":"Settling a stalled design debate fairly — steel-man, structured criteria, or scenario test."}