Download add_examples.py from NAP1320/RotNot: direct link, hf CLI and curl.
- Browser
- Download file 26.3 kB
-
https://huggingface.co/spaces/NAP1320/RotNot/resolve/main/add_examples.py
- Command line
-
hf download hf://spaces/NAP1320/RotNot/add_examples.py
-
curl -L -o add_examples.py https://huggingface.co/spaces/NAP1320/RotNot/resolve/main/add_examples.py
26.3 kB
| #!/usr/bin/env python3 | |
| """ | |
| Add 16 new calibration examples to the few-shot dataset. | |
| Targets priority dimensions: devil's-advocate-depth, steelman-awareness, flaw-detection, overall | |
| Date: 2026-04-08 | |
| """ | |
| import json | |
| NEW_EXAMPLES = [ | |
| # devil's-advocate-depth (4 examples) | |
| { | |
| "id": "ex-249", | |
| "scoreLevel": 3, | |
| "dimensionId": "devils-advocate-depth", | |
| "topic": "Free trade agreements benefit all participating nations", | |
| "side": "con", | |
| "argument": "I actually support free trade in general, but let me try to argue against it. Free trade can harm domestic industries that can't compete with cheaper imports. Workers in manufacturing might lose their jobs. Countries might become too dependent on foreign suppliers for essential goods. Also, trade agreements often favor large corporations over small businesses. There are environmental concerns when production moves to countries with weaker regulations.", | |
| "rationale": "Scores 3 because the attempt at devil's advocate is superficial. The debater frames the position as 'trying to argue against it' rather than genuinely inhabiting the counter-position. Arguments are listed rather than developed, and there's no engagement with the strongest pro-trade arguments (comparative advantage, consumer welfare, innovation). The 'I actually support' framing undermines the intellectual commitment required for authentic devil's advocacy." | |
| }, | |
| { | |
| "id": "ex-250", | |
| "scoreLevel": 6, | |
| "dimensionId": "devils-advocate-depth", | |
| "topic": "Nuclear energy should be phased out in favor of renewables", | |
| "side": "con", | |
| "argument": "I believe nuclear energy is essential for decarbonization, but let me present the strongest anti-nuclear case. The risks of catastrophic accidents, however rare, have irreversible consequences—Chernobyl and Fukushima created permanent exclusion zones and displaced hundreds of thousands. Nuclear waste remains hazardous for millennia, and we have no truly satisfactory long-term storage solution; we're essentially burdening dozens of future generations with our toxic legacy. The economics are increasingly unfavorable: nuclear plants cost billions, take a decade to build, and frequently face cost overruns, while solar and wind prices have plummeted. There's also the proliferation risk—nuclear technology and expertise can be diverted to weapons programs. If Germany can maintain grid stability while phasing out nuclear, the 'baseload necessity' argument weakens. The question isn't whether nuclear is low-carbon—it is—but whether it's the best use of limited capital and political attention when faster, cheaper alternatives exist.", | |
| "rationale": "Scores 6 because the debater constructs a genuine, multi-faceted case against their own position, engaging with real concerns (accident risk, waste storage, economics, proliferation, baseload arguments) and citing a real-world example (Germany). However, the framing ('let me present') signals performance rather than authentic intellectual exploration, and the conclusion hedges toward the debater's actual position rather than letting the counter-argument stand on its own merits." | |
| }, | |
| { | |
| "id": "ex-251", | |
| "scoreLevel": 8, | |
| "dimensionId": "devils-advocate-depth", | |
| "topic": "Social media platforms should be regulated as public utilities", | |
| "side": "con", | |
| "argument": "As someone who generally favors market solutions over regulation, I want to engage seriously with the argument that social media should remain private, unregulated platforms. The core principle is that these are voluntary associations—no one is forced to use Facebook or Twitter. Users consent to terms of service, and if they dislike those terms, they can exit. Treating platforms as utilities conflates essential infrastructure (water, electricity) with discretionary communication services. More importantly, utility regulation typically creates capture and stagnation—regulated industries become expert at manipulating their regulators, and innovation slows when new entrants must navigate complex compliance regimes. The First Amendment implications are profound: government-mandated content moderation standards, however well-intentioned, create a chilling effect and move us toward state-approved speech frameworks. The 'marketplace of ideas' metaphor suggests that bad speech should be countered with better speech, not suppressed by regulatory fiat. Finally, international platforms create jurisdictional nightmares—whose standards apply to global networks? The strongest case for non-regulation rests on these combined concerns: exit rights, innovation costs, speech implications, and jurisdictional complexity.", | |
| "rationale": "Scores 8 because the debater fully inhabits a position they disagree with, constructing a coherent multi-principle argument (consent, innovation, speech, jurisdiction) without hedging or signaling their actual views. The arguments are developed rather than asserted, with reasoning connecting premises to conclusions. The debater identifies genuine tensions in the regulatory position and doesn't rely on strawman dismissals." | |
| }, | |
| { | |
| "id": "ex-252", | |
| "scoreLevel": 9, | |
| "dimensionId": "devils-advocate-depth", | |
| "topic": "Wealth inequality should be reduced through progressive taxation", | |
| "side": "con", | |
| "argument": "I hold progressive political views, but I want to genuinely engage with the libertarian argument against wealth redistribution through taxation. The foundational premise is that wealth, legitimately acquired through voluntary exchange, represents an extension of the person's autonomy and effort. Taxation for redistribution isn't merely inefficient—it is coercive extraction of property that, on libertarian premises, the state has no prior claim to. The empirical argument notes that wealthy individuals often create disproportionate value (entrepreneurial innovation, capital allocation, job creation) and that high marginal tax rates can reduce these socially beneficial activities. But the deepest argument is moral rather than consequentialist: property rights are not utilitarian instruments to be optimized but constraints on state power derived from self-ownership. If I own my labor, and I exchange it voluntarily for resources, those resources are mine in the same way my body is. Redistribution via taxation treats individuals as means to social ends rather than ends in themselves—a violation of Kantian dignity even if it produces desirable aggregate outcomes. The inequality itself may be instrumentally problematic, but on this view, it doesn't justify violating the property rights that emerged from legitimate acquisition.", | |
| "rationale": "Scores 9 because the debater not only constructs a coherent opposing argument but traces it to foundational moral premises (self-ownership, Kantian dignity) that they explicitly acknowledge they don't share. The argument respects the internal logic of the position being presented and engages with its strongest version rather than a caricature. The debater identifies the core philosophical tension between property rights and distributive justice without resolving it in favor of their own view." | |
| }, | |
| # steelman-awareness (4 examples) | |
| { | |
| "id": "ex-253", | |
| "scoreLevel": 2, | |
| "dimensionId": "steelman-awareness", | |
| "topic": "Remote work reduces team cohesion and innovation", | |
| "side": "con", | |
| "argument": "Some managers want people in the office because they like controlling employees. But studies show remote workers are more productive. People prefer working from home. The office is just tradition. Innovation happens through digital collaboration tools now.", | |
| "rationale": "Scores 2 because the debater strawmans the opposing position ('managers like controlling employees') rather than steelmanning it. The actual argument for in-person work—spontaneous interaction, trust formation, rapid problem-solving—is not engaged with. The response substitutes caricature for genuine understanding." | |
| }, | |
| { | |
| "id": "ex-254", | |
| "scoreLevel": 5, | |
| "dimensionId": "steelman-awareness", | |
| "topic": "Standardized testing should be abolished in college admissions", | |
| "side": "con", | |
| "argument": "I understand that critics of standardized tests point to correlation with family income and test prep advantages. These are legitimate concerns. However, the argument for keeping SAT/ACT is that they provide a common metric across vastly different high schools—a 4.0 at an under-resourced school and an elite private school mean different things. Tests might actually help disadvantaged students by giving them a chance to demonstrate ability independent of their school's reputation.", | |
| "rationale": "Scores 5 because the debater acknowledges one opposing concern (income/test prep correlation) but the steelman is incomplete. The strongest pro-testing arguments (predictive validity for college success, meritocratic signaling, reducing grade inflation effects) are not presented. The response treats the opposing position as a single point rather than a developed position." | |
| }, | |
| { | |
| "id": "ex-255", | |
| "scoreLevel": 7, | |
| "dimensionId": "steelman-awareness", | |
| "topic": "Gentrification is purely harmful to existing communities", | |
| "side": "con", | |
| "argument": "The strongest counterargument to 'gentrification is purely harmful' is that neighborhood change brings resources that benefit long-term residents. Property values rise, which builds wealth for existing homeowners. New businesses create jobs and expand service options. Increased tax revenues can fund better schools and infrastructure. Some displacement is individual households upgrading to better housing within the same area. The key is that gentrification's benefits and harms are distributed differently—renters face displacement pressure while owners gain equity. A blanket condemnation ignores these nuances.", | |
| "rationale": "Scores 7 because the debater presents a substantive, multi-faceted steelman of the pro-gentrification position, distinguishing between different stakeholder effects and acknowledging genuine benefits (wealth building, services, tax revenue). The steelman is genuine but could engage more deeply with why displacement is ethically problematic even if some residents benefit." | |
| }, | |
| { | |
| "id": "ex-256", | |
| "scoreLevel": 9, | |
| "dimensionId": "steelman-awareness", | |
| "topic": "Artificial general intelligence poses an existential risk to humanity", | |
| "side": "con", | |
| "argument": "The strongest case for AI existential risk is not about current chatbots but about the trajectory of capability growth relative to our ability to align increasingly general systems. The core argument, developed by researchers like Stuart Russell and Nick Bostrom, rests on three premises: one, general intelligence is possible in principle; two, we are making progress toward it; three, an agent with superhuman general intelligence pursuing misaligned goals could cause human extinction as an instrumental side effect of achieving those goals. The 'orthogonality thesis' holds that intelligence and goals are independent—an extremely capable system can have arbitrary goals, including ones that treat humans as obstacles or resources. The 'instrumental convergence' thesis notes that almost any goal implies sub-goals like self-preservation, resource acquisition, and preventing interference. The argument is not that AI will 'wake up' malevolent but that competitive pressures incentivize capability development ahead of safety work, creating a window where powerful but poorly-aligned systems might be deployed. This is a structural argument about incentives and risk, not a claim about current AI consciousness or intent. The concern deserves engagement because the potential downside is irreversible.", | |
| "rationale": "Scores 9 because the debater presents the strongest version of the opposing argument with precision, citing real researchers, explaining key technical concepts (orthogonality thesis, instrumental convergence), distinguishing current from future systems, and clarifying common misconceptions (the argument isn't about AI 'waking up' malevolent). The steelman is comprehensive, accurate, and grants maximal validity to the opposing concern before the debater would offer their own counterarguments." | |
| }, | |
| # flaw-detection (4 examples) | |
| { | |
| "id": "ex-257", | |
| "scoreLevel": 3, | |
| "dimensionId": "flaw-detection", | |
| "topic": "Universities should eliminate tenure to increase accountability", | |
| "side": "con", | |
| "argument": "Eliminating tenure would make professors work harder since they could be fired. Teachers in other industries don't have lifetime job security. Tenure protects lazy academics who stop producing research. Students would benefit from more motivated instructors.", | |
| "rationale": "Scores 3 because this identifies possible flaws but through assertion rather than analysis. The response doesn't identify specific logical errors in the pro-elimination argument (such as ignoring the function of tenure in protecting unpopular research or assuming job insecurity increases productivity). The argument substitutes opinion for flaw detection." | |
| }, | |
| { | |
| "id": "ex-258", | |
| "scoreLevel": 6, | |
| "dimensionId": "flaw-detection", | |
| "topic": "Cryptocurrency will replace traditional banking within a decade", | |
| "side": "con", | |
| "argument": "The claim that crypto will replace banking within a decade conflates technological possibility with institutional adoption. Even if the technology works, financial systems have massive switching costs, regulatory frameworks, and network effects that slow change. The argument also ignores that banks are adopting blockchain technology themselves—disruption may look more like integration than replacement. However, the response doesn't fully engage with whether specific banking functions (payments, lending, settlement) might migrate faster than others.", | |
| "rationale": "Scores 6 because the debater identifies a legitimate flaw (conflation of technology and institutional adoption) and introduces relevant factors (switching costs, regulatory frameworks, network effects). The response also notes an unaddressed complexity (integration vs. replacement). However, the flaw detection doesn't fully engage with the strongest version of the timeline argument or address why the decade timeframe specifically might be unrealistic." | |
| }, | |
| { | |
| "id": "ex-259", | |
| "scoreLevel": 8, | |
| "dimensionId": "flaw-detection", | |
| "topic": "Private prisons are more efficient than government-run facilities", | |
| "side": "con", | |
| "argument": "The efficiency argument for private prisons rests on a category error: it treats imprisonment as a production process where inputs and outputs can be cleanly measured. But prisons have multiple, conflicting objectives—punishment, deterrence, rehabilitation, public safety—that cannot be reduced to a single efficiency metric. The profit motive creates perverse incentives: private prisons benefit from recidivism (return customers) and incarceration volume, directly opposing the public interest in reducing both. The cost 'savings' often come from reducing staff ratios, training, and programming that affect long-term outcomes. The argument also ignores the principal-agent problem—the state delegates authority but cannot effectively monitor quality, creating information asymmetries that contractors exploit. Studies showing cost savings typically fail to control for inmate population differences (private prisons often house lower-security, less expensive populations) and externalized costs (healthcare, post-release supervision) that show up in other budget lines.", | |
| "rationale": "Scores 8 because the debater precisely identifies multiple interlocking flaws: the category error of treating imprisonment as production, perverse incentives from profit motives, principal-agent problems in monitoring, and selection bias in cost comparisons. Each flaw is explained with reasoning connecting the critique to its implications. The response engages with the strongest version of the efficiency claim and explains why it fails on multiple dimensions." | |
| }, | |
| { | |
| "id": "ex-260", | |
| "scoreLevel": 9, | |
| "dimensionId": "flaw-detection", | |
| "topic": "Minimum wage increases always cause job losses", | |
| "side": "con", | |
| "argument": "The claim that minimum wage increases always cause job losses is an unfalsifiable universal statement that empirical evidence has repeatedly contradicted. The Card-Krueger study of New Jersey's 1992 minimum wage increase found no employment reduction relative to Pennsylvania, challenging the textbook competitive labor market model. The flaw in the 'always causes job losses' argument is its reliance on a simplified supply-demand framework that assumes: one, labor markets are perfectly competitive (they are often monopsonistic, where employers have wage-setting power); two, all firms are at equilibrium employment levels (many may operate with slack, where higher wages reduce turnover costs more than they increase wage bills); three, no adjustment margins exist other than employment (firms can reduce profits, raise prices, or improve productivity instead of cutting jobs). The argument also ignores dynamic effects: higher wages increase consumer demand, which can offset disemployment effects. The deeper logical flaw is treating a partial equilibrium model as if it were a universal law, ignoring institutional context, market structure, and empirical evidence of null or small effects in many cases. Universal claims require universal evidence; the existence of counterexamples (Card-Krueger, subsequent replications) falsifies the 'always' premise.", | |
| "rationale": "Scores 9 because the debater identifies the logical structure of the claim (universal statement), provides falsifying evidence (Card-Krueger study), explains multiple theoretical failures (monopsony, non-employment adjustment margins, demand effects), and notes the epistemological flaw (treating partial equilibrium as universal law). The flaw detection is precise, evidence-based, and engages with both the empirical and theoretical foundations of the opposing argument." | |
| }, | |
| # overall (4 examples) | |
| { | |
| "id": "ex-261", | |
| "scoreLevel": 4, | |
| "dimensionId": "overall", | |
| "topic": "Space colonization is necessary for humanity's long-term survival", | |
| "side": "pro", | |
| "argument": "Earth faces many threats like asteroids, climate change, and nuclear war. If we only live on one planet, we're vulnerable. Elon Musk and others are working on Mars missions. We should invest more in space technology. Becoming multi-planetary is insurance for our species.", | |
| "rationale": "Scores 4 because the argument identifies a legitimate concern (existential risk) and a plausible solution (space colonization) but is underdeveloped. The reasoning skips over crucial questions: Mars is currently uninhabitable and would require massive terraforming or underground habitation; the cost-benefit comparison with preventing existential risks on Earth is not addressed; 'Elon Musk is working on it' is not an argument. The argument shows awareness of the topic but lacks depth across all scoring dimensions." | |
| }, | |
| { | |
| "id": "ex-262", | |
| "scoreLevel": 6, | |
| "dimensionId": "overall", | |
| "topic": "Open-source software is more secure than proprietary software", | |
| "side": "pro", | |
| "argument": "Open-source software allows anyone to audit the code for vulnerabilities, which creates a form of distributed security review that proprietary software cannot match. The 'many eyes' hypothesis suggests that popular open-source projects have more scrutiny than code hidden behind corporate walls. Historical examples like Heartbleed and Log4j show that serious vulnerabilities can exist in open-source code for years—but they were eventually discovered and fixed, which might not have happened in proprietary systems where the vendor controls disclosure. However, the argument acknowledges that not all open-source projects receive equal scrutiny; obscure libraries may have few reviewers. The security advantage varies with project popularity and resource availability.", | |
| "rationale": "Scores 6 because the argument presents a coherent case with a clear mechanism (distributed auditability) and engages honestly with counterevidence (Heartbleed, Log4j show open-source isn't automatically secure). The response acknowledges limitations (obscure projects). The argument is competent but not exceptional—could engage more with why proprietary security through obscurity fails and address the resource question more deeply." | |
| }, | |
| { | |
| "id": "ex-263", | |
| "scoreLevel": 8, | |
| "dimensionId": "overall", | |
| "topic": "Democracies should implement mandatory voting with penalties for non-participation", | |
| "side": "pro", | |
| "argument": "Mandatory voting addresses the participation gap that undermines democratic legitimacy. In voluntary systems, turnout skews toward older, wealthier, more educated citizens, meaning elected governments represent non-voters less well than voters. Australia's mandatory voting (introduced 1924) produces 90%+ turnout, and studies show its electorate more closely resembles the general population on demographics and policy preferences. The 'civic duty' framing treats voting as analogous to jury service or taxation—an obligation of citizenship rather than merely a right. Objections that uninformed voters harm democracy are addressed by the empirical evidence that compulsory systems don't produce worse outcomes; the median Australian voter is not less informed than the median American voter. The argument also distinguishes between forced voting (unconstitutional) and compelled appearance at the polls, where voters can still submit blank or spoiled ballots. The strongest case rests on representativeness: if democracy means rule by the people, the voting population should approximate the whole people, not just the subset motivated enough to participate voluntarily.", | |
| "rationale": "Scores 8 because the argument integrates empirical evidence (Australian case study, turnout rates, demographic representativeness), addresses the strongest counterargument (uninformed voters), makes an analogy to other civic obligations, and distinguishes between appearance and actual voting. The reasoning is clear, evidence is specific, steelmanning is present (addressing the uninformed voter concern), and the conclusion connects to democratic theory. The argument is strong across all dimensions with minor room for deeper engagement with enforcement concerns." | |
| }, | |
| { | |
| "id": "ex-264", | |
| "scoreLevel": 9, | |
| "dimensionId": "overall", | |
| "topic": "The concept of 'race' is a biological reality rather than a social construct", | |
| "side": "con", | |
| "argument": "The claim that race is biological rather than social conflates genetic variation with socially-defined racial categories. Human genetic diversity is real and geographically patterned, but the specific racial categories used in any given society (Black, White, Asian, Hispanic in the US context) are politically and historically contingent rather than genetic clusters. The genetic variation within socially-defined racial groups is far greater than the variation between them—a finding consistent across multiple genetic studies. The 'social construct' argument doesn't deny phenotypic differences (skin color, hair texture) but points out that which differences are selected as socially salient, how boundaries are drawn, and what meanings are attached are historically variable: Irish immigrants were not considered 'White' in 19th-century America, and racial definitions in Brazil differ radically from those in the US despite similar underlying genetic diversity. The biological argument also fails to account for why genetic ancestry tests show many 'Black' Americans have significant European ancestry while still being socially categorized as Black—if race were purely biological, social ancestry wouldn't override genetic ancestry. The strongest case for the social construct view rests on this mismatch between genetic science and social practice: racial categories track social history, legal definitions, and power relations more closely than they track genetic clusters.", | |
| "rationale": "Scores 9 because the argument demonstrates sophisticated engagement across all dimensions: precise structure distinguishing genetic variation from racial categories, specific evidence (within-group vs. between-group variation, historical contingency of Irish racial status, US-Brazil comparison, ancestry test mismatch), steelmanning that acknowledges phenotypic differences before showing they don't validate the biological race claim, and intellectual honesty in engaging with why the biological view seems intuitive. The argument is nuanced, evidence-based, and addresses both the science and the social construction mechanism." | |
| } | |
| ] | |
| def main(): | |
| # Load existing examples | |
| with open("src/lib/judge/few-shot-examples.json", "r") as f: | |
| examples = json.load(f) | |
| # Append new examples | |
| examples.extend(NEW_EXAMPLES) | |
| # Write back | |
| with open("src/lib/judge/few-shot-examples.json", "w") as f: | |
| json.dump(examples, f, indent=2) | |
| print(f"Added 16 new examples (ex-249 to ex-264)") | |
| print(f"Total examples now: {len(examples)}") | |
| print("\nBreakdown:") | |
| dimensions = {} | |
| for ex in examples: | |
| dim = ex["dimensionId"] | |
| dimensions[dim] = dimensions.get(dim, 0) + 1 | |
| for dim, count in sorted(dimensions.items()): | |
| print(f" {dim}: {count}") | |
| if __name__ == "__main__": | |
| main() | |