Installer · ADR-0585

token-header

violates ADR-0585

Sends GITHUB_TOKEN as an Authorization header, for the authenticated rate limit.

Harness193 / 1
Exit code1
Linked checks3
Failing#64

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.

distribution/install.sh+5 -0
@@ -135,7 +135,12 @@ trap 'rm -rf "$tmp"; [ -z "$tmp_out" ] || rm -f "$tmp_out"' EXIT
135# dies with its own sentence around that cause.
136fetch_url() { # $1 = URL, $2 = destination
137 fetch_error=""
138+ # Send GITHUB_TOKEN when set, so users behind shared IPs get the
139+ # 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
DecisionProposed

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.

Checks guarding this decisionobserved in the replay
CheckKindWhat it assertsResult
#7 static No GitHub API endpoint in install.shdrift guard: install.sh consults no GitHub API endpoint (ADR-0585) ok
#64 runtime No Authorization header when GITHUB_TOKEN is settoken set: no Authorization header anywhere (GITHUB_TOKEN never rides a request) not ok
#193 runtime No case made a GitHub API requestno case made a GitHub API request (ADR-0585) ok
Graph
patchdecisioncheck okcheck not okscanned
token-headertoken-headerdistribution/install.shdistribution/install.shcommit 5ac38808 fix(installer): download release assets over the direct route, no GitHub API (LABS-1482, ADR-0585)5ac38808ADR-0585 The installer downloads release assets over the direct route (Proposed)ADR-0585The installer downloads rel…ADR-0115 Sign release checksums with SSHSIG for offline install and upgrade verification (Accepted), scannedADR-0115ADR-0250 Release discovery from a static releases.json on the website (Accepted), scannedADR-0250ADR-0431 Extension distribution - the first-party channel, the install verbs, and trust tiers (LABS-469) (Proposed), scannedADR-0431ADR-0457 The signed release manifest carries the release version (Proposed), scannedADR-0457ADR-0586 Windows installs through a PowerShell installer (Proposed), scannedADR-0586#7 drift guard: install.sh consults no GitHub API endpoint (ADR-0585) (ok)#7#64 token set: no Authorization header anywhere (GITHUB_TOKEN never rides a request) (not ok)#64#193 no case made a GitHub API request (ADR-0585) (ok)#193

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
Decision chain
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
Every cited decision
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

terminal
uv run patch-precedent explain fixtures/installer/token-header.patch