How to Build Quality Gates into Agentic Coding Workflows

Nnenna Ndukwe, Qodo57:45 · Oct 2026 · 4,445 views
Thumbnail for How to Build Quality Gates into Agentic Coding Workflows Watch on YouTube
TL;DR
  1. 1

    AI coding workflows need explicit standards, repository context, and verification steps across planning, implementation, review, and deployment.

  2. 2

    A detailed plan should record the expected behavior, applicable rules, skills, tests, verification gates, starting branch state, and completion notes before code is written.

  3. 3

    Pull request review is part of the workflow: teams should inspect findings, document fixes or deferrals, rerun verification after changes, and resolve remaining issues before treating the work as complete.

Summary

Nnenna Ndukwe demonstrates a structured workflow for using coding agents on a small FastAPI payments application. The workflow begins by defining engineering standards and storing them in rules and skills that agents can read. A planning stage selects the relevant payment rules, implementation skills, test scenarios, and verification commands before any code is written. The build plan records the branch state, execution steps, test plan, completion notes, and deferred work. Local checks combine deterministic tools with AI review. After implementation, a pull request is reviewed with Qodo using repository and organizational context. Findings include rule violations, skill insights, and a refund idempotency issue. Ndukwe then uses a resolver skill to fix the findings, update the pull request, and run verification again. She is clear that a passing local run does not close the loop. The review findings and evidence still need to be addressed.

Key ideas
03:03

AI coding needs quality gates across the whole development process

Nnenna Ndukwe says code quality can fail during planning, development, code review, testing, or deployment. AI-generated code can look plausible while still violating team standards or introducing risks. Her answer is to define what quality means for the team, codify those standards somewhere agents can read, and distribute the context to command-line tools, IDEs, and CI workflows. She wants the same standards checked repeatedly rather than introduced only at the pull request stage. The purpose is practical: a developer should be able to review the result and feel safe putting their name on it.

05:14

Repository rules and skills give agents reusable context

The SignalPay repository contains an agents.md file, rules, skills, documentation, tests, the API, static analysis configuration, and a CI verification workflow. Ndukwe asks the agent to read the repository instructions, install or verify the local skills, and select the rules relevant to the payment task. Skills guide work such as test-driven development, behavior-driven development, implementation, and review. She also describes Qodo as a place where rules and skills can be managed across repositories. The same context can then inform planning, code generation, local review, and pull request review.

16:59

The workshop uses a small payment change with real safety concerns

Participants choose between a refund workflow and capture-retry handling in a deliberately narrow FastAPI payments API. The change is small, but payment mutations can produce code that looks correct while mishandling sensitive behavior. Ndukwe uses that tension to make the workflow concrete. The agent first reads the task and repository context, then identifies the payment rules that apply. Participants can work hands-on or observe, and the repository includes instructions for setting up the application and running the checks. The narrow scope keeps attention on process, evidence, and failure handling rather than on building a large application.

24:47

A detailed plan connects behavior, skills, tests, and gates

Before implementation, Ndukwe switches the agent into plan mode and asks for a high-level implementation plan and a build-session execution plan. The templates record the problem, constraints, scope, behavior scenarios, applicable rules, skill routing, verification gates, failure and recovery rules, and commit plan. The build plan also captures the starting branch, current local verification process, expected commands, implementation handoff, execution steps, test plan, and completion notes. She says the agent should know every step before making the change. The plan is also where deferred work and changes of mind are documented.

28:54

Local verification combines deterministic tools with agent review

The repository uses local gates before a pull request is reviewed. Ndukwe names Ruff, Pyright, Bandit, Pytest, Semgrep, and conventional commits as parts of the local verification process. These tools provide deterministic evidence that the change preserves the local contract. She also recommends running a local code review with the coding agent, regardless of which agent or review tool a team uses. Small problems can be corrected before another developer sees the code. The local process does not replace cloud review, since the pull request stage can apply broader repository and organizational context.

36:24

Rules need human approval and severity controls

Qodo can ingest rules written in a repository and can suggest additional rules inferred from codebase conventions. Inferred rules are presented for review rather than activated automatically. A team can edit the rule, add good and bad code examples, choose a category, and set its warning level before accepting it. Ndukwe shows categories such as accessibility, correctness, maintainability, architecture, and security. Severity determines how a finding affects the pull request. A rule can be a merge blocker or an issue that must be addressed without blocking the merge. She also acknowledges that fully deterministic rule selection remains a product concern.

43:28

Pull request findings provide evidence beyond the code diff

In the review example, Qodo identifies relevant rules and skills from the connected context. One finding requires docstrings for Python functions and is marked action required because the organization assigned that severity. Another finding concerns refund idempotency: the implementation stores and replays refund results in a process-local dictionary, which is not durable persistent storage. The review includes the related code, evidence, rules, and files. Ndukwe also explains that the backend clones the repository temporarily so it can understand the broader change context rather than reviewing only the diff.

49:03

Fixes should trigger another verification pass

Ndukwe demonstrates a Qodo PR resolver skill that retrieves the findings and offers either individual review or an automatic fix for all issues. The resolver makes commits, updates the pull request with a summary, and marks resolved findings as complete. She agrees with a participant who says automation should include verification after fixes. An agent may decide whether to run verification, so the prompt or workflow should require it when the code has changed. Her final result shows all reported issues resolved. The workflow therefore ends with updated evidence and a new verification pass, rather than with the first successful local run.

"I think that a plan should answer what behavior are we changing, which rules apply, what skills would guide the agent, which tests prove the expected behavior, and what kind of quality gates should pass before we review."25:20
Who should watch
  • You are using coding agents and need a repeatable way to carry repository rules into planning, implementation, and pull request review.
  • Your team has local checks, but agents still produce changes that need clearer evidence, rule selection, or follow-up after review.
  • You are deciding how much control to give automated fixes and want a workflow that reruns verification after the code changes.