Skip to content
merge-queue-conflict-resolution logo

Merge Queue Conflict Resolution

merge-queue-conflict-resolution

Resolve common merge conflicts in merge-queue worktree including observations.jsonl, uv.lock, pyproject.toml, and egg-info files

SKILL.md

Full skill instructions

<!-- BEGIN:compound:skill-managed -->

Purpose

Resolve common merge conflicts encountered when merging feature branches into merge-queue.

When To Use

  • Git merge fails in merge-queue worktree
  • Conflicts in observations.jsonl, uv.lock, pyproject.toml, or egg-info files
  • Multiple branches queued for merging

Common Conflicts & Solutions

1. observations.jsonl (Autolearn Memory)

Symptom: "Your local changes to .opencode/​memory/​observations.jsonl would be overwritten" Cause: Autolearn continuously appends observations, creating drift vs feature branch Solution:

  • Sync from branch: git show <branch>:.opencode/​memory/​observations.jsonl > .opencode/​memory/​observations.jsonl
  • Commit changes: git add .opencode/​memory/​observations.jsonl && git commit -m "chore: sync observations" --no-verify
  • Proceed with merge

Alternative: Add to .gitignore: ".opencode/​memory/​observations.jsonl"

2. uv.lock (Dependency Lock)

Symptom: "missing source field but has more than one matching package" or TOML parse error Cause: Lock file corruption from repeated merges across branches Solution:

  • Remove corrupted lock: rm uv.lock
  • Regenerate: uv lock
  • Commit: git add uv.lock && git commit

Prevention: After each merge, run uv lock to ensure clean state

3. pyproject.toml (Dependency Conflicts)

Symptom: Merge conflict markers in dependencies section Cause: Different branches added overlapping or conflicting dependencies Solution:

  • Manually edit pyproject.toml to merge all dependencies
  • Accept all versions from both branches
  • Example: Combine scipy, scikit-learn, matplotlib (HEAD) with fastapi, uvicorn, python-jose (branch)
  • Re-generate lock: uv lock
  • Commit resolved file

4. src/​vibe_piper/​__init__.py (Export List)

Symptom: Conflict in all showing duplicate feature sets Cause: Both HEAD and branch export different feature modules Solution:

  • Accept BOTH sets of exports
  • Merge lists to include all: External quality (HEAD) + Schema evolution (branch)
  • Ensure no duplicates, maintain alphabetical grouping
  • Verify all imports exist at bottom of file

5. src/​vibe_piper.egg-info/​* (Metadata)

Symptom: Conflict in PKG-INFO, requires.txt, SOURCES.txt Cause: Auto-generated package metadata Solution:

  • Do NOT add to commit (in .gitignore)
  • Accept --theirs or skip entirely
  • Regenerated automatically on: uv sync, uv pip install -e .

6. .gitignore (Ignore Rules)

Symptom: Conflict on observation egg entries Cause: Both branches added different ignore patterns Solution:

  • Combine patterns from both
  • Example: .egg-info/ AND .opencode/​memory/​observations.jsonl
  • Maintain both to avoid future conflicts

Procedure for Blocked Merges

Step 1: Identify Conflict Type

git status
git diff --name-status HEAD <branch>

Step 2: Resolve by Pattern

  • observations.jsonl → Sync from branch and commit
  • uv.lock → Delete and regenerate
  • pyproject.toml → Manually merge dependencies
  • init.py → Combine export lists
  • egg-info/​* → Skip (ignore)
  • .gitignore → Merge patterns

Step 3: Verify Resolution

# Check merge succeeded
git status

# Verify no conflict markers
grep -r '<<<<<< HEAD' .

# Regenerate lock if needed
uv lock

Step 4: Commit Merge

git add <resolved-files>
git commit -m "Merge <branch> into merge-queue (ticket: <ticket>)" --no-verify

Step 5: Mark Complete

loom team merge <TEAM> done <ITEM_ID> --result merged --note "..."

Best Practices

  • Always use --no-verify for commits in merge-queue (skips hooks)
  • Commit observations.jsonl before attempting merges
  • Regenerate uv.lock after pyproject.toml changes
  • Test with uv sync after resolving dependency conflicts
  • Document conflict resolution in done notes for future reference
<!-- END:compound:skill-managed -->

Manual notes

This section is preserved when the skill is updated. Put human notes, caveats, and exceptions here.

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View