Repository navigation
Closed
Labels
complexity-lowComplexity: low (board points 1-3)priority-p2Importanttheme-reliabilityTheme: Reliabilitytype-featureNew functionality
Description
Summary
Replace raw git error output in conflict modal with human-readable diagnosis.
Context
Problem P4: The modal shows raw git output like:
```
Rebasing (1/2) error: could not apply 1d945e0... Add polymarket trader configuration
```
A non-developer cannot understand this. The buttons ("Pull First" / "Force Push") don't map to operator intent.
Acceptance Criteria
Backend: Conflict classification
- New utility to classify conflicts into enum:
AHEAD_ONLY— simple push neededBEHIND_ONLY— simple pull neededPARALLEL_HISTORY— diverged commits (P2)UNCOMMITTED_LOCAL— local changes blocking operationAUTH_FAILURE— credentials issueWORKING_BRANCH_EXTERNAL_WRITE— P6 case (external rewrite)UNKNOWN— fallback
Frontend: Modal redesign
- Title: Plain English. "Your agent cannot sync." not "Push Conflict"
- Body: Bullet list of what's true:
- "Main has N new commits your agent doesn't have"
- "Your agent has M local commits main doesn't have"
- "The histories diverged N commits ago"
- Recommendation: One sentence naming recommended action
- Expandable: "Git details" section for devs (raw stderr)
Per-class copy
- PARALLEL_HISTORY → "Adopt latest upstream" recommendation
- BEHIND_ONLY → "Pull latest" recommendation
- WORKING_BRANCH_EXTERNAL_WRITE → "Your branch was modified externally"
- UNKNOWN → "Contact admin — unknown state"
Technical Notes
Files to modify:
src/backend/services/git_service.py— classification utilitydocker/base-image/agent_server/routers/git.py— include classification in 409 responsesrc/frontend/src/components/GitConflictModal.vue— modal redesign
Part of Epic #381
Metadata
Metadata
Assignees
Labels
complexity-lowComplexity: low (board points 1-3)priority-p2Importanttheme-reliabilityTheme: Reliabilitytype-featureNew functionality
Activity
feat(agent-server/git): surface common_ancestor_sha + pull_branch in …
feat(frontend/git): parallel-history modal variant + detection
feat(git): add classify_conflict() and conflict_class on GitSyncResul…
feat(agent-server/git): include conflict_class in 409 response bodies…
feat(ui): operator-readable copy in GitConflictModal keyed on conflic…
test(git-sync): classifier + modal snapshot tests (S5 Abilityai#386)
chore: park pre-main-switch working-tree snapshot
docs(feature-flows): document S5 conflict classification in github-sy…
docs(requirements): add §11.3 Operator-Readable Conflict Diagnosis (S5,
feat(git): add classify_conflict() and conflict_class on GitSyncResul…
feat(agent-server/git): include conflict_class in 409 response bodies…
feat(ui): operator-readable copy in GitConflictModal keyed on conflic…
test(git-sync): classifier + modal snapshot tests (S5 Abilityai#386)
docs(feature-flows): document S5 conflict classification in github-sy…
docs(requirements): add §11.3 Operator-Readable Conflict Diagnosis (S5,
feat(git): operator-readable GitConflictModal (S5 #386) (#397)
feat(frontend/git): parallel-history modal variant + detection
feat(git): parallel-history detection at modal open (S2, #385) (#395)