Insights / AI in engineering / Part 1 of 2

From Jira to Pull Request, Part 1

A pilot playbook for keeping AI-assisted development grounded in requirements.

Part 1 of 2. This part is the pattern I piloted, where it can mislead you, and what the pilot could not prove. Part 2 tests the open questions in a public reference implementation.

If your engineers use AI coding agents, you will likely meet this: the code arrives faster, and the same architectural corrections arrive in review.

That is what I saw on a mobile engineering team of roughly 15 engineers. A talented, highly engaged team was extending an established product to support additional use cases, which meant changes to data models, backend API interactions and application architecture, alongside technical debt and firm timelines. Engineers were already using AI tools, and some seniors had built good specification-driven practices, but those practices were fragmented. Experts kept explaining the same pattern, pull request after pull request, and became the bottleneck.

I designed an agent-based workflow to fix that and piloted it with five engineers on a medium-sized feature. This is a pilot account, not a results report. Product details are omitted.

From Jira to pull request: the pilot at a glance
01 · InputsJira storyPlus requirements, design and explicit scope
02 · Prepare + buildAgentsJira.md criteria, code, marked DC
03 · Agent reviewPR-review agentChecks architecture rules, marks CRC
04 · PR checksGitHub ActionsJira.md present and complete?
05 · DecisionHuman approvalBefore merge or deployment
The gapClaims, not proofDC and CRC record that a stage says it finished. Part 2 adds the evidence.
Level 1 overview of the pilot workflow. DC and CRC are status markers, not proof of correctness.

Is this your problem?

Look for these signs:

  • The same architectural correction appears in review more than once.
  • A few experts are the path every correction passes through.
  • Good practices exist, but each engineer prepares their own agent context.

If two of three are true, a shared workflow is worth trying.

The pattern, step by step

Step 1. Standardize what the agent reads. A Jira story describes bounded work, but the decisions needed to implement it often sit elsewhere. Give every run the same four inputs: the Jira story link, the broader Statement of Requirements (SOR), the technical design, and the explicit scope. MCP (Model Context Protocol, a standard way for an agent to read from tools like Jira and Confluence) can supply the access, but access to a document is not the same as applying it correctly.

From the pilot: reusable prompts took these four inputs, with MCP-connected tooling reaching Jira and Confluence.

Step 2. Turn requirements into checkable criteria. Have a requirements agent write acceptance criteria into a file in the development branch, so other people can inspect them instead of relying on a private chat.

From the pilot: a Developer-BA agent wrote these into Jira.md. Translation can change meaning, so I treat generated criteria as a proposed interpretation, and engineers still reviewed requirements alignment.

Step 3. Let the development agent implement, and mark each criterion. Each criterion gets a status marker.

From the pilot: the development agent marked each one DC (Dev Complete).

Step 4. Review with a second agent against written rules. Put architecture rules in files the reviewer reads.

From the pilot: the PR-review agent checked the code against the criteria, the scope and architectural rules written in Markdown, suggested inline changes, and marked criteria CRC (Code Review Complete).

Step 5. Add a mechanical check. A script can check presence and structure reliably.

From the pilot: GitHub Actions looked for Jira.md and its completion information. Missing information sent the PR back.

Step 6. Keep a human decision. Engineers review requirements alignment, architecture and coding standards, and approve before merge or deployment. Other controls were company-approved AI tools, role-based repository and Jira access, and existing CI/CD security scanning.

One rule throughout: keep scope explicit. Finding technical debt does not authorize an agent to refactor it in the current story.

Who did what: I designed the workflow and introduced the Developer-BA role, building on agents and practices the team already had. Engineers and technical leaders supplied the architectural decisions and evaluated the implementations.

Three places it can mislead you

1. Markers look like proof. DC and CRC record that a stage says it finished. Neither shows the behavior works. Each check answers a different question:

CheckQuestion it answersLimit
Workflow completenessIs the expected file present and filled in?A complete record can contain a wrong claim.
Acceptance criteria validationDoes the code do what was specified?The criteria may omit or misread a requirement.
Architecture conformance reviewDoes the change follow the documented rules?An agent can miss a violation or misapply a rule.
Test coverageWhich behaviors or code paths are tested?Coverage does not show the assertions are meaningful.
Requirements traceabilityCan a reviewer link a requirement to implementation and test evidence?A link makes evidence inspectable, not sufficient.

From the pilot: evidence links from each criterion to the code and the test that verify it were not a confirmed part of the workflow. They are the first thing Part 2 adds.

2. A review agent looks like enforcement. A Markdown instruction tells an agent how to behave. An inline finding communicates a concern. A repository rule decides whether a check blocks a merge. GitHub documents required status checks as part of protected-branch configuration; running a review action alone does not make its findings merge-blocking.[1]

From the pilot: I cannot now confirm which checks were configured as required merge conditions and which were advisory. If you adopt this pattern, write that boundary down: which checks are required, which findings need human resolution, and who can approve an exception.

3. Shared guidance goes stale. Reusable instructions create a maintenance job. When an architectural decision changes, stale guidance applied consistently spreads the wrong approach faster. Give each rule an owner and a version.

From the pilot: I cannot confirm that rule ownership and versioning were in place, so treat them as a recommendation, not something the pilot proved.

How to tell if it worked

From the pilot: we considered developer time saved, and saw smaller typical story estimates for most of the senior engineers. Estimates are a planning signal, not shorter cycle time and not proof of less architectural rework. I have no before-and-after measurement, and I am not claiming one.

If you try this, track these from the start:

  • Repeated architecture findings per pull request.
  • Review rounds caused by architectural corrections.
  • Expert time spent repeating the same guidance.
  • Delivery time and escaped defects, so a faster review does not hide weaker scrutiny.

What comes next

Part 2 closes these gaps in the open. I am building a small public reference implementation, written from scratch with no employer code or rules: a validator that fails a pull request when a criterion lacks implementation or test evidence, a required check, owned and versioned architecture rules, and a measurement approach. It will include one failing and one passing pull request so you can inspect the behavior. Its claims will be limited to what the repository demonstrates.

References

[1] GitHub Docs. About protected branches. See required status checks and pull request reviews.

Connect & collaborate

Let's Build What's Next.

Open to meaningful conversations with technology leaders, executive recruiters, founders, and engineering professionals.