fix: focus failure-report agent scope
Some checks failed
CI / test (push) Has been cancelled
CI / test (pull_request) Has been cancelled

This commit is contained in:
Christian Meyer
2026-08-31 03:07:29 +02:00
parent badb8bb730
commit 1344c906b7
2 changed files with 9 additions and 2 deletions

View File

@@ -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.

View File

@@ -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