Auto-Signing Source Code Comments for Traceability

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Developers face challenges in tracing the origin and meaning of source code comments, which become diluted and obfuscated over time, leading to difficulties in maintaining and modifying code effectively.

Innovation Solution

A smart system for auto-signing, managing, and providing recommendations on source code comments, using digital signatures and semantic analysis to track comment authors and provide real-time recommendations within an integrated development environment (IDE).

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Loss of information

If developers manually insert and manage source code comments over time, then comments provide initial insight into the source code, but comments become diluted and their source becomes obfuscated

Engineering Contradiction:
Improvecomment traceabilityVSAvoidcomment lifecycle
Core Design Contradiction:
Loss of informationVSDuration of action of moving object

Solution Approach 1:

The system performs preliminary actions by automatically generating comment metadata and digital signatures at the moment comments are created or modified. This preemptive capture of authorship information prevents the loss of traceability that would otherwise occur as comments evolve over time through multiple developer interactions.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The system implements feedback mechanisms by continuously monitoring comment modifications and automatically updating metadata to reflect current authorship. This real-time feedback loop ensures that comment traceability is maintained throughout the entire comment lifecycle, counteracting the dilution effect of multiple edits.

Inventive Principle:
Principle #23Feedback

2Adaptability or versatility

If source code is revised by different groups of developers over time, then the application evolves and improves, but the source of comments becomes obfuscated

Engineering Contradiction:
Improvecode evolutionVSAvoidcomment authorship
Core Design Contradiction:
Adaptability or versatilityVSLoss of information

Solution Approach 1:

The system segments comment information into distinct components: the comment text itself, metadata about the comment, and digital signatures identifying authors. This segmentation allows the code to evolve through multiple developer revisions while preserving clear attribution of each comment's origin and subsequent modifications.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The system introduces an intermediary layer of metadata and digital signatures that sits between the comment text and the developers who create or modify them. This intermediary structure maintains the adaptability of code evolution while preventing the obfuscation of comment authorship information.

Inventive Principle:
Principle #24Intermediary (Mediator)

3Reliability

If developers add numerous comments to explain source code modifications, then code understanding improves, but the complexity of managing and tracking comments increases

Engineering Contradiction:
Improvecode understandingVSAvoidcomment management system
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The system implements self-service by automatically generating and managing comment metadata without requiring manual intervention from developers. The automated capture of authorship information and the generation of structured metadata reduce the complexity of comment management while maintaining reliable code understanding.

Inventive Principle:
Principle #25Self-service

4Loss of information

If the system automatically tracks and signs all comment modifications, then comment traceability is ensured, but the processing time and system overhead increase

Engineering Contradiction:
Improvecomment provenanceVSAvoidcomment processing time
Core Design Contradiction:
Loss of informationVSLoss of time

Solution Approach 1:

The system performs preliminary action by capturing comment metadata and generating digital signatures at the moment of comment creation or modification, rather than performing retrospective analysis. This approach ensures complete provenance tracking while minimizing processing time by avoiding later computational overhead.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS10437588B1Smart system for auto-signing, managing and, making recommendations for source code comments
Publication Date: 2019.10.08 SAP SE
  • US10437588B1 patent drawing
  • US10437588B1 patent drawing
  • US10437588B1 patent drawing

AI summary

Methods, systems, and computer-readable storage media for receiving a request to open a source code file for editing within an integrated development environment (IDE), determining that the source code file includes source code with first comment text having a first digital signature associated therewith, authenticating the first digital signature, and in response, providing the source code file for display in the IDE, receiving input data, determining that the input data includes authoring of comment text within the source code file, and in response, automatically: providing comment metadata that is associated with the comment text and providing a second digital signature that is associated with the comment text, and storing the comment text, the comment metadata, and the second digital signature in a comment metadata repository.