potentialpaper

Self-Evolving Coding Rules for AI Coding Agents

Update NeurIPS 2026 submission K6zqjHCp8l: 6 notes

@openreview[bot] · 2026-11-24 15:49 UTC · cb094e2bbe9b ·

Evidence

reviews/openreview/k6zqjhcp8l/notes/3isbbzmcoh.json added

+++ b/reviews/openreview/k6zqjhcp8l/notes/3isbbzmcoh.json
@@ -0,0 +1,15 @@
+{
+ "schema": "review/1",
+ "id": "3IsbbzmCoH",
+ "replyTo": "ghRtS9Vn7q",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Authors",
+ "content": {
+ "comment": "Thank you for your thoughtful feedback and comments. We are encouraged that you think our experiment is fairly comprehensive. Your comments have been invaluable in helping us strengthen the paper, and we have addressed them as outlined below. Please feel free to share any additional concerns, we would be more than willing to discuss them further. We also kindly ask you to consider revisiting the rating in light of these improvements.\n\n---\n\nComment#1: Open-sourcing a code repo.\n\nAnswer#1: Yes, we are committed to open-sourcing the entire project. Upon acceptance, we will release a public GitHub repository containing the code and data.\n\n---\n\nComment#2: The metric“code length” should not be equated with latency and resource consumption.\n\nAnswer#2: We agree that these are two different aspects and we can evaluate them separately. In our newly added experiments, code length explains 54% of the variance in completion tokens, but only 2% of the variance in API cost and 20% of the variance in latency. The discrepancy arises because the coding rules are included in the input at every interaction: billed input tokens increase from 750 to 1,234. We will therefore narrow our claim accordingly: code length is only a proxy for generated output tokens, which it correlates with well, while cost and latency numbers are now obtained directly from API usage logs.\nOn the other hand, We report a standard set of software quality metrics over generated code:\n| Metric | No rule | RuleRefine |\n| :-------------- | :------ | :-------- |\n| Duplicated-block ratio | 0.10% | 0.00% |\n| Cyclomatic complexity (total) | 5.37 | 3.95 |\n| Halstead volume (total) | 53 | 28 |\n| Maintainability index | 85.1 | 78.3 |\n| Cyclomatic complexity per SLOC | 0.2127 | 0.2603 |\n| Docstring rate | 47% | 1% |\n\nOverall, the generated code remains of high quality under standard software engineering metrics. RuleRefine preserves a Grade A maintainability index, reduces average cyclomatic complexity (5.37 → 3.95), and lowers Halstead volume by 47%, indicating simpler and easier-to-maintain code. The increase in complexity per SLOC and reduction in docstring coverage suggest that the optimization primarily removes documentation and defensive scaffolding rather than sacrificing code quality.\n\n---\n\nComment#3: Repository-level evaluation.\n\nAnswer#3: For selection, we randomly select 100 instances from the test split of SWE-bench-Lite. The selected subset is comparable to the full benchmark in task difficulty (mean hunks: 1.37 vs. 1.49; mean added lines: 6.1 vs. 7.5), suggesting that it is representative of the overall benchmark. \n\nWe agree that evaluation at the repository-level is important and we choose a subset of SWE-bench-Lite mainly due to constrained API credits. We agree that benchmarks such as SWE-bench-Pro are better choices for evaluating repository-scale reasoning, and we can include a subset in experiments to provide a more comprehensive evaluation containing function, file, and repository-level code generation.\n\n---\n\nComment#4: Pass rates of OCBA and “No rule”.\n\nAnswer#4: We will analyze this from two perspectives.\n\n(1) The parity is backbone-dependent rather than universal. Using the same rule, RuleRefine significantly improves pass rates on weaker backbone, for example, Qwen3-Coder-30B (+21.0 pp, McNemar $p=0.0001$, 95% CI [+11.0, +31.0]) on BigCodeBench, while the gain on GPT-4.1-mini is negligible (+0.2 pp, $p=1.00$). Similarly, on HumanEval with Qwen3-Coder-30B, RuleRefine is the only rule that does not significantly degrade performance, whereas Prompt-Ops and the manual rule both cause substantial drops.\n\n(2) The aggregate pass rate masks substantial instance-level changes. Although the overall pass rate remains nearly unchanged, individual task outcomes differ considerably. Over evaluation, 25 tasks are solved only with RuleRefine. Across the 10-seed evaluation, RuleRefine converts 127 baseline failures into passes, at the cost of 99 regressions. Thus, the similar aggregate accuracy reflects a balance between improvements and regressions rather than the absence of any effect.\n\n---\n\nComment#5: Lack of novelty.\n\nAnswer#5: We acknowledge that the high-level iterative \"mutate–evaluate–select\" paradigm is not new. However, existing prompt optimization methods cannot be directly applied to coding rule refinement due to two fundamental challenges: (1) the substantially larger search space of coding rules compared to prompts, and (2) the significantly higher evaluation cost of generated code. Our core contribution is a strategic mutation allocation method inspired by Optimal Computing Budget Allocation (OCBA) that explicitly addresses these challenges. By efficiently allocating the mutation budget to the most promising candidates, our design effectively bridges the gap between prompt optimization and coding rule refinement, enabling practical and scalable optimization under the unique constraints of coding agents."
+ },
+ "createdAt": "2026-07-30T03:43:53.016Z",
+ "modifiedAt": "2026-11-19T17:07:44.410Z",
+ "url": "https://openreview.net/forum?id=K6zqjHCp8l&noteId=3IsbbzmCoH",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/k6zqjhcp8l/notes/bdinqgrdil.json added

+++ b/reviews/openreview/k6zqjhcp8l/notes/bdinqgrdil.json
@@ -0,0 +1,15 @@
+{
+ "schema": "review/1",
+ "id": "bDinQgRDil",
+ "replyTo": "kWKcQGgSUM",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Authors",
+ "content": {
+ "comment": "Thank you for your thoughtful feedback and comments. We are encouraged that you recognize our work as intuitive, and clearly explained. Your comments have been invaluable in helping us strengthen the paper, and we have addressed them as outlined below. Please feel free to share any additional concerns, we would be more than willing to discuss them further. We also kindly ask you to consider revisiting the rating in light of these improvements.\n\n---\n\nComment#1(W1/Q2): Technical novelty and contribution.\n\nAnswer#1:. We acknowledge that the high-level \"black-box mutation-and-selection loop\" paradigm is not new. However, existing prompt optimization methods cannot be directly applied to coding rule refinement due to two fundamental challenges: (1) the substantially larger search space of coding rules compared to prompts, and (2) the significantly higher evaluation cost of generated code. Our core contribution is a strategic mutation allocation method inspired by Optimal Computing Budget Allocation (OCBA) that explicitly addresses these challenges. \n\nAlso, we add new experiments to compare with simpler alternatives such as random search with the same budget or best-first mutation:\n| Method | Pass Rate | Code Length |\n| :-------------- | :-------: | ----------: |\n| RuleRefine | 0.460 | 494 |\n| Even Allocation | 0.400 | 481 |\n| Random | 0.440 | 502 |\n| Best First | 0.420 | 499 |\n| No Rule | 0.440 | 971 |\n\nResults indicate these alternatives only achieve sub-optimal performance.\n\n---\n\nComment#2(W2): Correctness improvements are often small.\n\nAnswer#2: Our claim is not that RuleRefine always improves correctness, but that it achieves gains where there is room for improvement while introducing fewer regressions than competing methods. \n\nWhere there is room for improvement (like, models are more powerful), the gains are substantial. On BigCodeBench with Qwen3-Coder-30B, RuleRefine achieves +21.0 pp ($p=0.0001$), outperforming Prompt-Ops (+15.0 pp) and the manual rule (+2.0 pp, n.s.). On GPT-5-mini, it is the only method with a significant improvement (+10.0 pp, $p=0.031$). On HumanEval with Qwen3-Coder-30B, RuleRefine is also the only rule that does not significantly degrade performance.\n\nFor stronger backbone LLMs, similar pass rates reflect limited opportunities for improvement rather than a limitation of RuleRefine. The aggregate parity also masks substantial task-level changes: across the 10-seed evaluation, RuleRefine converts 127 baseline failures into passes while introducing 99 regressions.\n\n---\n\nComment#3(W3/L1): The claim about reducing generation cost.\n\nAnswer#3: We now explicitly account for both offline and online costs using logged usage.\nFor offline refinement cost, summing all LLM calls recorded during the search process, the complete rule search costs are about $25 across 12K calls. This is a one-time cost incurred per (backbone LLM, benchmark). We believe such a cost is not high as expected.\n\nFor online cost during code generation, on BigCodeBench, RuleRefine reduces output tokens by 7.7% (451 → 417) and code lines by 25.1% (32.5 → 24.3). At the same time, because the rule is included in every input context, billed input tokens increase. However, we note that the input-side overhead is not unique to RuleRefine, it is inherent to conditioning on any rule and is comparable to other rule-based approaches (Prompt-Ops: +25.0%, manual rule: +4.6%). This overhead can also be partially amortized through prompt caching. Overall, the online cost of our method during code generation is lower. Considering the large deployment of the refined rules, the offline cost would become tolerable."
+ },
+ "createdAt": "2026-07-30T03:45:45.899Z",
+ "modifiedAt": "2026-11-19T17:07:44.377Z",
+ "url": "https://openreview.net/forum?id=K6zqjHCp8l&noteId=bDinQgRDil",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/k6zqjhcp8l/notes/gnndg5wmss.json added

+++ b/reviews/openreview/k6zqjhcp8l/notes/gnndg5wmss.json
@@ -0,0 +1,15 @@
+{
+ "schema": "review/1",
+ "id": "GnndG5wmSs",
+ "replyTo": "bDinQgRDil",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Authors",
+ "content": {
+ "comment": "Comment#4(W4/Q1): Evaluation scale and baselines.\n\nAnswer#4: To verify that our performance gains are not simply an artifact of resource allocation, we conducted additional experiments comparing RuleRefine against alternative search and baseline strategies under an identical mutation budget. As shown in the table below, RuleRefine achieves the optimal balance, outperforming all budget-matched variants in both functional correctness (pass rate) and code conciseness:\n| Method | Pass Rate | Code Length |\n| :-------------- | :-------: | ----------: |\n| RuleRefine | 0.460 | 494 |\n| Even Allocation | 0.400 | 481 |\n| Random | 0.440 | 502 |\n| Best First | 0.420 | 499 |\n| No Rule | 0.440 | 971 |\n\nRegarding the evaluation on a sampled subset of SWE-bench Lite, we selected the 100 samples to be strictly representative of the benchmark. A structural difficulty analysis confirms that our subset closely mirrors the full benchmark (mean hunks: 1.37 vs. 1.49; mean added lines: 6.1 vs. 7.5). We are also fully prepared to incorporate results on the entire SWE-bench Lite dataset in the final revision if deemed necessary.\n\nAlso, to ensure that our observed improvements are statistically meaningful and robust against stochastic agent variance, we performed extensive multi-seed evaluations across 10 independent runs (as reported in Table 3). These multi-seed results confirm a high degree of consistency and stability, demonstrating that the performance advantages of RuleRefine are reliable rather than coincidental fluctuations. \n\n---\n\nComment#5(Q3/L2): Using code length as an efficiency objective.\n\nAnswer#5: We have added experiments for this part and will add these results in the next version.\n\nFor hidden degradation, we evaluate this using HumanEval+, which provides roughly 80× more test inputs per problem than HumanEval and can expose solutions that pass the original tests but fail on broader cases. The relative performance drop from HumanEval to HumanEval+ is 4.3–6.3% for RuleRefine and 4.1–6.2% for the no-rule baseline. This suggests that shorter code is not more fragile.\n\nFor software engineering metrics, we report metrics over generated files, including complexity, maintainability, and duplication as follows:\n| Metric | No rule | RuleRefine |\n| :-------------- | :------ | :------ |\n| Duplicated-block ratio | 0.10% | 0.00% |\n| Cyclomatic complexity (total) | 5.37 | 3.95 |\n| Halstead volume (total) | 53 | 28 |\n| Maintainability index | 85.1 | 78.3 |\n| Cyclomatic complexity per SLOC | 0.2127 | 0.2603 |\n| Docstring rate | 47% | 1% |\n\nRuleRefine reduces cyclomatic complexity (5.37 → 3.95), Halstead volume by 47%, and duplicated-block ratio to 0.00%, while maintaining a Grade A maintainability index (78.3 vs. 85.1 for no rule). The remaining trade-off is in code density: complexity per SLOC increases by 22% and docstring coverage decreases from 47% to 1%, indicating that RuleRefine removes documentation and defensive scaffolding rather than redundant logic."
+ },
+ "createdAt": "2026-07-30T03:47:34.625Z",
+ "modifiedAt": "2026-11-19T17:07:44.344Z",
+ "url": "https://openreview.net/forum?id=K6zqjHCp8l&noteId=GnndG5wmSs",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/k6zqjhcp8l/notes/km4tyqzq6m.json modified

+++ b/reviews/openreview/k6zqjhcp8l/notes/km4tyqzq6m.json
@@ -5,11 +5,12 @@
"kind": "meta_review",
"invitation": "Meta_Review",
"signature": "Area Chair Ecsd",
"content": {
- "metareview": "The paper proposes an automatic code rule refinement framework for AI coding agents. Specifically, it utilizes an iterative framework with mutating and selecting the best-performing rules. The paper studies an important and interesting problem, and the paper is well-written. However, the proposed method mainly shows improvement in code length but doesn't show other more important improvements. Also, the paper lacks details on qualitative analysis, where the improved rules need to be carefully examined, including failure analysis. The evaluation uses relatively small sampled test sets. The rebuttals solve some concerns pointed out by reviewers by adding qualitative analysis, rephrasing contributions, etc. The paper studies an interesting and important questions and the paper could be a good add-up if these revisions have been included."
+ "metareview": "The paper proposes an automatic code rule refinement framework for AI coding agents. Specifically, it utilizes an iterative framework with mutating and selecting the best-performing rules. The paper studies an important and interesting problem, and the paper is well-written. However, the proposed method mainly shows improvement in code length but doesn't show other more important improvements. Also, the paper lacks details on qualitative analysis, where the improved rules need to be carefully examined, including failure analysis. The evaluation uses relatively small sampled test sets. The rebuttals solve some concerns pointed out by reviewers by adding qualitative analysis, rephrasing contributions, etc. The paper studies an interesting and important questions and the paper could be a good add-up if these revisions have been included.",
+ "final_justification": "Meta-review already includes my updated justification."
},
"createdAt": "2026-07-22T15:23:48.240Z",
- "modifiedAt": "2026-11-18T15:24:14.808Z",
+ "modifiedAt": "2026-11-19T05:02:41.821Z",
"url": "https://openreview.net/forum?id=K6zqjHCp8l&noteId=km4Tyqzq6M",
"license": "CC-BY-4.0"
}

reviews/openreview/k6zqjhcp8l/notes/oknuwehinx.json added

+++ b/reviews/openreview/k6zqjhcp8l/notes/oknuwehinx.json
@@ -0,0 +1,15 @@
+{
+ "schema": "review/1",
+ "id": "oKNUWehInx",
+ "replyTo": "6oO2ysrFr9",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Authors",
+ "content": {
+ "comment": "Thank you for your thoughtful feedback and comments. We are encouraged that you think our work provides a systematic and comprehensive evaluation. Your comments have been invaluable in helping us strengthen the paper, and we have addressed them as outlined below. Please feel free to share any additional concerns, we would be more than willing to discuss them further.\n\n---\n\nComment#1(W1/Q1): Lack of failure case analysis.\n\nAnswer#1: We will add a comprehensive failure-case analysis addressing the three requested scenarios.\n\n(1) Rules fail to improve correctness (due to over-compression): while RuleRefine converts 127 baseline failures into passes, it also breaks 99 previous passes. This is primarily driven by over-compression on complex, multi-part tasks, where stripping out explicit branches for sub-requirements causes edge-case test failures. Consequently, empty or truncated outputs dropped from 15% to 3%, while assertion errors rose from 55% to 69%.\n\n(2) Rules inadvertently increase code length: only 138 of tasks resulted in longer code. The vast majority (108 tasks) represent successful repairs where the baseline produced no code at all, meaning true code inflation affected only 30 tasks with a negligible median increase of +2 lines.\n\n(3) Inference time or cost increases: the execution time of the generated code remains completely unaffected with a median delta of 0.000 seconds and a 95th percentile increase of 0.51 seconds. On the generation side, output tokens decreased by 7.7%, though billed input tokens increased from 750 to 1,234 because the rule text is prepended to every prompt. This input-side overhead is intrinsic to any rule-conditioned approach, comparable to Prompt-Ops and manual rules.\n\n---\n\nComment#2(W2/Q2): Lack of analysis of the generated rules.\n\nAnswer#2: We will add a rule-level analysis featuring two main components: \n\n(1) Examining how rules evolve over the twenty search generations shows that the refined rule maintains a nearly constant size, while its actual content changes substantially with a TF-IDF distance of 0.644 from the initial rule. Over this trajectory, generated code length drops by 17.6% (on average) and generation time decreases by 29.5%, while the pass rate remains comparable, indicating that the refinement rewrites rule content within a fixed length budget rather than expanding it. Specifically, brevity-style directives increase from 12 to 15, whereas reasoning-budget directives drop from 6 to 3 and output-format directives fall from 4 to 1. \n\n(2) Regarding representative modifications, the single most effective edit adds this directive: \"Output must be runnable without modification or additional context.\" This shortens the code from 465 to 428 characters (on average), and raises the pass rate from 0.53 to 0.57. Conversely, the least effective edit broadens an existing directive from \"if a specific function is requested, emit only that function\" to \"if a specific function or module is requested, emit only that function or module\", which lengthens the code.\n\n---\n\nComment#3(Q3): Categorizing the generated coding rules.\n\nAnswer#3: We will add a leave-one-section-out ablation analysis on the searched rule to measure each category's contribution. By grouping the rule's 16 sections into six functional categories, we evaluated the increase in generated code length when each category is removed (tested on BigCodeBench using 40 tasks with GPT-4.1-mini, where the full rule produces 454.1 characters compared to 1,040.6 characters with no rule):\n| Category | Sections | Chars attributable | Per section |\n| :------------ | :------ | :-------- | :------ |\n| Output format / self-containment | 3 | 153.0 | 51.0 |\n| Algorithm knowledge | 4 | 83.0 | 20.7 |\n| Brevity style | 1 | 61.6 | 61.6 |\n| API / library idiom | 2 | 22.8 | 11.4 |\n| Correctness tactics | 2 | 9.9 | 5.0 |\n| Process / budget | 4 | -5.0 | -1.2 |\n\nThis analysis yields three key findings. First, directives that constrain the form of the code (output format and self-containment) dominate the rule's impact, accounting for 153 attributable characters. Second, brevity-style directives are the most efficient on a per-section basis, yielding 61.6 characters from a single section. Third, process and budget directives are net negative, removing them actually shortens the output.\n\n---\n\nComment#4(L1): Discussion of its limitations.\n\nAnswer#4: We have a section of limitations in Appendix A. We will add more discussion such as the dependence on the initial rules. Currently, all baselines (except for “no rule”) use manual rules as initialization. It is possible that our method’s performance can be further improved if LLM-generated rule produced by dedicated-crafted prompts is used as initialization. We will also discuss the impacts of hyperparameters, for example, a relatively large iteration number $T$ and test batch size $B$ are required to obtain improved refined rules."
+ },
+ "createdAt": "2026-07-30T03:41:48.947Z",
+ "modifiedAt": "2026-11-19T17:07:44.647Z",
+ "url": "https://openreview.net/forum?id=K6zqjHCp8l&noteId=oKNUWehInx",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/k6zqjhcp8l/notes/qzywkqihtw.json added

+++ b/reviews/openreview/k6zqjhcp8l/notes/qzywkqihtw.json
@@ -0,0 +1,15 @@
+{
+ "schema": "review/1",
+ "id": "qzYwKQihTw",
+ "replyTo": "km4Tyqzq6M",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Authors",
+ "content": {
+ "comment": "Dear AC and Reviewers,\n\nAs the discussion period is nearing its end, we wanted to ensure that we have addressed all your concerns satisfactorily. Our rebuttal mainly includes following parts:\n\n1. Apart from improvement in code length, we clarify for correctness and generation cost with newly added experimental results. We will update the manuscript accordingly to better illustrate our method's advantages.\n2. We provide qualitative analysis as required, inlcuding failure analysis, analysis of the generated rules, and limitations. We will add these analysis to the manuscript.\n3. We justify for the testing sets used in the experiments, and have added new experiments to show our method's strengths in the mutation-matched setting.\n4. We stress the technical contribution and contribution of this work. We will modify the related sections in the manuscript to better illustrate this point. Moreover, we believe reviewers also reach an agreement that the problem we are solving, i.e., automatically refining coding rules, is a practical/interesting problem and largely different from traditional prompt optimization scenarios.\n\nIf there are any additional points or feedback you'd like us to consider, please let us know. Your insights are invaluable to us, and we're eager to address any remaining issues to improve our work.\n\nThank you for your time and effort in reviewing our paper."
+ },
+ "createdAt": "2026-08-03T19:38:32.562Z",
+ "modifiedAt": "2026-11-19T17:07:44.518Z",
+ "url": "https://openreview.net/forum?id=K6zqjHCp8l&noteId=qzYwKQihTw",
+ "license": "CC-BY-4.0"
+}