Code Conflict Resolution via Collaborative AI Mediation

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current code conflict resolution methods in collaborative software development are inefficient and lack accuracy, as developers manually compare code differences using tools like Diff, which becomes cumbersome for large changes, leading to low resolution efficiency and questionable quality.

Innovation Solution

A collaborative architecture-based code conflict resolution system that involves a local apparatus for initial conflict resolution, a service apparatus for message handling, and a remote apparatus for collaborative processing, allowing remote users to confirm and resolve conflicts, thereby improving efficiency and accuracy.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If manual code comparison using Diff tool is used, then code conflict resolution can be performed, but resolution efficiency is very low for large code changes

Engineering Contradiction:
Improveconflict resolution efficiencyVSAvoidtime required for manual code comparison
Core Design Contradiction:
ProductivityVSLoss of time

Solution Approach 1:

The patent introduces an AI model as an intermediary between the code conflict detection system and human developers. The AI model automatically analyzes code differences, identifies conflict types, and generates resolution suggestions, serving as a mediator that bridges automated analysis and human decision-making. This resolves the contradiction by providing automated efficiency while maintaining human oversight for complex cases.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The system enables self-service conflict resolution by allowing developers to accept AI-generated resolution suggestions with a single action. For simple conflicts, the system can automatically apply resolutions without human intervention, making the resolution process serve itself rather than requiring manual inspection of every code difference. This dramatically improves efficiency while maintaining quality through AI-powered analysis.

Inventive Principle:
Principle #25Self-service

2Reliability

If manual code comparison is performed, then conflict resolution can be achieved, but resolution quality is questionable due to difficulty in understanding change intention

Engineering Contradiction:
Improveconflict resolution qualityVSAvoiddifficulty in understanding code change intention
Core Design Contradiction:
ReliabilityVSEase of operation

Solution Approach 1:

The patent replaces the mechanical manual code comparison process with an AI-based semantic analysis system. Instead of relying on human developers to manually understand code intentions through diff tools, the system uses natural language processing and code understanding models to automatically interpret change intentions, identify the purpose of code modifications, and generate context-aware resolution suggestions. This substitution dramatically improves both reliability and ease of operation.

Inventive Principle:
Principle #28Mechanics substitution (Replace mechanical system)

Solution Approach 2:

The system implements feedback mechanisms where AI analysis results, including change intention understanding and resolution suggestions, are presented to developers for confirmation or correction. Developer feedback on AI suggestions is used to continuously improve the system's understanding of code intentions and resolution quality. This feedback loop ensures high resolution quality while maintaining ease of operation through progressive AI learning.

Inventive Principle:
Principle #23Feedback

3Productivity

If automatic local resolution is used, then resolution efficiency is improved, but resolution accuracy deteriorates

Engineering Contradiction:
Improveresolution efficiencyVSAvoidresolution accuracy
Core Design Contradiction:
ProductivityVSMeasurement precision

Solution Approach 1:

The patent applies local quality by differentiating between simple conflicts that can be automatically resolved with high accuracy and complex conflicts that require human review. The system dynamically adjusts the level of automation based on conflict characteristics, applying full automation to routine cases while escalating complex cases to human developers. This resolves the contradiction by ensuring high accuracy for automated resolutions while maintaining overall efficiency through selective automation.

Inventive Principle:
Principle #3Local quality

Solution Approach 2:

The system performs partial automation where AI handles the analysis and suggestion generation, but human developers perform the final decision-making for complex cases. This partial action approach allows the system to achieve high efficiency through automated analysis while maintaining high accuracy through human oversight for critical decisions. The level of automation is calibrated to match the complexity of each conflict type.

Inventive Principle:
Principle #16Partial or excessive action

Data Source

PatentUS11960879B2Code conflict resolution system and method, apparatus, device, and medium
Publication Date: 2024.04.16 HUAWEI CLOUD COMPUTING TECHNOLOGIES CO LTD
  • US11960879B2 patent drawing
  • US11960879B2 patent drawing
  • US11960879B2 patent drawing

AI summary

A local apparatus is configured to perform resolution on a conflict field generated by code files of a plurality of versions, and send a conflict resolution result to the service apparatus. The conflict field includes at least one conflict block, and the conflict resolution result includes at least one of a resolution result of a local resolvable conflict block and an identifier of a local irresolvable conflict block. The remote apparatus is configured to obtain the conflict resolution result from the service apparatus, generate a collaborative processing window based on the conflict resolution result, and receive a result of processing the conflict resolution result by a remote user based on the collaborative processing window.