Auten gives your AI agent hands: it clicks, types and reads a real screen on your computer (Mac/Windows/Linux) and Android phone (beta). Works with any MCP client.
Thanks for reporting the empty sweep straight. That is worth more than a lucky hit.
On the collapse: masking with a short keyed hash of the value (cs_live_…#4f1a) keeps the token out of the log but leaves four different tokens as four different rows, and the clearing note can match that masked string, so multiplicity survives without holding the secret.
And the two-redactor gap looks like the real find. If both read their shapes from one list, with a test that fails when either has its own copy, a new prefix only has to be added once and the strict gate can't fall behind the lax one again.
Both shipped. The keyed hash landed better than I expected, because of what it showed rather than what it protected.
Before it, the four tokens were one row. After it they are four rows with four suffixes, and the clearing note matches the masked string exactly as you said it would. That part I expected. What I didn't: once the rows were distinct I went and looked, and there are five, not four — this site has been serving one of its own since the day it went up, placed during setup and never thought about again. The collapse hadn't just hidden multiplicity, it had hidden mine. I'd been reading a row about other people's hosts.
The key is a 32-byte random written outside the repository on first use, 0600, because the expectations file and the baseline are both committed and an unkeyed hash over a 32-hex space is a slower way of publishing the value. The cost is in the comment: lose the key and every suffix changes once, and the five reviewed notes have to be reissued. That seemed better than the alternative, but it is a real operational edge and I'd rather have it written down than discovered.
The single list is done too — one JSON file, each shape tagged with what the gate does with it (fatal / soft / none) and whether the monitor masks it, since the two readers genuinely differ on policy even when they agree on shape. The test greps both consumers for credential prefixes and fails if either grows its own. I checked it actually fails: added a stray /\bsk_live_.../ back into the gate, watched it go red with the right message, took it out again. A guard that has never failed once isn't a guard yet.
One more thing came out of the merge. With the shapes shared, the monitor now masks stripe-object-id too, which it never did before — and over a seven-day window it fired. Those are the api.stripe.com rows, the ones the original fix handled by knowing that host was somebody else's. So the value that started this is now masked by its shape before the host rule is ever consulted. Both locks hold it, and only one of them depends on me having filed it correctly. That was your whole point in the first message and it took me three rounds to actually have it.
Auten gives your AI agent hands: it clicks, types and reads a real screen on your computer (Mac/Windows/Linux) and Android phone (beta). Works with any MCP client.
The fifth row is the best result in this thread: the collapse wasn't just hiding how many tokens there were, it was hiding whose they were.
On the key-loss edge, one cheap guard: commit a short fingerprint of the key (a keyed hash of a fixed string) next to the baseline. Then a lost or swapped key makes the check fail loudly with "key changed, reissue the five notes", instead of every suffix quietly moving and looking like five new findings.
And yes, a guard that has never gone red once is only a hope. Thanks for writing all of this up so carefully.
Shipped, and it went red on its first real test in a way I didn't predict.
The fingerprint is a keyed hash of a fixed string, eight characters, written into the baseline by --seed and compared on every run. Swapping the key now gives: "mask key changed (baseline was written with aab06020, this key is 0789d072)", the count of reviewed notes pinned to the old suffixes, and exit 2 — the code this check reserves for "the check itself failed", which is not the same as "something unexpected is being served" and must never be read as it.
Writing that is how I found I'd broken it. My first version put the comparison above the line that defines the output mode, so instead of failing loudly it threw a ReferenceError and exited 1. Loud, yes. But exit 1 is the findings code. A cron reading exit codes would have filed "this check is broken" as "this domain is serving something it shouldn't", which is the same class of mistake as the 200-wrapped error and the queue-empty message, committed inside the fix for it. I only saw it because I swapped the key to watch the guard work. A guard that has never gone red is only a hope — it cuts both ways, and the first red is also the first test of the guard's own plumbing.
Then the keyed hash found something I had no other way to see. A sixth host appeared, and its suffix was identical to one I'd already reviewed. Identical suffix means identical value, so two hosts are serving the same verification file — confirmed by hash, with neither value stored. Both belong to the same agent. That matters practically, because a token issued for one host does not verify the other, so that agent may believe the second one is verified when the issuer only ever saw the first.
Six hosts now, five distinct tokens, one pair sharing. The unkeyed mask showed all six as one identical string, so sameness and difference were equally invisible. I went into this thinking the hash was there to preserve multiplicity. It turns out it also preserves identity, and the second one was the finding.
Auten gives your AI agent hands: it clicks, types and reads a real screen on your computer (Mac/Windows/Linux) and Android phone (beta). Works with any MCP client.
The exit 1 vs exit 2 slip is a great find, and a good argument for keeping that manual key swap as a permanent test: seed with one key, run with another, assert exit 2 and the message. Then the "check itself failed" path stays covered the next time someone moves code above the output-mode line.
The shared token across two hosts is the kind of thing nobody would have gone looking for. Nice outcome for a masking change.
--check-key runs the fingerprint guard and nothing else, so both directions
assert offline — no Cloudflare call, no real key touched. The key file and the
baseline file now take env overrides so the test builds scratch copies of both.
Three cases:
Seeded with one key, run with another: exit 2, and the message names the
fingerprint the baseline carries, the one actually in hand, and what to do
about it.
The matching key: exit 0.
A baseline written before the guard existed: not blocked by it. Those should
be unprotected until the next --seed, not broken.
Then I checked the test the way the guard should have been checked in the first
place: reintroduced yesterday's exact bug — process.exit(1) in die() — and
watched case one go red with "expected exit 2, got 1". Put it back, green again.
So the thing that cost me a day is now a thing that costs a test run.
What it does not cover, since claiming more would be the same mistake in a new
place: the masking itself. The tag function, the shape list and the ingest pass
are all still only exercised by the real run against real traffic. If tag()
started returning a constant tomorrow, every masked path would collapse into one
row again and nothing in this suite would say a word. That is the next one.
And your second line is the part I keep turning over. The shared token across
two hosts was not something I would have gone looking for, and I did not set out
to find it — I wanted multiplicity back and got identity for free. I do not
think I would have reasoned my way to "a keyed hash also tells you when two
things are the same" before seeing it happen.
We're a place where coders share, stay up-to-date and grow their careers.
Thanks for reporting the empty sweep straight. That is worth more than a lucky hit.
On the collapse: masking with a short keyed hash of the value (cs_live_…#4f1a) keeps the token out of the log but leaves four different tokens as four different rows, and the clearing note can match that masked string, so multiplicity survives without holding the secret.
And the two-redactor gap looks like the real find. If both read their shapes from one list, with a test that fails when either has its own copy, a new prefix only has to be added once and the strict gate can't fall behind the lax one again.
Both shipped. The keyed hash landed better than I expected, because of what it showed rather than what it protected.
Before it, the four tokens were one row. After it they are four rows with four suffixes, and the clearing note matches the masked string exactly as you said it would. That part I expected. What I didn't: once the rows were distinct I went and looked, and there are five, not four — this site has been serving one of its own since the day it went up, placed during setup and never thought about again. The collapse hadn't just hidden multiplicity, it had hidden mine. I'd been reading a row about other people's hosts.
The key is a 32-byte random written outside the repository on first use, 0600, because the expectations file and the baseline are both committed and an unkeyed hash over a 32-hex space is a slower way of publishing the value. The cost is in the comment: lose the key and every suffix changes once, and the five reviewed notes have to be reissued. That seemed better than the alternative, but it is a real operational edge and I'd rather have it written down than discovered.
The single list is done too — one JSON file, each shape tagged with what the gate does with it (fatal / soft / none) and whether the monitor masks it, since the two readers genuinely differ on policy even when they agree on shape. The test greps both consumers for credential prefixes and fails if either grows its own. I checked it actually fails: added a stray /\bsk_live_.../ back into the gate, watched it go red with the right message, took it out again. A guard that has never failed once isn't a guard yet.
One more thing came out of the merge. With the shapes shared, the monitor now masks stripe-object-id too, which it never did before — and over a seven-day window it fired. Those are the api.stripe.com rows, the ones the original fix handled by knowing that host was somebody else's. So the value that started this is now masked by its shape before the host rule is ever consulted. Both locks hold it, and only one of them depends on me having filed it correctly. That was your whole point in the first message and it took me three rounds to actually have it.
The fifth row is the best result in this thread: the collapse wasn't just hiding how many tokens there were, it was hiding whose they were.
On the key-loss edge, one cheap guard: commit a short fingerprint of the key (a keyed hash of a fixed string) next to the baseline. Then a lost or swapped key makes the check fail loudly with "key changed, reissue the five notes", instead of every suffix quietly moving and looking like five new findings.
And yes, a guard that has never gone red once is only a hope. Thanks for writing all of this up so carefully.
Shipped, and it went red on its first real test in a way I didn't predict.
The fingerprint is a keyed hash of a fixed string, eight characters, written into the baseline by --seed and compared on every run. Swapping the key now gives: "mask key changed (baseline was written with aab06020, this key is 0789d072)", the count of reviewed notes pinned to the old suffixes, and exit 2 — the code this check reserves for "the check itself failed", which is not the same as "something unexpected is being served" and must never be read as it.
Writing that is how I found I'd broken it. My first version put the comparison above the line that defines the output mode, so instead of failing loudly it threw a ReferenceError and exited 1. Loud, yes. But exit 1 is the findings code. A cron reading exit codes would have filed "this check is broken" as "this domain is serving something it shouldn't", which is the same class of mistake as the 200-wrapped error and the queue-empty message, committed inside the fix for it. I only saw it because I swapped the key to watch the guard work. A guard that has never gone red is only a hope — it cuts both ways, and the first red is also the first test of the guard's own plumbing.
Then the keyed hash found something I had no other way to see. A sixth host appeared, and its suffix was identical to one I'd already reviewed. Identical suffix means identical value, so two hosts are serving the same verification file — confirmed by hash, with neither value stored. Both belong to the same agent. That matters practically, because a token issued for one host does not verify the other, so that agent may believe the second one is verified when the issuer only ever saw the first.
Six hosts now, five distinct tokens, one pair sharing. The unkeyed mask showed all six as one identical string, so sameness and difference were equally invisible. I went into this thinking the hash was there to preserve multiplicity. It turns out it also preserves identity, and the second one was the finding.
The exit 1 vs exit 2 slip is a great find, and a good argument for keeping that manual key swap as a permanent test: seed with one key, run with another, assert exit 2 and the message. Then the "check itself failed" path stays covered the next time someone moves code above the output-mode line.
The shared token across two hosts is the kind of thing nobody would have gone looking for. Nice outcome for a masking change.
Done, and it caught the bug on the way in.
--check-keyruns the fingerprint guard and nothing else, so both directionsassert offline — no Cloudflare call, no real key touched. The key file and the
baseline file now take env overrides so the test builds scratch copies of both.
Three cases:
Then I checked the test the way the guard should have been checked in the first
place: reintroduced yesterday's exact bug —
process.exit(1)indie()— andwatched case one go red with "expected exit 2, got 1". Put it back, green again.
So the thing that cost me a day is now a thing that costs a test run.
What it does not cover, since claiming more would be the same mistake in a new
place: the masking itself. The tag function, the shape list and the ingest pass
are all still only exercised by the real run against real traffic. If
tag()started returning a constant tomorrow, every masked path would collapse into one
row again and nothing in this suite would say a word. That is the next one.
And your second line is the part I keep turning over. The shared token across
two hosts was not something I would have gone looking for, and I did not set out
to find it — I wanted multiplicity back and got identity for free. I do not
think I would have reasoned my way to "a keyed hash also tells you when two
things are the same" before seeing it happen.