Atris

Sort help desk tickets and find repeats.
Done by an agent. Checked twice.

Every ticket sorted by category and item, duplicates set aside and the problems that keep coming back ranked by ticket count.

Have Atris do this for you›

1

Real files in

  • categories.md
    The help desk's seven ticket categories with typical words and the written rule for choosing one. 42 lines, 2 KB.
  • items.csv
    Nine shared items with their official names and the other names staff use for them. 10 lines, 500 bytes.
  • tickets.csv
    79 help desk tickets from two weeks, with repeat problems, four duplicates, blank item fields and items named several ways. 80 lines, 12 KB.

Sample data written by Atris. Not a real company.

2

Three steps

  1. 1.Read the tickets and the lists
  2. 2.Sort every ticket
  3. 3.Rank the repeat problems

Claude Sonnet 5.5, 1 min 40 s. No web. It never saw the check.

3

Checked twice

  • ✓Passed: 79 of 79 tickets appear once in tickets_sorted.csv with a category from the written list
  • ✓Passed: 64 of 64 tickets whose subject points to one category carry that category
  • ✓Passed: 45 of 45 tickets with an affected item filled in carry its official name and 34 of 34 others carry unknown or a listed item that the ticket names
  • ✓Passed: 4 of 4 duplicates point to the earlier ticket and 0 other tickets are marked duplicate by mistake
  • ✓Passed: 8 of 8 repeat problems are in top_problems.csv in the right rank with the ticket ids that tickets_sorted.csv gives
  • ✓Passed: 8 of 8 counts in summary.md equal the counts in tickets_sorted.csv with duplicates left out (7 categories and the duplicates)
  • ✓Passed: 13 of 13 quotes in summary.md appear word for word in a ticket
  • ✓Passed: 3 of 3 top repeat problems are in summary.md with their ticket count and the date of their first ticket
  • ✓Passed: 28 of 28 other dates and numbers in summary.md match the tickets they sit beside or the counts in tickets_sorted.csv

Second review by Claude Opus 5.5: pass.

Then we broke a copy of the output 9 ways on purpose. The check caught 9.

What it wrote. Lines 1 to 9 of top_problems.csv, copied from the file.
rank,category,item,tickets,ticket_ids,what_people_report
1,network,VPN,10,T-3101;T-3107;T-3112;T-3116;T-3126;T-3147;T-3156;T-3162;T-3173;T-3175,The VPN keeps dropping every few minutes for people working away from the office.
2,account_access,Company Sign-In,8,T-3103;T-3117;T-3124;T-3136;T-3140;T-3146;T-3161;T-3163,People are locked out of company sign-in or stuck in a sign-in loop after their password expired or was reset.
3,printing,Printer 2F,6,T-3102;T-3114;T-3141;T-3149;T-3157;T-3179,The second floor printer keeps jamming and also gives blank scans and streaked pages.
4,hardware,Meeting Room B Display,5,T-3105;T-3119;T-3133;T-3145;T-3167,The Room B display shows No Signal or flickers and goes black during meetings.
5,software,Quillboard Office,4,T-3109;T-3127;T-3155;T-3159,Quillboard crashes or hangs when people open large spreadsheets or refresh pivot tables.
6,network,Office Wi-Fi,4,T-3121;T-3142;T-3152;T-3169,Office wifi is weak or drops at the back desks and test area and does not reach the loading bay.
7,hardware,LT-031,3,T-3104;T-3125;T-3144,Laptop LT-031 has a battery that dies in an hour and now does not charge at all.
8,software,Pinecrest CRM,3,T-3137;T-3138;T-3139,Pinecrest CRM is slow to open customer pages and fails or hangs when saving notes.

How this was run

An AI agent on Claude Sonnet 5.5 was given a folder with the files below and a three-step flow, and nothing else. It had no web access and never saw the check. The check was written before the run and made stricter after it. It works the answer out again from the input files. Then Claude Opus 5.5 reviewed the result against the inputs. The input files are sample data written by Atris, with the problems a real week has planted in them.

Run 3 of 3 on 1 December 2026. The agent took 1 min 40 s. Run 1 did not pass the check. Run 2 passed both checks and the job was run again later. Each run starts clean. Between runs the written flow was made clearer, or a check was corrected or made stricter. Nobody edits the output.

What the second review verified

  • All 79 tickets appear once in tickets_sorted.csv. Recomputed non-duplicate category counts match summary.md: account_access 12, hardware 16, printing 9, network 15, software 8, new_request 12, other 3, plus 4 duplicates, for 79 in total.
  • Duplicates are correct: T-3108→T-3103, T-3118→T-3102, T-3122→T-3111 and T-3131→T-3112 all fall within 48h. T-3155 and T-3162 repeat earlier subjects after more than 48h, so they are correctly not duplicates. T-3108 correctly gets item unknown and does not take T-3103's item.
  • Recomputed repeat groups match top_problems.csv exactly: VPN 10, Company Sign-In 8, Printer 2F 6, Meeting Room B Display 5, Quillboard 4, Office Wi-Fi 4, LT-031 3, Pinecrest CRM 3. The ties are ordered by earliest first ticket (Quillboard 11-16 before Wi-Fi 11-17, LT-031 11-16 before CRM 11-19).
  • Every double-quoted text in summary.md is copied exactly from a ticket, e.g. "Since Friday's client update the VPN drops every 5 to 10 minutes when I work from home." (T-3101), "Third person on my team this week." (T-3140), "Grey streaks down every page." (T-3179). T-3170 is correctly set to unknown and flagged for naming LT-031, Quillboard and the CRM.

What the second review found wrong

  • summary.md 'Needs a look' says 24 tickets are unknown because no item is named, separate from T-3170. tickets_sorted.csv has 24 unknowns in total including T-3170, so that figure should be 23 (or 22 without duplicates).
  • T-3172 ('Ops shared calendar shows wrong time zone') is filed as other. Under rule 2 it arguably fits software better ('an app … behaves wrongly'). The decision was made from the description but is missing from the summary's list of such calls, as is T-3129.
  • Minor: T-3176 (guest wifi code request) is given the item Office Wi-Fi. This follows the alias list and is openly flagged, and it does not affect any repeat group because the ticket is new_request.

What this run does not show

  • The stricter check found a real error in the earlier passing run: duplicate ticket T-3108 was given an item that its own text never names.
  • The third run's check first failed because two new check lines were wrong. The lines were corrected and the same output was then given its second review, which passed it with the notes shown above.
  • Ticket T-3170 names several items and is set to unknown under a rule that was added to the flow only before this last run.

Would the check catch a wrong answer?

A check that cannot fail proves nothing. After the run we took a copy of the output, broke it one small way at a time and ran the check again. It caught 9 of 9. The check was made stricter after the first try at this, and the same untouched output was graded again.

Open every file

flow.md · the three steps the agent followed
# Sort help desk tickets and find repeats

function: it
for: the help desk lead who plans next week's fixes
goal: Every ticket has a category and an item, duplicates are set aside and the problems that keep coming back are ranked by how many tickets they cause.

## 1. Read the tickets and the lists
Read input/tickets.csv, input/categories.md and input/items.csv. categories.md lists the categories
and the rule for choosing one. items.csv lists the official name of each shared item and the other
names people use for it.

## 2. Sort every ticket
Give each ticket:
- category: one category from categories.md, chosen by the rule written there.
- item: the official name from items.csv when affected_item matches an official name or one of its
  other names, ignoring capital letters, spaces and hyphens. An asset tag (letters, a hyphen and
  digits, like AB-123) is kept as the item, in capitals. When affected_item is blank, work the item
  out from the subject and description using the same list. When they name no item on the list and
  no asset tag, write `unknown`. Use only the ticket's own subject and description for this. A
  duplicate does not take the item of the earlier ticket. When a ticket names more than one item
  on the list and it is not plain which one the ticket is about, write `unknown` and name that
  ticket in summary.md.
- duplicate_of: a ticket is a duplicate when the same requester opened an earlier ticket with the
  same subject (ignoring capital letters and spaces at the ends) no more than 48 hours before it.
  Write the id of that earlier ticket. Otherwise leave it blank. A repeat after more than 48 hours
  is a new ticket, not a duplicate.

## 3. Rank the repeat problems
Leave duplicates out of all counts. A repeat problem is 3 or more tickets with the same category
and the same item, where the item is not `unknown`. Rank them by number of tickets, most first.
On a tie, the problem whose first ticket was opened earlier comes first.
Write output/tickets_sorted.csv with columns ticket_id,category,item,duplicate_of. One row per ticket.
Write output/top_problems.csv with columns rank,category,item,tickets,ticket_ids,what_people_report.
One row per repeat problem. ticket_ids are joined with semicolons. what_people_report is one plain
sentence drawn from the tickets.
Write output/summary.md for the help desk lead. Start with one line for each category in
categories.md in the form `category: count`, with 0 where there are none, then a line
`duplicates: count`. A category count is the number of tickets in that category that are not
duplicates, so the category counts and the duplicates count add up to the number of tickets. Then the top three repeat problems, each with its ticket count, what people
report in their own words and since when. Anything inside double quotes in summary.md must be copied from a ticket exactly. Do not guess at causes the tickets do not state.

## Done looks like
- Every ticket appears once in tickets_sorted.csv with one category from the written list.
- Every group of 3 or more tickets on the same item and category is in top_problems.csv with its ticket ids.
- Each category count in summary.md equals the tickets in that category in tickets_sorted.csv that are not duplicates.
input/categories.md · 42 lines, 2 KB
# Larkmoor Outfitters help desk: ticket categories

Every ticket gets exactly one category from this list.

## account_access
Someone cannot get into an account they already have: forgotten or expired passwords, locked
accounts, sign in codes that do not arrive, sign in pages that loop.
Typical words: password, locked, sign in, login, MFA

## hardware
A physical device is broken or misbehaving: laptops, screens, docks, keyboards, headsets, meeting
room equipment.
Typical words: laptop, screen, monitor, display, dock, keyboard, mouse, battery, headset

## printing
Printers and scanners: jams, toner, faded or streaked pages, scans that fail.
Typical words: printer, print, scanner, toner

## network
Getting connected: office wifi, the VPN for working away from the office, wired internet.
Typical words: wifi, wi-fi, vpn, internet

## software
An app the person already uses crashes, shows errors, freezes, runs slowly or behaves wrongly.
Typical words: crash, error, freeze, frozen, slow

## new_request
Nothing is broken. Someone asks for something they do not have yet: equipment, an app installed,
an account, access to a system or a shared folder, set up for a new starter.
Typical words: new starter, request, order, install, purchase

## other
Anything that fits none of the above, such as building and furniture problems.

## How to choose

1. Read the subject first. If the subject uses typical words from one category and from no other
   category, that is the category. A typical word counts when a word in the subject starts with it,
   so "crashes" counts for crash and "printers" counts for printer. Capital letters do not matter.
2. If the subject uses no typical words, or typical words from two or more categories, read the
   description and pick the category whose meaning fits best.
3. If nothing fits, use other.
input/items.csv · 10 lines, 500 bytes
item,kind,also_called
VPN,service,vpn client; remote access
Office Wi-Fi,service,wifi; wi-fi; office wifi
Company Sign-In,service,company login; sso; single sign on
Printer 2F,printer,2nd floor printer; second floor printer; upstairs printer
Printer Warehouse,printer,warehouse printer; wh printer; label printer
Meeting Room B Display,equipment,room b screen; room b display; mr-b display
Quillboard Office,app,quillboard; office suite
Tallyhawk Books,app,tallyhawk
Pinecrest CRM,app,pinecrest; crm
input/tickets.csv · 80 lines, 12 KB
ticket_id,opened,requester,affected_item,subject,description
T-3101,2026-11-16 08:12,tabitha.rosenthal@larkmoor.example,VPN,VPN keeps dropping,Since Friday's client update the VPN drops every 5 to 10 minutes when I work from home.
T-3102,2026-11-16 08:30,odalys.fenwick@larkmoor.example,2nd floor printer,Printer jams on every second page,Paper jam light comes on. Cleared it three times this morning.
T-3103,2026-11-16 08:41,priya.castellanos@larkmoor.example,,Locked out after password change,Changed my password when it expired this morning. Now the company sign-in says my account is locked.
T-3104,2026-11-16 09:05,mateo.grunewald@larkmoor.example,LT-031,Laptop battery dies in an hour,Battery was fine last month. Now it lasts about an hour off the charger.
T-3105,2026-11-16 09:20,beatrix.holloway@larkmoor.example,Meeting Room B Display,Screen in room B will not show my laptop,Plugged in the cable and the display stays on No Signal.
T-3106,2026-11-16 09:48,noor.fairweather@larkmoor.example,,New starter on December 1 needs a laptop and accounts,"Joining the People team. Please set up a laptop, email and HR records access."
T-3107,2026-11-16 10:02,emeka.lindgren@larkmoor.example,vpn client,Remote connection drops during calls,VPN disconnects in the middle of calls and I have to connect again each time.
T-3108,2026-11-16 10:15,priya.castellanos@larkmoor.example,,Locked out after password change,Still locked out. I need to run payables today.
T-3109,2026-11-16 10:33,lucinda.abara@larkmoor.example,Quillboard Office,Quillboard crashes when I open the stock sheet,Since the update it closes itself when opening big spreadsheets.
T-3110,2026-11-16 11:10,ignatius.thornbury@larkmoor.example,WH printer,Label printer out of toner,Warehouse printer needs a new toner cartridge.
T-3111,2026-11-16 11:42,desmond.achterberg@larkmoor.example,,Cannot sign in to payroll,It says wrong password but I have not changed it.
T-3112,2026-11-16 13:05,saoirse.bellamy@larkmoor.example,remote access,VPN disconnects every few minutes,Started after the update on Friday. Home internet is fine.
T-3113,2026-11-16 13:30,wren.castillo@larkmoor.example,,Office chair is broken,The gas lift on my chair has gone. Not sure who handles this.
T-3114,2026-11-16 14:18,yuki.marchetti@larkmoor.example,printer-2f,Paper jam again upstairs,Second floor printer jammed twice on a 10 page document.
T-3115,2026-11-16 15:02,adaeze.lindqvist@larkmoor.example,Tallyhawk,Need Tallyhawk installed on the new analyst laptop,Philippa's replacement laptop does not have it yet.
T-3116,2026-11-17 08:05,kwabena.rothwell@larkmoor.example,VPN,VPN drops since Friday,Client 4.2 installed itself on Friday. It has dropped constantly since.
T-3117,2026-11-17 08:22,rosalind.tavares@larkmoor.example,,Password expired and now I am locked out,Company sign-in will not take the new password.
T-3118,2026-11-17 08:40,odalys.fenwick@larkmoor.example,2nd floor printer,Printer jams on every second page,Still jamming. Do we need an engineer visit?
T-3119,2026-11-17 09:15,thaddeus.nwosu@larkmoor.example,MR-B display,Room B display shows no signal,Tried two cables. The board meeting on Thursday needs it.
T-3120,2026-11-17 09:50,philippa.zielinski@larkmoor.example,,Request access to the CRM reports,I need to see deal totals for the forecast.
T-3121,2026-11-17 10:30,farah.dunmore@larkmoor.example,Office Wi-Fi,Wifi very weak at the back desks,Drops to one bar near the test bench.
T-3122,2026-11-17 10:50,desmond.achterberg@larkmoor.example,,Cannot sign in to payroll,Still cannot get in. Payroll cut off is Thursday.
T-3123,2026-11-17 11:12,marisol.kettering@larkmoor.example,LT-008,Keyboard keys sticking,The E and R keys stick.
T-3124,2026-11-17 13:00,tomasz.verhoeven@larkmoor.example,company login,Locked out this morning,Password ran out over the weekend. I reset it and now I am locked.
T-3125,2026-11-17 13:44,mateo.grunewald@larkmoor.example,LT-031,Battery swelling warning,The laptop now shows a battery service warning.
T-3126,2026-11-17 14:20,clementine.vasquez@larkmoor.example,vpn,Cannot stay connected from home,VPN drops every few minutes. Customer demos are at risk.
T-3127,2026-11-17 15:10,bartholomew.singh@larkmoor.example,Quillboard,Spreadsheet app crashes on large files,"Quillboard closes when I open the sales export, about 40 MB."
T-3128,2026-11-17 16:02,ignatius.thornbury@larkmoor.example,,Order two barcode scanners,The warehouse needs two more handheld scanners for the Christmas rush.
T-3129,2026-11-18 08:10,emeka.lindgren@larkmoor.example,,Coffee machine leaking in the kitchen,Water all over the counter on the second floor.
T-3130,2026-11-18 08:35,gideon.farrow@larkmoor.example,Warehouse printer,Labels print faded,Shipping labels are too light to read at the dock.
T-3131,2026-11-18 09:00,saoirse.bellamy@larkmoor.example,remote access,VPN disconnects every few minutes,Any news? It is still happening.
T-3132,2026-11-18 09:25,oluwaseun.whitlock@larkmoor.example,,MFA code never arrives,The text message with the code does not come through.
T-3133,2026-11-18 11:00,wren.castillo@larkmoor.example,Meeting Room B Display,Display in room B flickers then goes black,Worked for five minutes then cut out during the ops review.
T-3134,2026-11-18 13:15,noor.fairweather@larkmoor.example,,Laptop for new starter has not arrived,Ordered last week for the December 1 starter. Is there any tracking?
T-3135,2026-11-18 14:00,kwabena.rothwell@larkmoor.example,,Second monitor request,I would like a second monitor for code review. Nothing wrong with the first.
T-3136,2026-11-18 15:20,adaeze.lindqvist@larkmoor.example,sso,Sign in loop after password reset,After resetting my expired password the sign in page keeps sending me back to the start.
T-3137,2026-11-19 08:15,emeka.lindgren@larkmoor.example,Pinecrest,CRM is slow loading customer pages,Each customer record takes 20 seconds to open since Monday.
T-3138,2026-11-19 08:50,tabitha.rosenthal@larkmoor.example,pinecrest crm,Customer records freeze when saving notes,Pinecrest hangs on save and I have to reload the page.
T-3139,2026-11-19 09:30,rosalind.tavares@larkmoor.example,CRM,Pinecrest error on saving a note,"A red banner says could not save, try again."
T-3140,2026-11-19 10:10,thaddeus.nwosu@larkmoor.example,,Locked out after password expiry,Company sign-in locked me out right after I set the new password. Third person on my team this week.
T-3141,2026-11-19 10:45,yuki.marchetti@larkmoor.example,printer 2f,Printer upstairs jammed with paper stuck inside,Cannot get the sheet out of the back tray.
T-3142,2026-11-19 11:30,farah.dunmore@larkmoor.example,wi-fi,Wifi drops in the test area,Loses connection every time the microwave runs.
T-3143,2026-11-19 13:00,ingrid.solheim-park@larkmoor.example,LT-019,Dock does not charge laptop,The dock powers the screens but the laptop battery drains.
T-3144,2026-11-19 14:10,mateo.grunewald@larkmoor.example,LT-031,Laptop will not charge,Now it does not charge at all. Third ticket on this laptop.
T-3145,2026-11-19 16:30,marisol.kettering@larkmoor.example,Meeting Room B Display,Board meeting display failed,Room B again. We moved the board meeting to room A.
T-3146,2026-11-20 08:05,lucinda.abara@larkmoor.example,,Locked out this morning,"Password expired yesterday. The reset worked, then company sign-in locked me out."
T-3147,2026-11-20 08:20,oluwaseun.whitlock@larkmoor.example,VPN,VPN unusable since last week,Drops every few minutes. Working from the office until it is fixed.
T-3148,2026-11-20 09:00,desmond.achterberg@larkmoor.example,,Cannot hear callers on headset,The headset connects but there is no sound in video calls.
T-3149,2026-11-20 09:40,priya.castellanos@larkmoor.example,upstairs printer,Scanner on the printer sends blank pages,Scan to email gives empty pages.
T-3150,2026-11-20 10:30,beatrix.holloway@larkmoor.example,,Purchase request: presentation clicker,For the sales kickoff.
T-3151,2026-11-20 11:15,philippa.zielinski@larkmoor.example,Tallyhawk Books,Tallyhawk shows error when exporting month end,Export to spreadsheet fails with error 5012.
T-3152,2026-11-20 13:20,gideon.farrow@larkmoor.example,,Wifi does not reach loading bay,Handhelds lose the office wifi at bay 3.
T-3153,2026-11-20 14:40,wren.castillo@larkmoor.example,,Request: add Gideon to the warehouse shared folder,He needs the picking lists.
T-3154,2026-11-20 15:30,saoirse.bellamy@larkmoor.example,,Screen has a line down the middle,A vertical pink line on my laptop screen since this morning.
T-3155,2026-11-23 08:15,lucinda.abara@larkmoor.example,Quillboard Office,Quillboard crashes when I open the stock sheet,Happened again today. Lost an hour of edits.
T-3156,2026-11-23 08:30,marisol.kettering@larkmoor.example,VPN client,VPN drops at home and on hotel wifi,The same drop every few minutes wherever I am.
T-3157,2026-11-23 09:10,odalys.fenwick@larkmoor.example,Printer 2F,Printer 2F jam light will not clear,No paper stuck that I can see but the light stays on.
T-3158,2026-11-23 09:45,kwabena.rothwell@larkmoor.example,,Install request: diagram tool,I need Driftline Design for architecture diagrams.
T-3159,2026-11-23 10:20,bartholomew.singh@larkmoor.example,quillboard,Office suite freezes on pivot tables,Quillboard hangs for a minute whenever I refresh a pivot.
T-3160,2026-11-23 11:00,ignatius.thornbury@larkmoor.example,,Forklift tablet will not turn on,The tablet on forklift 2 is dead even on the charger.
T-3161,2026-11-23 13:30,noor.fairweather@larkmoor.example,,MFA prompt asks twice,Company sign-in asks for the code two times in a row.
T-3162,2026-11-23 14:15,tabitha.rosenthal@larkmoor.example,VPN,VPN keeps dropping,Still dropping after reinstalling the client.
T-3163,2026-11-24 08:10,emeka.lindgren@larkmoor.example,Company Sign-In,Password reset email never arrives,Asked for a reset link three times. Nothing in my inbox or spam.
T-3164,2026-11-24 08:50,adaeze.lindqvist@larkmoor.example,,Toner low on finance printer,
T-3165,2026-11-24 09:30,ignatius.thornbury@larkmoor.example,,New starter accounts for two warehouse temps,They start Monday and need to use the handhelds.
T-3166,2026-11-24 10:40,yuki.marchetti@larkmoor.example,,Internet down at my desk,Wall port B14 seems dead. My laptop is fine on other ports.
T-3167,2026-11-24 13:00,beatrix.holloway@larkmoor.example,room B screen,Room B display still not working,Is a replacement on the way?
T-3168,2026-11-24 14:30,farah.dunmore@larkmoor.example,,Mouse double clicks by itself,Started yesterday. Tried new batteries.
T-3169,2026-11-25 08:20,gideon.farrow@larkmoor.example,office wifi,Wifi keeps asking for the password,The handheld forgets the wifi password every morning.
T-3170,2026-11-25 09:00,mateo.grunewald@larkmoor.example,,Request loaner laptop set up with my apps,I got the loaner while LT-031 is away. It needs Quillboard and the CRM put on it.
T-3171,2026-11-25 10:10,philippa.zielinski@larkmoor.example,,Monitor flickers when dock is bumped,Goes black for a second whenever the desk moves.
T-3172,2026-11-25 11:30,wren.castillo@larkmoor.example,,Ops shared calendar shows wrong time zone,Every ops meeting shows one hour late for the warehouse team.
T-3173,2026-11-25 13:15,oluwaseun.whitlock@larkmoor.example,VPN,VPN drops during customer demo,Dropped three times in a 30 minute demo.
T-3174,2026-11-25 14:00,tomasz.verhoeven@larkmoor.example,,Tallyhawk will not let me sign in,It says my session has expired every time. The password is right.
T-3175,2026-11-26 08:30,marisol.kettering@larkmoor.example,,Please look at the VPN problem this week,Half the company cannot work from home. What is the plan?
T-3176,2026-11-26 09:20,odalys.fenwick@larkmoor.example,,Request guest wifi code for Friday event,We need a guest code for 12 visitors.
T-3177,2026-11-26 10:00,ingrid.solheim-park@larkmoor.example,LT-019,Dock still not charging laptop,Swapped cables. Same result.
T-3178,2026-11-26 11:00,kwabena.rothwell@larkmoor.example,,Build server sign in asks for password every time,It used to remember me for a week.
T-3179,2026-11-27 09:00,rosalind.tavares@larkmoor.example,printer-2f,Printer 2F prints streaks,Grey streaks down every page.
output/summary.md · written by the agent, 43 lines
account_access: 12
hardware: 16
printing: 9
network: 15
software: 8
new_request: 12
other: 3
duplicates: 4

79 tickets in total (75 counted in categories plus 4 duplicates). Tickets were opened 2026-11-16 to 2026-11-27.

## Top three repeat problems

### 1. VPN (network): 10 tickets
Tickets: T-3101, T-3107, T-3112, T-3116, T-3126, T-3147, T-3156, T-3162, T-3173, T-3175.
Since: the first ticket was opened 2026-11-16 (T-3101), and the latest on 2026-11-26 (T-3175). Several tickets say it started with Friday's client update (the Friday before 2026-11-16).
In their own words: "Since Friday's client update the VPN drops every 5 to 10 minutes when I work from home." (T-3101) and "VPN drops every few minutes. Customer demos are at risk." (T-3126). One person says the drops also happen away from home, "The same drop every few minutes wherever I am." (T-3156). T-3175 asks for a plan and says "Half the company cannot work from home."
Not counted: T-3131 is a duplicate of T-3112.

### 2. Company Sign-In (account_access): 8 tickets
Tickets: T-3103, T-3117, T-3124, T-3136, T-3140, T-3146, T-3161, T-3163.
Since: first ticket opened 2026-11-16 (T-3103), latest 2026-11-24 (T-3163).
In their own words: "Company sign-in locked me out right after I set the new password." (T-3140) and "Company sign-in will not take the new password." (T-3117). T-3140 also says "Third person on my team this week." The tickets do not state a cause beyond what people describe.
Not counted: T-3108 is a duplicate of T-3103.

### 3. Printer 2F (printing): 6 tickets
Tickets: T-3102, T-3114, T-3141, T-3149, T-3157, T-3179.
Since: first ticket opened 2026-11-16 (T-3102), latest 2026-11-27 (T-3179).
In their own words: "Paper jam light comes on." (T-3102), "No paper stuck that I can see but the light stays on." (T-3157), "Grey streaks down every page." (T-3179). T-3149 reports "Scan to email gives empty pages."
Not counted: T-3118 is a duplicate of T-3102.

## Other repeat problems (full list in top_problems.csv)
4. Meeting Room B Display, 5 tickets. 5. Quillboard Office, 4 tickets. 6. Office Wi-Fi, 4 tickets. 7. LT-031, 3 tickets. 8. Pinecrest CRM, 3 tickets.

## Duplicates set aside
T-3108 (of T-3103), T-3118 (of T-3102), T-3122 (of T-3111), T-3131 (of T-3112). T-3155 (Quillboard) and T-3162 (VPN) repeat earlier subjects from the same people but more than 48 hours later, so they are new tickets.

## Needs a look
- T-3170 names more than one item (LT-031, Quillboard and the CRM) and it is not plain which one it is about, so its item is `unknown`.
- 24 tickets have item `unknown` because no item on the list or asset tag is named (for example payroll sign-in T-3111, barcode scanners T-3128, headset T-3148, mouse T-3168). T-3111 and its duplicate T-3122 are "Cannot sign in to payroll"; payroll is not on the item list, so they are not grouped.
- T-3176 (guest wifi code request) was given the item Office Wi-Fi because "wifi" is an alternate name for it. The tickets do not say whether guest wifi is the same service.
- T-3164 has an empty description and names only a "finance printer", which is not on the list, so its item is `unknown`.
- Category calls made from the description because the subject matched two categories or none: T-3106, T-3115, T-3128, T-3134, T-3135, T-3170, T-3176 (new_request), T-3169 (network), and T-3107, T-3113, T-3114, T-3126, T-3160 (from description alone).
output/tickets_sorted.csv · written by the agent, 80 lines
ticket_id,category,item,duplicate_of
T-3101,network,VPN,
T-3102,printing,Printer 2F,
T-3103,account_access,Company Sign-In,
T-3104,hardware,LT-031,
T-3105,hardware,Meeting Room B Display,
T-3106,new_request,unknown,
T-3107,network,VPN,
T-3108,account_access,unknown,T-3103
T-3109,software,Quillboard Office,
T-3110,printing,Printer Warehouse,
T-3111,account_access,unknown,
T-3112,network,VPN,
T-3113,other,unknown,
T-3114,printing,Printer 2F,
T-3115,new_request,Tallyhawk Books,
T-3116,network,VPN,
T-3117,account_access,Company Sign-In,
T-3118,printing,Printer 2F,T-3102
T-3119,hardware,Meeting Room B Display,
T-3120,new_request,Pinecrest CRM,
T-3121,network,Office Wi-Fi,
T-3122,account_access,unknown,T-3111
T-3123,hardware,LT-008,
T-3124,account_access,Company Sign-In,
T-3125,hardware,LT-031,
T-3126,network,VPN,
T-3127,software,Quillboard Office,
T-3128,new_request,unknown,
T-3129,other,unknown,
T-3130,printing,Printer Warehouse,
T-3131,network,VPN,T-3112
T-3132,account_access,unknown,
T-3133,hardware,Meeting Room B Display,
T-3134,new_request,unknown,
T-3135,new_request,unknown,
T-3136,account_access,Company Sign-In,
T-3137,software,Pinecrest CRM,
T-3138,software,Pinecrest CRM,
T-3139,software,Pinecrest CRM,
T-3140,account_access,Company Sign-In,
T-3141,printing,Printer 2F,
T-3142,network,Office Wi-Fi,
T-3143,hardware,LT-019,
T-3144,hardware,LT-031,
T-3145,hardware,Meeting Room B Display,
T-3146,account_access,Company Sign-In,
T-3147,network,VPN,
T-3148,hardware,unknown,
T-3149,printing,Printer 2F,
T-3150,new_request,unknown,
T-3151,software,Tallyhawk Books,
T-3152,network,Office Wi-Fi,
T-3153,new_request,unknown,
T-3154,hardware,unknown,
T-3155,software,Quillboard Office,
T-3156,network,VPN,
T-3157,printing,Printer 2F,
T-3158,new_request,unknown,
T-3159,software,Quillboard Office,
T-3160,hardware,unknown,
T-3161,account_access,Company Sign-In,
T-3162,network,VPN,
T-3163,account_access,Company Sign-In,
T-3164,printing,unknown,
T-3165,new_request,unknown,
T-3166,network,unknown,
T-3167,hardware,Meeting Room B Display,
T-3168,hardware,unknown,
T-3169,network,Office Wi-Fi,
T-3170,new_request,unknown,
T-3171,hardware,unknown,
T-3172,other,unknown,
T-3173,network,VPN,
T-3174,account_access,Tallyhawk Books,
T-3175,network,VPN,
T-3176,new_request,Office Wi-Fi,
T-3177,hardware,LT-019,
T-3178,account_access,unknown,
T-3179,printing,Printer 2F,
output/top_problems.csv · written by the agent, 9 lines
rank,category,item,tickets,ticket_ids,what_people_report
1,network,VPN,10,T-3101;T-3107;T-3112;T-3116;T-3126;T-3147;T-3156;T-3162;T-3173;T-3175,The VPN keeps dropping every few minutes for people working away from the office.
2,account_access,Company Sign-In,8,T-3103;T-3117;T-3124;T-3136;T-3140;T-3146;T-3161;T-3163,People are locked out of company sign-in or stuck in a sign-in loop after their password expired or was reset.
3,printing,Printer 2F,6,T-3102;T-3114;T-3141;T-3149;T-3157;T-3179,The second floor printer keeps jamming and also gives blank scans and streaked pages.
4,hardware,Meeting Room B Display,5,T-3105;T-3119;T-3133;T-3145;T-3167,The Room B display shows No Signal or flickers and goes black during meetings.
5,software,Quillboard Office,4,T-3109;T-3127;T-3155;T-3159,Quillboard crashes or hangs when people open large spreadsheets or refresh pivot tables.
6,network,Office Wi-Fi,4,T-3121;T-3142;T-3152;T-3169,Office wifi is weak or drops at the back desks and test area and does not reach the loading bay.
7,hardware,LT-031,3,T-3104;T-3125;T-3144,Laptop LT-031 has a battery that dies in an hour and now does not charge at all.
8,software,Pinecrest CRM,3,T-3137;T-3138;T-3139,Pinecrest CRM is slow to open customer pages and fails or hangs when saving notes.
check.py · the check, written before the run
"""Recomputes what the written rules fix (clear categories, named items, duplicates) and reconciles every count."""
import csv, re, sys
from datetime import datetime, timedelta
from pathlib import Path

NUM = re.compile(r"(?<![\w.-])\d(?:[\d,]*\d)?(?:\.\d+)?(?![\w-])")
DAY = re.compile(r"\d{4}-\d{2}-\d{2}")

def rows(p):
    with p.open(newline="") as fh:
        return list(csv.DictReader(fh))

def squash(s):
    return re.sub(r"[\s\-]+", "", (s or "")).lower()

def expected(root):
    inp = root / "input"
    cats, words = [], {}
    for block in re.split(r"^## ", (inp / "categories.md").read_text(), flags=re.M)[1:]:
        name = block.splitlines()[0].strip()
        if not re.fullmatch(r"[a-z_]+", name): continue
        cats.append(name)
        m = re.search(r"^Typical words:\s*(.+)$", block, re.M)
        words[name] = [w.strip().lower() for w in m.group(1).split(",")] if m else []
    alias = {}
    for r in rows(inp / "items.csv"):
        for a in [r["item"]] + r["also_called"].split(";"):
            if a.strip(): alias[squash(a)] = r["item"].strip()
    tickets = rows(inp / "tickets.csv")
    clear, item, dup, opened = {}, {}, {}, {}
    seen = []
    for t in sorted(tickets, key=lambda r: (r["opened"], r["ticket_id"])):
        tid = t["ticket_id"]; when = datetime.strptime(t["opened"], "%Y-%m-%d %H:%M"); opened[tid] = when
        subj = t["subject"].lower()
        hits = [c for c in cats if any(re.search(r"\b" + re.escape(w), subj) for w in words[c])]
        if len(hits) == 1: clear[tid] = hits[0]
        raw = t["affected_item"].strip()
        if raw:
            item[tid] = alias.get(squash(raw)) or (raw.upper() if re.fullmatch(r"[A-Za-z]+-\d+", raw) else None)
        key = (t["requester"].strip().lower(), t["subject"].strip().lower())
        earlier = [(w, i) for w, i, k in seen if k == key and when - w <= timedelta(hours=48)]
        dup[tid] = min(earlier)[1] if earlier else ""
        seen.append((when, tid, key))
    official = set(alias.values())
    return cats, clear, item, dup, opened, official, {t["ticket_id"]: t for t in tickets}

def main():
    root = Path(sys.argv[1]); ok = True
    def say(passed, text):
        nonlocal ok
        ok = ok and passed; print(("PASS " if passed else "FAIL ") + text)
    cats, clear, item, dup, opened, official, tickets = expected(root)
    path = root / "output/tickets_sorted.csv"
    if not path.exists():
        say(False, "output/tickets_sorted.csv was not written"); sys.exit(1)
    got_rows = rows(path)
    got = {(r.get("ticket_id") or "").strip(): {k: (v or "").strip() for k, v in r.items() if k} for r in got_rows}
    n = len(tickets)
    listed = sum(1 for k in tickets if got.get(k, {}).get("category") in cats)
    say(len(got_rows) == n and set(got) == set(tickets) and listed == n, f"{listed} of {n} tickets appear once in tickets_sorted.csv with a category from the written list")
    c_ok = sum(1 for k, c in clear.items() if got.get(k, {}).get("category") == c)
    say(c_ok == len(clear), f"{c_ok} of {len(clear)} tickets whose subject points to one category carry that category")
    named = {k: v for k, v in item.items() if v}
    i_ok = sum(1 for k, v in named.items() if got.get(k, {}).get("item") == v)
    def allowed(k):
        v = got.get(k, {}).get("item", "")
        text = (tickets[k]["subject"] + " " + tickets[k]["description"]).upper()
        if v in official:
            other = next((r["also_called"] for r in rows(root / "input/items.csv") if r["item"].strip() == v), "")
            return any(squash(nm) and squash(nm) in squash(text) for nm in [v] + other.split(";"))
        return v == "unknown" or bool(re.fullmatch(r"[A-Z]+-\d+", v) and v in text)
    rest = [k for k in tickets if k not in named]
    r_ok = sum(1 for k in rest if allowed(k))
    say(i_ok == len(named) and r_ok == len(rest), f"{i_ok} of {len(named)} tickets with an affected item filled in carry its official name and {r_ok} of {len(rest)} others carry unknown or a listed item that the ticket names")
    dups = {k: v for k, v in dup.items() if v}
    d_ok = sum(1 for k, v in dups.items() if got.get(k, {}).get("duplicate_of") == v)
    wrong = sum(1 for k in tickets if not dup[k] and got.get(k, {}).get("duplicate_of"))
    say(d_ok == len(dups) and wrong == 0, f"{d_ok} of {len(dups)} duplicates point to the earlier ticket and {wrong} other tickets are marked duplicate by mistake")
    groups = {}
    for k, g in got.items():
        if k in tickets and not g.get("duplicate_of") and g.get("item") and g.get("item") != "unknown":
            groups.setdefault((g.get("category"), g.get("item")), []).append(k)
    repeat = {key: ids for key, ids in groups.items() if len(ids) >= 3}
    order = sorted(repeat, key=lambda key: (-len(repeat[key]), min(opened[i] for i in repeat[key])))
    tpath = root / "output/top_problems.csv"
    tp = rows(tpath) if tpath.exists() else []
    def rank(r):
        try: return int((r.get("rank") or "").strip())
        except ValueError: return 10 ** 6
    tp_sorted = sorted(tp, key=rank)
    t_ok = 0
    for pos, (want_key, r) in enumerate(zip(order, tp_sorted)):
        ids = {x.strip() for x in (r.get("ticket_ids") or "").split(";") if x.strip()}
        if rank(r) == pos + 1 and ((r.get("category") or "").strip(), (r.get("item") or "").strip()) == want_key and ids == set(repeat[want_key]) and (r.get("tickets") or "").strip() == str(len(ids)):
            t_ok += 1
    say(bool(order) and t_ok == len(order) and len(tp) == len(order), f"{t_ok} of {len(order)} repeat problems are in top_problems.csv in the right rank with the ticket ids that tickets_sorted.csv gives")
    summary = (root / "output/summary.md").read_text() if (root / "output/summary.md").exists() else ""
    s_ok = 0
    for name in cats + ["duplicates"]:
        want = len(dups) if name == "duplicates" else sum(1 for k, g in got.items() if k in tickets and g.get("category") == name and not g.get("duplicate_of"))
        m = re.search(r"(?<![a-z_])" + re.escape(name) + r"[`*\s]*:[`*\s]*(\d+)", summary)
        if m and int(m.group(1)) == want: s_ok += 1
    say(s_ok == len(cats) + 1, f"{s_ok} of {len(cats) + 1} counts in summary.md equal the counts in tickets_sorted.csv with duplicates left out ({len(cats)} categories and the duplicates)")
    from datetime import datetime, timedelta
    when = {k: datetime.strptime(t["opened"].strip(), "%Y-%m-%d %H:%M") for k, t in tickets.items()}
    flatten = lambda s: re.sub(r"\s+", " ", (s or "").replace("\u2019", "'").replace("\u201c", '"').replace("\u201d", '"')).strip()
    said = [flatten(t["subject"]).lower() + " \n " + flatten(t["description"]).lower() for t in tickets.values()]
    quotes = [q for ln in summary.replace("\u201c", '"').replace("\u201d", '"').splitlines() for q in re.findall(r'"([^"]*)"', ln) if len(q.strip()) >= 12]
    q_ok = sum(1 for q in quotes if any(flatten(q).lower().strip(" .,!") in s for s in said))
    say(bool(quotes) and q_ok == len(quotes), f"{q_ok} of {len(quotes)} quotes in summary.md appear word for word in a ticket")
    lines = re.sub(r'"[^"\n]*"', " ", summary.replace("\u201c", '"').replace("\u201d", '"')).splitlines()
    def names(ln):
        return [key for key in order if re.search(r"(?<![\w-])" + re.escape(key[1]) + r"(?![\w-])", ln, re.I)]
    top = order[:3]; h_ok = 0
    for key in top:
        ids = repeat[key]; first = min(when[i] for i in ids).strftime("%Y-%m-%d")
        for i, ln in enumerate(lines):
            if names(ln) == [key] and re.findall(r"(?<![\w.-])(\d+) tickets?\b", ln) == [str(len(ids))] and first in " ".join(lines[i:i + 3]):
                h_ok += 1; break
    say(len(top) > 0 and h_ok == len(top), f"{h_ok} of {len(top)} top repeat problems are in summary.md with their ticket count and the date of their first ticket")
    n_dups = len(dups); first_all, last_all = min(when.values()), max(when.values())
    unknown = [k for k, g in got.items() if g.get("item") == "unknown"]
    totals = {float(x) for x in [n, n - n_dups, n_dups, len(order), 48, len(unknown), len([k for k in unknown if not got[k].get("duplicate_of")]), *[sum(1 for g in got.values() if g.get("category") == c and not g.get("duplicate_of")) for c in cats], *[len(v) for v in repeat.values()]]}
    seen = bad = 0; cur = None
    for ln in lines:
        if ln.startswith("#") or not ln.strip(): cur = None if ln.startswith("#") else cur
        here = names(ln)
        if len(here) == 1: cur = here[0]
        ids = [i for i in re.findall(r"T-\d{4}(?!\d)", ln) if i in when]
        pool = list(repeat[cur]) if cur else []
        days_ok = {when[i].strftime("%Y-%m-%d") for i in (pool + ids if (pool or ids) else when)}
        start = min([when[i] for i in pool + ids] or [first_all])
        days_ok |= {(start - timedelta(days=d)).strftime("%Y-%m-%d") for d in range(1, 8)}
        for d in DAY.findall(ln):
            seen += 1; bad += d not in days_ok
        span = [when[i] for i in pool] if cur else list(when.values())
        for a, b in re.findall(r"(\d{4}-\d{2}-\d{2}) to (\d{4}-\d{2}-\d{2})", ln):
            seen += 1; bad += (a, b) != (min(span).strftime("%Y-%m-%d"), max(span).strftime("%Y-%m-%d"))
        for a, tid in re.findall(r"(\d{4}-\d{2}-\d{2}) \((T-\d{4})\)", ln):
            if tid in when:
                seen += 1; bad += a != when[tid].strftime("%Y-%m-%d")
        for a in re.findall(r"\bsince (\d{4}-\d{2}-\d{2})", ln):
            seen += 1; bad += a != min(span).strftime("%Y-%m-%d")
        if len(here) == 1:
            for x in re.findall(r"(?<![\w.-])(\d+) tickets?\b", ln):
                seen += 1; bad += int(x) != len(repeat[here[0]])
        nums = set(totals)
        text_of = " ".join(tickets[i]["subject"] + " " + tickets[i]["description"] for i in ids)
        nums |= {float(x) for x in re.findall(r"(?<![\w.-])\d+(?:\.\d+)?", DAY.sub(" ", text_of))}
        for a in ids:
            for b in ids:
                gap = abs((when[a] - when[b]).total_seconds())
                nums |= {round(gap / 3600, 1), float(round(gap / 3600)), float(int(gap // 3600)), float(int(gap // 86400)), float(round(gap / 86400))}
        bare = DAY.sub(" ", ln)
        for i in ids: bare = bare.replace(i, " ")
        for m in NUM.finditer(bare):
            if len(m.group(0)) >= 2:
                seen += 1; bad += float(m.group(0).replace(",", "")) not in nums
    say(seen > 0 and bad == 0, f"{seen - bad} of {seen} other dates and numbers in summary.md match the tickets they sit beside or the counts in tickets_sorted.csv")
    sys.exit(0 if ok else 1)

if __name__ == "__main__":
    main()

categories.md: sample data written by Atris. Fingerprint e9bacc4ac2a3.

items.csv: sample data written by Atris. Fingerprint ddeaf912d417.

tickets.csv: sample data written by Atris. Fingerprint 02ab2d7af222.

summary.md: written by the agent. Fingerprint 6803e390be98.

tickets_sorted.csv: written by the agent. Fingerprint ea39bf471e69.

top_problems.csv: written by the agent. Fingerprint a17dcc0c593f.


More it and security work, and every other desk job

For agentsGitHub
What is AtrisBlogApp StorePricingPrivacyTerms