Blog
Working Papers

Standards for GenAI Code Use & Risk Management: June 2024

Jun 5, 2024
#
min read
Share
X

Table of contents

Sema is pleased to share updated Standards for GenAI Use and Risk Management in the software development lifecycle (SDLC).

These Standards are a tool for CTOs, the C-Suite, Boards of Directors, other engineering leaders and especially developers to mitigate the risks while capturing the significant benefits of GenAI coding tools.

Sema will continue to publish and update these Standards as best practices develop and emerge along with the rise in AI adoption.

We welcome your feedback and input.

GenAI Code Use and Risk Management Standards

Last Updated June 2024

What's changed since last release: the scope of the standards have been modified to include two time periods, all time and the last 90 days. As an emerging technology, it is expected behavior for GenAI usage to be greater in the last 90 days vs. all time.  


Standards for any GenAI-Originated Code

Definitions:

  • Included: Code that originated with a GenAI tool, as opposed to created by in-house developers.
  • Not included: code written in house, copied from an external source such as Open Source or Google/ Stack Overflow, or automatically generated.

Standards:

  • Strength: 5-20% of the codebase
  • Low Risk: <5%
  • Medium Risk: 20-50%
  • High Risk: >50%

Standards for Pure GenAI Code

Definitions:

  • Pure GenAI code is code that originated with a GenAI tool and was not modified by developers afterwards.
  • By contrast, Blended GenAI code was modified by a developer.

Standards:

  • Strength: <10% of the codebase
  • Low Risk: 10-15%
  • Medium Risk: 15-25%
  • High Risk: >25%  

Time Horizons for Evaluation

  • Period 1: All time
  • Period 2: last 90 days

Discussion/Explanation

  • Just like the use of Open Source code, GenAI code can significantly increase developer productivity and job satisfaction. Too, both Open Source and GenAI code come with intellectual property, security, and operational risks that are in scope for technical due diligence.
  • The greatest risks from GenAI code usage are from intellectual property defensibility, code security, and code maintainability/quality. For all three, the more that the code was written solely by GenAI, without modification from developers (Pure GenAI, as opposed to Blended GenAI), the greater the risk. Therefore, the thresholds for risk are lower for PureGenAI code rather than Blended GenAI code.
  • There are a few situations where no GenAI use in the SDLC is appropriate, including companies that have not yet approved GenAI use. However given the substantial benefits for adoption (41X ROI over two years – see AI Working Paper 01), Sema assesses a Low Risk of not using GenAI enough.
  • Engineering teams should develop their own standards for effective GenAI usage. In particular, teams may choose to exceed the thresholds of overall GenAI use. However, these organizations should have a well-defended position on the security, quality and IP defensibility to prepare for future sale/ investment, including guidance and controls to blend the code sufficiently.
  • Standards are applied across code usage types to guide discussion. However it is expected that GenAI usage in Legacy code will be lower, and higher levels of GenAI usage will be acceptable in Proof of Concept code.
  • As an emerging technology, it is expected behavior for GenAI usage to be greater in the last 90 days vs. all time.  

About Sema Technologies, Inc. 

Sema is the leader in comprehensive codebase scans with over $1T of enterprise software organizations evaluated to inform our dataset. We are now accepting pre-orders for AI Code Monitor, which translates compliance standards into “traffic light warnings” for CTOs leading fast-paced and highly productive engineering teams. You can learn more about our solution by contacting us here.

Want to learn more?
Learn more about AI Code Monitor with a Demo

Are you ready?

Sema is now accepting pre-orders for GBOMs as part of the AI Code Monitor.

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.