@@ -4,23 +4,45 @@ Implement the task described above.
441 . Read CLAUDE.md (if it exists) for project conventions, build commands,
55 test commands, and commit message format.
662 . Understand the codebase and the task requirements.
7- 3 . Implement the minimal changes required. Prefer backwards-compatible
7+ 3 . When fixing bugs, prefer a test-first approach:
8+ a. Write a test that demonstrates the bug (verify it fails).
9+ b. Apply the fix.
10+ c. Verify the test passes.
11+ Skip writing a dedicated test when the fix is trivial and self-evident
12+ (e.g., adding a timeout, fixing a typo), the behavior is impractical to
13+ unit test (e.g., network timeouts, OS-level behavior), or the fix is a
14+ documentation-only change. The goal is to prove the bug existed and
15+ confirm it's resolved, not to test for testing's sake.
16+ 4 . Implement the minimal changes required. Prefer backwards-compatible
817 changes wherever possible — avoid breaking existing APIs, interfaces,
918 or behavior unless the task explicitly requires it.
10- 4 . Run relevant tests to verify your changes work. Only test the specific
19+ 5 . Run relevant tests to verify your changes work. Only test the specific
1120 packages/files affected by your changes.
12- 5 . If tests fail, fix the issues and re-run. Only report FAILED if you
21+ 6 . If tests fail, fix the issues and re-run. Only report FAILED if you
1322 cannot make tests pass after reasonable effort.
14- 6 . Stage all your changes with ` git add ` . Do not commit — the action
15- handles committing.
16- 7 . Write a short commit message summary (one line, under 72 characters)
17- and save it to ` .autosolve-commit-message ` in the repo root. Focus on
18- * why* the change was made, not what files changed. Use imperative mood
19- (e.g., "Fix timeout in retry loop" not "Fixed timeout" or "Changes to
20- retry logic"). If CLAUDE.md specifies a commit message format, follow
21- that instead.
22- 8 . Write a PR description and save it to ` .autosolve-pr-body ` in the repo
23- root. This will be used as the body of the pull request. Include:
23+ 7 . Stage all your changes with ` git add ` . Do not commit — the action
24+ handles committing. All changes will be squashed into a single commit,
25+ so organize your work accordingly.
26+ 8 . Write a commit message and save it to ` .autosolve-commit-message ` in
27+ the repo root. Use standard git format: a subject line (under 72
28+ characters, imperative mood), a blank line, then a body explaining
29+ what was changed and why. Since all changes go into a single commit,
30+ the message should cover the full scope of the change. Focus on
31+ helping a reviewer understand the commit — do NOT list individual
32+ files. Example:
33+ ```
34+ Fix timeout in retry loop
35+
36+ The retry loop was using a hardcoded 5s timeout which was too short
37+ for large payloads. Increased to 30s and made it configurable via
38+ the RETRY_TIMEOUT env var. Added a test that verifies retry behavior
39+ with slow responses.
40+ ```
41+ If CLAUDE.md specifies a commit message format, follow that instead.
42+ 9 . Write a PR description and save it to ` .autosolve-pr-body ` in the repo
43+ root. This will be used as the body of the pull request. The PR
44+ description and commit message serve similar purposes for single-commit
45+ PRs, but the PR description should be more reader-friendly. Include:
2446 - A brief summary of what was changed and why (2-3 sentences max).
2547 - What testing was done (tests added, tests run, manual verification).
2648 Do NOT include a list of changed files — reviewers can see that in the
0 commit comments