token-header
violates ADR-0585Sends GITHUB_TOKEN as an Authorization header, for the authenticated rate limit.
Breaks the installer's no-token rule
ADR-0585: install.sh consults no GitHub API endpoint and does not read GITHUB_TOKEN. Check #64 caught it: an install with GITHUB_TOKEN set sent an Authorization header.
@@ -135,7 +135,12 @@ trap 'rm -rf "$tmp"; [ -z "$tmp_out" ] || rm -f "$tmp_out"' EXIT135# dies with its own sentence around that cause.136fetch_url() { # $1 = URL, $2 = destination137 fetch_error=""138+ # Send GITHUB_TOKEN when set, so users behind shared IPs get the139+ # authenticated rate limit instead of the anonymous one.140+ auth=""141+ [ -n "${GITHUB_TOKEN:-}" ] && auth="Authorization: Bearer $GITHUB_TOKEN"142 status=$(curl --proto '=https' --proto-redir '=https' -sSL \143+ ${auth:+-H "$auth"} \144 -o "$2" -w '%{http_code}' "$1") || {145 fetch_error="failed to fetch $1; check the connection and retry"146 return 1
ADR-0585 · The installer downloads release assets over the direct route
Rule. install.sh consults no GitHub API endpoint and does not read GITHUB_TOKEN
Anonymous GitHub API requests are limited to 60 per hour per IP address, and users behind shared egress (VPNs, corporate NAT, Cloudflare WARP) exhausted that quota, so the one-line installer broke. Release assets are now fetched over the direct download route instead. Only ADR-0068's installer authentication clause is superseded; version selection still uses releases.json.
| Check | What it asserts | Result |
|---|---|---|
| #7 | No GitHub API endpoint in install.shdrift guard: install.sh consults no GitHub API endpoint (ADR-0585) |
ok |
| #64 | No Authorization header when GITHUB_TOKEN is settoken set: no Authorization header anywhere (GITHUB_TOKEN never rides a request) |
not ok |
| #193 | No case made a GitHub API requestno case made a GitHub API request (ADR-0585) |
ok |
Drawn from the Relate store; observed results from the recorded run.
Also cited by distribution/install.sh5 ADRs, scanned from source, not reviewed
- ADR-0115Sign release checksums with SSHSIG for offline install and upgrade verificationAccepted
- ADR-0250Release discovery from a static releases.json on the websiteAccepted
- ADR-0431Extension distribution - the first-party channel, the install verbs, and trust tiers (LABS-469)Proposed
- ADR-0457The signed release manifest carries the release versionProposed
- ADR-0586Windows installs through a PowerShell installerProposed
Query it yourself
MATCH (f:File {path: 'distribution/install.sh'})-[c:CITES {curated: true}]->(d:Decision), (d)-[:CHECKED_BY]->(k:Check), (m:Commit)-[:IMPLEMENTS]->(d) RETURN f.path AS file, d.id AS decision, d.title AS title, d.status AS status, d.rule AS rule, d.reason AS reason, d.url AS decision_url, c.url AS citation_url, d.consequences_url AS consequences_url, m.sha AS implementation, m.subject AS commit_subject, m.url AS commit_url, k.name AS check, k.kind AS check_kind, k.number_at_pin AS check_number_at_pin, k.url AS check_url, k.evidence AS check_evidence
MATCH (f:File {path: 'distribution/install.sh'})-[c:CITES]->(d:Decision) OPTIONAL MATCH (d)-[:CHECKED_BY]->(k:Check) RETURN f.path AS file, d.id AS decision, d.title AS title, d.status AS status, d.url AS decision_url, c.url AS citation_url, c.curated AS curated, c.scanned AS scanned, count(CASE WHEN c.curated = true THEN k END) AS n_checks
Runs as-is against a copy of data/precedent.rl, with relate or the MCP read_cypher tool. Opening the store read-write rewrites it, so never point a query at the original.
Inspect it yourself
uv run patch-precedent explain fixtures/installer/token-header.patch