Dev.to WebDev 🛠 Dev 👁 0 📖 3 min read

We deleted the device limit: six files outright, three legal pages rewritten, and a policy that said it could never be reset

I have written about CogniPrep's device limit three times, and about the page it redirected to once. On 30 November it was deleted. This is the epilogue, and it is mostly an inventory, because the interesting thing about

I have written about CogniPrep's device limit three times, and about the page it redirected to once. On 30 November it was deleted. This is the epilogue, and it is mostly an inventory, because the interesting thing about removing a feature that sat in the request path is how many places had learned about it.

The earlier posts, if you want the history: counting devices by cookie locked out the wrong people, two ordered regex tables for the device label, the cap that only the Stripe webhook wrote, and the robots.txt line that blocked nothing. I am not going to describe how any of it worked. The point is what it cost to take out.

What went outright

Six files were deleted whole, for 1,173 lines:

File Lines
the device session library 471
its test file 531
the page the limit redirected to 59
the user agent label test 47
an account route to remove a session 34
an admin route to list devices 31

The library's first commit was 8 March 2026 and 17 commits touched it afterwards. So the feature lived for almost nine months and was edited, on average, about twice a month.

One honest caveat about every number here: the deletion shares a commit with the new support assistant, so the commit's own totals (49 files, 2,117 insertions, 2,210 deletions) mix the two. The six files above are the clean part, because a whole-file delete cannot belong to anything else.

What shrank

  • proxy.ts went from 330 lines to 239. The request proxy no longer reads, sets or resolves anything about devices.
  • The OAuth callback lost its device step. Before the change, sign-in with Google had to claim a slot before it could redirect, and the code had a comment explaining that the user row had to exist first because of a foreign key. That whole ordering constraint went with it.
  • The nightly data retention job went from five sweeps to four, and its result type lost a field.
  • The admin account panel lost 177 lines, and the account service and its types lost 76 and 71.
  • The schema lost its table, and the migration that drops it is one line of SQL next to a 4,252-line snapshot.

That migration is committed, and I am not claiming it has been applied anywhere. The table's removal from the code is the part I can show.

What said it out loud

A limit that is enforced also gets promised in prose, and the prose is the part that is easy to miss, because no test fails when it goes stale.

  • Terms. Section 4.3 was titled "Device Limit" and said an account could be used on at most two devices, registered permanently. It is now "One Person Per Account": use it on as many of your own devices as you like, just do not share it.
  • Privacy. Several data-collection and retention lines came out (the device list's source string and hash, the session tokens, and the cleanup rule for those tokens), along with a note saying the limit was "final and cannot be changed or reset, and devices cannot be removed". One category stayed, reworded: the user agent is now described only as attached to a support ticket you open.
  • Cookies. A cookie that lasted a year came off the list in two places.
  • robots.txt. The /device-limit/ line, the one that matched nothing, is gone.
  • The support bot. Its knowledge file now has a line saying there is no device limit, and one of the replayed test chats asks whether the same account can go on a new laptop and forbids the old "issue with your access" answer. A support assistant that has been fed the old rule is the last place a deleted rule survives.

The versions moved with it: terms went from 1.14.0 to 1.15.0, privacy from 1.10.0 to 1.11.0, and all three pages now say last updated 30 November 2026.

Check it yourself

All of this is on the live site:

  • /device-limit is a 404. It was a real page that sent people somewhere to be told no.
  • /terms has "One Person Per Account". Search the page for "devices": you will find the sentence about your own devices and nothing about a count.
  • /privacy reads Version 1.11.0, and "2-device" appears nowhere in it.
  • /robots.txt has no device anywhere in it.

What I would do next time

Search for the feature's name and its numbers in prose, not only in code. A grep for the identifier finds the imports. A grep for "two devices" and "2-device" finds the legal pages, the help answers and the cookie list, and those are the ones a customer reads.

📰 Read the original article on Dev.to WebDev

Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.