Replace Aider with a secure mini-SWE-agent worker #1
@@ -28,10 +28,15 @@ Security and workflow rules:
|
|||||||
production data.
|
production data.
|
||||||
|
|
||||||
Efficiency and completion rules:
|
Efficiency and completion rules:
|
||||||
|
- A failure-report issue describes a product defect. Do not inspect or modify
|
||||||
|
failure-report transport code unless the reported problem explicitly concerns
|
||||||
|
report creation or delivery.
|
||||||
- Implement only the endpoint or behavior explicitly requested. Do not expand a
|
- Implement only the endpoint or behavior explicitly requested. Do not expand a
|
||||||
fix to similar endpoints unless the issue requires it.
|
fix to similar endpoints unless the issue requires it.
|
||||||
- Preserve unrelated lines exactly. Do not reformat, rename, clean up, or correct
|
- Preserve unrelated lines exactly. Do not reformat, rename, clean up, or correct
|
||||||
unrelated code while solving the issue.
|
unrelated code while solving the issue.
|
||||||
|
- Prefer adding a focused method to the closest existing test class over creating
|
||||||
|
another test file. Never declare a helper class name that already exists.
|
||||||
- For every new join, inspect all key columns and cardinality. Prevent duplicate
|
- For every new join, inspect all key columns and cardinality. Prevent duplicate
|
||||||
base rows, and use only discriminator values established by the issue,
|
base rows, and use only discriminator values established by the issue,
|
||||||
repository semantics, schema, or tests—never guess silently.
|
repository semantics, schema, or tests—never guess silently.
|
||||||
|
|||||||
@@ -22,6 +22,8 @@ def test_task_uses_issue_text_not_github_parser() -> None:
|
|||||||
|
|
||||||
def test_system_prompt_requires_precise_diff_hygiene() -> None:
|
def test_system_prompt_requires_precise_diff_hygiene() -> None:
|
||||||
assert "Never create backup files" in _SYSTEM_TEMPLATE
|
assert "Never create backup files" in _SYSTEM_TEMPLATE
|
||||||
|
assert "failure-report transport code" in _SYSTEM_TEMPLATE
|
||||||
assert "Preserve unrelated lines exactly" in _SYSTEM_TEMPLATE
|
assert "Preserve unrelated lines exactly" in _SYSTEM_TEMPLATE
|
||||||
|
assert "closest existing test class" in _SYSTEM_TEMPLATE
|
||||||
assert "inspect all key columns and cardinality" in _SYSTEM_TEMPLATE
|
assert "inspect all key columns and cardinality" in _SYSTEM_TEMPLATE
|
||||||
assert "remove trailing spaces" in _SYSTEM_TEMPLATE
|
assert "remove trailing spaces" in _SYSTEM_TEMPLATE
|
||||||
|
|||||||
Reference in New Issue
Block a user