Author: Jorge Bernal

  • Validating AI-generated code: tests, CI and requirement evidence

    A practical guide

    A green pipeline is a technical signal. Connect per-case results, versions and acceptance criteria to make an informed delivery decision.

    The agent completes a task, the code compiles and the pipeline turns green. Has the requirement been met? To answer, first establish what ran, against which version and how the result was compared with the criteria.

    In AI-assisted development, generation speed can make an existing distinction more visible: producing code, running tests and accepting a delivery are related but different activities. Useful review needs evidence for each.

    What a green pipeline demonstrates

    A CI status summarises the outcome of a configured workflow. GitHub Actions, for example, provides results and logs by run and job [1]. That information helps establish what work occurred; its meaning depends on the defined steps and conditions.

    A pipeline that only compiles does not demonstrate that functional tests ran. Another may execute a partial suite or exclude scenarios. Before interpreting green, inspect the steps, filters and reports produced.

    Test design and execution results

    A case linked to a requirement establishes a related test design. A result requires an applicable execution. Keep these situations distinct:

    • Not executed: a case exists, but there is no applicable result.
    • Passed: execution satisfied the defined checks.
    • Failed: execution recorded unexpected behaviour.
    • Skipped: the case did not execute in the reported workflow.
    • Unmapped: the external report has not been reliably related to a project test case.

    Tools may use different labels. The important point is to avoid treating missing evidence, an exclusion or an unknown identifier as a successful result.

    An example with two configurations

    Imagine an API offered in two customer configurations. A change modifies export authorisation. A suite runs in one configuration and all checks pass. That result provides evidence for the executed scope; it does not establish identical behaviour in the other configuration.

    Review should identify shared and specific criteria, check which cases apply to each configuration and locate the relevant executions. This is an illustrative example, not a customer case or a measured Orkenty result.

    A minimum evidence record

    To reconstruct an execution, we propose retaining at least six references:

    1. The requirement or criterion being verified.
    2. The test-case identifier and version.
    3. The evaluated repository and commit.
    4. The pipeline, job and attempt that produced the result.
    5. The applicable environment, configuration or variant.
    6. The observed outcome and its source report or evidence.

    When incorporating an external report such as JUnit XML, define identifier mapping before using it to summarise coverage. Similar names do not guarantee the same case. Repeating an import should not automatically count as a new product test execution.

    Avoid reviewing the same assumption twice

    When an assistant proposes both an implementation and tests based on an incorrect interpretation, the two may agree with each other. Review business criteria separately and add checks that challenge the proposed solution.

    For authorisation, test more than permitted access. Check denied access, role changes, another organisation’s data and configuration boundaries where these belong to scope. A passing result has meaning relative to the questions actually asked.

    Compare executions without losing context

    Comparing reports may reveal a regression or recovery, but only if cases and conditions are comparable. A new test, a skipped test and a test changing from pass to fail represent different situations.

    Define an explicit comparison baseline and retain original results. If the environment, test set or criterion changed, explain the difference before attributing an outcome to the generated code.

    From evidence to a delivery decision

    Acceptance can combine tests, code review, permission checks and a functional decision. What is needed depends on the risk and the specific change. Agree it before execution to avoid redefining success after seeing the results.

    Start with one requirement and check whether you can follow it to a case, an execution and the relevant commit. Then follow a failed result in the opposite direction. This simple exercise shows whether you have disconnected documents or an evidence chain people can actually consult.

    Reference and editorial scope

    [1] GitHub Docs: Using workflow run logs. Accessed 5 December 2026. The minimum record and review criteria are Orkenty’s editorial proposal; they do not imply certification or a guarantee of quality.

    Connect your engineering process.

    Explore requirements, quality and traceability in the context of your team.

    Explore Orkenty ↗ · Discuss your workflow ↗

    More articles on AI and ALM · info@orkenty.com

  • AI development and ALM: from a prompt to a traceable delivery

    A practical guide

    A practical approach to connecting requirements, context, changes and tests when your team develops software with artificial intelligence.

    An assistant can produce a convincing implementation and still solve a different problem from the one the business needed addressed. When work begins and ends in a conversation, the team may struggle to reconstruct what was requested, what was authorised and what evidence supported acceptance.

    ALM—Application Lifecycle Management—provides a structure for retaining those relationships throughout the software lifecycle. In an AI-assisted process, that structure helps turn a generated response into a change that the team can understand, review and maintain.

    A prompt needs a work reference

    The agent instruction is an operational input. The requirement describes the need, acceptance criteria define how to recognise a valid solution, and a work item defines the task. Relate the three without treating them as interchangeable documents.

    Before execution, establish a concrete reference: requirement version, change scope and permitted sources. If the need changes during implementation, record the decision. Rewriting a prompt without preserving the changed criteria makes the outcome harder to explain later.

    An example: purchase-request approval

    Consider an illustrative case: requests above 10,000 monetary units require approval by a manager. Asking only to “add approval for high amounts” leaves important questions unanswered.

    • Does the threshold apply before or after tax?
    • What happens at exactly 10,000?
    • Who may approve and who may view the result?
    • Can someone approve their own request?
    • What happens if the amount changes after approval?

    The answers belong in the criteria rather than in a model’s assumptions. Implementation work can reference the requirement, while test design covers values below, at and above the threshold, as well as permissions and subsequent changes.

    A workflow with five checkpoints

    1. Define. Agree the need, criteria, exclusions and acceptance owner.
    2. Prepare context. Select sources, architectural constraints and the agent’s authorised scope.
    3. Execute. Identify the attempt and relate its outputs to the branch, commit or proposed change.
    4. Verify. Review the code, run relevant tests and record outcomes with their scope.
    5. Accept. Compare evidence with the criteria and retain the owner’s decision.

    This workflow is a working proposal, not a certification or a guarantee that defects are absent. It can be applied with different repositories, CI tools and ALM platforms. Its value depends on relationships and decisions reflecting what actually happened.

    Which context is worth preserving?

    There is no need to archive every conversation indiscriminately. Preserve what helps explain a change: the need and version used, relevant sources, constraints, authorised scope, attempt identity, proposed outcome and review decision.

    Distinguish the context available during execution from the project’s current state. A query today may show requirements changed after that attempt. A version reference avoids attributing information to an agent before it existed.

    Review remains engineering work

    GitHub recommends assessing generated code through functional checks, comparison with project context and collaborative review. This supports a basic practice: an assistant’s response needs independent evaluation before becoming part of the product [1].

    In practice, assess behaviour, permissions, error handling and architectural fit. Asking the same assistant to assure you that its response is correct may provide clues; it does not replace an executed test or a review of the actual change.

    Measure delivery as well as generation

    To evaluate your process, observe time to acceptance, rework after review, subsequently detected defects and the effort required to reconstruct a decision. Define the period and unit of comparison before interpreting the data.

    A high count of generated tasks does not establish better delivery. A useful measure relates accepted work to review effort and observed quality. Where data is missing, record the absence rather than turning it into an assumed saving.

    A first action for your team

    Choose a small change and follow it from requirement to delivery decision. Can another person explain what was requested, what changed and what evidence justified acceptance without relying on the original author? The gaps will show where the process needs reinforcement.

    Reference and editorial scope

    [1] GitHub Docs: Review AI-generated code. Accessed 5 December 2026. The workflow and example are Orkenty’s editorial proposal, not customer results or a claim of compliance with a standard.

    Connect your engineering process.

    Explore requirements, quality and traceability in the context of your team.

    Explore Orkenty ↗ · Discuss your workflow ↗

    More articles on AI and ALM · info@orkenty.com