Home / Insights / QA and Software Testing

QA and Software Testing

AI Autofix in Software Maintenance: Which Bug Tickets an Agent May Fix in 2027, and the Verification Gate Before Merge

Duolingo has described an agent that turns bug reports into fix branches with a beta build attached, and Sentry, GitHub and Databricks now ship agents that propose or open fixes on their own. In September, CERT/CC published a note on fabricated error reports that could hijack one of those pipelines. For maintenance teams in 2027 the question is no longer whether agents fix bugs, but which tickets they may touch and what evidence a fix needs before it merges. Here is the triage policy and verification gate I use.

TopicsQA and Software TestingAI Agents and Automation

Key takeaways

  • Bug-fixing agents are now product features, not experiments: Sentry Seer can run Autofix automatically and open a PR, GitHub’s Copilot cloud agent drafts PRs from issues, Databricks announced Genie ZeroOps for data operations, and Duolingo has published its own agent for bug tickets.
  • The bug report is the attack surface. CERT/CC note VU#212479 (CVE-2026-90999) describes fabricated error reports leading to code execution in a coding-agent environment before any human saw a PR.
  • Classify every maintenance ticket green, amber or red before an agent touches it. Green means the agent may draft a fix; amber means it investigates and a person fixes; red means read-only.
  • No agent fix merges without a six-item evidence pack: a failing reproduction, a root-cause note, a minimal diff, a passing regression run, a verified build and an independent reviewer.
  • Put the policy in the maintenance agreement and report four numbers monthly: accepted-fix rate, 30-day reopen rate, escaped regressions and reviewer minutes per agent PR.

Most of the maintenance work I plan is not glamorous. It is a queue: crash reports, a broken export, a date that renders wrongly in one locale, a dependency that changed behaviour in a minor version. In 2026 that queue acquired a new kind of worker. Agents can now read a ticket, look at logs and recent changes, write a fix and open a pull request, sometimes without anyone asking them to.

That is good news for anyone paying for software maintenance, because a large share of maintenance cost is the investigation before the fix. It is also a new quality and security risk, because the agent acts on the ticket, and the ticket is written by whoever sent it. This article is the policy I put in front of clients before we let an agent work on their maintenance queue: which tickets it may touch, how the intake is protected, what evidence a fix needs, and what to measure. It builds on our engineering practices and the way our QA and Testing team gates releases.

What changed in 2026

Three things moved from blog posts and demos into shipped products and documented workflows this year.

Agents that act on tickets are now standard features

Sentry’s documentation describes Seer as its AI debugging agent. Its Autofix feature can propose a root cause and a solution, and can be configured to go further and open a pull request. It can also hand the issue to an external coding agent such as Claude Code, Cursor or GitHub Copilot. Automatic runs are limited to issues with at least 10 events in the last 14 days that pass a fixability score, and a project can cap automation at the root cause, the plan or a drafted PR. Sentry also notes that on 8 December 2026 Seer moves to usage-based credits, which matters for anyone budgeting maintenance.

GitHub’s Copilot cloud agent takes an issue and works on a branch of its own. Its documentation lists guardrails that I now treat as the minimum for any agent: it can push to a single branch, its pull requests are drafts that a human must review and merge, the person who asked for the PR cannot approve it, and by default CI workflows do not run on its code until someone with write access approves them.

Databricks announced Genie ZeroOps in June 2026 as a background agent that monitors pipelines, jobs, tables and models, traces failures through lineage, proposes a fix and validates it in a sandbox against shallow clones of production data, with nothing applied until a person approves. That is the same pattern applied to data operations, and its emphasis on verification is the right one.

Teams are publishing how they use them

In November 2026 Duolingo’s developer-experience team described AI STR Fix, an agent pipeline built on the Claude Agent SDK that works on shake-to-report bug tickets. The steps are instructive: gather the relevant code, rebuild a timeline of user activity, filter running experiments, find recent related PRs, reproduce the bug with the app’s debug tools, suggest an owner, then implement, self-review, iterate on CI failures and produce a beta build of the fix branch so anyone can verify it. The post frames the engineer’s role as moving from writing the fix to verifying and reviewing one. It does not publish success rates, and neither will I invent any.

The first serious incident arrived

On 16 September 2026 CERT/CC published vulnerability note VU#212479 (CVE-2026-90999) for Sentry Seer. According to the note and the researchers at agyn who reported it, an attacker with no account could submit a fabricated error report to a project’s public DSN; where automatic remediation and coding-agent handoff were enabled, the report could lead to arbitrary code execution in the coding-agent environment and access to connected repositories, before any PR existed for a human to review. At publication, CERT/CC said it had no statement or patch information from the vendor. The listed mitigations were to disable automated remediation flows, restrict package installation by the coding agent, or disable the handoff until a fix is available.

The lesson is not about one vendor. It is that an automated maintenance pipeline turns the ticket queue into an input channel for code changes, and most ticket queues accept input from the public.

What the data says about trust and stability

Two surveys are worth keeping in view when deciding how much autonomy to give an agent in maintenance, where a bad fix lands directly in production.

FindingSourceWhat it means for maintenance
90% of respondents use AI at work; 30% report little or no trust in AI-generated codeDORA 2025, State of AI-assisted Software Development (nearly 5,000 respondents)Adoption is near universal, so the policy question is control, not permission
AI adoption now has a positive relationship with throughput but still a negative relationship with software delivery stabilityDORA 2025Faster fixes can mean more incidents unless the safety nets keep up
84% use or plan to use AI tools; 46% distrust their accuracy against 33% who trust itStack Overflow Developer Survey 2025Reviewers are sceptical, which is healthy, but scepticism costs review time
66% cite AI solutions that are almost right, but not quite, as the top frustration; 45% say debugging AI-generated code takes more timeStack Overflow Developer Survey 2025An almost-right bug fix is the most expensive kind: it closes the ticket and reopens later

DORA’s central point is that AI amplifies the system it lands in. A maintenance team with good tests, small changes and clear ownership will get faster. A team without them will close tickets faster and reopen them faster. The policy below is designed to make sure the first case is the one you get.

Treat every bug report as untrusted input

OWASP lists prompt injection as the first risk in its 2025 Top 10 for LLM applications and separates out indirect injection, where the model takes instructions from external content such as websites or files. A bug ticket, an error event, a log line, a customer email and a screenshot are all external content. An agent that reads them and can then run code or push to a repository needs the same intake controls you would put on a public upload form.

This is the intake checklist I apply before any agent reads a ticket:

  • Know where each ticket came from. Tag tickets by channel: internal QA, authenticated users, public error collection, customer email. Only internal and authenticated channels may trigger agent work automatically.
  • Require corroboration for public-channel reports. An error event from a public endpoint proves that someone sent it, not that the error happened. Match it against server-side logs, traces or a real user session before an agent acts.
  • Strip instructions, keep evidence. The agent should receive the stack trace, the affected version and the reproduction data, not free text that can carry instructions. Where free text is needed, pass it as quoted data and tell the agent never to follow it.
  • No new dependencies without a person. Block package installation and network access beyond an allowlist in the agent’s environment. Several published mitigations for VU#212479 come down to this one control.
  • Scope credentials to one repository and one branch. The agent’s token should not be able to merge, change CI configuration, read secrets or touch other repositories.
  • Log everything. Keep the ticket, the agent’s inputs, its tool calls and its diff together, so a reviewer and an auditor can see why a change was made.

A traffic-light triage policy for agent fixes

Not every ticket is a good candidate for an agent. The deciding factors are not how hard the bug is but how easy it is to prove the fix is right, and how bad it is if the fix is wrong. I classify each ticket before any agent works on it, and the classification is a field on the ticket, set by a person or by a rule the client has agreed.

ClassTypical ticketsAgent roleWho writes the final fix
GreenReproducible crashes with a clear stack trace, UI defects with a screenshot and steps, copy and translation errors, failing tests after a dependency update, accessibility defects with a clear WCAG criterionInvestigate, reproduce, draft a fix and a test, open a draft PRAgent drafts; engineer reviews and owns the merge
AmberIntermittent or data-dependent bugs, performance regressions, defects spanning several services, anything touching shared libraries or database migrationsInvestigate and write a root-cause note with evidence; may propose a patch as a suggestion onlyEngineer, using the agent’s investigation
RedAuthentication, authorisation, payments, personal data handling, cryptography, audit logging, safety-relevant logic, regulatory reporting, security vulnerabilities under embargoRead-only: summarise the ticket, find related code and historyEngineer, with a second reviewer; agent output treated as notes

Three rules keep the classification honest:

  1. Classify by the files touched, not just the ticket text. If a green ticket’s fix ends up changing a file on the red list, the PR is automatically reclassified and the agent’s draft is closed or handed to a person. A path-based rule in the repository makes this mechanical.
  2. No reproduction, no green. If the agent cannot reproduce the bug in a test or a debug session, the ticket drops to amber. Duolingo’s pipeline puts reproduction before implementation for a reason.
  3. Security fixes follow the security process. A vulnerability fix may well be quick for an agent to write, but disclosure timing, embargoes and reporting duties make it a red ticket regardless of size. Our patching guide covers the timelines.

The verification gate: a six-item evidence pack

The risk with agent fixes is not that they fail CI. It is that they pass CI and are still wrong: they fix the symptom in the stack trace, suppress the error, or change a test to match the bug. The verification gate exists to catch the almost-right fix. A draft PR from an agent is not reviewable until it carries all six items.

EvidenceWhat it must showProduced byChecked by
1. Failing reproductionA test or recorded session that fails on the current main branch for the reason in the ticketAgentReviewer runs it against main
2. Root-cause noteTwo to five sentences: what was wrong, why, and why the change fixes the cause rather than the symptomAgentReviewer; QA for user-facing bugs
3. Minimal diffOnly the files needed for the fix; no unrelated refactors, no dependency changes, no edited assertions in existing testsAgentPath rules in CI plus reviewer
4. Regression runThe full regression suite for the affected area passes, plus the new test, on the agent’s branchCICI, with results linked in the PR
5. Verified buildA preview or beta build where the original steps no longer reproduce the bugCI and QAQA or the ticket’s reporter
6. Independent reviewApproval from an engineer who did not trigger the agent and who owns the code areaReviewerBranch protection

Item 3 deserves emphasis. The cheapest way for any automated fixer to make a red build green is to edit the test. I ask clients to add a CI rule that fails an agent PR if it modifies an existing assertion, deletes a test or adds a skip marker, unless a person has explicitly allowed it on that PR. GitHub’s guardrails, where the requester cannot approve the agent’s PR and workflows wait for approval, make item 6 enforceable rather than a convention.

Item 5 is where QA earns its place. For user-facing bugs, the person who reported the issue or a tester following the original steps is the best judge of whether it is fixed. A beta or preview build per fix branch, as in the Duolingo pipeline, makes that cheap. For data fixes, the Databricks approach of validating against a clone of production data is the equivalent. Our article on AI test runners covers what counts as a pass when an agent runs the check.

What to write into the maintenance agreement

If your maintenance partner uses agents, and in 2027 most will, the agreement should say how. These are the clauses I recommend, phrased as what the client should ask for:

  • Disclosure. The partner states which agents and platforms it uses on your code, where they run, and which of your data they can read.
  • Autonomy by ticket class. The green, amber and red lists are an annex to the agreement, with the file paths that force red. Changes need written agreement from both sides.
  • No automatic merge. Agent changes reach production only through a human-approved PR, under your branch protection rules, with the six-item evidence pack attached.
  • Intake controls. Automatic agent runs only on tickets from agreed channels; public-channel reports require corroboration first.
  • Credentials and environment. Agent tokens are scoped to the minimum, rotated, and revocable by you; package installation and outbound network access in the agent environment are restricted.
  • Audit trail. Ticket, agent inputs, tool calls, diff and approvals are retained for an agreed period and available on request.
  • Cost treatment. Agent and platform usage costs are either included in the fee or passed through at cost with a monthly cap. Usage-based pricing, such as Seer’s move to credits in December 2026, makes this a real line item.
  • Responsibility. The partner remains responsible for the quality of merged changes, whoever or whatever wrote the first draft. The SLA clock measures time to a verified fix, not time to a PR.

If your agreement predates agents, our planning checklists include a maintenance review you can use as a starting point.

Four numbers to report every month

Agents make it easy to report activity: tickets touched, PRs opened, lines changed. None of those tell you whether maintenance got better. These four do, and I ask for them in every monthly maintenance report. The thresholds are our working targets for a first quarter, not industry benchmarks.

MetricDefinitionWhy it mattersWorking target in the first quarter
Accepted-fix rateAgent draft PRs merged with no more than minor edits, divided by agent draft PRs openedShows whether the green list is set correctlyWatch the trend; below about half, narrow the green list
30-day reopen rateTickets closed by an agent-drafted fix that reopen or recur within 30 days, compared with human-written fixesCatches the almost-right fixNo higher than the human baseline
Escaped regressionsProduction incidents traced to an agent-drafted changeThe stability signal DORA warns aboutZero tolerance; each one gets a review
Reviewer minutes per agent PRTime from review start to decisionShows whether review is the bottleneckLower than the time a person would take to write the fix

The fourth metric is the one teams forget. If a reviewer needs 40 minutes to verify a fix that would have taken 30 minutes to write, the agent is not saving money on that ticket class. Our article on review capacity explains how to plan for this.

A 90-day rollout for the first quarter of 2027

WeeksFocusExit criterion
1–2Agree the green, amber and red lists and the red file paths; set up intake tagging by channel; scope agent credentials; restrict the agent environmentAnnex signed; a test ticket from a public channel cannot trigger an agent run
3–4Agents run on green tickets in investigation-only mode: root-cause notes and reproductions, no PRsMost root-cause notes judged correct by the owning engineer
5–8Agents open draft PRs on green tickets with the six-item evidence pack; CI rules for test edits and red paths switched onFirst monthly report with all four metrics
9–12Review the metrics; widen or narrow the green list; decide whether amber tickets get suggested patchesWritten decision on the next quarter’s scope

Staying in investigation-only mode for two weeks feels slow, but it is the cheapest way to learn whether the agent understands your codebase before it changes it, and the root-cause notes are useful on their own.

Ten questions to ask your maintenance partner

  1. Which agents work on our code, where do they run, and what can they read?
  2. Which tickets can trigger an agent automatically, and from which channels?
  3. How do you confirm that a bug reported through a public channel actually happened?
  4. Can an agent install packages or reach the internet while working on our code?
  5. What can the agent’s credentials do, and how quickly can we revoke them?
  6. Show us an agent PR with its evidence pack. Who approved it, and were they the person who triggered it?
  7. How do you stop an agent from editing or skipping tests to make a build pass?
  8. Which files and areas are never changed by an agent draft?
  9. What were last month’s accepted-fix rate, reopen rate and escaped regressions?
  10. How are agent and platform costs charged, and is there a cap?

A partner who can answer these with examples from a real queue is running agents under control. If you want our answers, they are part of how our Software Maintenance team works.

Frequently asked questions

Should we let an agent merge its own fixes for low-risk bugs?

Not in 2027. The tools we reviewed are designed around human approval: GitHub’s cloud agent cannot approve or merge its own PRs, Databricks applies nothing without approval, and Sentry lets you cap automation at a drafted PR. The saving from an agent comes from investigation and drafting, and the review step is what keeps an almost-right fix out of production.

Is it safe to connect an error-monitoring tool directly to a coding agent?

Only with intake controls. CERT/CC note VU#212479 shows that fabricated error reports sent to a public collection endpoint could reach a coding agent automatically. Restrict automatic runs to corroborated issues, block package installs and broad network access in the agent environment, and scope credentials tightly, or keep the handoff manual.

Which bugs are agents best at fixing?

In our experience, reproducible defects with a clear signal: a crash with a stack trace, a UI defect with steps and a screenshot, a test broken by a dependency update. What they have in common is that a failing test can prove the bug and a passing one can prove the fix. Intermittent, data-dependent and cross-service bugs are better handled by an engineer using the agent’s investigation.

Does using agents change the maintenance SLA?

It should change what the SLA measures. Measure time to a verified fix in production, not time to a pull request, and keep separate targets for red tickets such as security and payments, which follow their own process whoever drafts the change.

How do we budget for agent costs in maintenance?

Treat them as a variable line with a monthly cap until you have three months of data. Several tools price by usage; Sentry, for example, moves Seer to usage-based credits on 8 December 2026. Compare the cost per accepted fix with the engineering time saved, including reviewer time.

Sources and methodology

Every figure above comes from the source listed here, checked on the date shown. Where a source did not publish a number, I have said so rather than estimate one. Thresholds in the metrics table are PoliteTech’s working targets, not industry benchmarks; the triage classes and evidence pack are PoliteTech’s own practice.

  1. Duolingo Blog: How We Built an AI Agent to Fix Software Bugs (4 November 2026) — accessed 26 November 2026. Supports: pipeline steps (code context, user activity, experiments, related PRs, reproduction, owner, self-review, CI iteration, beta build) and the shift to verifying and reviewing fixes; no success rates published.
  2. CERT/CC Vulnerability Note VU#212479, Sentry Seer (CVE-2026-90999), 16 September 2026 — accessed 26 November 2026. Supports: code execution in the coding-agent environment and repository access via attacker-controlled input; no vendor statement or patch information at publication; listed mitigations.
  3. agyn: research post on the Sentry Seer autofix vulnerability (14 September 2026) — accessed 26 November 2026. Supports: attack via fabricated error reports to a public DSN before any PR exists; exposure conditions; recommended mitigations.
  4. Sentry documentation: Seer Autofix — accessed 26 November 2026. Supports: Autofix can open PRs and hand off to coding agents; automatic-run criteria (10 events, 14 days, fixability score); automation stopping points; move to usage-based credits on 8 December 2026.
  5. GitHub Docs: Risks and mitigations for GitHub Copilot cloud agent — accessed 26 November 2026. Supports: single-branch push, human review and merge of draft PRs, requester cannot approve, workflows wait for approval.
  6. Databricks Blog: Introducing Genie ZeroOps (16 June 2026) — accessed 26 November 2026. Supports: background agent that detects, assesses, remediates and verifies in a sandbox with shallow clones; nothing applied without approval.
  7. Google Cloud / DORA: Announcing the 2025 DORA Report, State of AI-assisted Software Development (23 September 2025) — accessed 26 November 2026. Supports: 90% use AI at work; 30% little or no trust in AI-generated code; positive relationship with throughput, negative with stability; nearly 5,000 respondents.
  8. Stack Overflow Developer Survey 2025: AI section — accessed 26 November 2026. Supports: 84% use or plan to use AI tools; 46% distrust vs 33% trust accuracy; 66% almost-right frustration; 45% say debugging AI-generated code takes more time.
  9. OWASP Gen AI Security Project: LLM01:2025 Prompt Injection — accessed 26 November 2026. Supports: prompt injection as the top LLM risk; definition of indirect prompt injection from external sources; human approval for high-risk actions.

Want agents on your maintenance queue, under control?

Tell us about your ticket queue and release process, and we will propose a green, amber and red list and a verification gate that fits. See our Software Maintenance and QA and Testing services.