rebilder 0.1.0

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 ADDED
@@ -0,0 +1,559 @@
1
+ # `rebilder`
2
+
3
+ The **Agent Readability Score**, from your machine.
4
+
5
+ `rebilder check <url>` fetches a page the way an agent would, fetches it again
6
+ the way a browser would, and scores the result against
7
+ [the Agent Readability Spec (ARS 0.1)](https://rebilder.com/spec/ars). It tells
8
+ you what a machine caller actually receives from your site, what that costs in
9
+ bytes, and which of the 19 checks you are losing points on.
10
+
11
+ > ARS measures format and retrievability. It does not measure whether the
12
+ > facts are true, or whether any assistant cites this page.
13
+
14
+ ```
15
+ npx rebilder check https://example.com/products/thing
16
+ ```
17
+
18
+ **Zero telemetry.** This CLI never uploads a scan, a URL, a hostname, or a
19
+ result — see [the contract below](#zero-telemetry).
20
+
21
+ ---
22
+
23
+ ## Commands
24
+
25
+ ```
26
+ rebilder check <url...> --format pretty|json|markdown|junit --fail-on <grade>
27
+ --out <file> --allow-private --allow-http --concurrency <n>
28
+ rebilder diff <url> # agent view vs browser view
29
+ rebilder init # gateway config scaffold for the detected framework
30
+ rebilder badge <domain> # embed snippet
31
+ ```
32
+
33
+ ---
34
+
35
+ ## Exit codes
36
+
37
+ **A stable contract. Documented here, and never renumbered.**
38
+
39
+ | Code | Meaning |
40
+ | ---: | --------------------------------------------------------------------------- |
41
+ | 0 | Completed; threshold met, or no threshold set |
42
+ | 1 | Completed; threshold **not** met |
43
+ | 2 | Usage error |
44
+ | 3 | Probe failed / target unreachable — **infrastructure, not a score failure** |
45
+ | 4 | Blocked by policy (SSRF guard, robots opt-out, probe budget spent) |
46
+
47
+ **The 1-vs-3 split is load-bearing.** `1` is a fact about your site. `3` is DNS,
48
+ a timeout, a 502, or a captive portal in your CI runner. If a flaky network
49
+ exited `1`, the first red build nobody could explain would get the check deleted
50
+ — and a deleted check protects nothing. So an outcome that never produced a
51
+ score can never produce `1`, and there is a test that sweeps every unscored
52
+ reason and every probe rejection to prove it.
53
+
54
+ `4` is the other thing that is not a score failure: we chose not to fetch, or
55
+ were told not to. It is separate from `3` because `4` is deterministic and `3` is
56
+ not — re-running fixes a `3` and never fixes a `4`.
57
+
58
+ **`--fail-on` defaults to nothing.** Plain `rebilder check <url>` reports and
59
+ exits `0`. A tool that fails a build by default is a tool that gets `|| true`
60
+ appended on day one.
61
+
62
+ `--fail-on C` means **C or better passes**; a worse grade exits `1`.
63
+
64
+ When one invocation covers several URLs, the codes collapse **2 > 4 > 3 > 1 > 0**:
65
+ a mistake in the command beats everything, a deterministic refusal beats a
66
+ transient failure, and anything that stopped us getting a score beats a score we
67
+ got and disliked.
68
+
69
+ ### In CI
70
+
71
+ ```yaml
72
+ - run: npx rebilder check https://example.com/products/thing --fail-on B --format junit --out ars.xml
73
+ ```
74
+
75
+ `3` and `4` will still fail the step. If you want infrastructure trouble to be
76
+ non-blocking while a grade regression is not, branch on the code:
77
+
78
+ ```bash
79
+ npx rebilder check "$URL" --fail-on B; code=$?
80
+ case $code in
81
+ 0) ;; # fine
82
+ 1) echo "ARS grade regressed"; exit 1 ;; # your site
83
+ 3|4) echo "probe did not complete ($code) — not failing the build" ;;
84
+ *) exit $code ;;
85
+ esac
86
+ ```
87
+
88
+ ---
89
+
90
+ ## `rebilder check`
91
+
92
+ Per URL it makes **two requests** — an agent probe and a browser control that
93
+ differ in the `Accept` header **and in nothing else** — plus `/robots.txt`,
94
+ `/llms.txt` and `/.well-known/ucp` per origin. Nothing else is requested; there
95
+ is no guessing at `/sitemap.xml` or `/mcp`. `robots.txt` is fetched first and
96
+ obeyed.
97
+
98
+ Same User-Agent on both probes, because that is what makes the parity check
99
+ meaningful and what stops a correctly installed gateway — which negotiates on
100
+ `Accept`, not on User-Agent — from being scored as a cloaker.
101
+
102
+ ### Before: the page as raw HTML
103
+
104
+ <!-- rebilder-example: check-raw-html | 002-pdp-raw-html | rebilder check <url> -->
105
+
106
+ ```console
107
+ https://basecamp-supply.example/products/alpine-trail-pack-28l
108
+ ────────────────────────────────────────────────────────────────
109
+ D Partial 54/100
110
+ 64 of the 100 points are measured, 36 heuristic
111
+ page kind: product (high confidence, heuristic)
112
+
113
+ Retrievability 20/20 heuristic
114
+ ✔ Reachable on the agent path 8/8 measured
115
+ ✔ Robots policy for assistants 6/6 measured
116
+ ✔ Core facts present without JavaScript 6/6 heuristic
117
+ Machine representation 0/20 heuristic
118
+ ✘ Machine representation on Accept negotiation 0/10 measured
119
+ ✘ Declared alternate representations 0/4 measured
120
+ ✘ Vary: Accept declared correctly 0/3 measured
121
+ ✘ Same substance across representations 0/3 heuristic
122
+ Fact coverage 5/20 heuristic
123
+ ◐ Core facts for this page kind 4/14 heuristic
124
+ ◐ Context cost relative to this page kind 1/6 measured
125
+ Fact position 9/10 heuristic
126
+ ◐ Byte offset of the first core fact 4/5 heuristic
127
+ ✔ Core facts inside the front window 5/5 heuristic
128
+ Structured data 14/15 heuristic
129
+ ✔ Structured data present and parsing 5/5 measured
130
+ ◐ Recognised type with its required properties 6/7 measured
131
+ ✔ Structured data agrees with visible text 3/3 heuristic
132
+ Contract & discovery 6/15 measured
133
+ ✔ Canonical URL present and self-consistent 4/4 measured
134
+ ✘ Cache validators 0/3 measured
135
+ ✘ llms.txt present and spec-shaped 0/2 measured
136
+ ✔ Sitemap declared in robots.txt 2/2 measured
137
+ ✘ Declared machine endpoint 0/4 measured
138
+
139
+ What an agent pays
140
+ HTML 91,226 B ≈22,806 tokens (est.)
141
+ Negotiated — —
142
+ First core fact at byte 632
143
+ Core facts found 4/4 (100%) for a product page — heuristic
144
+
145
+ Fixes, most points first
146
+ +16 Serve a machine representation on Accept negotiation (config)
147
+ Return Markdown, plain text or JSON with a matching Content-Type when t…
148
+ +10 State the missing core facts for this page kind (template)
149
+ Coverage is scored against the fact set this kind of page is expected t…
150
+ +5 Cut the bytes an agent has to read (engineering)
151
+ Context cost is scored against what a page of this kind reasonably cost…
152
+ +4 Declare the alternate representation (config)
153
+ Add `Link: <…>; rel="alternate"; type="text/markdown"` or a typed `<lin…
154
+ +4 Declare a machine endpoint (engineering)
155
+ A feed, an OpenAPI document, /.well-known/ucp — anything an agent can c…
156
+ +3 Add cache headers an agent can act on (config)
157
+ Send a Cache-Control a cache can use plus an ETag or Last-Modified. Rep…
158
+ +2 Publish /llms.txt (config)
159
+ An H1 title, a short summary, and links to the pages that matter. It is…
160
+ +1 Move the core facts to the front (template)
161
+ A caller that reads the first few kilobytes should already have the fac…
162
+ +1 Complete the required properties for this page kind (template)
163
+ The required-property table is published per page kind in the spec. It …
164
+
165
+ Policy: robots.txt ok · assistant allow · training allow (neutral) · sitemap declared
166
+ ARS 0.1.0 · ruleset 51176d88c6ca · corpus 22e436d6f50e · evidence b774a1e59433 · vantage public
167
+
168
+ ARS measures format and retrievability. It does not measure whether the
169
+ facts are true, or whether any assistant cites this page.
170
+ ```
171
+
172
+ ### After: the same page with content negotiation
173
+
174
+ <!-- rebilder-example: check-gateway-md | 001-pdp-gateway-md | rebilder check <url> -->
175
+
176
+ ```console
177
+ https://basecamp-supply.example/products/alpine-trail-pack-28l
178
+ ────────────────────────────────────────────────────────────────
179
+ A Agent-native 90/100
180
+ 64 of the 100 points are measured, 36 heuristic
181
+ page kind: product (high confidence, heuristic)
182
+
183
+ Retrievability 20/20 heuristic
184
+ ✔ Reachable on the agent path 8/8 measured
185
+ ✔ Robots policy for assistants 6/6 measured
186
+ ✔ Core facts present without JavaScript 6/6 heuristic
187
+ Machine representation 16/20 heuristic
188
+ ✔ Machine representation on Accept negotiation 10/10 measured
189
+ ✘ Declared alternate representations 0/4 measured
190
+ ✔ Vary: Accept declared correctly 3/3 measured
191
+ ✔ Same substance across representations 3/3 heuristic
192
+ Fact coverage 20/20 heuristic
193
+ ✔ Core facts for this page kind 14/14 heuristic
194
+ ✔ Context cost relative to this page kind 6/6 measured
195
+ Fact position 10/10 heuristic
196
+ ✔ Byte offset of the first core fact 5/5 heuristic
197
+ ✔ Core facts inside the front window 5/5 heuristic
198
+ Structured data 14/15 heuristic
199
+ ✔ Structured data present and parsing 5/5 measured
200
+ ◐ Recognised type with its required properties 6/7 measured
201
+ ✔ Structured data agrees with visible text 3/3 heuristic
202
+ Contract & discovery 10/15 measured
203
+ ◐ Canonical URL present and self-consistent 3/4 measured
204
+ ✔ Cache validators 3/3 measured
205
+ ✔ llms.txt present and spec-shaped 2/2 measured
206
+ ✔ Sitemap declared in robots.txt 2/2 measured
207
+ ✘ Declared machine endpoint 0/4 measured
208
+
209
+ What an agent pays
210
+ HTML 91,226 B ≈22,806 tokens (est.)
211
+ Negotiated 1,490 B ≈372 tokens (est.)
212
+ Reduction 99%
213
+ First core fact at byte 0
214
+ Core facts found 4/4 (100%) for a product page — heuristic
215
+
216
+ Fixes, most points first
217
+ +4 Declare the alternate representation (config)
218
+ Add `Link: <…>; rel="alternate"; type="text/markdown"` or a typed `<lin…
219
+ +4 Declare a machine endpoint (engineering)
220
+ A feed, an OpenAPI document, /.well-known/ucp — anything an agent can c…
221
+ +1 Declare one canonical URL, in both representations (config)
222
+ Add an absolute `<link rel="canonical">` to the HTML and a `Link: <…>; …
223
+ +1 Complete the required properties for this page kind (template)
224
+ The required-property table is published per page kind in the spec. It …
225
+
226
+ Policy: robots.txt ok · assistant allow · training allow (neutral) · sitemap declared
227
+ ARS 0.1.0 · ruleset 51176d88c6ca · corpus 22e436d6f50e · evidence 1fe68289a133 · vantage public
228
+
229
+ ARS measures format and retrievability. It does not measure whether the
230
+ facts are true, or whether any assistant cites this page.
231
+ ```
232
+
233
+ Same product, same facts. 54 → 90, D → A, and the agent reads 1,490 bytes
234
+ instead of 91,226.
235
+
236
+ ### Options
237
+
238
+ | Option | |
239
+ | ---------------------------------------- | ----------------------------------------------------------------------- |
240
+ | `--format pretty\|json\|markdown\|junit` | default `pretty` |
241
+ | `--fail-on A\|B\|C\|D\|F` | default none; `C` means C or better passes |
242
+ | `--out <file>` | write the same rendering to a file (stdout still prints) |
243
+ | `--concurrency <n>` | URLs in flight; default 1, max 8 |
244
+ | `--allow-http` | permit plain `http` targets |
245
+ | `--allow-private` | permit private, loopback and link-local targets; implies `--allow-http` |
246
+
247
+ `--concurrency` is capped at 8 because the probe's politeness limiter allows at
248
+ most 1 in-flight request per host and 2 globally regardless — a larger number
249
+ would be a promise we do not keep.
250
+
251
+ ---
252
+
253
+ ## `rebilder diff`
254
+
255
+ What the agent request received, next to what the browser request received.
256
+
257
+ <!-- rebilder-example: diff | 001-pdp-gateway-md | rebilder diff <url> -->
258
+
259
+ ```console
260
+ https://basecamp-supply.example/products/alpine-trail-pack-28l
261
+ ────────────────────────────────────────────────────────────────
262
+ The two requests differ in the Accept header and in nothing else — same User-Agent, same everything (§3.3).
263
+
264
+ agent browser
265
+ Accept text/markdown;q=1.0, text/html;… text/html,application/xhtml+xml…
266
+ Status 200 200
267
+ Content-Type text/markdown; charset=utf-8 text/html; charset=utf-8
268
+ Bytes 1,490 B 91,226 B
269
+ Tokens ≈373 tokens (est.) ≈22,789 tokens (est.)
270
+ Redirects 0 0
271
+ Error — —
272
+
273
+ Substance parity [heuristic] 3/3
274
+ Compared on price, currency, availability and title only — never description or free text (§3.8).
275
+ • Compared facts: price, currency, availability, title [heuristic]
276
+ • Values: agree [heuristic]
277
+
278
+ Score: 90/100 A
279
+ ARS 0.1.0 · ruleset 51176d88c6ca · corpus 22e436d6f50e · evidence 1fe68289a133 · vantage public
280
+
281
+ ARS measures format and retrievability. It does not measure whether the
282
+ facts are true, or whether any assistant cites this page.
283
+ ```
284
+
285
+ It shows **structure and numbers, never an excerpt of the page**. Dumping a
286
+ third party's content into a terminal, a CI log or an `--out` file is a
287
+ copyright problem the numbers do not have.
288
+
289
+ `--fail-on` is refused here rather than ignored: `diff` reports, it does not
290
+ grade, and silently dropping a flag someone put in a CI file is how a check that
291
+ appears to gate stops gating.
292
+
293
+ ---
294
+
295
+ ## `--format junit`
296
+
297
+ One `<testcase>` per ARS check, one `<testsuite>` per URL, and the failure/error
298
+ split mirrors the exit-code contract: a check that fell short is a `<failure>`; a
299
+ page we never scored is an `<error>`.
300
+
301
+ <!-- rebilder-example: junit-unreachable | 041-timeout | rebilder check <url> --format junit --fail-on B -->
302
+
303
+ ```console
304
+ <?xml version="1.0" encoding="UTF-8"?>
305
+ <testsuites name="rebilder.ars" tests="1" failures="0" errors="1">
306
+ <testsuite name="https://basecamp-supply.example/products/alpine-trail-pack-28l" tests="1" failures="0" errors="1">
307
+ <properties>
308
+ <property name="notice" value="ARS measures format and retrievability. It does not measure whether the facts are true, or whether any assistant cites this page."/>
309
+ <property name="url" value="https://basecamp-supply.example/products/alpine-trail-pack-28l"/>
310
+ <property name="generatedAt" value="2026-08-05T00:00:00.000Z"/>
311
+ <property name="tool" value="rebilder 0.1.0"/>
312
+ <property name="specVersion" value="0.1.0"/>
313
+ <property name="rulesetHash" value="51176d88c6ca1478a9d3510c09eb8eb8181cff86beaea16b96812eb25c5910e0"/>
314
+ <property name="corpusHash" value="22e436d6f50e1804d72bb45e8e5cd9c00a2d4b0e4e924dc6573911c065a6dfdb"/>
315
+ <property name="evidenceHash" value="e1cc1ad1476117e7335e4b608e80b4a6e1e0072ce532dd6c9b5f4cce0b2f8b19"/>
316
+ <property name="measuredWeight" value="64"/>
317
+ <property name="heuristicWeight" value="36"/>
318
+ <property name="exitCode" value="3"/>
319
+ <property name="notAScoreFailure" value="probe failure — infrastructure"/>
320
+ </properties>
321
+ <testcase classname="https://basecamp-supply.example/products/alpine-trail-pack-28l" name="probe">
322
+ <error type="unscored" message="UNSCORED — unreachable (timeout)"/>
323
+ </testcase>
324
+ </testsuite>
325
+ </testsuites>
326
+ ```
327
+
328
+ Zero failures, one error, exit `3`. The two signals agree.
329
+
330
+ With `--fail-on`, one extra test case per URL carries the threshold, so the gate
331
+ is a visible line in the report rather than something implied by the exit code.
332
+ Without it that case is **absent**, not passing.
333
+
334
+ ---
335
+
336
+ ## `rebilder init`
337
+
338
+ Writes a `@rebilder/gateway` config scaffold for the framework it detects
339
+ (`next`, `node`, `edge`, `shopify`), and prints how it decided. `--framework`
340
+ overrides detection. Makes no network request and reads nothing outside the
341
+ working directory.
342
+
343
+ The scaffold is a skeleton with `TODO`s, not a working config: the resolvers
344
+ return **your** source of truth, and every substantive value on a rendered page
345
+ comes from those fields. The gateway never invents one.
346
+
347
+ ---
348
+
349
+ ## `rebilder badge`
350
+
351
+ <!-- rebilder-example: badge | no probe | rebilder badge example.com -->
352
+
353
+ ```console
354
+ Badge for example.com
355
+
356
+ Markdown
357
+ [![Agent Readability Score for example.com](https://rebilder.com/badge/example.com.svg)](https://rebilder.com/readable/example.com)
358
+
359
+ HTML
360
+ <a href="https://rebilder.com/readable/example.com"><img src="https://rebilder.com/badge/example.com.svg" alt="Agent Readability Score for example.com" height="20"></a>
361
+
362
+ A grade renders only for a verified opted-in domain. Every other domain gets a neutral “not rated” badge, served at 200 so it never shows as a broken image.
363
+ Verify by publishing a DNS TXT record `rebilder-verify=<token>`, or by serving `X-Rebilder-Path` from your origin where we can observe it.
364
+ The badge is served live from our data: you capture nothing and freeze nothing. It degrades to “unverified” after 30 days without a successful re-scan.
365
+ It always names its subject (`example.com · A · 94 · Mar 2026`) and it shows the ruleset hash alongside the spec version — two scores from different rulesets must not render identically.
366
+ No score ever comes from the query string. Removal from the index is free, self-serve, permanent, and never purchasable.
367
+ This command makes no network request. It builds the snippet locally, so we never learn which domain you asked about.
368
+ ```
369
+
370
+ Built locally — no network request, so we never learn which domain you asked
371
+ about.
372
+
373
+ ---
374
+
375
+ ## Zero telemetry
376
+
377
+ **This is a contract, not a setting. There is no opt-out because there is
378
+ nothing to opt out of.**
379
+
380
+ The CLI **never uploads a scan, a URL, a hostname, or a result.** It has no
381
+ analytics, no error reporting, no version check, no "anonymous usage
382
+ statistics". `rebilder.scans.source` has no `'cli'` value, because there is no
383
+ path by which a CLI run could produce a row.
384
+
385
+ The only outbound requests this binary makes are to the target URL you named, in
386
+ the request set described above. `badge` and `init` make none at all.
387
+
388
+ This matters most in exactly the case the tool is best at. A developer running
389
+
390
+ ```
391
+ rebilder check --allow-private http://staging.internal.corp/checkout
392
+ ```
393
+
394
+ inside their own CI must not thereby ship internal hostnames and paths to a
395
+ third party. `--allow-private` and the no-telemetry guarantee are only safe as a
396
+ pair, and neither is negotiable.
397
+
398
+ It is enforced three ways: the package declares exactly one runtime dependency
399
+ (`@rebilder/agent-readability`, which is the probe and the scorer); ESLint denies
400
+ `node:http`, `node:https`, `node:net` and `fetch` across `src/`; and a test reads
401
+ every source file to assert the same thing, because a lint rule can be disabled
402
+ inline and that inline disable is precisely the diff worth failing a test over.
403
+
404
+ ### `--allow-private`
405
+
406
+ Private, loopback and link-local targets are unlocked by a **separate entry
407
+ point** in `@rebilder/agent-readability` that throws at import time unless the
408
+ process was started with `--allow-private`, and refuses outright inside a hosted
409
+ runtime. It is not a boolean on a config object, because a boolean on a config
410
+ object is a boolean somebody eventually sets to `true` in production.
411
+
412
+ The permission is per invocation. It is never a default, never an environment
413
+ variable, and never inherited.
414
+
415
+ ---
416
+
417
+ ## Zero runtime dependencies
418
+
419
+ Hand-rolled ANSI (off when stdout is not a TTY, off whenever `NO_COLOR` is set,
420
+ on with `FORCE_COLOR`), Unicode box drawing with an ASCII fallback chosen by the
421
+ locale, and `node:util`'s `parseArgs`. Node ≥ 20.11.
422
+
423
+ Colour and Unicode are decided separately because they fail in different places:
424
+ a pipe into a file is perfectly capable of holding `│`, and a `LANG=C` container
425
+ is not.
426
+
427
+ The one runtime dependency is `@rebilder/agent-readability` — the scorer and the
428
+ probe. There is no bundled second implementation of the standard.
429
+
430
+ ---
431
+
432
+ ## Reading a score
433
+
434
+ Bands headline; the integer is secondary; there are no decimals.
435
+
436
+ | Grade | Range | Label |
437
+ | ----- | ------ | -------------------- |
438
+ | A | 90–100 | Agent-native |
439
+ | B | 75–89 | Agent-friendly |
440
+ | C | 60–74 | Readable with effort |
441
+ | D | 40–59 | Partial |
442
+ | F | 0–39 | Not extractable |
443
+
444
+ Three outcomes carry **no letter grade at all**:
445
+
446
+ - **OPT-OUT** — a deliberate, well-formed robots disallow for the assistant
447
+ audience. A choice, not a failure. Never ranked, never listed. Exit `4`.
448
+ - **UNSCORED — blocked** — a 403 or a challenge at the edge. The block is itself
449
+ the finding. Exit `3`.
450
+ - **UNSCORED — unreachable / non-2xx / robots-unavailable /
451
+ robots-disallow-scanner / truncated-evidence.** Exit `3`, except
452
+ `robots-disallow-scanner`, which is `4`.
453
+
454
+ Blocking model-training crawlers while allowing assistants **scores identically
455
+ to a fully open site**. Two conformance fixtures exist solely to prove it.
456
+
457
+ **64 of the 100 points are measured; 36 are heuristic.** Every check reports
458
+ which it is, in every format, always — a heuristic value never renders without
459
+ its label. Token counts are `chars/4` and always carry `≈` and `est.`.
460
+
461
+ ---
462
+
463
+ ## Disclosure
464
+
465
+ > ARS is authored by Rebilder, which sells content-negotiation middleware. Two
466
+ > ARS checks (D2.1 content negotiation, D5 structured data) can be satisfied by
467
+ > Rebilder's free gateway, and reaching an A requires both. The full ruleset,
468
+ > thresholds, and conformance corpus are published so this bias is auditable
469
+ > rather than hidden.
470
+
471
+ This prints in `--help` as well as here.
472
+
473
+ <!-- rebilder-example: help | no probe | rebilder --help -->
474
+
475
+ ```console
476
+ rebilder — the Agent Readability Score, from your machine.
477
+
478
+ USAGE
479
+ rebilder check <url...> [--format pretty|json|markdown|junit] [--fail-on A|B|C|D|F]
480
+ [--out <file>] [--allow-private] [--allow-http]
481
+ [--concurrency <n>]
482
+ rebilder diff <url> agent view vs browser view
483
+ rebilder init gateway config scaffold for the detected framework
484
+ rebilder badge <domain> embed snippet
485
+
486
+ rebilder help <command> detail for one command
487
+ rebilder --version
488
+
489
+ EXIT CODES (a stable contract; never renumbered)
490
+ 0 completed; threshold met, or no threshold set
491
+ 1 completed; threshold NOT met
492
+ 2 usage error
493
+ 3 probe failed / target unreachable — infrastructure, not a score failure
494
+ 4 blocked by policy (SSRF guard, robots opt-out, probe budget spent)
495
+
496
+ The 1-vs-3 split is load-bearing. A flaky network exits 3, never 1: if an
497
+ unreachable host failed your build as a score failure, the check would be
498
+ deleted from CI within a week. --fail-on defaults to nothing, so plain
499
+ `rebilder check <url>` reports and exits 0.
500
+
501
+ ZERO TELEMETRY
502
+ This CLI ships zero telemetry. It never uploads a scan, a URL, a hostname,
503
+ or a result. The only requests it makes are to the target you name.
504
+
505
+ DISCLOSURE
506
+ ARS is authored by Rebilder, which sells content-negotiation middleware.
507
+ Two ARS checks (D2.1 content negotiation, D5 structured data) can be
508
+ satisfied by Rebilder’s free gateway, and reaching an A requires both.
509
+ The full ruleset, thresholds, and conformance corpus are published so this
510
+ bias is auditable rather than hidden.
511
+
512
+ Spec: https://rebilder.com/spec/ars Crawler policy: https://rebilder.com/bots
513
+ ```
514
+
515
+ ARS also **cannot detect User-Agent-targeted cloaking**, including cloaking
516
+ aimed at `rebilder-ars` itself, because both of our probes identify honestly and
517
+ we will not impersonate another operator's crawler. A site serving identical
518
+ fabricated substance to both requests scores as if it were truthful. That is a
519
+ limit of the method, stated next to the method.
520
+
521
+ ---
522
+
523
+ ## The examples above are real
524
+
525
+ Every `console` block in this file is generated from a real fixture in
526
+ `packages/agent-readability/conformance/` and labelled with its fixture id, and
527
+ `tests/readme.test.ts` regenerates and compares each one on every run. A
528
+ hand-edited block fails the build.
529
+
530
+ This rule exists because an earlier draft of this document shipped a mocked
531
+ `47/100` alongside "+20 pts, D → B" — arithmetically impossible against its own
532
+ bands (47 + 20 = 67 = C) — and nobody caught it, because nothing could.
533
+
534
+ Regenerate with:
535
+
536
+ ```
537
+ REBILDER_README_UPDATE=1 pnpm --filter rebilder test
538
+ ```
539
+
540
+ It rewrites the blocks and then fails the run, so an update can never be
541
+ mistaken for a pass.
542
+
543
+ ---
544
+
545
+ ## Not published yet
546
+
547
+ This package is `private: true` and has no build. `npx rebilder` does not work
548
+ today and will not until the npm publishing pipeline lands — a bundler, a
549
+ `build` task with `dist/**` outputs, `files`/`publishConfig`/`bin`, a decision on
550
+ bundling versus rewriting `workspace:*` dependencies, and a tagged release job.
551
+ That workstream sits in front of this binary and the MCP server both.
552
+
553
+ ## See also
554
+
555
+ - [`@rebilder/agent-readability`](../agent-readability) — the scorer (`.`, pure)
556
+ and the probe (`./probe`, server-only)
557
+ - [`@rebilder/gateway`](../gateway) — the middleware `rebilder init` scaffolds
558
+ - [The Agent Readability Spec](https://rebilder.com/spec/ars)
559
+ - [Our crawler policy and opt-out](https://rebilder.com/bots)