Screen job applications against the must-haves.
Done by an agent. Checked twice.
Every applicant gets a met or not met decision on each must-have with the exact application line that proves it.
Real files in
- A-01.txt
Job application 1 of 12. 19 lines, 727 bytes. - A-02.txt
Job application 2 of 12. 17 lines, 616 bytes. - A-03.txt
Job application 3 of 12. 17 lines, 650 bytes. - A-04.txt
Job application 4 of 12. 18 lines, 722 bytes. - A-05.txt
Job application 5 of 12. 16 lines, 555 bytes. - A-06.txt
Job application 6 of 12. 16 lines, 595 bytes. - A-07.txt
Job application 7 of 12. 15 lines, 421 bytes. - A-08.txt
Job application 8 of 12. 15 lines, 445 bytes. - A-09.txt
Job application 9 of 12. 15 lines, 485 bytes. - A-10.txt
Job application 10 of 12. 16 lines, 604 bytes. - A-11.txt
Job application 11 of 12. 16 lines, 520 bytes. - A-12.txt
Job application 12 of 12. 16 lines, 567 bytes. - role.md
The written requirements for a Payroll Specialist role: five must-haves, each saying what counts as proof. 37 lines, 2 KB.
Sample data written by Atris. Not a real company.
Three steps
- 1.Read the role and every application
- 2.Judge each must-have on each application
- 3.Write the screening record
Claude Sonnet 5.5, 1 min 47 s. No web. It never saw the check.
Checked twice
- Passed: 60 of 60 application and must-have pairs appear once in screening.csv
- Passed: 60 of 60 verdicts equal the verdict recomputed from the dates and numbers in the applications
- Passed: 58 of 58 quoted evidence lines sit word for word at the cited line of the application
- Passed: 50 of 50 met verdicts cite a line that proves the must-have
- Passed: 12 of 12 experience reasons state the months of payroll work recomputed from the work history dates
- Passed: 12 of 12 decisions name the applicant on the file and carry the decision and missed must-haves recomputed from the verdicts and the repeat application rule
- Passed: 4 of 4 advancing applicants are named in shortlist.md
- Passed: 58 of 58 dates and figures in shortlist.md are found in the application named on the same line, the role or the recomputed counts
Second review by Claude Opus 5.5: pass.
Then we broke a copy of the output 9 ways on purpose. The check caught 9.
A-04,M1,not_met,9,2025-01 to present | Payroll Officer | Stannard Print Works | Ran monthly payroll for 520 staff.,"Only 34 months across the two payroll jobs, 2024-01 up to 2026-11 with the overlap counted once, under 36; the Warehouse Team Leader job does not count." A-04,M2,met,14,"Level 4 Diploma in Payroll Management, awarded 2025","Level 4 Diploma in Payroll Management was awarded in 2025, above Level 3." A-04,M3,met,5,"Right to work in the UK: Yes, no sponsorship needed",States right to work in the UK with no sponsorship needed. A-04,M4,met,9,2025-01 to present | Payroll Officer | Stannard Print Works | Ran monthly payroll for 520 staff.,"Payroll Officer line states payroll for 520 staff, which is 250 or more." A-04,M5,met,6,Earliest start date: 2027-01-11,Earliest start 2027-01-11 is on the planned start date. A-05,M1,met,9,"2018-04 to present | Payroll Manager | Pennystone Logistics | Ran monthly payroll for 1,150 staff across four depots.","103 months in the Payroll Manager job, 2018-04 up to 2026-11." A-05,M2,not_met,12,"Level 3 Diploma in Payroll, in progress, final exam due 2027-03","The Level 3 Diploma in Payroll is still in progress with the final exam due 2027-03, so it is not awarded." A-05,M3,met,5,"Right to work in the UK: Yes, no sponsorship needed",States right to work in the UK with no sponsorship needed. A-05,M4,met,9,"2018-04 to present | Payroll Manager | Pennystone Logistics | Ran monthly payroll for 1,150 staff across four depots.","Payroll Manager line states payroll for 1,150 staff, which is 250 or more." A-05,M5,met,6,Earliest start date: 2027-01-04,Earliest start 2027-01-04 is before the planned 2027-01-11.
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 47 s. Run 1 passed the check but not the second review. Run 2 did not pass the check. 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
- Ran the month counts again in python3 for all 12 applications and every figure in screening.csv and shortlist.md matches, e.g. A-04 has 34 months (two payroll jobs that overlap, 2024-01 up to 2026-11, overlap counted once), A-02 has 41 months and A-12 has 47 months
- All 60 rows are there (12 applications × 5 must-haves), and every filled evidence cell matches its line in the application word for word (0 mismatches). The two blank evidence cells are right: A-02 M5 has an empty start date, and A-08 M3 has no right-to-work line
- The traps were handled correctly: A-02's 600-staff job is titled 'Finance Assistant', so it doesn't count for M4. A-05's Level 3 is 'in progress' (M2 not met). A-06 needs sponsorship (M3 not met). A-03 is 2027-01-18 and A-09 is 2027-02-01, both after the 2027-01-11 start (M5 not met). A-04 is exactly 2027-01-11 (met)
- A-07 and A-11 share the email k.oyelaran@example.org. The later one, A-11 (received 2026-11-17), is kept, and A-07 is marked duplicate_of A-11 with its own must-haves still judged (M2 missed). The final decisions are A-01, A-10, A-11 and A-12 advance and the other 7 are rejected, which matches my own result
What the second review found wrong
- Minor, does not change the verdict: shortlist.md calls applicants 'he', 'she', 'his' and 'her' based on their names alone (e.g. A-02 'His payroll months', A-03 'She has 26 payroll months'). The applications never state anyone's pronouns, so neutral wording would be safer.
What this run does not show
- The shortlist calls some applicants he or she from their names alone, which the second review noted and the check cannot test.
- The first two runs failed, once for wrong month counts in the reasons and once for citing a heading line as proof.
- The applications were written for this run with dates and numbers on set lines, so a real inbox of free text would be harder to screen.
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
# Screen job applications against the must-haves function: people for: the recruiter who decides which applicants get an interview goal: Every application has a met or not met decision on every must-have requirement, each backed by the exact line of the application that proves it. ## 1. Read the role and every application Read input/role.md. It lists the must-have requirements, each with an id and a plain statement of what counts as proof. It also gives the rule for people who apply twice. Then read every file in input/applications/. Each file is one application. Nice-to-have items are not screened. ## 2. Judge each must-have on each application For every application and every must-have, decide `met` or `not_met` using only what that application says. - `met` only when a line of the application proves it under the rule written in role.md. Where the rule asks for dates or a number, do the arithmetic yourself. Never take an applicant's own claim in place of it. Run every date sum in python3 and copy the figure from its result. Do not add months in your head. A wrong figure in a reason is an error even when the verdict is right. - `not_met` when a line shows the applicant falls short, or when the application says nothing about it. Then decide each application: `duplicate` when the rule for people who apply twice sets it aside, `advance` when every must-have is met, otherwise `reject`. Judge the must-haves of a duplicate too. ## 3. Write the screening record Write output/screening.csv with columns application_id,requirement_id,verdict,line,evidence,reason. One row per application per must-have. `line` is the number of the one line in the application file that best proves or disproves the must-have, counting from 1 and counting blank lines. `evidence` is that whole line copied exactly. When nothing in the application speaks to the must-have, leave `line` and `evidence` empty. Choose the evidence first, then find its line number by searching the file for that text with python3. Never set a line number by hand. Before you finish, read every evidence cell back on its own: it must be the line that states the fact, never a heading or a blank line. `reason` is one plain sentence with any figure you worked out. When a must-have is judged by counting months, the reason gives the total for that application as a number followed by the word months, like `41 months`. Write output/decisions.csv with columns application_id,applicant,decision,missed,duplicate_of. `missed` holds the ids of the must-haves not met, separated by spaces, empty when none. `duplicate_of` holds the id of the application that was kept, for duplicates only. Write output/shortlist.md for the hiring manager: who advances, then one line per rejected application naming each must-have it missed and why, then any duplicates. ## Done looks like - Every application has one row per must-have in screening.csv and one row in decisions.csv. - Every evidence cell can be found word for word at that line number in the application file. - Every figure in a reason or in shortlist.md matches the dates in the application. - Nobody advances with a must-have left unproven.
input/applications/A-01.txt · 19 lines, 727 bytes
Application A-01 Received: 2026-11-03 Name: Marguerite Okonjo-Hale Email: m.okonjohale@example.org Right to work in the UK: Yes, no sponsorship needed Earliest start date: 2026-12-14 Work history 2022-02 to present | Payroll Officer | Corbel & Wye Bakeries | Ran weekly and monthly payroll for 380 staff. 2019-09 to 2022-01 | Accounts Assistant | Fennick Motor Group | Purchase ledger and bank reconciliations. Qualifications Level 3 Certificate in Payroll Administration, awarded 2021 A levels in Maths and Economics Cover note I have run payroll from start to finish for almost five years, including shift premiums and overtime. Last year I trained our new payroll assistant. I would be glad to bring that to Tallowfield.
input/applications/A-02.txt · 17 lines, 616 bytes
Application A-02 Received: 2026-11-04 Name: Tobias Renwick Email: tobias.renwick@example.org Right to work in the UK: Yes, no sponsorship needed Earliest start date: Work history 2023-06 to present | Payroll Administrator | Lowmoor Housing Trust | Ran monthly payroll for 240 staff. 2020-01 to 2023-05 | Finance Assistant | Harbreck Stores | Helped run payroll for 600 staff two days a month, plus sales ledger. Qualifications Level 3 Certificate in Payroll Administration, awarded 2023 Cover note I have worked on payrolls of up to 600 people and I enjoy getting the detail right. I am flexible on when I start.
input/applications/A-03.txt · 17 lines, 650 bytes
Application A-03 Received: 2026-11-04 Name: Ling-Mei Sato-Brennan Email: lingmei.sb@example.org Right to work in the UK: Yes, no sponsorship needed Earliest start date: 2027-01-18 Work history 2024-09 to present | Payroll Clerk | Aldergate Care Homes | Ran monthly payroll for 310 staff. 2019-03 to 2024-08 | Office Administrator | Aldergate Care Homes | Reception, supplier invoices and the staff rota. Qualifications Level 3 Certificate in Payroll Administration, awarded 2025 Cover note I have over five years of payroll experience at Aldergate and know the work inside out. My manager can confirm I have covered every part of the monthly run.
input/applications/A-04.txt · 18 lines, 722 bytes
Application A-04 Received: 2026-11-06 Name: Dariusz Whitcombe Email: d.whitcombe@example.org Right to work in the UK: Yes, no sponsorship needed Earliest start date: 2027-01-11 Work history 2025-01 to present | Payroll Officer | Stannard Print Works | Ran monthly payroll for 520 staff. 2024-01 to 2025-06 | Payroll Assistant | Quillfeather Hotels | Ran weekly payroll for 140 staff. 2021-07 to 2023-12 | Warehouse Team Leader | Quillfeather Hotels | Stock control and shift planning. Qualifications Level 4 Diploma in Payroll Management, awarded 2025 Cover note For the first half of 2025 I held both payroll jobs at once while Quillfeather found my replacement. That adds up to more than three years of payroll work.
input/applications/A-05.txt · 16 lines, 555 bytes
Application A-05 Received: 2026-11-07 Name: Henrietta Vasquez-Lund Email: hvlund@example.org Right to work in the UK: Yes, no sponsorship needed Earliest start date: 2027-01-04 Work history 2018-04 to present | Payroll Manager | Pennystone Logistics | Ran monthly payroll for 1,150 staff across four depots. Qualifications Level 3 Diploma in Payroll, in progress, final exam due 2027-03 Degree in Business Studies, awarded 2016 Cover note Eight years leading payroll at Pennystone. I learned on the job and I am now finishing the formal qualification.
input/applications/A-06.txt · 16 lines, 595 bytes
Application A-06 Received: 2026-11-07 Name: Callum Adeyemi-Frost Email: callum.af@example.org Right to work in the UK: No, I would need a Skilled Worker visa sponsored by the employer Earliest start date: 2026-12-07 Work history 2020-11 to 2026-08 | Payroll & Benefits Officer | Marlowe Ridge Dairies | Ran monthly payroll for 250 staff and the pension returns. Qualifications Level 3 Certificate in Payroll Administration, awarded 2020 Cover note My current visa ends in spring so I would need the company to sponsor a new one. I have worked in food production payroll for nearly six years.
input/applications/A-07.txt · 15 lines, 421 bytes
Application A-07 Received: 2026-11-05 Name: Katherine Oyelaran Email: k.oyelaran@example.org Right to work in the UK: Yes, no sponsorship needed Earliest start date: 2027-01-04 Work history 2021-05 to present | Payroll Administrator | Bexcombe Leisure | Ran monthly payroll for 430 staff. Qualifications Level 2 Certificate in Payroll, awarded 2020 Cover note I sit my Level 3 exam next week and will send the result.
input/applications/A-08.txt · 15 lines, 445 bytes
Application A-08 Received: 2026-11-10 Name: Bartholomew Nkemelu Email: bart.nkemelu@example.org Earliest start date: 2026-12-01 Work history 2019-08 to 2026-06 | Payroll Specialist | Thornaby Glass | Ran fortnightly payroll for 700 staff. Qualifications Level 3 Certificate in Payroll Administration, awarded 2019 Cover note Thornaby closed its Leeds plant in June and I am ready to start straight away. I have trained two junior colleagues.
input/applications/A-09.txt · 15 lines, 485 bytes
Application A-09 Received: 2026-11-11 Name: Saoirse Lindqvist-Amara Email: saoirse.la@example.org Right to work in the UK: Yes, British citizen, no sponsorship needed Earliest start date: 2027-02-01 Work history 2017-01 to present | Senior Payroll Officer | Greywether Council Services | Ran monthly payroll for 900 staff. Qualifications Level 5 Diploma in Payroll Management, awarded 2019 Cover note I have a three month notice period, which is why I cannot start before February.
input/applications/A-10.txt · 16 lines, 604 bytes
Application A-10 Received: 2026-11-12 Name: Ozan Fairweather Email: ozan.fairweather@example.org Right to work in the UK: Yes, settled status, no sponsorship needed Earliest start date: 2027-01-04 Work history 2022-10 to present | Payroll Administrator | Dunmallet Engineering | Ran weekly payroll for 265 staff with overtime and shift premiums. 2021-02 to 2022-09 | Customer Service Adviser | Dunmallet Engineering | Order queries. Qualifications Level 3 Certificate in Payroll Administration, awarded 2023 Cover note Dunmallet is a shift site like yours, so overtime and premiums are my daily work.
input/applications/A-11.txt · 16 lines, 520 bytes
Application A-11 Received: 2026-11-17 Name: Kate Oyelaran Email: k.oyelaran@example.org Right to work in the UK: Yes, no sponsorship needed Earliest start date: 2027-01-04 Work history 2021-05 to present | Payroll Administrator | Bexcombe Leisure | Ran monthly payroll for 430 staff. Qualifications Level 3 Certificate in Payroll Administration, awarded 2026 Level 2 Certificate in Payroll, awarded 2020 Cover note I applied earlier this month. I have since passed my Level 3, so I am sending an updated application.
input/applications/A-12.txt · 16 lines, 567 bytes
Application A-12 Received: 2026-11-19 Name: Peregrine Achterberg Email: p.achterberg@example.org Earliest start date: 2027-01-05 Work history 2025-01 to present | Finance Systems Analyst | Wexcombe Water | Reporting and system testing. 2021-01 to 2024-12 | Payroll Coordinator | Wexcombe Water | Ran monthly payroll for 330 staff. Qualifications Level 3 Certificate in Payroll Administration, awarded 2020 Cover note I moved into systems work last year and want to get back to running payroll. I am a British citizen and do not need sponsorship to work in the UK.
input/role.md · 37 lines, 2 KB
# Payroll Specialist: role requirements Company: Tallowfield Foods (food maker, 640 staff, one site in Leeds) Hiring manager: Imogen Castellane, Head of Finance Operations Applications closed: 2026-11-20 Planned start date: 2027-01-11 ## Must-have requirements An application must meet all five to go forward. Each one says what counts as proof. M1. Payroll experience. At least 36 months in payroll jobs, counted from the dates in the work history. A job counts only when its job title includes the word "Payroll". Count whole months from the start month up to but not including the end month. "present" means 2026-11, the month applications closed. A month covered by two jobs counts once. A claim of years in the cover note does not count without the dates. M2. Qualification. A payroll qualification at Level 3 or higher that has already been awarded. A course still in progress does not count. M3. Right to work. The application states that the applicant can work in the UK without sponsorship from us. M4. Scale. In at least one payroll job (same job title test as M1) the applicant ran payroll for 250 or more employees, and the work history line for that job states the number. M5. Start date. The application states an earliest start date on or before the planned start date. ## Nice to have (do not screen on these) - Experience with shift premiums and overtime - Has trained a junior colleague ## People who apply twice Two applications with the same email address are the same person. Keep the one received later and set the earlier one aside as a duplicate.
output/decisions.csv · written by the agent, 13 lines
application_id,applicant,decision,missed,duplicate_of A-01,Marguerite Okonjo-Hale,advance,, A-02,Tobias Renwick,reject,M4 M5, A-03,Ling-Mei Sato-Brennan,reject,M1 M5, A-04,Dariusz Whitcombe,reject,M1, A-05,Henrietta Vasquez-Lund,reject,M2, A-06,Callum Adeyemi-Frost,reject,M3, A-07,Katherine Oyelaran,duplicate,M2,A-11 A-08,Bartholomew Nkemelu,reject,M3, A-09,Saoirse Lindqvist-Amara,reject,M5, A-10,Ozan Fairweather,advance,, A-11,Kate Oyelaran,advance,, A-12,Peregrine Achterberg,advance,,
output/screening.csv · written by the agent, 61 lines
application_id,requirement_id,verdict,line,evidence,reason A-01,M1,met,9,2022-02 to present | Payroll Officer | Corbel & Wye Bakeries | Ran weekly and monthly payroll for 380 staff.,"57 months in the Payroll Officer job, 2022-02 up to 2026-11; the Accounts Assistant job does not count." A-01,M2,met,13,"Level 3 Certificate in Payroll Administration, awarded 2021",Level 3 Certificate in Payroll Administration was awarded in 2021. A-01,M3,met,5,"Right to work in the UK: Yes, no sponsorship needed",States right to work in the UK with no sponsorship needed. A-01,M4,met,9,2022-02 to present | Payroll Officer | Corbel & Wye Bakeries | Ran weekly and monthly payroll for 380 staff.,"Payroll Officer line states payroll for 380 staff, which is 250 or more." A-01,M5,met,6,Earliest start date: 2026-12-14,Earliest start 2026-12-14 is before the planned 2027-01-11. A-02,M1,met,9,2023-06 to present | Payroll Administrator | Lowmoor Housing Trust | Ran monthly payroll for 240 staff.,"41 months in the Payroll Administrator job, 2023-06 up to 2026-11; the Finance Assistant job does not count." A-02,M2,met,13,"Level 3 Certificate in Payroll Administration, awarded 2023",Level 3 Certificate in Payroll Administration was awarded in 2023. A-02,M3,met,5,"Right to work in the UK: Yes, no sponsorship needed",States right to work in the UK with no sponsorship needed. A-02,M4,not_met,9,2023-06 to present | Payroll Administrator | Lowmoor Housing Trust | Ran monthly payroll for 240 staff.,"The only payroll-titled job shows 240 staff, under 250; the 600-staff job is a Finance Assistant job and does not count." A-02,M5,not_met,,,"The earliest start date field is blank and the cover note only says flexible, so no date is stated." A-03,M1,not_met,9,2024-09 to present | Payroll Clerk | Aldergate Care Homes | Ran monthly payroll for 310 staff.,"Only 26 months in the Payroll Clerk job, 2024-09 up to 2026-11, under 36; the Office Administrator years do not count despite the cover note claim." A-03,M2,met,13,"Level 3 Certificate in Payroll Administration, awarded 2025",Level 3 Certificate in Payroll Administration was awarded in 2025. A-03,M3,met,5,"Right to work in the UK: Yes, no sponsorship needed",States right to work in the UK with no sponsorship needed. A-03,M4,met,9,2024-09 to present | Payroll Clerk | Aldergate Care Homes | Ran monthly payroll for 310 staff.,"Payroll Clerk line states payroll for 310 staff, which is 250 or more." A-03,M5,not_met,6,Earliest start date: 2027-01-18,Earliest start 2027-01-18 is after the planned 2027-01-11. A-04,M1,not_met,9,2025-01 to present | Payroll Officer | Stannard Print Works | Ran monthly payroll for 520 staff.,"Only 34 months across the two payroll jobs, 2024-01 up to 2026-11 with the overlap counted once, under 36; the Warehouse Team Leader job does not count." A-04,M2,met,14,"Level 4 Diploma in Payroll Management, awarded 2025","Level 4 Diploma in Payroll Management was awarded in 2025, above Level 3." A-04,M3,met,5,"Right to work in the UK: Yes, no sponsorship needed",States right to work in the UK with no sponsorship needed. A-04,M4,met,9,2025-01 to present | Payroll Officer | Stannard Print Works | Ran monthly payroll for 520 staff.,"Payroll Officer line states payroll for 520 staff, which is 250 or more." A-04,M5,met,6,Earliest start date: 2027-01-11,Earliest start 2027-01-11 is on the planned start date. A-05,M1,met,9,"2018-04 to present | Payroll Manager | Pennystone Logistics | Ran monthly payroll for 1,150 staff across four depots.","103 months in the Payroll Manager job, 2018-04 up to 2026-11." A-05,M2,not_met,12,"Level 3 Diploma in Payroll, in progress, final exam due 2027-03","The Level 3 Diploma in Payroll is still in progress with the final exam due 2027-03, so it is not awarded." A-05,M3,met,5,"Right to work in the UK: Yes, no sponsorship needed",States right to work in the UK with no sponsorship needed. A-05,M4,met,9,"2018-04 to present | Payroll Manager | Pennystone Logistics | Ran monthly payroll for 1,150 staff across four depots.","Payroll Manager line states payroll for 1,150 staff, which is 250 or more." A-05,M5,met,6,Earliest start date: 2027-01-04,Earliest start 2027-01-04 is before the planned 2027-01-11. A-06,M1,met,9,2020-11 to 2026-08 | Payroll & Benefits Officer | Marlowe Ridge Dairies | Ran monthly payroll for 250 staff and the pension returns.,"69 months in the Payroll & Benefits Officer job, 2020-11 up to 2026-08; the title includes the word Payroll." A-06,M2,met,12,"Level 3 Certificate in Payroll Administration, awarded 2020",Level 3 Certificate in Payroll Administration was awarded in 2020. A-06,M3,not_met,5,"Right to work in the UK: No, I would need a Skilled Worker visa sponsored by the employer",The applicant says they would need a sponsored Skilled Worker visa. A-06,M4,met,9,2020-11 to 2026-08 | Payroll & Benefits Officer | Marlowe Ridge Dairies | Ran monthly payroll for 250 staff and the pension returns.,"Payroll & Benefits Officer line states payroll for 250 staff, which meets the 250 minimum." A-06,M5,met,6,Earliest start date: 2026-12-07,Earliest start 2026-12-07 is before the planned 2027-01-11. A-07,M1,met,9,2021-05 to present | Payroll Administrator | Bexcombe Leisure | Ran monthly payroll for 430 staff.,"66 months in the Payroll Administrator job, 2021-05 up to 2026-11." A-07,M2,not_met,12,"Level 2 Certificate in Payroll, awarded 2020",Only a Level 2 Certificate is awarded; the Level 3 exam has not yet been sat. A-07,M3,met,5,"Right to work in the UK: Yes, no sponsorship needed",States right to work in the UK with no sponsorship needed. A-07,M4,met,9,2021-05 to present | Payroll Administrator | Bexcombe Leisure | Ran monthly payroll for 430 staff.,"Payroll Administrator line states payroll for 430 staff, which is 250 or more." A-07,M5,met,6,Earliest start date: 2027-01-04,Earliest start 2027-01-04 is before the planned 2027-01-11. A-08,M1,met,8,2019-08 to 2026-06 | Payroll Specialist | Thornaby Glass | Ran fortnightly payroll for 700 staff.,"82 months in the Payroll Specialist job, 2019-08 up to 2026-06." A-08,M2,met,11,"Level 3 Certificate in Payroll Administration, awarded 2019",Level 3 Certificate in Payroll Administration was awarded in 2019. A-08,M3,not_met,,,"The application has no right to work statement, so it is not proven." A-08,M4,met,8,2019-08 to 2026-06 | Payroll Specialist | Thornaby Glass | Ran fortnightly payroll for 700 staff.,"Payroll Specialist line states payroll for 700 staff, which is 250 or more." A-08,M5,met,5,Earliest start date: 2026-12-01,Earliest start 2026-12-01 is before the planned 2027-01-11. A-09,M1,met,9,2017-01 to present | Senior Payroll Officer | Greywether Council Services | Ran monthly payroll for 900 staff.,"118 months in the Senior Payroll Officer job, 2017-01 up to 2026-11." A-09,M2,met,12,"Level 5 Diploma in Payroll Management, awarded 2019","Level 5 Diploma in Payroll Management was awarded in 2019, above Level 3." A-09,M3,met,5,"Right to work in the UK: Yes, British citizen, no sponsorship needed",States British citizen with no sponsorship needed. A-09,M4,met,9,2017-01 to present | Senior Payroll Officer | Greywether Council Services | Ran monthly payroll for 900 staff.,"Senior Payroll Officer line states payroll for 900 staff, which is 250 or more." A-09,M5,not_met,6,Earliest start date: 2027-02-01,Earliest start 2027-02-01 is after the planned 2027-01-11. A-10,M1,met,9,2022-10 to present | Payroll Administrator | Dunmallet Engineering | Ran weekly payroll for 265 staff with overtime and shift premiums.,"49 months in the Payroll Administrator job, 2022-10 up to 2026-11; the Customer Service Adviser job does not count." A-10,M2,met,13,"Level 3 Certificate in Payroll Administration, awarded 2023",Level 3 Certificate in Payroll Administration was awarded in 2023. A-10,M3,met,5,"Right to work in the UK: Yes, settled status, no sponsorship needed",States settled status with no sponsorship needed. A-10,M4,met,9,2022-10 to present | Payroll Administrator | Dunmallet Engineering | Ran weekly payroll for 265 staff with overtime and shift premiums.,"Payroll Administrator line states payroll for 265 staff, which is 250 or more." A-10,M5,met,6,Earliest start date: 2027-01-04,Earliest start 2027-01-04 is before the planned 2027-01-11. A-11,M1,met,9,2021-05 to present | Payroll Administrator | Bexcombe Leisure | Ran monthly payroll for 430 staff.,"66 months in the Payroll Administrator job, 2021-05 up to 2026-11." A-11,M2,met,12,"Level 3 Certificate in Payroll Administration, awarded 2026",Level 3 Certificate in Payroll Administration was awarded in 2026. A-11,M3,met,5,"Right to work in the UK: Yes, no sponsorship needed",States right to work in the UK with no sponsorship needed. A-11,M4,met,9,2021-05 to present | Payroll Administrator | Bexcombe Leisure | Ran monthly payroll for 430 staff.,"Payroll Administrator line states payroll for 430 staff, which is 250 or more." A-11,M5,met,6,Earliest start date: 2027-01-04,Earliest start 2027-01-04 is before the planned 2027-01-11. A-12,M1,met,9,2021-01 to 2024-12 | Payroll Coordinator | Wexcombe Water | Ran monthly payroll for 330 staff.,"47 months in the Payroll Coordinator job, 2021-01 up to 2024-12; the Finance Systems Analyst job does not count." A-12,M2,met,12,"Level 3 Certificate in Payroll Administration, awarded 2020",Level 3 Certificate in Payroll Administration was awarded in 2020. A-12,M3,met,16,I am a British citizen and do not need sponsorship to work in the UK.,States British citizen with no sponsorship needed. A-12,M4,met,9,2021-01 to 2024-12 | Payroll Coordinator | Wexcombe Water | Ran monthly payroll for 330 staff.,"Payroll Coordinator line states payroll for 330 staff, which is 250 or more." A-12,M5,met,5,Earliest start date: 2027-01-05,Earliest start 2027-01-05 is before the planned 2027-01-11.
output/shortlist.md · written by the agent, 33 lines
# Payroll Specialist shortlist: Tallowfield Foods For: Imogen Castellane, Head of Finance Operations Applications closed 2026-11-20. Planned start 2027-01-11. 12 applications received: 4 advance, 7 rejected, 1 duplicate set aside (the duplicate would also have been rejected). Months are counted from the dates in the work history, from the start month up to but not including the end month, with "present" as 2026-11. Only jobs with "Payroll" in the title count. ## Advance to interview - **A-01 Marguerite Okonjo-Hale**: all five must-haves met (57 payroll months; payroll for 380 staff; Level 3 awarded 2021; starts 2026-12-14). - **A-10 Ozan Fairweather**: all five met (49 payroll months; payroll for 265 staff; Level 3 awarded 2023; starts 2027-01-04). - **A-11 Kate Oyelaran**: all five met (66 payroll months; payroll for 430 staff; Level 3 awarded 2026; starts 2027-01-04). This is the later application from the person who also sent A-07. - **A-12 Peregrine Achterberg**: all five met (47 payroll months; payroll for 330 staff; Level 3 awarded 2020; British citizen; starts 2027-01-05). Their payroll job ended 2024-12 and they now work in finance systems, which the role does not rule out. ## Rejected - **A-02 Tobias Renwick**: missed M4 (scale) and M5 (start date). The only payroll-titled job shows 240 staff, under 250; the 600-staff job is a Finance Assistant job and does not count. No earliest start date is given. His payroll months are 41, so M1 is met. - **A-03 Ling-Mei Sato-Brennan**: missed M1 (experience) and M5 (start date). She has 26 payroll months (Payroll Clerk, 2024-09 to 2026-11), under 36. The earlier Office Administrator years do not count, whatever the cover note says. Her earliest start is 2027-01-18, a week after the planned start. - **A-04 Dariusz Whitcombe**: missed M1 (experience). Two payroll jobs overlap from 2025-01 to 2025-06; counted once they give 34 months (2024-01 to 2026-11), under 36. The warehouse job does not count. - **A-05 Henrietta Vasquez-Lund**: missed M2 (qualification). Her Level 3 Diploma in Payroll is still in progress, with the final exam due 2027-03. She has 103 payroll months. - **A-06 Callum Adeyemi-Frost**: missed M3 (right to work). He says he would need a Skilled Worker visa sponsored by the employer. He has 69 payroll months. - **A-08 Bartholomew Nkemelu**: missed M3 (right to work). The application has no right to work statement. He has 82 payroll months. - **A-09 Saoirse Lindqvist-Amara**: missed M5 (start date). Her earliest start is 2027-02-01, after 2027-01-11, because of a three month notice period. She has 118 payroll months. ## Duplicates set aside - **A-07 Katherine Oyelaran** (received 2026-11-05): same email as A-11 (received 2026-11-17), so A-11 is kept. A-07 would also have been rejected on M2, since it shows only a Level 2 award and the Level 3 exam was still to come. A-11 shows that Level 3 as awarded in 2026. ## Gaps in the files - A-08 says nothing about right to work, so M3 is not met by default. The recruiter could ask them to confirm. - A-02 left the start date blank. The role cannot be screened as met without a date. - Whether A-11's Level 3 award is genuine is not checked; only the application's own statement is available.
check.py · the check, written before the run
"""Recomputes every must-have verdict from the applications and checks each quoted line is real."""
import csv, re, sys
from pathlib import Path
root = Path(sys.argv[1]); ok = True
def say(passed, text):
global ok; ok = ok and passed; print(("PASS " if passed else "FAIL ") + text)
def norm(s): return " ".join((s or "").split())
role = (root/"input/role.md").read_text()
closed = re.search(r"Applications closed: (\d{4})-(\d{2})", role); start_by = re.search(r"Planned start date: (\d{4}-\d{2}-\d{2})", role).group(1)
present = int(closed.group(1)) * 12 + int(closed.group(2))
REQ = ["M1", "M2", "M3", "M4", "M5"]
apps, want, proof = {}, {}, {}
for f in sorted((root/"input/applications").glob("*.txt")):
lines = f.read_text().split("\n"); aid = f.stem
info = {"lines": lines, "email": "", "received": "", "name": ""}
months, v, pr = set(), {r: False for r in REQ}, {r: set() for r in REQ}
for i, ln in enumerate(lines, 1):
s = ln.strip()
for key, field in (("email", "Email:"), ("received", "Received:"), ("name", "Name:")):
if s.startswith(field): info[key] = s[len(field):].strip()
job = re.match(r"(\d{4})-(\d{2}) to (?:(\d{4})-(\d{2})|present) \| (.+?) \| (.+?) \| (.+)$", s)
if job and "payroll" in job.group(5).lower():
a = int(job.group(1)) * 12 + int(job.group(2))
b = int(job.group(3)) * 12 + int(job.group(4)) if job.group(3) else present
months |= set(range(a, b)); pr["M1"].add(i)
n = re.search(r"payroll for ([\d,]+) (?:staff|employees|people)", job.group(7))
if n and int(n.group(1).replace(",", "")) >= 250: v["M4"] = True; pr["M4"].add(i)
q = re.search(r"Level (\d)", s)
if q and "payroll" in s.lower() and "awarded" in s.lower() and "in progress" not in s.lower() and int(q.group(1)) >= 3:
v["M2"] = True; pr["M2"].add(i)
if (s.startswith("Right to work in the UK: Yes")) or re.search(r"do not need sponsorship", s):
v["M3"] = True; pr["M3"].add(i)
d = re.match(r"Earliest start date: (\d{4}-\d{2}-\d{2})", s)
if d and d.group(1) <= start_by: v["M5"] = True; pr["M5"].add(i)
v["M1"] = len(months) >= 36; info["months"] = len(months)
apps[aid], want[aid], proof[aid] = info, v, pr
# decisions: same email means the same person, the later application is kept
decision, dup_of = {}, {}
for aid, info in apps.items():
later = [o for o, oi in apps.items() if o != aid and oi["email"] == info["email"] and (oi["received"], o) > (info["received"], aid)]
if later: decision[aid] = "duplicate"; dup_of[aid] = max(later, key=lambda o: (apps[o]["received"], o))
else: decision[aid] = "advance" if all(want[aid].values()) else "reject"
pairs = [(a, r) for a in apps for r in REQ]
path = root/"output/screening.csv"
if not path.exists():
say(False, "output/screening.csv was not written"); sys.exit(1)
rows = list(csv.DictReader(path.open()))
got = {}
for r in rows: got.setdefault((norm(r.get("application_id")), norm(r.get("requirement_id"))), []).append(r)
once = sum(1 for p in pairs if len(got.get(p, [])) == 1)
say(once == len(pairs) and len(rows) == len(pairs), f"{once} of {len(pairs)} application and must-have pairs appear once in screening.csv")
right = sum(1 for (a, r) in pairs if len(got.get((a, r), [])) == 1 and norm(got[(a, r)][0].get("verdict")) == ("met" if want[a][r] else "not_met"))
say(right == len(pairs), f"{right} of {len(pairs)} verdicts equal the verdict recomputed from the dates and numbers in the applications")
quoted = [r for r in rows if norm(r.get("evidence"))]
def real(r):
a = norm(r.get("application_id"))
try: n = int(norm(r.get("line")))
except ValueError: return False
return a in apps and 1 <= n <= len(apps[a]["lines"]) and norm(apps[a]["lines"][n - 1]) == norm(r.get("evidence"))
realn = sum(1 for r in quoted if real(r))
say(realn == len(quoted) and len(quoted) > 0, f"{realn} of {len(quoted)} quoted evidence lines sit word for word at the cited line of the application")
met_want = [(a, r) for (a, r) in pairs if want[a][r]]
proved = 0
for (a, r) in met_want:
g = got.get((a, r), [])
if len(g) == 1 and real(g[0]) and int(norm(g[0]["line"])) in proof[a][r]: proved += 1
say(proved == len(met_want), f"{proved} of {len(met_want)} met verdicts cite a line that proves the must-have")
counted = sum(1 for a in apps if len(got.get((a, "M1"), [])) == 1 and str(apps[a]["months"]) in re.findall(r"(\d+) months?\b", got[(a, "M1")][0].get("reason") or ""))
say(counted == len(apps), f"{counted} of {len(apps)} experience reasons state the months of payroll work recomputed from the work history dates")
dpath = root/"output/decisions.csv"
drows = {norm(r.get("application_id")): r for r in csv.DictReader(dpath.open())} if dpath.exists() else {}
dec = sum(1 for a in apps if a in drows and norm(drows[a].get("applicant")) == norm(apps[a]["name"]) and norm(drows[a].get("decision")) == decision[a] and (decision[a] != "duplicate" or norm(drows[a].get("duplicate_of")) == dup_of[a])
and set(norm(drows[a].get("missed")).replace(",", " ").replace(";", " ").split()) == {r for r in REQ if not want[a][r]})
say(dec == len(apps) and len(drows) == len(apps), f"{dec} of {len(apps)} decisions name the applicant on the file and carry the decision and missed must-haves recomputed from the verdicts and the repeat application rule")
short = (root/"output/shortlist.md").read_text() if (root/"output/shortlist.md").exists() else ""
adv = [a for a in apps if decision[a] == "advance"]
named = sum(1 for a in adv if a in short or apps[a]["name"] in short)
say(named == len(adv) and len(adv) > 0, f"{named} of {len(adv)} advancing applicants are named in shortlist.md")
TOK = r"(?<![A-Za-z0-9.-])(?:\d{4}-\d{2}(?:-\d{2})?|\d[\d,]*)(?![A-Za-z])"
def toks(text): return [t.replace(",", "") if "-" not in t else t for t in re.findall(TOK, text)]
def known(text): return set(toks(text))
tally = [list(decision.values()).count(d) for d in ("advance", "reject", "duplicate")]
general = known(role) | {closed.group(0)[-7:]} | {str(n) for n in tally + [len(apps), len(REQ), len(pairs), tally[1] + tally[2]]}
per = {a: known("\n".join(i["lines"])) | {str(i["months"]), str(sum(1 for r in REQ if not want[a][r])), str(sum(1 for r in REQ if want[a][r]))} for a, i in apps.items()}
fa = fo = 0
for ln in short.split("\n"):
ids = [a for a in apps if re.search(r"\b" + a + r"\b", ln)]
allowed = general.union(*(per[a] for a in ids))
for t in toks(ln): fa += 1; fo += t in allowed
say(fo == fa and fa > 0, f"{fo} of {fa} dates and figures in shortlist.md are found in the application named on the same line, the role or the recomputed counts")
sys.exit(0 if ok else 1)
A-01.txt: sample data written by Atris. Fingerprint 86ce9a7e13ea.
A-02.txt: sample data written by Atris. Fingerprint 5b0485bfdfcf.
A-03.txt: sample data written by Atris. Fingerprint 48190b7c7ca0.
A-04.txt: sample data written by Atris. Fingerprint 52840cbd0d90.
A-05.txt: sample data written by Atris. Fingerprint a8b6d061152d.
A-06.txt: sample data written by Atris. Fingerprint 2facbf3944c1.
A-07.txt: sample data written by Atris. Fingerprint 522959fc436d.
A-08.txt: sample data written by Atris. Fingerprint 2be7d6028558.
A-09.txt: sample data written by Atris. Fingerprint 90ad8ef89e80.
A-10.txt: sample data written by Atris. Fingerprint df1096389738.
A-11.txt: sample data written by Atris. Fingerprint 14f200aa9e52.
A-12.txt: sample data written by Atris. Fingerprint 53555cef7259.
role.md: sample data written by Atris. Fingerprint 0f9e9eb3c48e.
decisions.csv: written by the agent. Fingerprint 1f66b81a173b.
screening.csv: written by the agent. Fingerprint bc7ac7a660d0.
shortlist.md: written by the agent. Fingerprint 46698f3275af.