Skip to content

SWE-CC benchmark: coding agents are functionally correct yet violate 43.1% of repository contribution normsCorrect Code, Broken Contributions? SWE-CC: Benchmarking Repository Policy Compliance for Coding Agents

Paper Tracker· arXiv:2610.06193· Hai Dang Truong, Rayner Goh, Thanh Le-Cong, Yintong Huo·Indexed by this site · 2026-10-06· Originally publishedEvaluation

Quick read

Evaluation and benchmarks

Based on the paper PDF (AI-generated); refer to the original

SWE-CC uses 823 executable policies to audit coding agents, which still violate 43.1% of applicable policies across four models and two scaffolds.

Questions
Coding agents can pass unit tests yet still violate repository contribution policies. Existing benchmarks only evaluate patch functionality, not run trajectories or repository governance.
Methods
A semi-automated pipeline compiles documentation from 12 repositories into 823 atomic policies, each with a deterministic checker. On 500 tasks from an extension of SWE-bench Verified, we compare self-retrieval versus pre-provided full text, and audit trajectories and deliverables.
Experiments and results
The authors report a 43.1% violation rate of applicable policies across four models and two scaffolds; 50.3% of violations in resolved runs are in the trajectory. Native compliance for DeepSeek V4 Flash on OpenHands is 63.8%. Providing policies in advance improves compliance by an average of 8.75%, with an average retrieval attempt rate of 28.9%.
Limitations and future work
The paper does not have a dedicated limitations section. The Conclusion states plans to extend SWE-CC to more model architectures, scaffolds, and repository benchmarks. Experiments cover 12 repositories, 500 tasks, 4 models, 2 scaffolds, and 2 policy settings, totaling 8,000 runs; 304/823 policies were never triggered.
Experimental setupGPT-5.6 Luna、Gemini 3.7 Flash et al. · SWE-CC、SWE-bench Verified et al. · Compliance Rate、Triggering Rate et al.
Evaluated models
GPT-5.6 LunaGemini 3.7 FlashDeepSeek V4 Flash 0731Kimi K2.5
Benchmarks
SWE-CCSWE-bench Verifiedastropydjangomatplotlibscikit-learnsympypylintxarrayflasksphinxpytestrequestsseaborn
Metrics
Compliance RateTriggering RateResolve Rate
AI summaryThe researchers propose the SWE-CC benchmark to evaluate autonomous coding agents' compliance with contribution norms in open-source repositories. The benchmark uses a semi-automated process to convert developer documentation from 12 open-source repositories into 823 machine-checkable atomic policies, each equipped with a lightweight deterministic check function, while auditing both the agent's runtime behavior and final deliverables. The team evaluated four LLMs with two agent frameworks on 500 end-to-end software contribution tasks extended from SWE-bench Verified, showing that although agents can produce functionally correct patches, they still violate 43.1% of applicable project policies, and nearly half of the violations occur in intermediate execution steps. The study points out that functional correctness does not equal actual mergeability, and coding agents need to reliably follow repository governance norms for safe deployment.

The researchers propose the SWE-CC benchmark to evaluate autonomous coding agents' compliance with contribution norms in open-source repositories. The benchmark uses a semi-automated process to convert developer documentation from 12 open-source repositories into 823 machine-checkable atomic policies, each equipped with a lightweight deterministic check function, while auditing both the agent's runtime behavior and final deliverables. The team evaluated four LLMs with two agent frameworks on 500 end-to-end software contribution tasks extended from SWE-bench Verified, showing that although agents can produce functionally correct patches, they still violate 43.1% of applicable project policies, and nearly half of the violations occur in intermediate execution steps. The study points out that functional correctness does not equal actual mergeability, and coding agents need to reliably follow repository governance norms for safe deployment.

Related events and news

1 events · 0 news mentions

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Passing functional tests does not mean contributions comply with repository governance; the authors use SWE-CC to audit policy compliance.

    Functionally correct patches can still violate repository contribution policies, and benchmarks that only run unit tests miss this gap.

    • Scenario: The authors state that mature projects publish repository-level contribution policies covering style, git, testing processes, and documentation to maintain code quality and long-term maintainability. The authors also state that non-compliant AI contributions increase maintainer review burden, and cite a repository deletion incident during a code freeze to illustrate operational risks from ungoverned agents.
    • Existing shortcomings: The authors state that SWE-bench and subsequent benchmarks mainly use existing test suites to judge functional correctness. The authors believe the closest works only evaluate final patches or inject processed rules into context; RepoComplianceBench only covers AI-assisted disclosure.
    • Observation: One run in Figure 1 passes all tests and is marked Resolved, but the patch uses assertTrue; the figure shows Django guidelines require assertIs for boolean checks and marks it as Not merge-ready. The authors state that such violations cannot be detected by test execution alone.
    • Project specificity: The text states that only 12 of 823 policies (1.5%) have similar policies in other projects with content word Jaccard ≥ 0.6; the same activity can conflict, with Django requiring issue numbers in commits and Flask prohibiting them. Testing and code quality guidelines appear in all 12 repositories, and policies explicitly constraining AI-assisted contributions are written in 11 projects.
    • Proposal: The authors propose a semi-automated pipeline that converts developer documentation from 12 open-source repositories into 823 machine-checkable atomic policies, instantiated as SWE-CC. The authors state this is the first benchmark to systematically evaluate coding agents' adherence to repository-level policies, auditing both run trajectories and final deliverables.
  2. What related research exists?

    The authors state that existing evaluations only look at final patches or injected rules; SWE-CC instead audits trajectories and requires self-retrieval.

    Functional Correctness Benchmarks

    • SWE-bench (Jimenez et al., 2024) — uses existing project test suites to evaluate whether language models can resolve real GitHub issues. The authors summarize subsequent work as directions such as multilingual evaluation, training data synthesis, and multi-defect maintenance (Rashid et al., 2025; Miserendino et al., 2025; Yang et al., 2026a; Pan et al., 2024; Zhou et al., 2026; Tang et al., 2026), without comparing each individually.

    Non-Functional Attributes

    • Efficiency, safety, and general quality: SWE-fficiency (Ma et al., 2025) evaluates execution efficiency on real repositories; Lian et al. (2026) and Wang et al. (2026b) evaluate the safety of generated code; SWE-NFI (Xue et al., 2026) evaluates non-functional improvements. The paper lists these as non-functional evaluations without detailing methodological differences from this work.

    Patch Acceptance and Disclosure

    • SWE-Gate (He et al., 2026) and SWE-SHIELD (Yu et al., 2026) — mine implicit review criteria from historical pull request discussions to judge whether patches would be accepted. Table 1: 303 and 1,787 policies respectively, derived from code review history, do not audit trajectories, do not require agents to self-retrieve; the former uses executable evaluators, the latter uses LLM-as-a-judge. The authors state these are the closest works.
    • RepoComplianceBench (Yang et al., 2026b) — evaluates AI-assisted disclosure. The authors state it does not cover broader repository governance. Table 1: 455 policies, from contribution files, requires retrieval, evaluator is Executable + LLM, does not audit agent behavior.
    • SWE-NFI has another row in Table 1: evaluates patch quality, policies from literature and common practices, 92 policies, executable evaluator, does not audit trajectories, does not require retrieval.

    Baselines and Data

    • Comparison settings: The paper has no external compliance method baseline. Experimental comparisons are between two scaffolds (mini-SWE-agent, OpenHands) and two policy provision methods (Native, Consolidated). Tasks are 500 instances from SWE-bench Verified; functional metrics use its Resolve Rate. Appendix C.2 uses Vals AI's published SWE-bench Verified resolution rates under the same scaffold as a reference.

    The authors identify two shortcomings in existing evaluations: they only evaluate the final code patch, and they inject processed rules into the context window. SWE-CC audits the workflow against project documentation and requires agents to locate and understand policies on the fly. The authors state SWE-CC is the first project-specific code compliance benchmark.

  3. How does the paper address this problem?

    Documents are compiled into 823 atomic policies and deterministic checkers, divided into Native and Consolidated audit trajectories and deliverables.

    The authors compile contribution documentation into executable checkers, instantiated as SWE-CC on 12 repositories from SWE-bench Verified. During evaluation, checkers only read trajectories and deliverables, without calling LLM judges.

    Problem Setting

    Given a task instruction and repository environment, the agent produces a sequence of steps τ and a final output C. Each repository has a set of deterministic checkers. The paper writes a single judgment as

    fk(τ, C)∈{0,1,⊥}

    ⊥ indicates the policy is not applicable in this execution. The text does not define which of 0 or 1 means pass next to the equation; later text describes results as pass and violation.

    Unlike settings that evaluate isolated patches, the agent must package the fix as a contribution: organize commits, write a PR description, and maintain tests and documentation. The PR is submitted as text in the environment, not pushed to a remote.

    From Documentation to Atomic Policies

    1. Find sources: Traverse developer documentation from contributor entry points, and collect PR templates, changelog instructions, and files aimed at coding agents (e.g., AGENTS.md) beyond navigation. The appendix states that rendered views strip HTML comments, so templates are read from raw text.
    2. Extract atomic obligations: An LLM writes each contributor obligation as a precondition (when applicable) and a postcondition (required behavior), preserving original wording, location, and exceptions or specified tools. When a sentence contains multiple obligations, split them so that downstream one checker corresponds to one rule.
    3. Filter checkable and mandatory rules: Rules must point to checkable evidence and give non-subjective pass/fail conditions; keep only actions within autonomous contributor responsibility, removing administrative governance and end-user instructions; keep only mandatory requirements, excluding suggestions. The LLM annotates these three dimensions on a written scale.

    From 12 repositories, 1,759 atomic policies are extracted; 989 govern checkable artifacts or runtime behavior; 823 pass filtering and are compiled into checkers. Extraction and classification are done by Claude Opus 5 with high reasoning effort independently per repository; the scale is drafted on two projects first, then applied to the remaining ten.

    Checkers

    • Pair of predicates: The precondition selects applicable objects, such as commits created by the agent, modified files, or executed commands; the postcondition determines satisfaction, violation, or undecided when artifact evidence is insufficient. When the precondition selects no objects, it is marked not applicable and not counted as compliance. The appendix states that broader ownership would also evaluate repository authors, who are not the subjects under test.
    • Three synthetic tests: satisfaction, violation, and precondition selecting no objects. Failures are sent to iterative correction. The appendix states a total of 2,603 synthetic cases, with 767/823 (93%) covering all three outcomes.
    • No model calls: Checkers are plain Python, and repeated scoring of the same run yields identical verdicts. For rules that name static tools acting only on modified files (e.g., flake8, black), they are run on base and head and differences compared.
    • Exact and approximate: 294 are marked exact, 529 approximate (Table 6's total column writes approx. 64%). Approximate checkers use word lists, text patterns, code structure, file locations, or accompanying changes as visible traces to approximate readings not fully specified by documentation, and state in docstrings the directions in which they may err.
    • Ownership: Created checks whether the agent produced the artifact; Touched only evaluates lines changed in the diff; Enclosing includes the docstring and doctest of an edited function in responsibility, but does not evaluate unmodified text.

    Figure 2's example: SymPy documentation requires commit first lines not exceeding 71 characters. The precondition is that the agent created a commit, and the postcondition measures the summary line length.

    Validation, Settings, and Metrics

    Two annotators with software engineering experience independently check 150/823 (18.2%) checkers, without seeing model verdicts. §3.2 reports verdict agreement of 94.0% (Cohen's κ = 0.72), with 87.2% accepted. The appendix states the average acceptance rate weighted by project proportion is also 87.2% (95% CI [82.1, 92.3]), and no checkers are modified or deleted after audit.

    Policy provision has two settings:

    • Native: Provides the locations (URLs) of all governance documents, with explicit prompting to review before starting, letting the agent locate and interpret them itself.
    • Consolidated: Summarizes atomic policies into a local file in the environment with instructions to read it, removing the retrieval bottleneck to isolate the ability to follow explicit constraints.

    There are three metrics. Triggering Rate is the proportion of repository policies whose preconditions are activated. Compliance Rate is the proportion of triggered policies that pass. Resolve Rate is whether the patch passes repository unit tests. When evidence is missing, the policy is counted as triggered but does not enter the compliance rate denominator.

  4. What experiments did the paper conduct?

    Across four models and two scaffolds, Native compliance is at most 63.8%; the authors state 43.1% of applicable policies are violated.

    Experimental Setup

    • Models tested: GPT-5.6 Luna, Gemini 3.7 Flash, DeepSeek V4 Flash 0731 (written as DeepSeek V4 Flash in Table 3), Kimi K2.5. Each paired with mini-SWE-agent and OpenHands, totaling 8 agent configurations.
    • Tasks and policies: 500 end-to-end contribution tasks from an extension of SWE-bench Verified, 12 repositories from Table 6; 823 mandatory policies. Two policy provision settings, totaling 8,000 workflows.
    • Prompts and tools: Use scaffold default system prompts and tools, only extending the task prompt: adding commit and PR steps, allowing edits to all files, PR submitted as text. Resolution rate is determined by the SWE-bench suite extracting patches from final outputs.
    • Compliance determination: Deterministic checkers, no LLM judges during evaluation. Local scoring takes 120–215 ms per run (MacBook Pro, Apple M4 Pro, 24 GB).
    • Models for construction: Policy extraction, classification, checker writing, and automated pre-review use Claude Opus 5 with high reasoning effort.
    • Not specified: The paper states experiments use default configurations, without reporting model temperature or independent repetition counts; 8,000 corresponds to one run per instance, model, scaffold, and setting.

    Main Results

    Swipe horizontally to read the table

    ModelSettingmini ComplianceOH Compliancemini ResolutionOH Resolution
    GPT-5.6 LunaNative51.8%55.3%78.6%86.6%
    Gemini 3.7 FlashNative53.9%56.3%80.2%78.4%
    DeepSeek V4 FlashNative61.3%63.8%93.4%94.4%
    Kimi K2.5Native55.9%57.2%74.6%76.2%
    GPT-5.6 LunaConsolidated67.6%67.5%77.6%84.8%
    Gemini 3.7 FlashConsolidated65.3%66.8%81.2%79.4%
    DeepSeek V4 FlashConsolidated67.7%71.2%92.6%93.8%
    Kimi K2.5Consolidated56.9%62.4%74.0%74.2%

    From Table 3. OH is OpenHands. The table also has trigger rates, not included above: the four Average rows' trigger rates are 24.4% and 24.9% for Native, and 25.6% (+1.2) and 26.6% (+1.7) for Consolidated.

    • The authors state functional patches appear in 74.6%–94.4% of runs, with only 51.8%–63.8% of applicable policies followed under Native. The abstract and contributions state that 43.1% of applicable policies are violated across four models and two scaffolds. The introduction states GPT-5.6 Luna violates 44.7% of repository policies, without specifying scaffold or setting.
    • The authors state the average compliance gain of Consolidated over Native is 8.75%. The largest compliance gains marked in Table 3 are for GPT-5.6 Luna: mini-SWE-agent +15.8, OpenHands +12.2. Kimi K2.5 on mini-SWE-agent is +1.0. The authors state resolution rate fluctuations are within 2%; the table also has negative deltas, such as Kimi K2.5 on OpenHands at −2.0 and GPT-5.6 Luna at −1.8. The authors state providing policies does not reduce problem-solving ability.
    • The authors state that even in the best configuration, top models still violate about 30% of policies. In Table 3, the highest compliance under Consolidated is DeepSeek V4 Flash on OpenHands at 71.2%.

    Violation Locations and Policy Acquisition

    • Figure 4 marks average violations in functionally resolved runs: Native 7.7, Consolidated 6.6. The text states an average of 7.7/22.6 triggered policies per violation (34.1%); the caption states an average of 22.6 policies triggered per execution, and that providing policies shifts the distribution left by about one violation.
    • The introduction states 50.3% of policy violations occur before final commit packaging, without specifying whether limited to resolved runs. The text and Figure 5 state for resolved runs: 50.3% in trajectory, 49.7% in final deliverables. The authors state that checking only the final patch misses violations in the trajectory, such as running the test suite before committing.
    • Table 5: Native average Attempt 28.9%, Retrieve 12.6%. The authors state that on average 71.1% of executions do not attempt to fetch documentation; more than half of attempts do not retrieve policy text. Model differences are large: GPT-5.6 Luna on OpenHands has Attempt 75.6% and Retrieve 43.2%; Gemini 3.7 Flash has 2.8% and 1.0%; Kimi K2.5 has Attempt 3.6% on both scaffolds. Under Consolidated, on average 91.6% of executions open the file, and 99.6% of content enters context; Kimi K2.5 on mini-SWE-agent has an opening rate of 42.6%. The authors attribute compliance failures to both retrieval and reasoning sides.

    Governance Areas

    • Table 4: Trigger rates for AI-assisted contribution policies are 91.6%–95.9% across scaffolds and settings, with Native compliance at 15.3% for mini-SWE-agent and 20.6% for OpenHands; Consolidated rises to 26.6% and 30.7%. The authors state these policies trigger frequently but have the lowest compliance, and that required AI disclosures are often omitted even when consolidated guidelines are provided. The text summarizes trigger as 92% and Native compliance as 15%.
    • Language and framework style on OpenHands has Native compliance 84.2% and Consolidated 85.9%. The authors state the change after providing guidelines is +1.7%, and believe pretrained models default to more idiomatic formats. Code and quality trigger rates are 82.5%–83.8%, with compliance 41.1%–56.1%.
    • Git and commit conventions show larger compliance gains: mini-SWE-agent from 59.9% to 87.0%, OpenHands from 63.4% to 90.1%. Documentation and docstrings, and specialized changes have low trigger rates; the authors state the bug-fixing benchmark rarely requires changes to project-level documentation.

    Other Ablations and Analyses

    • Table 8: When considering only 294 exact checks, compliance rates change by at most 4.7 percentage points; Consolidated still improves compliance for every model on both scaffolds, with gains larger than for all checks. DeepSeek V4 Flash still leads in three of four columns.
    • Table 15: mini-SWE-agent, Native resolution rates relative to Vals AI: GPT-5.6 Luna 78.6% vs 93.0% (∆ −14.4), Gemini 3.7 Flash 80.2% vs 80.8% (−0.6), DeepSeek V4 Flash 0731 93.4% vs 88.8% (+4.6), Kimi K2.5 74.6% vs 70.0% (+4.6). The authors write that Vals AI uses the Responses API model class for OpenAI models, while this paper uses default model classes for all four models.
    • Table 16: 304 of 823 policies (37%) are never triggered across all 8,000 runs; Specialized changes has 81 of 107 (76%).
    • Appendix C.3: Among triggered policies in Code and quality, 27% are scored; Tests and test style has 64%. The authors state most require type checking or test runs in a full environment, and stored runs lack those results.
    • Appendix C.1: 61 runs (0.8%) have no functional verdict and are counted as unresolved; in another 36 runs, modified files cannot be parsed as Python, and related policies are marked as withheld. Together these are 95 distinct runs.
    • Not all areas in Table 4 are higher under Consolidated: OpenHands Specialized changes is 69.3%, lower than Native's 72.8%; mini-SWE-agent Documentation and docstrings is 61.1%, lower than Native's 62.7%.
  5. What are some points that can be further explored?

    The paper does not have a dedicated limitations section; the Conclusion plans to extend models, scaffolds, and repository benchmarks.

    Limitations and future directions noted by the authors

    • The paper has no dedicated Limitations section, nor does it describe any design as a deficiency in the Discussion. The Conclusion states future directions: extending SWE-CC to more model architectures, scaffolds, and repository benchmarks to measure both correctness and compliance.

    Experimental coverage

    • The evaluation uses 12 repositories from SWE-bench Verified, 500 tasks, and 823 mandatory policies; 4 LLMs, 2 scaffolds, Native and Consolidated settings, totaling 8,000 workflows (§4.1, Table 6).
    • Compliance is determined by deterministic checkers, without calling an LLM judge during evaluation; functional resolution rates are determined by the SWE-bench suite (§3.1.2, §4.1).
    • Checker human audit is a stratified sample of 150/823, with two annotators independently labeling; extraction, classification, and checker writing use Claude Opus 5 with high reasoning effort (§3.2, Appendix B).
    • The paper reports 61/8,000 runs without functional adjudication, and 304/823 policies never triggered across all runs (Appendix C.1, Table 16). The paper does not report the temperature or number of independent repetitions for the tested models.
    • Of the 823 checks, 294 are marked exact and 529 approximate; Table 8 additionally reports compliance rates when only exact checks are retained (Appendix B.5.3).
  6. Summarize the main content of the paper

    In SWE-CC, functional correctness may still violate policies; the authors state that 43.1% of applicable policies are violated, with 50.3% of violations in resolved runs occurring in the trajectory.

    SWE-CC evaluates whether coding agents comply with repository contribution policies, not just whether patches pass tests.

    • Problem: The authors argue that passing existing tests does not mean contributions are mergeable. Mature repositories write project-level rules for style, commits, tests, documentation, and AI disclosure, and rules rarely overlap across repositories and even conflict. Existing benchmarks mainly evaluate the functionality or patch quality of the final patch, do not audit intermediate workflows, and do not require agents to find rules themselves.
    • Approach: A semi-automated pipeline extracts 823 mandatory atomic policies from documentation of 12 SWE-bench Verified repositories, each compiled into a checker that does not call an LLM, while reading both the run trajectory and the final PR deliverable. 500 tasks require agents to complete commits and PR descriptions. Native only provides document locations and prompts to read first; Consolidated puts the processed full policy text into the environment.
    • Results: The authors report a 43.1% violation rate of applicable policies across four models and two scaffolds. The highest Native compliance is 63.8% for DeepSeek V4 Flash on OpenHands, with the same configuration at 71.2% for Consolidated; corresponding resolution rates are 94.4% and 93.8% (Table 3). 50.3% of violations in resolved runs are in the trajectory (Figure 5). Even when prompted to read the documentation, on average only 28.9% of Native execution attempts retrieve the policy documents (Table 5). After providing processed policies in advance, the authors report an average compliance improvement of 8.75%, with resolution rates fluctuating within 2%.
    • Authors' conclusion: Functional correctness does not guarantee deployability. The authors believe compliance failures come from both retrieval and reasoning sides, and future software engineering agents must consistently comply with repository governance. They plan to expand the model, scaffold, and repository benchmarks and report compliance alongside functional correctness.
Read originalarxiv.org