release-lookup
violates ADR-0585Asks the GitHub API about the release when a download fails.
Breaks the installer's no-API rule
ADR-0585: install.sh consults no GitHub API endpoint and does not read GITHUB_TOKEN. Checks #7 and #193 caught it: install.sh contains a GitHub API URL, and an install made a request to it.
@@ -151,7 +151,12 @@ fetch_url() { # $1 = URL, $2 = destination151152# One release asset over the direct route.153direct_get() { # $1 = asset name, $2 = destination154- fetch_url "$download_base/$tag/$1" "$2" || die "$fetch_error"154+ fetch_url "$download_base/$tag/$1" "$2" && return 0155+ asset_error=$fetch_error156+ if fetch_url "https://api.github.com/repos/relatedb/relate/releases/tags/$tag" "$tmp/release-info.json"; then157+ echo "Release $tag exists. Check the asset name: $1" >&2158+ fi159+ die "$asset_error"160}161162# The one https:// gate both override seams take, before any request.
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) |
not ok |
| #64 | No Authorization header when GITHUB_TOKEN is settoken set: no Authorization header anywhere (GITHUB_TOKEN never rides a request) |
ok |
| #193 | No case made a GitHub API requestno case made a GitHub API request (ADR-0585) |
not 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/release-lookup.patch