# Code Review

Source: https://www.violtech.com/use-cases/code-review

Inspect proposed code changes for defects and project conventions, explain findings with code context, and leave merge decisions with the team.

## Application pattern

Inspect proposed code changes for defects and project conventions, explain findings with code context, and leave merge decisions with the team. This page describes a reusable pattern for evaluating and implementing the workflow. It is not a customer case study and does not assert that Violtech has delivered it for a named organization.

## Decisions the workflow must model

Code Review needs explicit rules for change intent and affected boundary, project conventions and ownership rules, correctness, security, data, and compatibility risks, finding tied to exact code and execution path, test evidence and missing-case identification, and human author response and merge authority. For every decision, the design should distinguish authoritative system fields from model suggestions, identify the source and freshness of the context, and state what happens when inputs conflict or are missing.

## Practical workflow

- Change intent and affected boundary. Map the incoming evidence to the approved change intent and affected boundary. Preserve the original value, use a documented vocabulary, and send unknown or ambiguous values to the responsible reviewer instead of inventing a category.

- Project conventions and ownership rules. Calculate project conventions and ownership rules from named signals and an explicit precedence rule. Record which signals were present, which source was authoritative, and why a conflict or missing value changed the recommendation.

- Correctness, security, data, and compatibility risks. Apply correctness, security, data, and compatibility risks only when the required fields and permissions are present. Define an owner and fallback route for every valid outcome so work cannot disappear into an unowned queue or state.

- Finding tied to exact code and execution path. Retrieve the minimum finding tied to exact code and execution path needed for the task, enforce field-level access, and label system facts separately from generated summaries or suggestions. Omit restricted context rather than exposing it to complete the workflow.

- Test evidence and missing-case identification. Detect test evidence and missing-case identification before a downstream action. Pause, request missing information, group the item, or escalate according to a documented rule, while preserving the evidence needed for a person to correct the decision.

## Controls and human review

Tie a code-review finding to the exact change and execution path. Engineers and code owners judge its relevance, request corrections and retain merge and release authority.

## How to evaluate the pattern

Review changes with missing context, compatibility risks and nondeterministic tests. Check whether findings identify a reproducible defect or project-rule departure and whether proposed test cases exercise the affected behavior.

## Prerequisites and limitations

Code review needs current repository conventions, ownership rules and test evidence. Revisit findings when the patch changes, and track rejected suggestions or missed regressions to improve the review criteria.

## Frequently asked questions

### What does the review look for?

Correctness, security, data and compatibility risks, and departures from project conventions and ownership rules.

### What does a finding include?

A finding tied to the exact code and the execution path involved.

### How are tests considered?

The review checks test evidence and identifies missing cases.

### Who decides whether a change merges?

Engineers and code owners. Merge authority stays with people.

### What risks does the design plan for?

Incorrect context, nondeterministic tests, security, backwards compatibility and reviewability.
