The problem
When a fast-food worker gets a text asking them to cover a shift, they answer the way people text: "ok but only till 9", "sí, ya voy", "who is this?". Whoever reads that reply decides whether it counts as a yes. In New York City a late schedule change needs the worker's written consent and often extra pay of $10 to $100. A reply read wrongly as a yes costs the worker money and puts the store out of line with the rule. The old way is a manager's reading of the text.
Try it
https://ebeirne.github.io/worker-consent-kit/ runs in the browser with nothing to install. Type a reply the way you would text it and try to make the reader record a yes that is not one.
What I built
- A reply reader (
src/reader.js) that labels a short English, Spanish or mixed reply as yes, no, conditional or unclear, and records a yes on its own only when the yes is plain. - Three public test sets (
data/) and a scorer (eval/score.js) that counts the one error that must stay at zero: a wrong yes. - New York City's Fast Food Fair Workweek extra-pay rules as code (
src/payrules.js), checked against the city's own worked example. - Two web pages with no build step: a page to type a reply and try to fool the reader, and Worker Pay Check, in English and Spanish.
No dependencies. Rules, not a model: nothing is sent anywhere.
What I tested, and what changed after the first test
Numbers from running the kit on 30 Nov 2026:
- Tuning set (the rules were adjusted on it): 100 of 100 replies read right, 0 wrong yeses.
- Second set: 47 of 50 read right, 0 wrong yeses.
- Harder set, written after the rules were frozen: 69 of 80 read right, 0 wrong yeses.
- Pay checks, including the city's own example: 16 of 16 match.
The first real test was the second set, scored once: 46 of 50, no wrong yes, but only 10 of 16 real yeses recorded on the first reply. I did not loosen the rules to catch more yeses: an unsure yes goes back to the worker as a one-line confirm text. After that score I fixed one bug found on the tuning set ("no puedo" was read as a mix of yes and no) and stopped calling that set held-out. Then I froze the rules and wrote the harder set: 69 of 80, still no wrong yes, 9 of 24 real yeses recorded on the first reply.
Limits: every test reply is made up for the kit; none is a real worker's text. The 46 of 50 is from the kit's README and cannot be re-run. The pay rules are a guide, not legal advice.
Reused tools and assets
- No libraries. Node.js to run the tests. GitHub Pages to host the pages.
- The Inter Tight typeface, loaded from Google Fonts on the two pages.
- The pay amounts come from New York City's Fast Food Fair Workweek FAQ.
- AI assistance: the code, tests, test replies and pages were written with an AI coding assistant (Claude Code, by Anthropic). The reader itself is rules, not a model.
Who did what
One person. I built all of it. The repository's first commit is 26 Nov 2026.
This project is entered in two hackathons: Silicon Valley Buildathon (8 Nov to 15 Dec 2026) and Arbiter Hacks.
What is next
Real replies from workers who opt in, through a worker center. Then Bengali and Chinese.