DarwinPatch Report

Static report generated from DarwinPatch JSON artifacts.

Benchmark summary: phase3_smoke_suite

Results: darwinpatch_runs/demo/benchmark/benchmark_results.json

Claim-to-artifact links

Baseline solve@budget 95% CI Avg attempts Regressions blocked Invalid rejected Evidence packets Unsolved cost Route metadata matches
archive_no_routing0.60.446-0.73651.812150320
clean_context_review0.60.446-0.73651.812150320
evidence_aware_review0.90.7695-0.96041.812936828
full_darwinpatch0.90.7695-0.96041.812936828
linear_retry0.60.446-0.73651.812150320
single_shot0.20.105-0.34761.01280320

parser_single_success_01 / full_darwinpatch

Archive: /Users/taneemishere/Developer/darwin-patch/darwinpatch/darwinpatch_runs/demo/benchmark/parser_single_success_01/full_darwinpatch/rep_001/candidate_archive.json

parser_single_success_02 / full_darwinpatch

Archive: /Users/taneemishere/Developer/darwin-patch/darwinpatch/darwinpatch_runs/demo/benchmark/parser_single_success_02/full_darwinpatch/rep_001/candidate_archive.json

parser_visible_then_success_01 / full_darwinpatch

Archive: /Users/taneemishere/Developer/darwin-patch/darwinpatch/darwinpatch_runs/demo/benchmark/parser_visible_then_success_01/full_darwinpatch/rep_001/candidate_archive.json

candidate_001

1. candidate_001 — rejected

Route
initial_repair
Selected by
initial_order
Intent
first_pass_attempt_for_gate_coverage
Parent
none
Gen
0
Failure
visible_tests
Fingerprint
visible_tests:tests/visible/test_parser_visible.py::test_escaped_pipe_stays_inside_cell
Score
0.4
  • scope_guard: PASS
  • patch_applies: PASS
  • python_ast: PASS
  • secret_scan: PASS
  • visible_tests: FAIL
visible developer tests failed

Evidence ID: ev_3355097a5d9f

{
  "returncode": 1,
  "stderr_tail": "",
  "stdout_tail": ".F                                                                       [100%]\n=================================== FAILURES ===================================\n_____________________ test_escaped_pipe_stays_inside_cell ______________________\n\n    def test_escaped_pipe_stays_inside_cell():\n        markdown = r\"\"\"\n        | name | value |\n        | --- | --- |\n        | alpha | one \\| two |\n        \"\"\"\n    \n>       assert parse_table(markdown) == [{\"name\": \"alpha\", \"value\": \"one | two\"}]\nE       AssertionError: assert [{'name': 'al...e': 'one \\\\'}] == [{'name': 'al... 'one | two'}]\nE         \nE         At index 0 diff: {'name': 'alpha', 'value': 'one \\\\'} != {'name': 'alpha', 'value': 'one | two'}\nE         Use -v to get more diff\n\ntests/visible/test_parser_visible.py:22: AssertionError\n=========================== short test summary info ============================\nFAILED tests/visible/test_parser_visible.py::test_escaped_pipe_stays_inside_cell\n1 failed, 1 passed in 0.02s\n"
}
Patch diff: /Users/taneemishere/Developer/darwin-patch/darwinpatch/tasks/smoke_markdown_parser/candidate_visible_fail.patch
diff --git a/parser.py b/parser.py
index e6f2d6f..96d3ee1 100644
--- a/parser.py
+++ b/parser.py
@@ -1,13 +1,13 @@
 def parse_table(markdown):
     """Parse a simple Markdown table into row dictionaries."""
-    lines = [line.strip() for line in markdown.splitlines() if line.strip()]
-    table_lines = [line for line in lines if line.startswith("|")]
+    table_lines = [line.strip() for line in markdown.splitlines() if line.strip().startswith("|")]
     if len(table_lines) < 2:
         return []
 
     headers = [cell.strip() for cell in table_lines[0].strip("|").split("|")]
     rows = []
     for line in table_lines[2:]:
         values = [cell.strip() for cell in line.strip("|").split("|")]
+        values = values[: len(headers)]
         rows.append(dict(zip(headers, values)))
     return rows