@rebilder/agent-readability 0.2.0 → 0.4.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/CHANGELOG.md +40 -0
- package/README.md +44 -162
- package/dist/index.cjs +415 -193
- package/dist/index.d.cts +46 -27
- package/dist/index.d.ts +46 -27
- package/dist/index.js +413 -192
- package/dist/index.js.map +1 -1
- package/dist/probe/index.cjs +743 -9
- package/dist/probe/index.d.cts +15 -11
- package/dist/probe/index.d.ts +15 -11
- package/dist/probe/index.js +743 -7
- package/dist/probe/index.js.map +1 -1
- package/dist/probe/local.cjs +743 -9
- package/dist/probe/local.d.cts +2 -2
- package/dist/probe/local.d.ts +2 -2
- package/dist/probe/local.js +743 -7
- package/dist/probe/local.js.map +1 -1
- package/dist/{robots-policy-DE8jix-e.d.ts → robots-policy-BeffrTf0.d.cts} +15 -6
- package/dist/{robots-policy-DE8jix-e.d.cts → robots-policy-BeffrTf0.d.ts} +15 -6
- package/package.json +28 -9
- package/dist/index.cjs.map +0 -1
- package/dist/probe/index.cjs.map +0 -1
- package/dist/probe/local.cjs.map +0 -1
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# @rebilder/agent-readability changelog
|
|
2
|
+
|
|
3
|
+
Notable changes to `@rebilder/agent-readability`. A patch release never changes a score; a change to the ruleset, the conformance corpus or the page-kind profiles is at least a minor version. Dates are the day each version reached npm.
|
|
4
|
+
|
|
5
|
+
## Unreleased
|
|
6
|
+
|
|
7
|
+
## 0.4.0 (2026-10-06)
|
|
8
|
+
|
|
9
|
+
Implements **ARS 0.3**. The weights and checks are unchanged; two rules widened, so this ships as a minor version and scores carry the new ruleset hash.
|
|
10
|
+
|
|
11
|
+
- **A linked Markdown copy is checked.** When a page does not send a Markdown copy itself but links to one at another address on the same site, the probe fetches it (`probes.markdownAlternate`, one extra request at most). A copy that loads earns 6 of D2.1's 9 points and is compared with the page for substance parity. A copy that does not load earns nothing, and its link stops earning D2.2. New exports: `declaredMarkdownAlternates`, `markdownAlternateTarget`, `isMachineCopy`.
|
|
12
|
+
- **More action words count as a page's main action.** The lexicon now includes, among others, "shop", "try", "install", "free trial", "get a demo", "get directions", "get in touch", "talk to sales" and "check out". Pages using those labels were told their main action link was missing.
|
|
13
|
+
- The probe identifies itself as `rebilder-ars/0.3`.
|
|
14
|
+
- Evidence lines, remedies and flag messages are rewritten in plain language for site owners. "Content negotiation" now reads as what it means: the page sends AI assistants a Markdown copy when they ask for one.
|
|
15
|
+
- New conformance fixtures `064-linked-markdown-copy` and `065-linked-markdown-copy-broken`. Every existing fixture keeps its score.
|
|
16
|
+
- The source code is public at https://github.com/rebilder/rebilder/tree/main/packages/agent-readability. `repository` and `bugs` point there, and issues and pull requests are welcome.
|
|
17
|
+
|
|
18
|
+
## 0.3.0 (2026-09-28)
|
|
19
|
+
|
|
20
|
+
- **Requires Node.js 22 or later.** `engines.node` moves from `>=20.11.0` to `>=22`; Node.js 20 reached end of life in April 2026.
|
|
21
|
+
- Smaller package: sourcemaps now ship with the ESM build only. The CommonJS build carried a second copy of the same maps. Unpacked size drops from about 3.0 MB to 1.9 MB. CommonJS code is unchanged.
|
|
22
|
+
- `./probe` and `./probe/local` types now resolve under TypeScript's older `node10` module resolution.
|
|
23
|
+
- A customer-facing README with a complete `probeStrict()` to `score()` example. Better package description and keywords. This changelog now ships in the package.
|
|
24
|
+
- The README explains how this package differs from `@vercel/agent-readability` and links a guide to running both in CI.
|
|
25
|
+
- The package description names the standard in full: the Rebilder Agent Readability Spec (ARS).
|
|
26
|
+
- No score changes.
|
|
27
|
+
|
|
28
|
+
## 0.2.0 (2026-08-26)
|
|
29
|
+
|
|
30
|
+
- Implements ARS 0.2: a new ruleset (scores are not comparable with ARS 0.1), a new evidence-density dimension, and new conformance fixtures.
|
|
31
|
+
- Exports the probe's normative pieces from the root so another probe can measure the same thing: `AGENT_ACCEPT`, `BROWSER_ACCEPT`, `ASSET_ACCEPT`, `ARS_ROBOTS_TOKEN`, `parseRobots`, `pathMatches`, `robotsDisallowsScanner` and `utf8Length`.
|
|
32
|
+
- The probe identifies itself as `rebilder-ars/0.2`.
|
|
33
|
+
|
|
34
|
+
## 0.1.1 (2026-08-11)
|
|
35
|
+
|
|
36
|
+
- Package metadata points at rebilder.com for help instead of a private repository. No code or score change.
|
|
37
|
+
|
|
38
|
+
## 0.1.0 (2026-08-10)
|
|
39
|
+
|
|
40
|
+
First release: the ARS 0.1 scorer (`score`, `recommend`, the ruleset, page-kind profiles, classifier and money parser), the strict server-side probe (`./probe`) and the local probe for private hosts (`./probe/local`, which loads only with `--allow-private`).
|
package/README.md
CHANGED
|
@@ -1,184 +1,66 @@
|
|
|
1
1
|
# @rebilder/agent-readability
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Score how well AI agents can read a web page. This is the reference implementation of the [Rebilder Agent Readability Spec](https://rebilder.com/spec/ars) (ARS 0.3): it checks whether the facts an agent needs for that kind of page are present, findable and cheap to read, and ranks the fixes.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
The scorer is a pure, deterministic function with no dependencies: no network, no clock, no randomness, no model. A separate entry point fetches live pages safely.
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
| ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
9
|
-
| `.` | `score()`, `recommend()`, `bandFor()`, `DEFAULT_RULESET`, the ruleset/evidence hashes, the page-kind profiles, the classifier, the money parser, and all published types. Pure. Safe anywhere. |
|
|
10
|
-
| `./probe` | Fetches evidence from a live origin: SSRF policy with DNS pinning, a streamed 2 MiB body cap, an injected politeness limiter, robots.txt handling. Node-only. |
|
|
7
|
+
**Comparing it with `@vercel/agent-readability`?** Vercel's package detects AI agents, routes them to markdown through framework middleware, and audits a whole site against a Vercel checklist that it also calls the Agent Readability Spec. This package scores one URL at a time against Rebilder's ARS, a separate standard with fixed weights, page-kind fact checks and a public conformance corpus. It does not serve anything to agents; [`@rebilder/gateway`](https://www.npmjs.com/package/@rebilder/gateway) does that. You can run both, for example [Vercel's audit and `rebilder check` in the same CI job](https://rebilder.com/docs/vercel-agent-readability).
|
|
11
8
|
|
|
12
|
-
|
|
9
|
+
## Install
|
|
13
10
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
```ts
|
|
17
|
-
import { DEFAULT_RULESET, parseMoneyText, score } from '@rebilder/agent-readability'
|
|
18
|
-
|
|
19
|
-
const result = score(evidence, DEFAULT_RULESET)
|
|
20
|
-
result.grade // 'A' | 'B' | 'C' | 'D' | 'F' — or null, for the three non-grades
|
|
21
|
-
result.score // 0..100, or null. Integers. No decimals, ever.
|
|
22
|
-
result.dimensions // always 7, weights always summing to 100
|
|
23
|
-
result.dimensions[0].checks[0].basis // 'measured' | 'heuristic', per check, always
|
|
24
|
-
result.recommendations // ranked, deduplicated: Σ pointsAvailable ≤ 100 − score
|
|
25
|
-
|
|
26
|
-
parseMoneyText('$1,499.00') // { amount: 149900, currency: 'USD', qualified: false }
|
|
27
|
-
parseMoneyText('From $9') // { amount: 900, currency: 'USD', qualified: true }
|
|
28
|
-
parseMoneyText('1,500') // null — no currency, and the separator is ambiguous
|
|
11
|
+
```sh
|
|
12
|
+
npm install @rebilder/agent-readability
|
|
29
13
|
```
|
|
30
14
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
ARS scores **format and retrievability**: whether the facts a caller needs _for this kind of page_ are present, findable, and cheap _relative to what that kind of page costs_. Two lines print on every surface that shows a grade, and they are not boilerplate:
|
|
34
|
-
|
|
35
|
-
> ARS measures format and retrievability. It does not measure whether the facts are true, or whether any assistant cites this page.
|
|
36
|
-
|
|
37
|
-
- **Fixed weights, 100 points, identical for every page kind.** No conditional weights, no redistribution, no heuristic gate over measured points. Redistribution is a gaming vector; a heuristic that can zero measured points makes those points heuristic.
|
|
38
|
-
- **What varies by page kind is the fact set and the byte reference**, never a weight. That is what stops long-form content being charged against a budget that has nothing to do with it — the defect in every design that used absolute byte bands. It does not make long-form content cost-free: D3.1's density term has no page-kind component, and D7 (below) has none either, so a long article that states no figures pays on both.
|
|
39
|
-
- **D7 evidence density, new in 0.2, 8 points.** D1–D6 grade whether an agent can reach and parse a page. D7 grades whether there was anything on it worth quoting: distinct quantities, labelled `Term: value` pairs, and comparable table rows. Question-shaped headings earn nothing, deliberately — the absorption evidence does not support them.
|
|
40
|
-
- **Measured 63 / heuristic 37**, published, with a spec ceiling of 40 on heuristic weight. The figure is honest because the two comparison checks (D2.4 substance parity, D5.3 structured-data agreement) are _scored checks, not gates_: failing parity loses its own 3 points and raises a `warn`, and does not touch D2's other 15 measured points.
|
|
41
|
-
- **Ordinal, not cardinal.** Bands headline, integers are secondary, no decimals ever.
|
|
42
|
-
- **Three non-grades**, none of which is an F: `opt-out` (a deliberate, well-formed robots disallow — a choice, not a failure), `unscored — blocked`, and `unscored — unreachable / non-2xx / robots-unavailable / robots-disallow-scanner / truncated-evidence`.
|
|
43
|
-
- **Blocking training crawlers while allowing assistants scores identically to a fully open site.** The `training` audience is strictly neutral and can never lower a score.
|
|
44
|
-
|
|
45
|
-
**Conflict-of-interest disclosure**, printed at the top of `/spec/ars`, on every scanner result, and in the CLI `--help`:
|
|
46
|
-
|
|
47
|
-
> ARS is authored by Rebilder, which sells content-negotiation middleware. One ARS check — D2.1, content negotiation, worth 9 of 100 — can be satisfied by Rebilder's free gateway, and reaching an A requires it. The full ruleset, thresholds, and conformance corpus are published so this bias is auditable rather than hidden.
|
|
48
|
-
|
|
49
|
-
## Modules in this package
|
|
50
|
-
|
|
51
|
-
### `src/types.ts` — the published contract
|
|
52
|
-
|
|
53
|
-
Transcribed from design §3.9. These types are the schema of `expected.json` in the conformance corpus, which is what a second implementation in Go or Python has to reproduce. Adding a field here is adding a field an outside team must reverse-engineer.
|
|
54
|
-
|
|
55
|
-
### `src/ruleset.ts` — `DEFAULT_RULESET`
|
|
56
|
-
|
|
57
|
-
Every number a second implementation needs, and nothing that varies between runs: check weights (22 checks summing to 100), the §3.6 scoring bands, crawler audience tokens, the D5.2 required-property table, the action lexicon, the A–F grade bands, and the three probe limits that are inputs to the score (2 MiB body cap, 3 redirects, 5 000ms timeout — two implementations with different caps produce different scores, so they are hashed with everything else).
|
|
58
|
-
|
|
59
|
-
`rulesetHash` is the SHA-256 of the RFC 8785 canonical JSON of this object. **Editing a number here is a spec version change, not a code change**: per §3.1, any edit that moves a conformance `expected.json` is at minimum a MINOR, and MINOR means scores stop being comparable and every published surface re-scores in a batch.
|
|
60
|
-
|
|
61
|
-
### `src/profiles.ts` — the eight page-kind profiles
|
|
62
|
-
|
|
63
|
-
`product`, `collection`, `article`, `place`, `service`, `faq`, `document`, `unknown`. A closed set; every kind has a complete profile, and the mapping is total by construction (`PROFILE_BY_KIND` is a total `Record`, so a missing profile is a compile error). Core facts score at full weight, extended facts at ¼ credit — one definition, applied everywhere. `unknown` is not an easy exit: it still scores D5.2 against "any recognised schema.org type present".
|
|
64
|
-
|
|
65
|
-
### `src/html.ts` — a tolerant, non-executing tokenizer
|
|
66
|
-
|
|
67
|
-
Hand-rolled, and that is a normative decision rather than a preference: **a third-party parser version is an unversioned input to a deterministic score.** A dependency that changes how a malformed `<div` is recovered would change scores on a `pnpm update`, with no ARS version bump and no conformance diff. The recovery rules here _are_ the spec.
|
|
68
|
-
|
|
69
|
-
- Byte offsets are **UTF-8 byte offsets**, not string indices, because `ArsHttpCapture.bytes` is defined as the decoded UTF-8 byte length and D4 scores offsets against it. One `€` before the price is enough to make the two disagree.
|
|
70
|
-
- Counted text follows the §3.6 rule exactly: everything except `<script>`, `<style>`, `<template>`, `hidden`, and inline `style="display:none"`. **No CSS resolution** — a cascade engine would not be deterministic across implementations, so a class that hides an element in a stylesheet does not hide it here.
|
|
71
|
-
- `tokenizeHtml` **never throws**, for any input. A scanner that can be crashed by the page it is scanning is a denial-of-service endpoint.
|
|
72
|
-
|
|
73
|
-
One reading decision is flagged in the file header: JSON-LD script contents are surfaced separately (`doc.jsonLd`) and are **not** counted as visible text, because the other reading would trivially satisfy both D5.3 and the definition of "corroborated".
|
|
74
|
-
|
|
75
|
-
### `src/parse-money.ts` — text → `Money`, or `null`
|
|
76
|
-
|
|
77
|
-
Real work, budgeted as such. `@rebilder/render-md`'s `money.ts` only _formats_ an already-structured `Money`; it cannot parse text, and the claim that it could hid the largest single piece of extraction work in the program.
|
|
78
|
-
|
|
79
|
-
**Fails closed.** Ambiguous input returns `null`, and a `null` price is simply not a fact — it costs coverage points and nothing else. A _wrong_ price would be published on a scanner page as truth and would make a parity check accuse a merchant of a divergence they did not commit. Supported: leading/trailing symbols, ISO code prefix/suffix, comma and period as both group and decimal separator (disambiguated by position and by the minor-unit width of the resolved currency), space/NBSP/apostrophe group separators, zero-decimal currencies, ranges and qualifiers (→ the lower bound, `qualified: true`, which excludes them from the D2.4 parity comparison).
|
|
80
|
-
|
|
81
|
-
`Money` is declared here rather than imported from `@rebilder/render-md`. The duplication is deliberate: `tooling/check-package-graph.ts` forbids that dependency edge in both directions, because the two packages point in opposite directions — gateway/render-md turn a source of truth into output; the scorer turns a response into a judgment.
|
|
82
|
-
|
|
83
|
-
### `src/score.ts` — the scoring engine
|
|
84
|
-
|
|
85
|
-
`score(evidence, ruleset = DEFAULT_RULESET) → ArsResult`. Twenty-two checks, seven dimensions, 100 points, one pure function.
|
|
15
|
+
Want a score without writing code? Run `npx rebilder check <url>`, or give your AI assistant the `@rebilder/mcp-server` tools.
|
|
86
16
|
|
|
87
|
-
|
|
17
|
+
## Score a live page
|
|
88
18
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
`recommend({ dimensions, score })` computes remedies over a dependency DAG. A recommendation's `pointsAvailable` counts only the checks not already claimed by a higher-ranked one, **plus** the checks it uniquely unlocks — D2.1 owns D2.3 and D2.4 while it is at zero, and only while it is at zero. Sums are capped per dimension, output order is rank order, and a recommendation may claim its unlocks only if it also closes something itself. Every number is a real gap between `earned` and `weight`; a page at 100 gets an empty list rather than a list of platitudes. `Σ pointsAvailable ≤ 100 − score` is asserted over the whole corpus.
|
|
108
|
-
|
|
109
|
-
### `src/index.ts` — the published surface
|
|
110
|
-
|
|
111
|
-
`score`, `recommend`, `bandFor`, the three hashes, `DEFAULT_RULESET`, `CHECK_META`, `DIMENSION_META`, `SUBPOINTS`, the profiles, `classify`, `parseMoneyText`, and every type in §3.9. **The tokenizer and the extractor are deliberately not exported.** They are the mechanism of the score, not its interface: they change whenever a real page teaches us something, which is what a MINOR is for, and exporting them would freeze the way ARS reads a page into the way ARS is used.
|
|
112
|
-
|
|
113
|
-
## Boundaries
|
|
114
|
-
|
|
115
|
-
```
|
|
116
|
-
cli ──┐
|
|
117
|
-
├──► agent-readability (. pure, ./probe server-only)
|
|
118
|
-
mcp ──┘
|
|
119
|
-
gateway ──X──► agent-readability (forbidden, BOTH directions)
|
|
120
|
-
agent-readability ──X──► gateway
|
|
121
|
-
rebilder-web ──► agent-readability (. only, never ./probe)
|
|
122
|
-
rebilder-api ──► agent-readability (. and ./probe)
|
|
123
|
-
```
|
|
124
|
-
|
|
125
|
-
Enforced by `tooling/check-package-graph.ts`, which also forbids deep imports: `.` and `./probe` are the entire public API. `rebilder-web` never makes an outbound fetch to an arbitrary host — the scan routes through `rebilder-api` — and that property is only real if the probe entry point cannot be imported there.
|
|
126
|
-
|
|
127
|
-
## Development
|
|
128
|
-
|
|
129
|
-
```bash
|
|
130
|
-
pnpm --filter @rebilder/agent-readability typecheck
|
|
131
|
-
pnpm --filter @rebilder/agent-readability lint # includes the purity rule
|
|
132
|
-
pnpm --filter @rebilder/agent-readability test # includes the conformance corpus
|
|
133
|
-
```
|
|
134
|
-
|
|
135
|
-
The root `ars:conform` alias named in design §3.10 is **not wired yet**; the corpus runs as part of this package's `test` script in the meantime.
|
|
136
|
-
|
|
137
|
-
## The conformance corpus
|
|
138
|
-
|
|
139
|
-
`conformance/NNN-name/` and its runner (`tests/conformance.test.ts`) are the language-neutral standard. The spec describes the score in prose; the corpus says what the prose means, in JSON, in a form a Go or Python implementation can consume without reading TypeScript.
|
|
140
|
-
|
|
141
|
-
```
|
|
142
|
-
conformance/NNN-name/
|
|
143
|
-
evidence.json the INPUT — an ArsEvidence bundle, response bodies included
|
|
144
|
-
expected.json SPEC-DERIVABLE fields only. A second implementation must reproduce this.
|
|
145
|
-
identity.json rulesetHash / corpusHash / evidenceHash — properties of OUR artifact.
|
|
146
|
-
A second implementation is explicitly NOT required to match them, and
|
|
147
|
-
that split is what makes independent certification possible at all.
|
|
148
|
-
README.md one paragraph on what the fixture proves
|
|
19
|
+
```ts
|
|
20
|
+
import { score } from '@rebilder/agent-readability'
|
|
21
|
+
import { probeStrict, strictPolicyForRun } from '@rebilder/agent-readability/probe'
|
|
22
|
+
|
|
23
|
+
// 1. Fetch the evidence: the page as an agent and as a browser, plus robots.txt,
|
|
24
|
+
// llms.txt, /.well-known/ucp and any Markdown copy the page links to.
|
|
25
|
+
// Public https hosts only.
|
|
26
|
+
const outcome = await probeStrict('https://example.com/products/trail-pack', strictPolicyForRun())
|
|
27
|
+
if (!outcome.ok) throw new Error(`${outcome.rejection}: ${outcome.detail}`)
|
|
28
|
+
|
|
29
|
+
// 2. Score it. Pure and deterministic: the same evidence always gives the same result.
|
|
30
|
+
const result = score(outcome.evidence)
|
|
31
|
+
|
|
32
|
+
console.log(result.grade, result.score) // e.g. 'B' 81; null for a page that could not be graded
|
|
33
|
+
for (const fix of result.recommendations) {
|
|
34
|
+
console.log(`+${fix.pointsAvailable} ${fix.title}`)
|
|
35
|
+
}
|
|
149
36
|
```
|
|
150
37
|
|
|
151
|
-
|
|
38
|
+
`score()` takes an `ArsEvidence` bundle and returns an `ArsResult`: the grade (`A` to `F`) and score (0 to 100), seven dimensions with every check and its evidence, whether each check is measured or heuristic, the page kind, the facts found, the context cost, and ranked recommendations whose points never add up to more than the page is missing.
|
|
152
39
|
|
|
153
|
-
|
|
40
|
+
## Entry points
|
|
154
41
|
|
|
155
|
-
|
|
42
|
+
| Import | What it is | Where it runs |
|
|
43
|
+
|---|---|---|
|
|
44
|
+
| `@rebilder/agent-readability` | `score()`, `recommend()`, the ruleset, the page-kind profiles, the classifier, the money parser and every published type | Anywhere, including browsers and edge runtimes |
|
|
45
|
+
| `@rebilder/agent-readability/probe` | `probeStrict()`: fetches evidence from a public https origin. DNS-validated and pinned against private addresses, 2 MiB streamed body cap, 3 redirects, 5 second timeout, robots.txt read first, a politeness limiter | Node.js servers |
|
|
46
|
+
| `@rebilder/agent-readability/probe/local` | `probeLocal()`: also allows private hosts and plain http, for checking your own staging site | A terminal only. It refuses to load unless the process was started with `--allow-private`, and always in a hosted runtime |
|
|
156
47
|
|
|
157
|
-
|
|
48
|
+
The probe identifies itself as `rebilder-ars/0.3 (+https://rebilder.com/bots)`, never as another company's crawler, and obeys a robots.txt group that disallows `rebilder-ars`.
|
|
158
49
|
|
|
159
|
-
|
|
160
|
-
ARS_CONFORM_UPDATE=1 pnpm --filter @rebilder/agent-readability test
|
|
161
|
-
```
|
|
50
|
+
## What the score measures
|
|
162
51
|
|
|
163
|
-
|
|
52
|
+
ARS measures format and retrievability. It does not measure whether the facts are true, or whether any assistant cites the page.
|
|
164
53
|
|
|
165
|
-
|
|
54
|
+
- **Fixed weights, 100 points, the same for every page kind.** What varies by kind (product, place, service, article, FAQ, collection, document) is which facts count and how many bytes a page of that kind reasonably costs.
|
|
55
|
+
- **63 points are measured and 37 are heuristic**, and every check reports which it is.
|
|
56
|
+
- **Two outcomes are not grades.** `outcome.kind` is `opt-out` when the site's robots.txt deliberately opts out, which is a choice, not a failure. It is `unscored` when there was nothing to grade: blocked at the edge, unreachable, a non-2xx response, too many redirects, robots.txt unavailable or disallowing the scanner, or incomplete evidence. Neither is an F.
|
|
57
|
+
- **Blocking training crawlers while allowing assistants scores the same as a fully open site.**
|
|
58
|
+
- **Reproducible.** For a given `evidenceHash`, `rulesetHash` and `corpusHash`, `score()` returns a byte-identical result in any conforming implementation. A number without those three hashes is not an ARS score.
|
|
166
59
|
|
|
167
|
-
|
|
60
|
+
The specification, the scoring bands and the conformance corpus are published at [rebilder.com/spec/ars](https://rebilder.com/spec/ars), so the score can be implemented in any language. Page-kind fact lists are also published on their own as [`@rebilder/profiles`](https://www.npmjs.com/package/@rebilder/profiles).
|
|
168
61
|
|
|
169
|
-
|
|
62
|
+
## Versioning
|
|
170
63
|
|
|
171
|
-
|
|
64
|
+
A patch release never changes a score. If the ruleset, the conformance corpus or the page-kind profiles change, the release is at least a minor version. `ARS_SPEC_VERSION` is the specification version and moves on its own schedule.
|
|
172
65
|
|
|
173
|
-
|
|
174
|
-
| ------------------------------ | ------------------------------------------------------------------------------------------------------------------- |
|
|
175
|
-
| `050-byte-identical-replay` | **directory** (+ corpus-wide replay assertion in the runner, and the volatile-header assertions in `score.test.ts`) |
|
|
176
|
-
| `051-multi-value-headers` | **directory** |
|
|
177
|
-
| `052-weights-sum-100…` | test |
|
|
178
|
-
| `053-heuristic-controlled…` | test |
|
|
179
|
-
| `054-band-boundaries` | test |
|
|
180
|
-
| `055-no-network` | test (asserts the ESLint gate, which is the real check, plus a source scan) |
|
|
181
|
-
| `056-no-clock` | test (same shape) |
|
|
182
|
-
| `057-tokenizer-fuzz` | test (seeded LCG — a fuzz corpus that differs between machines teaches nobody anything) |
|
|
183
|
-
| `058-profiles-total-and-typed` | test |
|
|
184
|
-
| `059-money-parser` | test |
|
|
66
|
+
Release notes are in `CHANGELOG.md` in this package. Licensed under Apache-2.0. Source, issues and pull requests: [GitHub](https://github.com/rebilder/rebilder/tree/main/packages/agent-readability).
|