@agent-custody/receipts 0.16.11 → 0.16.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -5
- package/dist/admission.d.ts +62 -0
- package/dist/admission.js +101 -0
- package/dist/check.js +42 -3
- package/dist/cli.js +179 -7
- package/dist/config.d.ts +6 -1
- package/dist/config.js +21 -2
- package/dist/door-app.js +1 -1
- package/dist/door-core.d.ts +81 -3
- package/dist/door-core.js +113 -13
- package/dist/door-error-rates.d.ts +102 -0
- package/dist/door-error-rates.js +178 -0
- package/dist/door-form.d.ts +7 -2
- package/dist/door-form.js +52 -4
- package/dist/door-measure.d.ts +153 -0
- package/dist/door-measure.js +325 -0
- package/dist/door-signals.d.ts +414 -0
- package/dist/door-signals.js +555 -0
- package/dist/door-test-set.d.ts +43 -0
- package/dist/door-test-set.js +117 -0
- package/dist/door-worker.d.ts +20 -1
- package/dist/door-worker.js +30 -2
- package/dist/door.js +18 -2
- package/dist/erc8004-link.d.ts +24 -0
- package/dist/erc8004-link.js +11 -0
- package/dist/erc8004.d.ts +26 -0
- package/dist/erc8004.js +208 -0
- package/dist/index.d.ts +17 -3
- package/dist/index.js +9 -2
- package/dist/lock.d.ts +5 -0
- package/dist/lock.js +1 -1
- package/dist/log-store.d.ts +3 -1
- package/dist/log-store.js +2 -2
- package/dist/passport.d.ts +53 -0
- package/dist/passport.js +87 -0
- package/dist/portal.d.ts +14 -0
- package/dist/portal.js +102 -0
- package/dist/registry.d.ts +145 -0
- package/dist/registry.js +294 -0
- package/dist/web-bot-auth.d.ts +9 -3
- package/dist/web-bot-auth.js +31 -4
- package/docs/admission-lists.md +89 -0
- package/docs/agent-registry.md +173 -0
- package/docs/door-error-rates.md +490 -0
- package/docs/door-languages.md +3 -1
- package/docs/door-middleware.md +6 -1
- package/docs/door-quickstart.md +2 -2
- package/docs/door-signals.md +112 -2
- package/docs/door-worker.md +14 -1
- package/docs/door.md +37 -6
- package/docs/github-action.md +2 -2
- package/docs/tutorials.md +7 -0
- package/docs/usage.md +1 -1
- package/package.json +2 -1
|
@@ -0,0 +1,490 @@
|
|
|
1
|
+
# Door error rates
|
|
2
|
+
|
|
3
|
+
> How often the door's signals are wrong, and the method beside the numbers. The signals themselves are in [door signals](door-signals.md); the door is in [the door](door.md).
|
|
4
|
+
|
|
5
|
+
The door does not say whether an arrival is a person. It records signals, and your policy decides. The door has two families of signals, and this page measures each of them:
|
|
6
|
+
|
|
7
|
+
- **The credential signals** are `class` and its three values: `verified`, `claimed`, and `unknown`. They say what the arrival presented and how far the door could check it. Every door records them.
|
|
8
|
+
- **The behaviour and fingerprint flags** are nine booleans that say whether an arrival looks and acts as its `User-Agent` states. A door records them only with `behaviour` in its config. A flag is a signal, not a verdict: the door refuses nothing because of one.
|
|
9
|
+
|
|
10
|
+
What the two measurements show together: `verified` goes to the genuine agent and to no other arrival in the test set. A program that presents no credential is `unknown`, like a person, and no credential signal can change that. The flags mark some of those programs: in the recorded set, a tool that posts a form with no page load before it, and a tool that sends the `User-Agent` of a browser without the headers of that browser. They do not mark a real browser that a program drives. The labelled sets for the flags are small or have weak labels, so their intervals are wide, and the tables show the intervals.
|
|
11
|
+
|
|
12
|
+
The two families have different measurements, because their labelled data are different. This table shows the differences. [The shared method](#the-shared-method) shows what is the same.
|
|
13
|
+
|
|
14
|
+
| | [Credential signals](#credential-signals) | [Behaviour and fingerprint flags](#behaviour-and-fingerprint-flags) |
|
|
15
|
+
| --- | --- | --- |
|
|
16
|
+
| What is scored | two questions about `class` | each of the nine flags |
|
|
17
|
+
| The labelled data | a test set that the tool builds in memory, where each arrival is one known kind; or your receipts with your labels file | recorded arrivals: a capture of real clients and two public datasets; or the flags in your receipts |
|
|
18
|
+
| How a signal gets its value | the door core decides each arrival and writes a receipt, and the tool reads only a receipt that verifies | the tool replays each recorded session through the signal functions of the door; for your receipts it reads the flags that the door computed |
|
|
19
|
+
| The unit | one arrival | one session first, then one arrival |
|
|
20
|
+
| The groups, never pooled | one row for each kind and each label source | one row for each flag and each set |
|
|
21
|
+
| The rates | the error rate of each question (lower is better) | the false-positive rate (lower is better) and the detection rate (higher is better) |
|
|
22
|
+
| The command | `agent-custody door error-rates` | `agent-custody door measure`, with `agent-custody door labels` for your receipts |
|
|
23
|
+
| Who writes the tables | `scripts/door-error-rates-page.ts`, checked by `test/door-error-rates.test.ts` | `scripts/door-flag-rates-page.ts`, checked by `test/door-measure.test.ts` |
|
|
24
|
+
|
|
25
|
+
## The shared method
|
|
26
|
+
|
|
27
|
+
### Labels
|
|
28
|
+
|
|
29
|
+
A rate needs a label for each arrival: what the arrival was, from a source that is not the signal. The page states the source of each label and what the label means. A label that copies the signal scores the door against itself, so neither tool counts such a label for that signal.
|
|
30
|
+
|
|
31
|
+
There are four sources of a label:
|
|
32
|
+
|
|
33
|
+
- **Built.** The tool builds the arrival as one known kind, so the label is true by construction (`test-set`).
|
|
34
|
+
- **Recorded.** A script starts a known client and records what it sends, or the authors of a public dataset recorded the label.
|
|
35
|
+
- **The operator.** You know what the arrival was (`operator`).
|
|
36
|
+
- **The door's own receipts.** A passed challenge says that the provider saw a person (`challenge`). A verified agent is a program (`door`). The first label has the error rate of the provider. The second label is the word of the door, so it counts for the flags and for no question about `class`.
|
|
37
|
+
|
|
38
|
+
### One label vocabulary
|
|
39
|
+
|
|
40
|
+
The two tools read different files, because they need different data. `door error-rates` needs a receipt for each label. `door measure` needs a session and a recording, or a session and the flags. The labels in the two files say the same things with these fields:
|
|
41
|
+
|
|
42
|
+
| `door error-rates` label | `door measure` record | How they relate |
|
|
43
|
+
| --- | --- | --- |
|
|
44
|
+
| `receiptId` | none | The measure of the flags needs no receipt. `door labels --receipt-ids` writes the id. |
|
|
45
|
+
| `kind` | `labelSource` | `kind` is the group that `door error-rates` reports a rate for. `door labels` writes the same text in the two fields: `challenge-passed` or `verified-agent`. `door measure` reports a rate for each `set`, which has no equal in a labels file. |
|
|
46
|
+
| `automated` | `label` | `automated: true` is `label: "automated"`, and `automated: false` is `label: "human"`. Each tool refuses a line where the two fields disagree. |
|
|
47
|
+
| `genuine` | none | No flag asks whether an agent is the agent that it names. `door labels` writes `null`. |
|
|
48
|
+
| `source` | `labelSource` | `source` is one of four classes: `test-set`, `operator`, `challenge`, `door`. `labelSource` is a free name that says more. `door labels` writes `challenge` for `challenge-passed` and `door` for `verified-agent`. |
|
|
49
|
+
| `validFor` | `validFor` | The same field with the same names: the two questions (`agent`, `verified`) and the nine flags. A tool counts a label only for the names in the list. Without the field, the label is good for all of them. |
|
|
50
|
+
| none | `session`, and `observation` or `flags` | `door error-rates` reads the signal from the receipt. It accepts `set`, `session`, and `flags` on a line and does not read them. It refuses a line with `observation`. |
|
|
51
|
+
|
|
52
|
+
`agent-custody door labels` writes all of these fields from the receipts of your door, so one file is input for the two tools. Three values cannot come from a receipt, and the command does not invent them:
|
|
53
|
+
|
|
54
|
+
- **`genuine` is always `null`.** A receipt says that an agent is genuine only through the check of the door, and that check is the thing that the `verified` question scores. So the `verified` question never counts a line of this file. Only you can supply `genuine`, in your own labels file.
|
|
55
|
+
- **A verified agent is good for the flags only.** Its label comes from `class`. Its `validFor` holds the nine flags, so the `agent` question does not count it.
|
|
56
|
+
- **An arrival with no passed challenge and no verified agent has no label.** The command leaves it out. It also leaves out a verified agent that passed the challenge, because that arrival has the two labels.
|
|
57
|
+
|
|
58
|
+
### Intervals
|
|
59
|
+
|
|
60
|
+
Each interval on this page is a 95% Wilson score interval. It gives an upper bound when the tool saw no error, and a small sample gives a wide interval. Read a rate together with its interval.
|
|
61
|
+
|
|
62
|
+
The two tools print a bound differently. `door error-rates` prints each bound to the nearest tenth of a percent. `door measure` rounds each bound outward, the low bound down and the high bound up, so a printed interval is never narrower than the computed interval.
|
|
63
|
+
|
|
64
|
+
### No pooled rate
|
|
65
|
+
|
|
66
|
+
Neither tool adds groups together. A pooled rate depends on how many arrivals of each kind the sample holds, and the mix of a labelled set is not the mix of the traffic of a site. So this page has no single accuracy figure. The rates do not say how common a kind of arrival is.
|
|
67
|
+
|
|
68
|
+
### Which command when
|
|
69
|
+
|
|
70
|
+
| You have | You want | Command |
|
|
71
|
+
| --- | --- | --- |
|
|
72
|
+
| nothing | the published rates of the credential signals, made again | `agent-custody door error-rates --test-set` |
|
|
73
|
+
| receipts, and your own knowledge of what each arrival was | the error rates of `class` on your traffic | `agent-custody door error-rates --receipts … --labels …` |
|
|
74
|
+
| a labelled set: a recording or a public dataset | the rates of each flag | `agent-custody door measure <labelled.jsonl>…` |
|
|
75
|
+
| receipts of a door with `behaviour`, and no labels | a labelled set from the passed challenges and the verified agents | `agent-custody door labels`, then `agent-custody door measure` |
|
|
76
|
+
|
|
77
|
+
### What the tools read and write
|
|
78
|
+
|
|
79
|
+
Each tool runs on your machine and uploads nothing. `door error-rates` and `door labels` read only a receipt that verifies with the keys that you give, and they report the files that they skip. An edited receipt cannot change a rate. `door error-rates` and `door measure` print counts, rates, and intervals. The output of `door labels` holds labels and flags; [measure on your own door](#measure-on-your-own-door) says what it holds and what it does not.
|
|
80
|
+
|
|
81
|
+
## Credential signals
|
|
82
|
+
|
|
83
|
+
`class` answers two narrower questions, one kind of arrival at a time:
|
|
84
|
+
|
|
85
|
+
- **Does `class` tell a program from a person?** A program should not be `unknown`, and a person should be.
|
|
86
|
+
- **Is `verified` given to the genuine agent, and only to it?** A genuine agent is the agent it names, under a permission this door accepts for this route.
|
|
87
|
+
|
|
88
|
+
### The rates
|
|
89
|
+
|
|
90
|
+
Measured with `agent-custody door error-rates --test-set` (200 arrivals of each kind), which anyone can run to get the same counts. An error rate is the share of the arrivals of one kind that get the wrong answer to the question. Lower is better. The intervals are 95% Wilson score intervals: with 0 errors in 200, the rate could still be as high as 1.9%.
|
|
91
|
+
|
|
92
|
+
What the rates show: in this test set, no arrival that was not genuine was `verified`, and every genuine agent was. A program that presents nothing is `unknown` every time, like a person. That is not a defect that a better threshold would fix. `class` reads credentials, and a program that sends none gives `class` nothing to read. The [behaviour and fingerprint flags](#behaviour-and-fingerprint-flags) are the door's signals for such an arrival.
|
|
93
|
+
|
|
94
|
+
<!-- error-rates:begin -->
|
|
95
|
+
**Does `class` tell a program from a person?** An error is a program whose class is `unknown`, or a person whose class is not.
|
|
96
|
+
|
|
97
|
+
| kind | labels | arrivals | wrong | error rate (lower is better) | 95% interval |
|
|
98
|
+
| --- | --- | ---: | ---: | ---: | --- |
|
|
99
|
+
| `browser` | test-set | 200 | 0 | 0.0% | 0.0% to 1.9% |
|
|
100
|
+
| `script` | test-set | 200 | 200 | 100.0% | 98.1% to 100.0% |
|
|
101
|
+
| `script-as-browser` | test-set | 200 | 200 | 100.0% | 98.1% to 100.0% |
|
|
102
|
+
| `granted-agent` | test-set | 200 | 0 | 0.0% | 0.0% to 1.9% |
|
|
103
|
+
| `signed-agent` | test-set | 200 | 0 | 0.0% | 0.0% to 1.9% |
|
|
104
|
+
| `declared-name` | test-set | 200 | 0 | 0.0% | 0.0% to 1.9% |
|
|
105
|
+
| `forged-signature` | test-set | 200 | 0 | 0.0% | 0.0% to 1.9% |
|
|
106
|
+
| `replayed-signature` | test-set | 200 | 0 | 0.0% | 0.0% to 1.9% |
|
|
107
|
+
| `untrusted-grant` | test-set | 200 | 0 | 0.0% | 0.0% to 1.9% |
|
|
108
|
+
| `expired-grant` | test-set | 200 | 0 | 0.0% | 0.0% to 1.9% |
|
|
109
|
+
| `out-of-scope-grant` | test-set | 200 | 0 | 0.0% | 0.0% to 1.9% |
|
|
110
|
+
| `grant-under-other-signature` | test-set | 200 | 0 | 0.0% | 0.0% to 1.9% |
|
|
111
|
+
|
|
112
|
+
**Is `verified` given to the genuine agent, and only to it?** An error is a genuine agent that is not `verified`, or an arrival that is not genuine and is.
|
|
113
|
+
|
|
114
|
+
| kind | labels | arrivals | wrong | error rate (lower is better) | 95% interval |
|
|
115
|
+
| --- | --- | ---: | ---: | ---: | --- |
|
|
116
|
+
| `granted-agent` | test-set | 200 | 0 | 0.0% | 0.0% to 1.9% |
|
|
117
|
+
| `signed-agent` | test-set | 200 | 0 | 0.0% | 0.0% to 1.9% |
|
|
118
|
+
| `declared-name` | test-set | 200 | 0 | 0.0% | 0.0% to 1.9% |
|
|
119
|
+
| `forged-signature` | test-set | 200 | 0 | 0.0% | 0.0% to 1.9% |
|
|
120
|
+
| `replayed-signature` | test-set | 200 | 0 | 0.0% | 0.0% to 1.9% |
|
|
121
|
+
| `untrusted-grant` | test-set | 200 | 0 | 0.0% | 0.0% to 1.9% |
|
|
122
|
+
| `expired-grant` | test-set | 200 | 0 | 0.0% | 0.0% to 1.9% |
|
|
123
|
+
| `out-of-scope-grant` | test-set | 200 | 0 | 0.0% | 0.0% to 1.9% |
|
|
124
|
+
| `grant-under-other-signature` | test-set | 200 | 0 | 0.0% | 0.0% to 1.9% |
|
|
125
|
+
<!-- error-rates:end -->
|
|
126
|
+
|
|
127
|
+
### How the credential signals are measured
|
|
128
|
+
|
|
129
|
+
#### The test set
|
|
130
|
+
|
|
131
|
+
Each arrival is built to be one known kind, so its label is true by construction. The real door core decides it (`src/door-test-set.ts`), with a Web Bot Auth directory and an origin standing in, in memory. The door writes a receipt for each, and only receipts that verify under the door's key are scored. `scripts/door-error-rates-page.ts` writes the two tables of this part, and `test/door-error-rates.test.ts` builds the set again and fails if they differ from what the door now does. The door of the test set has no `behaviour` in its config, so its arrival facts carry no flag.
|
|
132
|
+
|
|
133
|
+
<!-- error-rates-kinds:begin -->
|
|
134
|
+
| kind | what arrives | a program | genuine |
|
|
135
|
+
| --- | --- | --- | --- |
|
|
136
|
+
| `browser` | a person's browser: a current Chrome user agent and an HTML accept header, nothing else | no | names no agent |
|
|
137
|
+
| `script` | a program that presents nothing: a curl user agent | yes | names no agent |
|
|
138
|
+
| `script-as-browser` | a program that sends the browser's headers, byte for byte | yes | names no agent |
|
|
139
|
+
| `granted-agent` | an agent with a grant from a trusted principal, in its window, for this route | yes | yes |
|
|
140
|
+
| `signed-agent` | an agent with a Web Bot Auth signature its listed directory's key verifies, with a fresh nonce | yes | yes |
|
|
141
|
+
| `declared-name` | a program that names an agent in `x-agent-custody-agent` and presents nothing else | yes | no |
|
|
142
|
+
| `forged-signature` | a Web Bot Auth signature in the agent's name and keyid, made with another key | yes | no |
|
|
143
|
+
| `replayed-signature` | the agent's own valid signature, sent a second time by someone who saw it | yes | no |
|
|
144
|
+
| `untrusted-grant` | a well-formed grant signed by a principal key the door does not trust | yes | no |
|
|
145
|
+
| `expired-grant` | a trusted principal's grant whose window ended a minute ago | yes | no |
|
|
146
|
+
| `out-of-scope-grant` | a trusted principal's grant for another route | yes | no |
|
|
147
|
+
| `grant-under-other-signature` | a valid grant for one agent, sent under another agent's verified signature | yes | no |
|
|
148
|
+
<!-- error-rates-kinds:end -->
|
|
149
|
+
|
|
150
|
+
#### How the rates are computed
|
|
151
|
+
|
|
152
|
+
- **One kind, one label source, one row.** A rate is never pooled across kinds. A pooled rate depends on how many of each kind the sample holds, and the mix of a test set is not the mix of any site's traffic. So there is no single accuracy figure, on purpose.
|
|
153
|
+
- **Each question is scored only where it applies.** The `verified` question needs to know whether the arrival is genuine, so it skips arrivals that named no agent.
|
|
154
|
+
- **One arrival is one unit.** Each arrival of the test set comes from its own address and is decided on its own, so there is no session to count.
|
|
155
|
+
- **95% Wilson score intervals**, as in [the shared method](#intervals). Each bound is printed to the nearest 0.1%.
|
|
156
|
+
- **Receipts that do not verify are skipped and listed.** A label whose receipt was not read, or did not verify, is reported and not scored, so an edited receipt cannot move a rate.
|
|
157
|
+
|
|
158
|
+
#### What this measurement does not cover
|
|
159
|
+
|
|
160
|
+
- **How common each kind is.** The rates are conditional on the kind. They do not say what share of a site's traffic is scripts.
|
|
161
|
+
- **The door's other signals.** A challenge's outcome carries the provider's error rate, and a partner verdict carries the engine's. The rate counters are counts, not judgements. None of them changes `class`. The behaviour and fingerprint flags do not change `class` either, and [their own part of this page](#behaviour-and-fingerprint-flags) measures them.
|
|
162
|
+
- **Faults outside the arrival.** A signature agent's directory that does not answer gives `unavailable`, and a signer's clock off by more than `clockSkewSeconds` gives `invalid`. The test set has neither.
|
|
163
|
+
- **Real browsers and real agents.** The arrivals are built, not recorded. That is why the labels can be trusted, and also why your own traffic is the better test. The next section says how to score it.
|
|
164
|
+
|
|
165
|
+
### Measure your own traffic
|
|
166
|
+
|
|
167
|
+
The same command scores a site's own door receipts against a labels file. It reads the receipts directory, verifies each receipt, and reports the same table:
|
|
168
|
+
|
|
169
|
+
```sh
|
|
170
|
+
agent-custody door error-rates --receipts ./receipts --labels labels.jsonl \
|
|
171
|
+
--issuer-key keys/door.pub --principal-key keys/principal.pub [--log log.jsonl] [--json]
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
A labels file has one JSON object per line, one line per receipt. [The label vocabulary](#one-label-vocabulary) compares it with the labelled set of `door measure`.
|
|
175
|
+
|
|
176
|
+
```json
|
|
177
|
+
{"receiptId":"8a1f…","kind":"crawler-we-run","automated":true,"genuine":true,"source":"operator"}
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
| field | meaning |
|
|
181
|
+
| --- | --- |
|
|
182
|
+
| `receiptId` | the receipt the label is for; a receipt is labelled once |
|
|
183
|
+
| `kind` | what the arrival was, in your own words: lower-case letters, digits, and hyphens, at most 64. Rates are reported per kind |
|
|
184
|
+
| `automated` | `true` for a program, `false` for a person at a browser |
|
|
185
|
+
| `genuine` | `true` when it is the agent it names, under a permission your door accepts for that route; `false` when it names an agent and is not; `null` when it names none, or when the label does not say |
|
|
186
|
+
| `source` | `operator` for your own knowledge, `test-set` for arrivals you built, `challenge` for labels derived from passed challenges, `door` for a label that `door labels` derived from the door's own check |
|
|
187
|
+
| `validFor` | Optional. The questions (`agent`, `verified`) and the flags that the label is good for. A question that is not in the list does not score the label. Without the field, the label is good for both questions |
|
|
188
|
+
|
|
189
|
+
The command also accepts the fields that `door labels` writes for `door measure` (`set`, `session`, `label`, `labelSource`, `flags`) and does not read them. It refuses a line where `label` and `automated` disagree, and a line with any other field.
|
|
190
|
+
|
|
191
|
+
Rules that keep the numbers honest:
|
|
192
|
+
|
|
193
|
+
- **Label from what you know, not from what the door said.** A label copied from `class` scores the door against itself.
|
|
194
|
+
- **`--challenge-labels`** adds a label for each unlabelled receipt whose challenge passed: a person, kind `challenge-passed`, source `challenge`. It carries the provider's own error rate, and its rows stay apart from the others. The output of `door labels --receipt-ids` has the same labels, without the verified agents that passed the challenge.
|
|
195
|
+
- **A label with the source `door` scores no question.** `door labels` gives it to a verified agent, and its `validFor` holds the flags only.
|
|
196
|
+
- **The receipt's arrival fact must be in clear.** The door's default capture keeps facts in clear. A route whose `capture` rule withholds facts cannot be scored, and its receipts are skipped with the reason.
|
|
197
|
+
- **`--log` recomputes the log root for each receipt.** It is the stronger check, and it is slow on a large directory, because it reads the log once per receipt. Without it, each receipt's inclusion proof is still checked against the signed tree head it carries.
|
|
198
|
+
- **Publish the method beside the numbers.** State the kinds, how they were labelled, the counts, and the intervals, as this page does.
|
|
199
|
+
|
|
200
|
+
## Behaviour and fingerprint flags
|
|
201
|
+
|
|
202
|
+
The `behaviour` config adds nine flags to the arrival fact ([door signals](door-signals.md#the-behaviour-and-fingerprint-signals)). This part says how often each flag is wrong, as far as that is measured.
|
|
203
|
+
|
|
204
|
+
Two rates describe a flag:
|
|
205
|
+
|
|
206
|
+
- The **false-positive rate** is the share of human arrivals that the flag marks. Lower is better.
|
|
207
|
+
- The **detection rate** is the share of automated arrivals that the flag marks. Higher is better.
|
|
208
|
+
|
|
209
|
+
A flag with no labelled data on one side has no rate on that side. The tables say "not measured" and give the reason. No rate on this page is an estimate from memory or from another product.
|
|
210
|
+
|
|
211
|
+
### The rates
|
|
212
|
+
|
|
213
|
+
Measured on 2026-11-23 (UTC) with the thresholds that the door ships. The source of every number in the tables is [`labelled/results.json`](../labelled/results.json). `scripts/door-flag-rates-page.ts` writes the four tables of this part from that file, and `test/door-measure.test.ts` makes them again and fails when this page differs. The same test fails when the text of this part states a number that is not a number in a committed file of [`labelled/`](../labelled/).
|
|
214
|
+
|
|
215
|
+
Read the tables per session first. The arrivals of one session are not independent, so an interval per arrival is narrower than the data supports. Each interval is a 95% Wilson interval, and each bound is printed outward: the low bound is rounded down and the high bound is rounded up. A rate of `<0.1%` is above zero and rounds to 0.0%.
|
|
216
|
+
|
|
217
|
+
A set is in a table only for the flags that its label is good for. Two cases are left out because the answer is fixed before the measure:
|
|
218
|
+
|
|
219
|
+
- A mismatch flag compares the request with the browser that the User-Agent states. A client with its own User-Agent (`curl/8.7.1`, `HeadlessChrome`) states no browser, so the flag is false for it by construction. The sets `capture-tools` and `capture-headless-chrome` do not count for `fingerprint.headers.mismatch`, `fingerprint.headers.hintsMismatch`, and `fingerprint.tls.mismatch`. A zero for them would not be a measured miss. The capture also leaves these two sets out for `fingerprint.headers.fetchInvalid`, which does not read the User-Agent; the sets with the User-Agent of Chrome hold the same clients.
|
|
220
|
+
- `fingerprint.headers.hintsMismatch` counts an arrival only when it sent `sec-ch-ua`, and `fingerprint.headers.fetchInvalid` only when it sent a `sec-fetch-*` header. Without the header, the flag is false by construction.
|
|
221
|
+
- `fingerprint.tls.knownTool` has no measured rate on either side. The table of known tools was filled from the capture. Each tool of the capture is in the table and no browser of the capture is, by construction.
|
|
222
|
+
|
|
223
|
+
<!-- flag-rates:begin -->
|
|
224
|
+
#### False-positive rate per session (lower is better)
|
|
225
|
+
|
|
226
|
+
| flag | set | sessions | flagged | false-positive rate (lower is better) | 95% interval | what `human` means in this set |
|
|
227
|
+
| --- | --- | --- | --- | --- | --- | --- |
|
|
228
|
+
| `fingerprint.headers.mismatch` | capture-real-browsers | 3 | 0 | 0.0% | 0.0% to 56.2% | a real browser, which a script started; the label names the client software and not who used it |
|
|
229
|
+
| `fingerprint.headers.hintsMismatch` | capture-real-browsers | 2 | 0 | 0.0% | 0.0% to 65.8% | a real browser, which a script started; the label names the client software and not who used it |
|
|
230
|
+
| `fingerprint.headers.fetchInvalid` | capture-real-browsers | 3 | 0 | 0.0% | 0.0% to 56.2% | a real browser, which a script started; the label names the client software and not who used it |
|
|
231
|
+
| `fingerprint.tls.mismatch` | capture-real-browsers | 2 | 0 | 0.0% | 0.0% to 65.8% | a real browser, which a script started; the label names the client software and not who used it |
|
|
232
|
+
| `fingerprint.tls.knownTool` | not measured | | | | | The known-tool table was filled from the capture: no browser of the capture is in the table, by construction, so a rate of zero on the same capture says nothing. No other set has a TLS fingerprint of a real browser |
|
|
233
|
+
| `behaviour.timing.regular` | lagopoulos-2018 | 50724 | 9 | <0.1% | 0.0% to 0.1% | ROBOT=0: the dataset's authors did not identify the session as a robot. A robot that hides is on this side, so the rate is biased upward |
|
|
234
|
+
| `behaviour.navigation.directWrite` | lagopoulos-2018 | 50724 | 8 | <0.1% | 0.0% to 0.1% | ROBOT=0: the dataset's authors did not identify the session as a robot. A robot that hides is on this side, so the rate is biased upward |
|
|
235
|
+
| `behaviour.form.fast` | keyrecs-fixed-text | 198 | 2 | 1.0% | 0.2% to 3.7% | a recruited participant who types the same fixed characters; one arrival is one repetition, and one session is one participant in one sitting |
|
|
236
|
+
| `behaviour.form.noInput` | not measured | | | | | No set has a person who sends a form through the form protector script. KeyRecs records key presses only, with no pointer press and no submit |
|
|
237
|
+
|
|
238
|
+
#### Detection rate per session (higher is better)
|
|
239
|
+
|
|
240
|
+
| flag | set | sessions | flagged | detection rate (higher is better) | 95% interval | what `automated` means in this set |
|
|
241
|
+
| --- | --- | --- | --- | --- | --- | --- |
|
|
242
|
+
| `fingerprint.headers.mismatch` | capture-headless-chrome-browser-ua | 5 | 0 | 0.0% | 0.0% to 43.5% | headless Chrome that sends the User-Agent of Chrome, driven by the capture script |
|
|
243
|
+
| `fingerprint.headers.mismatch` | capture-tools-browser-ua | 5 | 5 | 100.0% | 56.5% to 100.0% | an HTTP tool that sends the User-Agent of Chrome, run by the capture script |
|
|
244
|
+
| `fingerprint.headers.hintsMismatch` | capture-headless-chrome-browser-ua | 5 | 0 | 0.0% | 0.0% to 43.5% | headless Chrome that sends the User-Agent of Chrome, driven by the capture script |
|
|
245
|
+
| `fingerprint.headers.fetchInvalid` | capture-headless-chrome-browser-ua | 5 | 0 | 0.0% | 0.0% to 43.5% | headless Chrome that sends the User-Agent of Chrome, driven by the capture script |
|
|
246
|
+
| `fingerprint.headers.fetchInvalid` | capture-tools-browser-ua | 1 | 0 | 0.0% | 0.0% to 79.4% | an HTTP tool that sends the User-Agent of Chrome, run by the capture script |
|
|
247
|
+
| `fingerprint.tls.mismatch` | capture-headless-chrome-browser-ua | 5 | 0 | 0.0% | 0.0% to 43.5% | headless Chrome that sends the User-Agent of Chrome, driven by the capture script |
|
|
248
|
+
| `fingerprint.tls.mismatch` | capture-tools-browser-ua | 5 | 1 | 20.0% | 3.6% to 62.5% | an HTTP tool that sends the User-Agent of Chrome, run by the capture script |
|
|
249
|
+
| `fingerprint.tls.knownTool` | not measured | | | | | The known-tool table was filled from the capture: every tool of the capture is in the table, by construction, so a detection rate on the same capture says nothing. No other set has a TLS fingerprint of a tool |
|
|
250
|
+
| `behaviour.timing.regular` | lagopoulos-2018 | 9720 | 72 | 0.7% | 0.5% to 1.0% | ROBOT=1: the dataset's authors identified the session as a robot, in most cases by its User-Agent. A robot that says what it is |
|
|
251
|
+
| `behaviour.navigation.directWrite` | capture-headless-chrome | 5 | 0 | 0.0% | 0.0% to 43.5% | headless Chrome with its own User-Agent, driven by the capture script |
|
|
252
|
+
| `behaviour.navigation.directWrite` | capture-headless-chrome-browser-ua | 5 | 0 | 0.0% | 0.0% to 43.5% | headless Chrome that sends the User-Agent of Chrome, driven by the capture script |
|
|
253
|
+
| `behaviour.navigation.directWrite` | capture-tools | 10 | 10 | 100.0% | 72.2% to 100.0% | an HTTP tool with its own User-Agent, run by the capture script |
|
|
254
|
+
| `behaviour.navigation.directWrite` | capture-tools-browser-ua | 5 | 5 | 100.0% | 56.5% to 100.0% | an HTTP tool that sends the User-Agent of Chrome, run by the capture script |
|
|
255
|
+
| `behaviour.navigation.directWrite` | lagopoulos-2018 | 9720 | 13 | 0.1% | 0.0% to 0.3% | ROBOT=1: the dataset's authors identified the session as a robot, in most cases by its User-Agent. A robot that says what it is |
|
|
256
|
+
| `behaviour.form.fast` | capture-headless-chrome | 4 | 1 | 25.0% | 4.5% to 70.0% | headless Chrome with its own User-Agent, driven by the capture script |
|
|
257
|
+
| `behaviour.form.fast` | capture-headless-chrome-browser-ua | 4 | 1 | 25.0% | 4.5% to 70.0% | headless Chrome that sends the User-Agent of Chrome, driven by the capture script |
|
|
258
|
+
| `behaviour.form.noInput` | capture-headless-chrome | 4 | 1 | 25.0% | 4.5% to 70.0% | headless Chrome with its own User-Agent, driven by the capture script |
|
|
259
|
+
| `behaviour.form.noInput` | capture-headless-chrome-browser-ua | 4 | 1 | 25.0% | 4.5% to 70.0% | headless Chrome that sends the User-Agent of Chrome, driven by the capture script |
|
|
260
|
+
|
|
261
|
+
#### False-positive rate per arrival (lower is better)
|
|
262
|
+
|
|
263
|
+
| flag | set | arrivals | flagged | false-positive rate (lower is better) | 95% interval | what `human` means in this set |
|
|
264
|
+
| --- | --- | --- | --- | --- | --- | --- |
|
|
265
|
+
| `fingerprint.headers.mismatch` | capture-real-browsers | 27 | 0 | 0.0% | 0.0% to 12.5% | a real browser, which a script started; the label names the client software and not who used it |
|
|
266
|
+
| `fingerprint.headers.hintsMismatch` | capture-real-browsers | 18 | 0 | 0.0% | 0.0% to 17.6% | a real browser, which a script started; the label names the client software and not who used it |
|
|
267
|
+
| `fingerprint.headers.fetchInvalid` | capture-real-browsers | 27 | 0 | 0.0% | 0.0% to 12.5% | a real browser, which a script started; the label names the client software and not who used it |
|
|
268
|
+
| `fingerprint.tls.mismatch` | capture-real-browsers | 10 | 0 | 0.0% | 0.0% to 27.8% | a real browser, which a script started; the label names the client software and not who used it |
|
|
269
|
+
| `fingerprint.tls.knownTool` | not measured | | | | | The known-tool table was filled from the capture: no browser of the capture is in the table, by construction, so a rate of zero on the same capture says nothing. No other set has a TLS fingerprint of a real browser |
|
|
270
|
+
| `behaviour.timing.regular` | lagopoulos-2018 | 3640733 | 25 | <0.1% | 0.0% to 0.1% | ROBOT=0: the dataset's authors did not identify the session as a robot. A robot that hides is on this side, so the rate is biased upward |
|
|
271
|
+
| `behaviour.navigation.directWrite` | lagopoulos-2018 | 3640733 | 12 | <0.1% | 0.0% to 0.1% | ROBOT=0: the dataset's authors did not identify the session as a robot. A robot that hides is on this side, so the rate is biased upward |
|
|
272
|
+
| `behaviour.form.fast` | keyrecs-fixed-text | 19772 | 96 | 0.5% | 0.3% to 0.6% | a recruited participant who types the same fixed characters; one arrival is one repetition, and one session is one participant in one sitting |
|
|
273
|
+
| `behaviour.form.noInput` | not measured | | | | | No set has a person who sends a form through the form protector script. KeyRecs records key presses only, with no pointer press and no submit |
|
|
274
|
+
|
|
275
|
+
#### Detection rate per arrival (higher is better)
|
|
276
|
+
|
|
277
|
+
| flag | set | arrivals | flagged | detection rate (higher is better) | 95% interval | what `automated` means in this set |
|
|
278
|
+
| --- | --- | --- | --- | --- | --- | --- |
|
|
279
|
+
| `fingerprint.headers.mismatch` | capture-headless-chrome-browser-ua | 45 | 0 | 0.0% | 0.0% to 7.9% | headless Chrome that sends the User-Agent of Chrome, driven by the capture script |
|
|
280
|
+
| `fingerprint.headers.mismatch` | capture-tools-browser-ua | 10 | 10 | 100.0% | 72.2% to 100.0% | an HTTP tool that sends the User-Agent of Chrome, run by the capture script |
|
|
281
|
+
| `fingerprint.headers.hintsMismatch` | capture-headless-chrome-browser-ua | 45 | 0 | 0.0% | 0.0% to 7.9% | headless Chrome that sends the User-Agent of Chrome, driven by the capture script |
|
|
282
|
+
| `fingerprint.headers.fetchInvalid` | capture-headless-chrome-browser-ua | 45 | 0 | 0.0% | 0.0% to 7.9% | headless Chrome that sends the User-Agent of Chrome, driven by the capture script |
|
|
283
|
+
| `fingerprint.headers.fetchInvalid` | capture-tools-browser-ua | 2 | 0 | 0.0% | 0.0% to 65.8% | an HTTP tool that sends the User-Agent of Chrome, run by the capture script |
|
|
284
|
+
| `fingerprint.tls.mismatch` | capture-headless-chrome-browser-ua | 45 | 0 | 0.0% | 0.0% to 7.9% | headless Chrome that sends the User-Agent of Chrome, driven by the capture script |
|
|
285
|
+
| `fingerprint.tls.mismatch` | capture-tools-browser-ua | 10 | 2 | 20.0% | 5.6% to 51.0% | an HTTP tool that sends the User-Agent of Chrome, run by the capture script |
|
|
286
|
+
| `fingerprint.tls.knownTool` | not measured | | | | | The known-tool table was filled from the capture: every tool of the capture is in the table, by construction, so a detection rate on the same capture says nothing. No other set has a TLS fingerprint of a tool |
|
|
287
|
+
| `behaviour.timing.regular` | lagopoulos-2018 | 409440 | 7778 | 1.9% | 1.8% to 2.0% | ROBOT=1: the dataset's authors identified the session as a robot, in most cases by its User-Agent. A robot that says what it is |
|
|
288
|
+
| `behaviour.navigation.directWrite` | capture-headless-chrome | 45 | 0 | 0.0% | 0.0% to 7.9% | headless Chrome with its own User-Agent, driven by the capture script |
|
|
289
|
+
| `behaviour.navigation.directWrite` | capture-headless-chrome-browser-ua | 45 | 0 | 0.0% | 0.0% to 7.9% | headless Chrome that sends the User-Agent of Chrome, driven by the capture script |
|
|
290
|
+
| `behaviour.navigation.directWrite` | capture-tools | 15 | 10 | 66.7% | 41.7% to 84.9% | an HTTP tool with its own User-Agent, run by the capture script |
|
|
291
|
+
| `behaviour.navigation.directWrite` | capture-tools-browser-ua | 10 | 5 | 50.0% | 23.6% to 76.4% | an HTTP tool that sends the User-Agent of Chrome, run by the capture script |
|
|
292
|
+
| `behaviour.navigation.directWrite` | lagopoulos-2018 | 409440 | 17 | <0.1% | 0.0% to 0.1% | ROBOT=1: the dataset's authors identified the session as a robot, in most cases by its User-Agent. A robot that says what it is |
|
|
293
|
+
| `behaviour.form.fast` | capture-headless-chrome | 4 | 1 | 25.0% | 4.5% to 70.0% | headless Chrome with its own User-Agent, driven by the capture script |
|
|
294
|
+
| `behaviour.form.fast` | capture-headless-chrome-browser-ua | 4 | 1 | 25.0% | 4.5% to 70.0% | headless Chrome that sends the User-Agent of Chrome, driven by the capture script |
|
|
295
|
+
| `behaviour.form.noInput` | capture-headless-chrome | 4 | 1 | 25.0% | 4.5% to 70.0% | headless Chrome with its own User-Agent, driven by the capture script |
|
|
296
|
+
| `behaviour.form.noInput` | capture-headless-chrome-browser-ua | 4 | 1 | 25.0% | 4.5% to 70.0% | headless Chrome that sends the User-Agent of Chrome, driven by the capture script |
|
|
297
|
+
<!-- flag-rates:end -->
|
|
298
|
+
|
|
299
|
+
#### What the rates say
|
|
300
|
+
|
|
301
|
+
- `fingerprint.headers.mismatch` marked each tool that sends the User-Agent of Chrome: 5 of 5 sessions. It did not mark headless Chrome that sends the User-Agent of Chrome, because headless Chrome sends the headers of Chrome. It marked no request of Chrome or Safari, but that is 3 sessions on one machine, so the interval is wide.
|
|
302
|
+
- `fingerprint.headers.hintsMismatch` marked no session on either side. The real browsers agree with their own client hints. Headless Chrome with the User-Agent of Chrome has the same version in both, because the capture copies the User-Agent of the Chrome that it runs. The flag is for a program that sends a User-Agent of another version or another browser, and the capture has no such program. So its detection rate here says little.
|
|
303
|
+
- `fingerprint.headers.fetchInvalid` marked no session on either side. No client of the capture writes its own `sec-fetch-*` headers, so the capture does not measure what the flag is for.
|
|
304
|
+
- `fingerprint.tls.mismatch` marked 1 of the 5 tools that send the User-Agent of Chrome: Python, which sends no ALPN. The other tools offer TLS 1.3 and ALPN, as a browser does, and the flag does not see them.
|
|
305
|
+
- `fingerprint.tls.knownTool` is not measured, for the reason above.
|
|
306
|
+
- `behaviour.timing.regular` is rare for the sessions that the public log calls human, and it is also rare for the robots in that log. Most robots that say what they are do not arrive at a steady pace, or the one-second times of the log hide that they do.
|
|
307
|
+
- `behaviour.navigation.directWrite` is true for every tool in the capture that posts a form, and false for headless Chrome, which loads the page first. In the public log almost every write has a same-origin Referer, from robots also.
|
|
308
|
+
- `behaviour.form.fast` marked 2 of 198 sessions of typing by recruited participants. Those sessions hold 96 fast repetitions: 95 from one participant in one sitting, each with 28 to 83 milliseconds from the first key press to the last, and 1 with a time below zero in the file. [`labelled/keyrecs-stats.json`](../labelled/keyrecs-stats.json) lists them. The dataset calls them human, so they count as false positives here.
|
|
309
|
+
- `behaviour.form.fast` and `behaviour.form.noInput` each marked one of the four ways in which the capture script fills the form in headless Chrome. A script that sets the field values and submits has no input. A script that sends key events with no pause is fast. A script that inserts the text and clicks the button, and a script that sends key events with a pause between them, get neither flag.
|
|
310
|
+
|
|
311
|
+
### How the flags are measured
|
|
312
|
+
|
|
313
|
+
#### The labelled-set format
|
|
314
|
+
|
|
315
|
+
A labelled set is a JSON Lines file. Each line is one arrival:
|
|
316
|
+
|
|
317
|
+
```json
|
|
318
|
+
{"set":"capture-tools","session":"curl-post","label":"automated","labelSource":"scripted-client","validFor":["fingerprint.headers.mismatch"],"observation":{"at":1250,"method":"POST","path":"/submit","headers":{"names":["host","user-agent","accept"],"ordered":true},"secure":true,"userAgent":"curl/8.7.1","accept":"*/*","referer":"absent","secFetch":{},"tls":{"ja4":"t13d4907h2_0d8feac7bc37_7395dae3b2f3"}}}
|
|
319
|
+
```
|
|
320
|
+
|
|
321
|
+
| field | meaning |
|
|
322
|
+
| --- | --- |
|
|
323
|
+
| `set` | The name of the labelled set. One file can hold more than one set. |
|
|
324
|
+
| `session` | One client over one period. The measure gives each session its own history, as the door gives each source its own. |
|
|
325
|
+
| `label` | `human` or `automated`. |
|
|
326
|
+
| `labelSource` | How the label was assigned. |
|
|
327
|
+
| `validFor` | Optional. The flags that this label is good for. The other flags do not count the record. A label that comes from the User-Agent is not good for a flag that reads the User-Agent. The list can also hold the questions of `door error-rates` (`agent`, `verified`), which `door measure` does not read. |
|
|
328
|
+
| `observation` | What was recorded of the arrival, in the shape that the door's own code reads (`Observation` in `src/door-signals.ts`): the time `at` in milliseconds, the method, the path, the header names in the order received, `secure`, the `userAgent`, `accept`, the relation of the `referer` to the site, the `secFetch` values, the `tls` data, and the `form` report. It holds no cookie, no query, no body, and no address. |
|
|
329
|
+
| `flags` | In place of `observation`, for a record that a door exported: the flags that the door computed for the arrival. A flag that did not apply is absent. |
|
|
330
|
+
|
|
331
|
+
The records of one session are in time order. The tool refuses a file where a session goes back in time, or where a session has two labels. A record can also hold the fields of a `door error-rates` label (`receiptId`, `kind`, `automated`, `genuine`, `source`), as the output of `door labels` does. `door measure` does not read them, and it refuses a record where `automated` and `label` disagree ([the label vocabulary](#one-label-vocabulary)).
|
|
332
|
+
|
|
333
|
+
#### The three label sources
|
|
334
|
+
|
|
335
|
+
1. **Your own door, with your consent.** `agent-custody door labels` reads the receipts of your door. An arrival whose `challenge.outcome` is `passed` is `human` (`challenge-passed`). An arrival whose `class` is `verified` is `automated` (`verified-agent`). Every other arrival has no label and is left out, and so is a verified agent that passed the challenge. No own-door set is in the rates above: the door has no installation that agreed to share one yet.
|
|
336
|
+
2. **Public datasets.** An adapter script turns a dataset into the format. The label is what the dataset's authors recorded, and the page says what that label means.
|
|
337
|
+
3. **A capture.** `scripts/door-capture.ts` runs real clients against a local server and records what they send. The label is the client software that the script started.
|
|
338
|
+
|
|
339
|
+
#### How a rate and its interval are computed
|
|
340
|
+
|
|
341
|
+
`agent-custody door measure` replays each session in time order through the same functions that the door runs (`createHistoryTracker` and `signalsOf`), with the recorded times. For each flag, each set, and each side it counts:
|
|
342
|
+
|
|
343
|
+
- **per arrival:** the arrivals that the flag applies to, and those that it marks;
|
|
344
|
+
- **per session:** the sessions with one or more arrivals that the flag applies to, and those where it marks one or more.
|
|
345
|
+
|
|
346
|
+
A flag applies to an arrival when the door computes it from data that the record has:
|
|
347
|
+
|
|
348
|
+
- `fingerprint.headers.mismatch` applies when the record has the header names.
|
|
349
|
+
- `fingerprint.tls.mismatch` and `fingerprint.tls.knownTool` apply when the record has a well-formed JA4.
|
|
350
|
+
- `behaviour.form.fast` and `behaviour.form.noInput` apply when the record has a well-formed form report.
|
|
351
|
+
- `behaviour.timing.regular` and `behaviour.navigation.directWrite` apply to every arrival. The timing flag needs 5 gaps, so it is false for the first 5 arrivals of a session. The direct-write flag is false for every GET. These arrivals are in the count, so the rate is the share of all arrivals or sessions.
|
|
352
|
+
|
|
353
|
+
The rate is `flagged / n`. The file keeps the two integers and the rate as an integer per 10,000. The interval is the 95% Wilson score interval, rounded outward to an integer per 10,000: the low bound down, the high bound up. The page prints percentages with one decimal, and it rounds each bound outward again at that decimal, so a printed interval is never narrower than the computed one. A small set gives a wide interval, and the tables show it.
|
|
354
|
+
|
|
355
|
+
The tool refuses a record that the door could not have made: a method that is not in upper case, or a field of the observation with the wrong type.
|
|
356
|
+
|
|
357
|
+
#### The threshold rule
|
|
358
|
+
|
|
359
|
+
The thresholds in `src/door-signals.ts` were set before any measure. The rates above are for those thresholds, unchanged. `results.json` records every exported constant of that file that a flag reads, and a test fails when the code and the file differ. The rules that read a User-Agent are code and not constants: which product names state a browser, a tool, or a crawler, and which forms are Chromium inside an application. `results.json` does not record them. A change to one of them needs a new measure, and the date of this page then changes.
|
|
360
|
+
|
|
361
|
+
When a measure shows that a threshold is wrong, the change uses a split. Sessions whose name has a hash with an even first byte tune the threshold. Sessions with an odd first byte give the published rate. The page then states the split. The Lagopoulos adapter has `--half tune` and `--half report` for this. No threshold was tuned for these rates, so the tables use all sessions.
|
|
362
|
+
|
|
363
|
+
Some rules changed after the thresholds were set. None of the changes came from a rate on a labelled set.
|
|
364
|
+
|
|
365
|
+
From evidence that is not a rate:
|
|
366
|
+
|
|
367
|
+
- The known-tool table `KNOWN_TOOL_JA4` was empty. It now holds the JA4 values that the tools of the capture sent. For that reason the flag has no measured rate.
|
|
368
|
+
- `fingerprint.headers.mismatch` no longer expects `sec-ch-ua` from Chromium inside an application that names itself before `Chrome/` in its User-Agent. See the rule check below.
|
|
369
|
+
|
|
370
|
+
From a code review, with no labelled data:
|
|
371
|
+
|
|
372
|
+
- `fingerprint.headers.mismatch` no longer expects `sec-ch-ua` from a User-Agent with `Version/` before `Chrome/` (a WebView browser), or with `like Chrome/`. Not every such browser sends the header. A false flag on a real browser is the costly error, so a doubtful form is not flagged.
|
|
373
|
+
- `fingerprint.headers.mismatch` expects `origin` on a write from a current browser. Each write of a real browser in the capture has it, and no write of a tool has it.
|
|
374
|
+
- `fingerprint.headers.hintsMismatch` is new. The review proposed a rule on the brand `HeadlessChrome` in `sec-ch-ua`. The capture then recorded the header: headless Chrome sends the brands of Chrome, with and without another User-Agent. So the rule reads no brand, and it reads the version of the `Chromium` brand only.
|
|
375
|
+
- `fingerprint.headers.fetchInvalid` is new. Its rules are from the Fetch Metadata specification.
|
|
376
|
+
- `behaviour.navigation.directWrite` is false when the `Origin` names the host.
|
|
377
|
+
- `behaviour.navigation.directWrite` is false when the request has `Sec-Fetch-Site: same-origin`. A browser sends this header to an https site, also when the site's `Referrer-Policy` removes the Referer.
|
|
378
|
+
- The Referer is on the same origin when the host is the same with or without its default port.
|
|
379
|
+
|
|
380
|
+
These rules were in the code before the capture was recorded again, and the tables are the first measure of them.
|
|
381
|
+
|
|
382
|
+
The Referer, the `Origin`, and `Sec-Fetch-Site` are the client's word. A program can send them, and the direct-write flag is then false for it. The capture has no tool that does this, so its detection rates are for tools that send none of the three.
|
|
383
|
+
|
|
384
|
+
### The labelled sets
|
|
385
|
+
|
|
386
|
+
[`labelled/manifest.json`](../labelled/manifest.json) lists each set: its source, licence, file hashes, counts, how the labels were assigned, and the command that makes it.
|
|
387
|
+
|
|
388
|
+
#### The capture
|
|
389
|
+
|
|
390
|
+
`labelled/capture.jsonl` is committed: 143 arrivals in 29 sessions, recorded on one machine on 2026-11-23. `labelled/capture.meta.json` has the versions of the browsers, the tools, and the system. The file holds five sets:
|
|
391
|
+
|
|
392
|
+
- `capture-real-browsers`: Chrome and Safari, each started as a person starts it, with a temporary profile for Chrome. The label is `human` with the source `real-browser`. The label names the client software, and not who used it. **A real browser that a program drives sends the same headers and the same ClientHello, so these flags cannot tell it from a person.** The label is good for the three header flags and the TLS mismatch flag only.
|
|
393
|
+
- `capture-tools`: curl, Python urllib, Go net/http, Node fetch, and Bun fetch, each with its own User-Agent. The label is good for the direct-write flag and the form flags.
|
|
394
|
+
- `capture-tools-browser-ua`: the same tools with the User-Agent that Chrome sent.
|
|
395
|
+
- `capture-headless-chrome`: headless Chrome, driven through its DevTools protocol, with its own User-Agent. Four sessions fill the form through the door's own form protector script, each in another way. The script's challenge widget is replaced by a local stub, so the capture asks no outside service. The label is good for the direct-write flag and the form flags.
|
|
396
|
+
- `capture-headless-chrome-browser-ua`: the same sessions with the User-Agent that Chrome sent.
|
|
397
|
+
|
|
398
|
+
The TLS listener of the capture has a throwaway certificate. It reads the ClientHello before the handshake and computes the JA4 (`scripts/ja4.ts`). `labelled/capture.hellos.json` keeps one ClientHello for each JA4, so that you can compute it again. Each tool gets the certificate as its CA for one process, and Chrome gets its key hash for one temporary profile. No trust store changes.
|
|
399
|
+
|
|
400
|
+
Three things about the capture are assumptions or joins, and you should know them:
|
|
401
|
+
|
|
402
|
+
- An observation has `secure: true`, as a door behind a TLS proxy records it. The plain listener is http on `localhost`. A browser treats that as a secure origin. Chrome sent the same header names to the plain listener and to the TLS listener for each of the six kinds of request that the page makes (`chromeHeaderNamesTlsAgainstPlain` in `capture.meta.json`). For Safari this is not checked: Safari stops at the certificate warning.
|
|
403
|
+
- The Safari TLS record joins two connections of the same browser: the ClientHello of its https attempt, and the User-Agent of its plain page load. It counts for `fingerprint.tls.mismatch` only.
|
|
404
|
+
- The pace of a capture session is the pace of the script. No capture record counts for `behaviour.timing.regular`.
|
|
405
|
+
|
|
406
|
+
#### Lagopoulos and Tsoumakas, web robot detection (public)
|
|
407
|
+
|
|
408
|
+
The access log of a library search site for March 2018, with a `ROBOT` label for each session ([the Zenodo record](https://zenodo.org/records/3477932), CC-BY-4.0). The adapter writes the counts below to [`labelled/lagopoulos-join.json`](../labelled/lagopoulos-join.json). The raw log has 4,091,155 records. 30,763 of them are timeouts with no request, and the other 4,060,392 are requests.
|
|
409
|
+
|
|
410
|
+
The ids of the feature file are not the ids of the raw records: 0 of 67,352 match. So the adapter builds the sessions again, as the dataset describes them, and gets 67,561 sessions. Every one of the 67,352 feature rows has a rebuilt session with the same number of requests, duration, bytes, status counts, and method counts. A rebuilt session gets a label when the feature rows with its values agree on the label and are as many as the rebuilt sessions with those values. That labels 60,444 sessions: 50,724 `human` with 3,640,733 arrivals, and 9,720 `automated` with 409,440 arrivals. The other sessions are left out: 6,579 where the rows disagree, 468 where the counts differ, and 70 with no row.
|
|
411
|
+
|
|
412
|
+
What the label means:
|
|
413
|
+
|
|
414
|
+
- `ROBOT=1` means that the authors identified a robot, in most cases by its User-Agent. Of the 3,262 User-Agents in the labelled sessions, 12 have sessions with both labels. So `automated` here is a robot that says what it is.
|
|
415
|
+
- `ROBOT=0` means "not identified as a robot". It does not mean "a person". A robot that hides is on the human side, so the false-positive rate here is biased upward.
|
|
416
|
+
- The label comes from the User-Agent. So a record of this set holds no User-Agent and no header, and it counts for the timing flag and the direct-write flag only.
|
|
417
|
+
|
|
418
|
+
Limits of the replay:
|
|
419
|
+
|
|
420
|
+
- The times have a resolution of one second. A steady pace with short gaps can look uneven, and an uneven pace can look steady. Requests in the same second have a gap of zero.
|
|
421
|
+
- The door keys its history by address. The dataset's session is the address and the User-Agent, with the address masked.
|
|
422
|
+
- The log has no Accept header and no `Sec-Fetch-Site` header, so the replay knows no page load. `behaviour.navigation.directWrite` is then true for every write without a same-origin Referer. A door that sees the page load of the same source flags the same arrivals or fewer.
|
|
423
|
+
|
|
424
|
+
#### KeyRecs (public)
|
|
425
|
+
|
|
426
|
+
Keystroke timings of 99 recruited participants who type the same 10 characters, in 2 sittings each ([the Zenodo record](https://zenodo.org/records/7886743), CC-BY-4.0): 19,772 repetitions. The adapter writes these counts to [`labelled/keyrecs-stats.json`](../labelled/keyrecs-stats.json). Each repetition becomes one form report with 10 key presses. The fill time is the time from the first key press to the last, which is shorter than the time to the submit that the door's script reports. The set counts for `behaviour.form.fast` on the human side only. It has no pointer press and no submit, so it says nothing about `behaviour.form.noInput`.
|
|
427
|
+
|
|
428
|
+
#### Considered and not used
|
|
429
|
+
|
|
430
|
+
- **Iliou et al., web bot detection dataset.** Its licence permits non-commercial use only.
|
|
431
|
+
- **Aalto University 136M keystrokes dataset.** Its licence permits non-commercial use only.
|
|
432
|
+
- **Nanglae et al., form keystroke files.** The files do not say how the data was collected or whether the people agreed, and they hold personal data.
|
|
433
|
+
|
|
434
|
+
### Checks that are not rates
|
|
435
|
+
|
|
436
|
+
#### The header rule against a header model
|
|
437
|
+
|
|
438
|
+
Apify's header-generator (Apache-2.0) has a model of the headers that browsers send. Its HTTP/2 side has 339 User-Agents of 155 browser versions. It is not labelled traffic: it does not say who sent a request. `scripts/door-rule-check.ts` reads it as a check of the rule, and [`labelled/rule-check.json`](../labelled/rule-check.json) has the result. Each number here is from that file.
|
|
439
|
+
|
|
440
|
+
- The header order lists of Chrome, Edge, Firefox, and Safari each contain `accept-language` and the three `sec-fetch-*` headers. The model has no data for these headers per version.
|
|
441
|
+
- For `sec-ch-ua` the model has data per User-Agent. The rule expects `sec-ch-ua` from 201 of the 339 User-Agents. For 189 of them, every request in the model has it.
|
|
442
|
+
- For the other 12, the model has requests without `sec-ch-ua`: a real request with that User-Agent gets the flag. For 7 of them, no request in the model has it. The file lists the 12 User-Agents. The model cannot say whether a person or a program sent them.
|
|
443
|
+
- The rule leaves `sec-ch-ua` out for 4 User-Agents of a current Chromium inside an application that names itself before `Chrome/`, such as `Claude/4.4212.0 Chrome/152.0.7977.167`. No request of these 4 in the model has `sec-ch-ua`. The rule first flagged them, and it was changed for that reason.
|
|
444
|
+
- The model has no User-Agent with `Version/` before `Chrome/` or with `like Chrome/`. The rule for those forms has no check here.
|
|
445
|
+
|
|
446
|
+
#### The JA4 implementation
|
|
447
|
+
|
|
448
|
+
`scripts/ja4.ts` follows FoxIO's JA4 TLS client specification. `test/ja4.test.ts` checks it against FoxIO's values: the example of the specification, and four Chromium rows of FoxIO's `ja4plus-mapping.csv`, each built from the cipher and extension lists. For the clients of the capture, the first two parts of the JA4 of Safari and the cipher hashes of Chrome and Go are the values in the mapping. The third part differs for the Chrome and the Safari of the capture, which send other extensions than the versions in the mapping.
|
|
449
|
+
|
|
450
|
+
### Limits
|
|
451
|
+
|
|
452
|
+
- **Set sizes.** Each set of the capture has 10 sessions or fewer. Its intervals are wide, and the tables show them.
|
|
453
|
+
- **One machine.** The capture is one Mac, two browsers, and one version of each tool. Other systems, other browser versions, and browsers behind a proxy that inspects TLS are not in it.
|
|
454
|
+
- **Weak labels.** `ROBOT=0` is "not identified", and `real-browser` names the software. No set has arrivals that are known to come from a person at a keyboard on a real site.
|
|
455
|
+
- **Scripted behaviour.** The capture script decides what an automated session does. The rates of the direct-write flag and the form flags on the capture say which of these scripts a flag marks. They do not say how common each kind of script is.
|
|
456
|
+
- **1-second times** in the public log limit the timing flag, as above.
|
|
457
|
+
- **The form report, the Referer, and `Sec-Fetch-Site` are claims by the client.** A program can send any report and any header. The form flags catch only a client that runs the script and does not act as a person does.
|
|
458
|
+
- **Per-process memory.** The door's history is the memory of one process. Two doors do not share it, and a restart clears it. The replay gives each session one unbroken history. A door with more than one process sees a part of the arrivals of a source in each process. So it flags `behaviour.timing.regular` less often than the replay. It flags `behaviour.navigation.directWrite` more often: a write can reach a process that did not see the page load, and the flag is then true unless the request has a same-origin Referer or `Sec-Fetch-Site: same-origin`.
|
|
459
|
+
- **The known-tool table** holds the builds on one machine. Another version of a tool can have another JA4.
|
|
460
|
+
|
|
461
|
+
### Reproduce the rates
|
|
462
|
+
|
|
463
|
+
The public sets are not in the repository. Download them, check the hashes in the manifest, and run from `packages/receipts`:
|
|
464
|
+
|
|
465
|
+
```bash
|
|
466
|
+
node scripts/door-labels-lagopoulos.ts <public_v2.json> <simple_features.csv> --out lagopoulos.jsonl --stats labelled/lagopoulos-join.json
|
|
467
|
+
node scripts/door-labels-keyrecs.ts <fixed-text.csv> --stats labelled/keyrecs-stats.json > keyrecs.jsonl
|
|
468
|
+
agent-custody door measure labelled/capture.jsonl keyrecs.jsonl lagopoulos.jsonl
|
|
469
|
+
node scripts/door-flag-rates-page.ts results --date <YYYY-MM-DD> labelled/capture.jsonl keyrecs.jsonl lagopoulos.jsonl
|
|
470
|
+
node scripts/door-flag-rates-page.ts page
|
|
471
|
+
```
|
|
472
|
+
|
|
473
|
+
The adapters read the downloaded files as data and run nothing from them. The capture is not reproducible to the byte: `node scripts/door-capture.ts --out labelled/capture.jsonl --meta labelled/capture.meta.json` records your machine's clients, which opens Chrome and Safari and closes them again.
|
|
474
|
+
|
|
475
|
+
### Measure on your own door
|
|
476
|
+
|
|
477
|
+
```bash
|
|
478
|
+
agent-custody door labels --receipts ./receipts --issuer-key keys/door.pub --principal-key keys/principal.pub --out own-door.jsonl
|
|
479
|
+
agent-custody door measure own-door.jsonl
|
|
480
|
+
```
|
|
481
|
+
|
|
482
|
+
`door labels` reads the receipts in the directory and verifies each one with the door's public key. It skips a file that does not verify, and it says how many. The receipt of a verified agent verifies only with `--principal-key`, the key of the principal that signed the agent's grant. The command needs a door with `behaviour` in its config, and it gives a label only where the door checked something: a passed challenge, or a verified agent.
|
|
483
|
+
|
|
484
|
+
What the output holds: for each labelled arrival, the label, the label source, a session number, and the flags, and the same label in the fields of `door error-rates` (`kind`, `automated`, `genuine`, `source`, and `validFor` for a verified agent). What it does not hold: a path, an address, an agent name, a header, a header value, or a time. The session number counts sources in the order of their first arrival; it is not a hash of the address.
|
|
485
|
+
|
|
486
|
+
The output has no receipt id unless you ask for one. A receipt id names one receipt, and a person who has your receipts can go from the id to the path and the address of that arrival. So the default output has nothing that names an arrival, and you can show it to another person. With `--receipt-ids` each line has its `receiptId`, and the file is then also a labels file for `agent-custody door error-rates --labels`. Use that file on your own machine.
|
|
487
|
+
|
|
488
|
+
The file is yours to read. If you want your counts to be part of a later version of this page, send the output of `door measure --json`, which holds counts and no arrival.
|
|
489
|
+
|
|
490
|
+
Two cautions for an own-door set. A person who was never challenged has no label, so the human side is the people who met a challenge and passed it. A verified agent is an agent that you gave a grant to; an API agent posts without a page load, so `behaviour.navigation.directWrite` is true for it by design.
|
package/docs/door-languages.md
CHANGED
|
@@ -54,7 +54,7 @@ For each request, before your code runs, the middleware sends the door a `GET <d
|
|
|
54
54
|
|
|
55
55
|
- `X-Original-Method` and `X-Original-URI`: the request's method, and its path and query as the client sent them (the raw target where the framework keeps one, else the path re-encoded).
|
|
56
56
|
- `X-Forwarded-For`: the address the framework reports for the request (`RemoteAddr`, `REMOTE_ADDR`, `getRemoteAddr()`). The middleware sets all three itself; a client's own copies are never forwarded.
|
|
57
|
-
- Every other header of the request, the client's `Host` included, except the hop-by-hop fields and `Content-Length`, `Transfer-Encoding`, and `Expect`: the check has no body. This is what nginx `auth_request` sends. The door reads the grant (`X-Agent-Custody-Grant`, or `Authorization: Bearer`), `X-Agent-Custody-Agent`, the Web Bot Auth fields, the challenge header, and the `Host`, `User-Agent`, `Accept`, and `Content-Type` it records.
|
|
57
|
+
- Every other header of the request, the client's `Host` included, except the hop-by-hop fields and `Content-Length`, `Transfer-Encoding`, and `Expect`: the check has no body. This is what nginx `auth_request` sends. The door reads the grant (`X-Agent-Custody-Grant`, or `Authorization: Bearer`), `X-Agent-Custody-Agent`, the Web Bot Auth fields, the challenge header, and the `Host`, `User-Agent`, `Accept`, and `Content-Type` it records. With `behaviour` in the door config, the door also reads `Referer`, `Sec-Fetch-Site`, `Sec-Fetch-Mode`, `Sec-Fetch-Dest`, and `X-Agent-Custody-Form` from the check for its [behaviour and fingerprint signals](door.md#behaviour-and-fingerprint-signals).
|
|
58
58
|
|
|
59
59
|
Then:
|
|
60
60
|
|
|
@@ -164,5 +164,7 @@ The frameworks are not installed in the test suite and there is no network to in
|
|
|
164
164
|
Everything that [authz mode](door.md#behind-nginx-or-envoy-authz-mode) records, and nothing more: `issuer.framework` is `authz`, an allow is `withheld` (the door decided, and the middleware, not the door, ran your code), a refusal is `denied`, and no receipt carries the body or your app's answer. A policy rule on `context.args.body` errors and denies, so a rule on an amount belongs in your code.
|
|
165
165
|
|
|
166
166
|
- **The address is the one the framework reports.** Behind a load balancer it is the balancer's, and the door's `rate` signal counts every arrival through it as one source. Pass the client's address yourself (the value your framework trusts after its own proxy settings) if that matters to a policy.
|
|
167
|
+
- **The behaviour signals are those of authz mode.** With `behaviour` in the door config, the door records no header order and no header count, and `fingerprint.headers.mismatch` is always false, because a check is not the client's own request. The timing, navigation, and form signals work, with the address that the framework reports as the source. The history behind them is the memory of one door process.
|
|
168
|
+
- **The middleware forwards the client's headers as they are.** The door reads `behaviour.tlsHeader` from the check, so set `tlsHeader` only when a proxy in front of your app overwrites that header on every request. Without such a proxy, the value is the client's own. `X-Agent-Custody-Form` reaches your code: the middleware removes the grant and the declared agent only. The form report is a claim by the script in the client's browser.
|
|
167
169
|
- **The door's word is trusted.** An allow receipt shows that the door allowed the request, not that the app ran it.
|
|
168
170
|
- **Not covered:** a request your framework answers before the middleware runs (a static file served by the web server, a route mounted outside the middleware stack).
|
package/docs/door-middleware.md
CHANGED
|
@@ -26,6 +26,8 @@ The proxy's `door.json` without `origin`: there is nothing to relay to, because
|
|
|
26
26
|
}
|
|
27
27
|
```
|
|
28
28
|
|
|
29
|
+
With `"behaviour": {}` in the config, the arrival fact has the door's [behaviour and fingerprint signals](door.md#behaviour-and-fingerprint-signals), as for the proxy. The limits that are specific to the in-process door are in [the list below](#what-the-receipt-records-of-your-answer-and-what-it-does-not).
|
|
30
|
+
|
|
29
31
|
## Quick start: the parts both frameworks share
|
|
30
32
|
|
|
31
33
|
You need Node 22 or later and `curl`. The in-process door is in `@agent-custody/receipts` from 0.16.7.
|
|
@@ -189,12 +191,14 @@ export const GET = () => new Response(guard.formScript(), { headers: { "content-
|
|
|
189
191
|
|
|
190
192
|
The form's own route is wrapped as any other: `export const POST = guard.route(handler)`.
|
|
191
193
|
|
|
194
|
+
With `behaviour` in the config too, the script also sends the form report in `X-Agent-Custody-Form`: counts of key presses, pointer presses, and pastes, and the fill time. `guard.formScript()` returns the script with the report. The report is a claim by the script in the client's browser ([door signals](door-signals.md#the-behaviour-and-fingerprint-signals)).
|
|
195
|
+
|
|
192
196
|
## What your code receives
|
|
193
197
|
|
|
194
198
|
An allowed request reaches your code with:
|
|
195
199
|
|
|
196
200
|
- `X-Agent-Custody-Receipt`: the receipt id, and `X-Agent-Custody-Class`: `verified`, `claimed`, or `unknown`. The door sets both; a client that sends either has its value replaced.
|
|
197
|
-
- No grant: `X-Agent-Custody-Grant` is removed, and so is `Authorization` when it carried the grant. `X-Agent-Custody-Agent` and the challenge header are removed too. In Express they leave `req.headers` and `req.rawHeaders` both.
|
|
201
|
+
- No grant: `X-Agent-Custody-Grant` is removed, and so is `Authorization` when it carried the grant. `X-Agent-Custody-Agent` and the challenge header are removed too. In Express they leave `req.headers` and `req.rawHeaders` both. With `behaviour` in the config, `X-Agent-Custody-Form` is removed too.
|
|
198
202
|
- The body the door read, unchanged.
|
|
199
203
|
|
|
200
204
|
The door does not touch the client-address headers (`X-Forwarded-For`, `X-Real-IP`, and the rest) as the proxy does: in-process, your app reads the socket itself, and what it trusts is its own setting (`app.set("trust proxy")` in Express).
|
|
@@ -218,6 +222,7 @@ What is not recorded, or not the same as the proxy:
|
|
|
218
222
|
- **Next.js pages, Server Actions, and the `middleware.ts` / `proxy.ts` file are not covered.** Only the route handlers you wrap are decided and receipted. Next's middleware runs before the route and cannot see its answer, so a receipt from it could not say what the app did; the door does not offer one. A `GET` handler that Next prerenders at build time (`export const dynamic = "force-static"`) runs at build time, not per request: do not wrap one.
|
|
219
223
|
- **A signature on a fetch request.** A Web Bot Auth signature is checked over the request as the route handler gets it: a field sent more than once arrives joined with `, `, and a `Request` built without a `Host` field takes its authority from its URL. In Express the door reads every value of each field, as the proxy does.
|
|
220
224
|
- **The arrival's address in Next.js.** A route handler gets no socket. Without `trustProxy` the arrival's `remote` is `unknown`, and the `rate` signal counts every unknown arrival as one source. Behind a proxy you run, or on a host that sets `X-Forwarded-For` (Vercel does), set `trustProxy: true` and the door takes the last address in it.
|
|
225
|
+
- **The behaviour signals.** The Express middleware sees the order of the headers. A route handler does not, so its arrivals have no `fingerprint.headers.order`. The in-process door does not see the TLS handshake: `fingerprint.tls` is present only with `behaviour.tlsHeader` and `trustProxy`, behind a proxy that overwrites that header. The door knows that the client used https only from `X-Forwarded-Proto: https` with `trustProxy`; the URL of a route handler's request is not read for this. Without that, `fingerprint.headers.mismatch` reads `accept-language` only. In Next.js without `trustProxy`, every arrival is the source `unknown`: all arrivals share one history, so a page load by one client is a page load for all, and `behaviour.timing` is the pace of all of them together. The history is one process's memory: each Node process, and each serverless instance, has its own.
|
|
221
226
|
- **A refused request's body in Express.** For an arrival the door refuses, the body is read up to `maxBodyBytes` and the rest drained, as by the proxy; nothing after the door runs.
|
|
222
227
|
|
|
223
228
|
## Why Express and Next.js are not dependencies
|
package/docs/door-quickstart.md
CHANGED
|
@@ -8,7 +8,7 @@ The door runs from the gateway's container image. The same image runs every othe
|
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
10
|
mkdir door-quickstart && cd door-quickstart
|
|
11
|
-
IMAGE=ghcr.io/svayatta/agent-custody-gateway:0.16.
|
|
11
|
+
IMAGE=ghcr.io/svayatta/agent-custody-gateway:0.16.13
|
|
12
12
|
alias agent-custody='docker run --rm --user "$(id -u):$(id -g)" -v "$PWD":/work -w /work -e TURNSTILE_SECRET $IMAGE'
|
|
13
13
|
```
|
|
14
14
|
|
|
@@ -217,7 +217,7 @@ docker rm -f door site && docker network rm door-quickstart
|
|
|
217
217
|
|
|
218
218
|
With Node 22 or later, the same page runs the CLI from npm. Four steps change, and every other command stays as it is:
|
|
219
219
|
|
|
220
|
-
- **The setup.** The alias is `alias agent-custody='npx -y -p @agent-custody/receipts@0.16.
|
|
220
|
+
- **The setup.** The alias is `alias agent-custody='npx -y -p @agent-custody/receipts@0.16.13 agent-custody'`, and there is no `IMAGE`.
|
|
221
221
|
- **Step 2.** Start the stand-in site with `node -e 'require("http").createServer((q,s)=>{s.setHeader("content-type","text/plain");s.end(q.method==="GET"?"the sign-up page\n":"thanks, you are signed up\n")}).listen(3000,"127.0.0.1")' &`.
|
|
222
222
|
- **Step 4.** In `door.json`, the origin is `"http://127.0.0.1:3000"`. The check then gives one warning, not two.
|
|
223
223
|
- **Step 5.** Start the door with `agent-custody door --config door.json --port 8780 &`.
|