Workflow automation · Prototype

Bug Ticket Routing

A rules-based router that suggests an owner for each new bug, explains the choice, and sends unclear tickets to a person instead of forcing a match.

Product
Bug triage workflow for an engineering team
Contribution
Routing rules, decision logic, API design, interface design, and front-end build
Status
Working prototype with sample tickets and sample engineers
Measure after launch
Time to first owner, reassignment rate, and critical-bug wait

Try this decision

Which assignments should still go to a person?

Lower the confidence threshold and see which tickets the rules pick up. Check the team’s capacity before deciding whether the extra assignments are worth the risk.

Try the routing rules
01

Try the router on eight sample bugs.

Open any ticket to see how each engineer scored. Move the confidence threshold, turn the capacity rule off, or assign a ticket yourself and watch load and the queue change.

6Assigned by the rules
2Sent to a person
0Assigned by hand

BUG-4101

Invoice shows the old rate after a mid-cycle plan change

critical severityBillingEnterprise
Ana R.71% confidence

An enterprise customer upgraded mid-cycle and the invoice still charged the old rate. Two other accounts report the same wrong total.

Matched words: invoice, charge, plan change

  • Ana R.67Owns Billing · Skill match: invoice · 3 of 5 slots free
  • Chloe M.35Backup for Billing · 3 of 4 slots free
  • Ben K.141 of 5 slots free · On call for critical severity
  • Dev P.51 of 4 slots free
  • Eli S.41 of 5 slots free

BUG-4102

Teams locked out after the SSO session times out

critical severitySign-in
Ben K.83% confidence

Several teams cannot log in after the SSO session expires. Refreshing the page loops back to the sign in screen.

Matched words: log in, sign in, sso, session, locked out

  • Ben K.79Owns Sign-in · Skill match: sso, session · 1 of 5 slots free · On call for critical severity
  • Dev P.25Backup for Sign-in · 1 of 4 slots free
  • Chloe M.153 of 4 slots free
  • Ana R.82 of 5 slots free
  • Eli S.41 of 5 slots free

BUG-4104

Android app crashes when opening notifications

high severityMobile app
Dev P.74% confidence

The Android app crashes on launch for users with many push notification entries. iOS is unaffected.

Matched words: ios, android, push notification

  • Dev P.70Owns Mobile app · Skill match: ios, android, push, crash · 1 of 4 slots free
  • Eli S.24Backup for Mobile app · 1 of 5 slots free
  • Chloe M.153 of 4 slots free
  • Ben K.100 of 5 slots free · On call for high severity · At capacity, skipped
  • Ana R.82 of 5 slots free

BUG-4105

Webhook retries stop after the third failed delivery

high severityIntegrations
Eli S.73% confidence

Customer webhook deliveries stop retrying after three failures, so downstream systems miss events. The Salesforce sync is affected.

Matched words: webhook, sync, salesforce

  • Eli S.69Owns Integrations · Skill match: webhook, salesforce, sync · 1 of 5 slots free
  • Ben K.30Backup for Integrations · 0 of 5 slots free · On call for high severity · At capacity, skipped
  • Chloe M.153 of 4 slots free
  • Ana R.82 of 5 slots free
  • Dev P.00 of 4 slots free · At capacity, skipped

BUG-4108

Refund went out twice and the API token was rejected

high severityTwo components tie
Needs human triageTwo components match equally well

A refund payment was sent twice, and the same customer's API token is rejected. It is not clear whether the two are related.

Matched words: refund, payment, api, token

  • Ana R.18Skill match: refund · 2 of 5 slots free
  • Chloe M.153 of 4 slots free
  • Ben K.100 of 5 slots free · On call for high severity · At capacity, skipped
  • Eli S.10Skill match: api · 0 of 5 slots free · At capacity, skipped
  • Dev P.00 of 4 slots free · At capacity, skipped

BUG-4103

CSV export stops at rows with accented names

medium severityReporting
Chloe M.84% confidence

The report export ends at the first row that contains an accented name. Dashboard totals are correct.

Matched words: report, dashboard, export, csv

  • Chloe M.80Owns Reporting · Skill match: csv, export · 3 of 4 slots free
  • Ana R.28Backup for Reporting · 2 of 5 slots free
  • Ben K.00 of 5 slots free · At capacity, skipped
  • Dev P.00 of 4 slots free · At capacity, skipped
  • Eli S.00 of 5 slots free · At capacity, skipped

BUG-4107

The product feels slow early in the week

medium severityNo component found
Needs human triageNo component could be identified

A few users say it feels slow on Mondays. No specific page or step was given.

  • Chloe M.102 of 4 slots free
  • Ana R.82 of 5 slots free
  • Ben K.00 of 5 slots free · At capacity, skipped
  • Dev P.00 of 4 slots free · At capacity, skipped
  • Eli S.00 of 5 slots free · At capacity, skipped

BUG-4106

Filter tooltip overlaps the chart legend on small screens

low severityReporting
Chloe M.68% confidence

Cosmetic issue: the report filter tooltip covers the chart legend on narrow screens.

Matched words: report, chart, filter

  • Chloe M.65Owns Reporting · Skill match: chart · 2 of 4 slots free
  • Ana R.28Backup for Reporting · 2 of 5 slots free
  • Ben K.00 of 5 slots free · At capacity, skipped
  • Dev P.00 of 4 slots free · At capacity, skipped
  • Eli S.00 of 5 slots free · At capacity, skipped
02

New bugs wait for someone to decide who owns them.

In many teams, every new bug lands in one shared queue. A person has to read it, judge the right team, and reassign it if the first call was wrong.

Triage is a bottleneck

One person reads every ticket before work can start, so the most urgent bugs can sit behind the least urgent ones.

Wrong owner, lost time

A bug sent to the wrong engineer is reassigned, sometimes more than once, and the customer waits through each handoff.

Workload is invisible

Without a view of who already has too much open, the same few people absorb most of the urgent work.

Automation can overreach

A router that always picks an owner will sometimes be confidently wrong. Unclear tickets need a person, not a guess.

03

Use it as an API.

The same rules are available as a small JSON endpoint, the way another tool, such as a ticketing system or chat bot, would call them. This is a real endpoint on this site. Edit the request and send it.

Response

Send a request to see the status code and the JSON that comes back.

Same call from a terminal

curl -X POST https://www.velikson.com/api/v1/routing-suggestions \
  -H "Content-Type: application/json" \
  -d '{"title":"Webhook retries stop after the third failed delivery","description":"Customer webhook deliveries stop retrying after three failures. The Salesforce sync is affected.","customerTier":"standard"}'
EndpointWhat it does
POST /api/v1/routing-suggestionsReturns a suggested owner, confidence, and reasons for one bug. Stateless; nothing is stored.
GET /api/v1/routing-suggestionsDescribes the fields and limits, so a developer can try the endpoint without reading a separate document.
StatusWhen it is returned
200A suggestion. This includes tickets that need a person, because that is a valid outcome, not an error.
400Invalid JSON or a field that fails a rule. The body names the field and gives a stable error code.
413The request body is larger than the limit.
415The request was not sent as application/json.
405The method is not supported. Only GET and POST are.
API decision

A suggestion, not an assignment

The endpoint never writes to a tracker. Callers decide what to do with the answer, which keeps a wrong guess from becoming a wrong assignment.

API decision

Handoff to a person is a normal answer

An unclear ticket returns 200 with outcome human_triage. Treating it as an error would push every integration to build special cases for something expected.

API decision

Explain the answer in the response

Every response lists each candidate, their score, and the reasons. An integration can show why, and a person can disagree.

API decision

Versioned path and stable error codes

The v1 in the path lets the rules change without breaking callers. Codes such as invalid_request stay the same even when the wording improves.

A production version would add
  • Authentication with per-team keys, so each team sees its own engineers and rules.
  • Rate limits with 429 responses and a Retry-After header.
  • An idempotency key on any endpoint that writes an assignment.
  • A webhook for new tickets, so routing starts without polling.
  • An OpenAPI description and a changelog for each version.
04

Every suggestion comes from written rules.

The router reads the ticket text for a component and a severity, scores each engineer on five signals, and shows the reasons next to the number.

SignalPointsWhy it is in the rules
Owns the component45The person who already knows the area is usually the fastest fix. Scaled down when only one keyword matched.
Backup for the component20Gives a clear second choice when the owner is full or away, instead of a random one.
Skill words in the ticket20Catches cases where the component is right but one person has the specific experience, such as invoices or webhooks.
Free capacity20Spreads work and keeps one person from collecting every urgent bug.
On call for high severity10High and critical bugs get a bonus for whoever is on call, because response time matters most there.
Confidence0–100Top score divided by the 95-point maximum, minus 10 when the runner-up is within 8 points. Anything below the threshold goes to a person.
Decision

Send unclear tickets to a person

When no component matches or two tie, confidence is capped and the ticket goes to triage. A wrong auto-assignment costs more than a short wait.

Decision

Handle the most severe tickets first

Critical bugs claim capacity before low ones, so a cosmetic fix cannot take the last open slot from an outage.

Decision

Plain rules before machine learning

Written rules can be explained to the team and changed in a meeting. A learned model needs historical data and is harder to audit.

Decision

People can always override

Every override is logged. In a real rollout, the override log is the best source for improving the rules.

05

What would show it works.

These are the measures to track in a real pilot. The prototype reports none of them because it has no live data.

MeasureWhat it showsGuardrail
Time to first ownerWhether tickets stop waiting for manual triage.Compare against a recent baseline for the same bug types.
Reassignment rateWhether the suggested owner was right.Track separately for auto-assigned and hand-assigned tickets.
Critical-bug waitWhether urgent work moves faster, not only easy work.Review every critical ticket that went to triage.
Share sent to a personWhether the threshold is set sensibly.Too low means risky guesses; too high means little time saved.
06

What would come next.

Connect a real ticket source

Read new tickets and team capacity from the tracker the team already uses, and write the owner back only after a pilot period of suggestions.

Tune rules from overrides

Review the override log monthly to find keywords, skills, or ownership rules that the router keeps getting wrong.