implement-issue: resolve merge conflicts section by section, test before committing the merge #35

Merged
dario merged 1 commit from dario/skill-merge-hunks into main 2026-11-20 11:56:36 +01:00 AGit
Owner

Adds rules for resolving merge conflicts to step 1.4 of the implement-issue skill (continuing an existing pull request):

  • Edit only the conflicting sections (<<<<<<< to >>>>>>>); never write a conflicted file out as a whole.
  • Before committing the merge: git diff --check is clean and the tests pass.
  • If code or tests from the default branch fail after the resolution, the resolution is wrong: git checkout -m <file> or git merge --abort, never change the default branch's code or tests to fit.

Evidence

Interactive run 20261120-103812-implement-issue-dario-factory-27-a03618 (OpenCode, mlx-community/Qwen3-Coder-Next-6bit), continuing PR #28 for #27, on main at 4ba5369:

  • git merge origin/main reported conflicts in docs/developing-the-factory.md and internal/dispatch/dispatch.go.
  • The model resolved both by writing the whole files with its write tool (dispatch.go: 39.2 KB written, 41.5 KB on main), dropping changes from main (Outcome.Conflicts, the conflict check, Interactive in prompts.Data), and committed the merge (95bf2b6) without running the tests.
  • go vet and the tests then failed on code from main. The model re-added main's code piece by piece and changed a test from main (TestContinuedPRConflictsAreReported) to make it pass, then went in circles (the same 30 lines read three times, a context compaction mid-debugging) and ended without a result after 136 messages. Nothing was pushed.

The session itself is not attached: it is in the run's directory in the factory-dev sandbox.

just check passes.

🤖 Generated with Claude Code

Adds rules for resolving merge conflicts to step 1.4 of the `implement-issue` skill (continuing an existing pull request): - Edit only the conflicting sections (`<<<<<<<` to `>>>>>>>`); never write a conflicted file out as a whole. - Before committing the merge: `git diff --check` is clean and the tests pass. - If code or tests from the default branch fail after the resolution, the resolution is wrong: `git checkout -m <file>` or `git merge --abort`, never change the default branch's code or tests to fit. ## Evidence Interactive run `20261120-103812-implement-issue-dario-factory-27-a03618` (OpenCode, `mlx-community/Qwen3-Coder-Next-6bit`), continuing PR #28 for #27, on `main` at 4ba5369: - `git merge origin/main` reported conflicts in `docs/developing-the-factory.md` and `internal/dispatch/dispatch.go`. - The model resolved both by writing the whole files with its `write` tool (`dispatch.go`: 39.2 KB written, 41.5 KB on `main`), dropping changes from `main` (`Outcome.Conflicts`, the conflict check, `Interactive` in `prompts.Data`), and committed the merge (95bf2b6) without running the tests. - `go vet` and the tests then failed on code from `main`. The model re-added `main`'s code piece by piece and changed a test from `main` (`TestContinuedPRConflictsAreReported`) to make it pass, then went in circles (the same 30 lines read three times, a context compaction mid-debugging) and ended without a result after 136 messages. Nothing was pushed. The session itself is not attached: it is in the run's directory in the `factory-dev` sandbox. `just check` passes. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
dario merged commit 98d62f712c into main 2026-11-20 11:56:36 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
dario/factory!35
No description provided.