LLM Code Violation Detection for Automated Deviation Management

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing code and deviation management systems require significant manual effort and are prone to errors, inefficiencies, and delays due to the lack of automated solutions for identifying coding rule violations and managing deviations.

Innovation Solution

A system utilizing a large language model (LLM) to analyze source code for coding rule violations, provide feedback, and manage deviations through intelligent code modification and report creation, enabling real-time interaction with users.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If manual code analysis and deviation management procedures are used, then users can review and manage coding rule violations, but significant time and effort are required and errors are prone to occur

Engineering Contradiction:
Improvecoding rule complianceVSAvoidmanual review time
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The system enables self-service by automatically detecting coding rule violations, generating deviation reports, and managing the entire deviation process without requiring manual intervention for routine tasks. The system serves itself by autonomously analyzing code, comparing against coding rules, and initiating deviation workflows.

Inventive Principle:
Principle #25Self-service

Solution Approach 2:

The patent replaces manual mechanical processes with an automated system. Instead of users manually reviewing code and creating deviation reports, the system uses automated detection mechanisms, AI-based analysis, and electronic workflows to substitute human actions, thereby reducing time loss while maintaining reliability.

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

2Reliability

If manual deviation management procedures are used, then users can review and approve deviations, but the process is time-consuming and inefficient

Engineering Contradiction:
Improvedeviation management accuracyVSAvoiddeviation processing efficiency
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The system implements feedback mechanisms where deviation reports are automatically generated and presented to users for review, and user approvals or modifications are automatically processed and reflected in the system state. This automated feedback loop maintains accuracy while significantly improving processing efficiency.

Inventive Principle:
Principle #23Feedback

Solution Approach 2:

The system introduces an intermediary automated system between code analysis and deviation approval processes. This intermediary handles routine tasks such as violation detection, report generation, and workflow initiation, allowing human users to focus only on complex decision-making aspects.

Inventive Principle:
Principle #24Intermediary (Mediator)

3Extent of automation

If automated code analysis is implemented, then coding rule violations can be detected automatically, but the system needs to handle complex violations requiring user feedback

Engineering Contradiction:
Improvecode violation detectionVSAvoidviolation handling complexity
Core Design Contradiction:
Extent of automationVSDevice complexity

Solution Approach 1:

The system segments the violation handling process into distinct stages: automatic detection phase, report generation phase, user review phase, and deviation management phase. This segmentation allows automation to handle straightforward violations while directing complex cases to users for feedback, managing overall system complexity.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The system dynamically adjusts its behavior based on violation complexity. Simple violations are automatically processed, while complex violations trigger user feedback mechanisms. The system adapts its automation level in real-time based on the nature of detected violations, balancing automation extent with complexity management.

Inventive Principle:
Principle #15Dynamics

Data Source

PatentUS20250272085A1System and method for code and deviation management
Publication Date: 2025.08.28 TOYOTA JIDOSHA KK
  • US20250272085A1 patent drawing
  • US20250272085A1 patent drawing
  • US20250272085A1 patent drawing

AI summary

Provided are embodiments for code and deviation management. A method implementing a large language model (LLM) may be provided. The method may include: receiving, from a user, a source code; determining whether or not the source code violates at least one coding rule; based on determining that the source code violates the at least one coding rule, presenting information associated with the violation to the user; receiving, from the user, a user feedback associated with the presented information; determining, based on the user feedback, whether or not at least one rule deviation is to be implemented; based on determining that the at least one rule deviation is to be implemented, performing at least one operation to manage at least one deviation report; and based on determining that the at least one rule deviation is not to be implemented, performing at least one operation to manage the source code.