5 Erosion and Ownership
A public record that cannot be found is not a public record. A footnote whose URL returns a 404 is a claim without a witness. A federal time series that stops updating is a question nobody will be able to answer in ten years. Keegan (2026) names erosion as the third pressure on public knowledge, the one that works by subtraction: the breakdown of the institutions and infrastructures that once made sustained, independent observation possible. Chapter 3 asked who can observe? Chapter 4 asked who must answer? This chapter asks what can be remembered?
The value that answers erosion is ownership, the most misread word in the framework. Keegan defines it as collective, accountable governance over the preservation, access, and use of public-relevant data, not private property or exclusive control: stewardship obligations (retention, migration, custody, succession) held under collective governance that can outlast shifting incentives, such as the grant that ends, the administration that changes, or the platform that rewrites its terms.
Keegan’s Case 3, “Sustaining archives in the Anthropocene,” shows why the pairing matters. Climate disruption stresses the systems that produce durable public memory (statistical agencies, monitoring networks, scientific repositories) through physical shocks such as heat, flood, and fire, and through governance volatility: under-maintenance, budget cuts, portal shutdowns, vendor churn (Mazurczyk et al. 2018; Tansey 2015). Climate politics makes memory adversarial: a decision to stop collecting or stop publishing can quietly remove the evidence needed to validate a model or assign responsibility for harm. Environmental injustice often becomes legible only decades later, and if the observational record has rotted, future publics will have little basis for claims to repair (Ghaddar 2016; Robinson-Sweet 2018). Keegan’s response is a federated continuity backbone: libraries, repositories, agencies, community archives, and watchdog partners holding redundant copies under explicit, auditable commitments, so that no single point of failure becomes a single point of erasure.
The first half documents erosion and builds a link-rot audit that runs on any government site. A bridge asks how ownership answers erosion and where stewardship turns into control. The second half builds ownership as practice: tiered access, a threat model, and a stewardship plan. The chapter relies on the installed base from Chapter 2, especially two of its six capacities: continuity, the ability to return to a source, and authority, the standing of a record to be accepted as the record.
5.1 The pressure: what can be remembered?
Erosion is rarely dramatic. An agency reorganizes a website and the old paths return 404s. A program loses its appropriation and its dashboard goes dark. A data product is “retired” in a one-paragraph notice. Each looks like a hiccup; together they are a public record thinning faster than anyone can thicken it. Plantin, Lagoze, Edwards, and Sandvig (2016) argue that platforms and public infrastructures run on different clocks, and Karasti and Blomberg (2018) name the mismatch: project time versus infrastructure time. Projects end; infrastructures are supposed not to. When the public record lives inside projects, it ends with them.
5.1.1 Federal memory under transition
The federal government is the largest producer of public data in the United States, the source that city, county, and state analyses lean on for denominators (the Census), baselines (NOAA climate normals), and exposure estimates (EPA monitoring). It is also the level most exposed to wholesale change at each presidential transition. The anchor case is the volunteer response to federal data removals. After the November 2016 election, a group of academics and nonprofit staff formed the Environmental Data and Governance Initiative (EDGI, Environmental Data and Governance Initiative 2024) to monitor changes to federal environmental websites, and librarians and scientists organized “data rescue” events under the DataRefuge banner, starting at the University of Pennsylvania, to copy federal climate and environmental datasets before they could disappear. EDGI’s website-monitoring reports went on to document the removal and rewording of climate-change content across agencies, and the same monitoring infrastructure was ready again for the transitions of 2021 and 2025.
The 2025 transition produced a sharper version of the same pattern. Health agencies took down web pages and datasets in early February in response to executive orders, and a federal court later ordered many of them restored. EPA’s EJScreen environmental-justice mapping tool went offline, and a coalition of nonprofits and university groups republished a copy. Harvard Law School’s Library Innovation Lab mirrored the data.gov catalog. NOAA announced that it would stop updating its Billion-Dollar Weather and Climate Disasters database.
Two lessons follow. First, volunteer preservation works, partially: copies made in time survive. Second, a copy is not a record. A mirror can preserve the last release of a dataset; it cannot produce the next one. When a series stops being collected, the Wayback Machine holds a tombstone, not a continuation. And a mirror run by volunteers has no statutory authority to say that its copy is the authoritative one, which matters the moment someone challenges it in a rulemaking or a courtroom.
Federal memory also has a local face. Boulder hosts NOAA’s David Skaggs Research Center, NIST’s Boulder laboratories, NCAR, and the National Snow and Ice Data Center. NOAA’s Global Monitoring Laboratory, headquartered in Boulder, runs the Mauna Loa Observatory, where a carbon dioxide record that began in 1958 has been kept running for nearly seventy years: the textbook case of infrastructure time, valuable almost entirely because nobody let it lapse. Retirements announced in Washington land in places like this as layoffs and discontinued data products.
5.1.2 The mundane politics of retention
It is tempting to tell erosion stories as conspiracies. Sometimes they are. More often they are what happens when nobody’s job description includes long-term stewardship. Gaffney and Matias (2018) showed that a widely used Reddit corpus was silently missing data in patterned ways, so that a body of published work rested on samples nobody had checked; when Reddit later closed its API (Chapter 3), years of such corpora became unciteable. Acker and Kreisberg (2019) describe the archival version: classical archival theory assumes a record sits still long enough to be taken into custody, and the contemporary record does not. Denton and colleagues (2021) show that when ImageNet was questioned, the record of how it was made had evaporated faster than the dataset. Withdrawals can be the right call and still erode the record: LAION-5B was taken offline in late 2023 after researchers documented child sexual abuse material inside it (Thiel 2023), and every paper that trained on it now cites a dataset the reader cannot audit.
The point is not that every artifact should live forever. It is that when the public loses the ability to return to a source, it loses the ability to audit what was built on it. Erosion is not a failure of tools. It is a failure of incentives and mandates.
5.1.3 Tutorial: a link-rot audit with Wayback recovery
You will pull federal catalog records, test every resource link, recover what you can from the Wayback Machine, run the same audit on a county site, and write a datasheet for a dataset you did not make. Nothing in the classifier is federal.
5.1.3.1 Step 1: pull catalog records from data.gov
Data.gov runs on CKAN, an open-source catalog whose API (https://docs.ckan.org/en/latest/api/) needs no key. Each catalog record (“package”) lists resources whose URLs point back to the agency’s own server. That indirection is the point: the catalog record often outlives the file it points to.
import pandas as pd
import requests
from urllib.parse import urlparse
HEADERS = {"User-Agent": "PublicInterestDataScience/0.1 (your-email@example.edu)"}
CKAN = "https://catalog.data.gov/api/3/action"
def federal_records(query, org=None, rows=25):
"""Return one row per resource for data.gov packages matching a query."""
params = {"q": query, "rows": rows}
if org: # slug from the catalog URL, e.g. catalog.data.gov/organization/<slug>
params["fq"] = f"organization:{org}"
r = requests.get(f"{CKAN}/package_search", params=params,
headers=HEADERS, timeout=30)
r.raise_for_status()
rows_out = []
for pkg in r.json()["result"]["results"]:
for res in pkg.get("resources", []):
rows_out.append({
"package": pkg["name"],
"agency": (pkg.get("organization") or {}).get("title"),
"metadata_modified": pkg.get("metadata_modified"),
"url": res.get("url"),
})
return pd.DataFrame(rows_out)
records = federal_records("air quality monitoring", org="epa-gov")
records.shape
# => (n_resources, 4); the count changes from week to week5.1.3.2 Step 2: classify every link
A 404 is obvious rot. A redirect to a generic landing page is worse and more common: the link resolves, returns a 200, and gives you nothing.
def classify_url(url, timeout=15):
try:
r = requests.get(url, headers=HEADERS, timeout=timeout,
allow_redirects=True, stream=True)
except requests.exceptions.Timeout:
return {"url": url, "status": None, "final_url": None, "category": "timeout"}
except requests.exceptions.ConnectionError:
return {"url": url, "status": None, "final_url": None, "category": "dns_fail"}
same_host = urlparse(url).netloc == urlparse(r.url).netloc
if r.status_code == 200 and r.url == url:
cat = "ok"
elif r.status_code == 200:
cat = "redirect_same_host" if same_host else "redirect_offsite"
elif 400 <= r.status_code < 500:
cat = "client_error"
elif r.status_code >= 500:
cat = "server_error"
else:
cat = "other"
r.close() # stream=True: do not download multi-gigabyte files
return {"url": url, "status": r.status_code, "final_url": r.url, "category": cat}
urls = records["url"].dropna().unique()[:50]
report = pd.DataFrame([classify_url(u) for u in urls])
report.groupby("category").size()
# => ok 31
# redirect_same_host 8
# redirect_offsite 3
# client_error 6
# timeout 2
# (illustrative; your distribution will differ)Look at redirect_offsite first. A federal URL that now redirects to a different agency or topic technically resolves and practically does not.
Status codes lie, and government sites lie in specific ways. A content management system may serve a “soft 404” with HTTP 200. A firewall may answer your script with a block page that your browser never sees. A retired dataset’s landing page may return 200 with a one-line notice that the product is “no longer supported.” Data.gov adds its own trap: catalog records are harvested from agencies, so a record can persist for months after the file it describes is gone, and its metadata_modified date reflects the last harvest, not the last time anyone checked the data. Finally, the Wayback Machine archives landing pages far more reliably than large data files, so the most common recovery is a beautifully preserved landing page whose download link points to nothing. Open a sample of every category in a browser before you report a number.
5.1.3.3 Step 3: recover and date the rot
The Wayback Machine’s Availability API (documented at https://archive.org/help/wayback_api.php) returns the closest capture to a timestamp. Its CDX API returns the full capture history, which lets you date when a page changed.
def find_capture(url, timestamp=None):
params = {"url": url}
if timestamp:
params["timestamp"] = timestamp # YYYYMMDD
r = requests.get("https://archive.org/wayback/available",
params=params, headers=HEADERS, timeout=30)
snap = r.json().get("archived_snapshots", {}).get("closest")
if not snap or not snap.get("available"):
return {"url": url, "wayback_url": None, "captured_at": None}
return {"url": url, "wayback_url": snap["url"], "captured_at": snap["timestamp"]}
def capture_history(url):
"""One row per capture whose content differs from the previous capture."""
params = {"url": url, "output": "json",
"fl": "timestamp,statuscode,digest", "collapse": "digest"}
r = requests.get("https://web.archive.org/cdx/search/cdx",
params=params, headers=HEADERS, timeout=60)
rows = r.json() if r.text.strip() else []
if len(rows) < 2:
return pd.DataFrame(columns=["timestamp", "statuscode", "digest"])
return pd.DataFrame(rows[1:], columns=rows[0])
broken = report[report["category"].isin(
["client_error", "server_error", "timeout", "dns_fail", "redirect_offsite"])]
recovered = pd.DataFrame([find_capture(u) for u in broken["url"]])
history = capture_history(broken["url"].iloc[0])
history["statuscode"].value_counts()
# => 200 14
# 404 3
# 301 1The last 200 before the first 404 brackets the date of loss. That bracket is evidence you can set beside a Federal Register notice, a budget document, or an agency announcement. If the original is gone, cite the Wayback capture with its timestamp. If the page still exists, request a capture through https://web.archive.org/save/<url> so the next auditor has a baseline.
5.1.3.4 Step 4: the same audit on a county site
Most government sites do not hand you a list of URLs, so you collect the links from a page yourself. A county site is a good target, because so much planning happens there: land use dockets, comprehensive plans, and the maps that Planning Commission and Board of County Commissioners decisions cite (Chapter 9 develops that lineage, Chapter 18 the comments residents file). A comment that cites a dead link to the county’s own plan is a weak comment.
from html.parser import HTMLParser
from urllib.parse import urljoin
class LinkCollector(HTMLParser):
"""Collect absolute http(s) URLs from <a href> tags."""
def __init__(self, base):
super().__init__()
self.base, self.links = base, set()
def handle_starttag(self, tag, attrs):
href = dict(attrs).get("href")
if tag == "a" and href:
url = urljoin(self.base, href)
if urlparse(url).scheme in ("http", "https"): # drops mailto:, tel:, javascript:
self.links.add(url)
def links_on_page(url):
r = requests.get(url, headers=HEADERS, timeout=30)
r.raise_for_status()
collector = LinkCollector(url)
collector.feed(r.text)
return sorted(collector.links)
COMP_PLAN = ("https://bouldercounty.gov/property-and-land/land-use/planning/"
"boulder-county-comprehensive-plan/")
county_links = links_on_page(COMP_PLAN)
county_report = pd.DataFrame([classify_url(u) for u in county_links])
county_report.groupby("category").size()
# => client_error 1
# ok 208
# redirect_offsite 3
# redirect_same_host 9
# (a run in early October 2026; the page changes)Boulder County’s plan page is in good health: in that run, all 19 linked PDFs (the plan and its maps, served from a separate assets.bouldercounty.gov host) returned 200. Read the flags before you count them. Of the nine redirect_same_host rows, four are a missing trailing slash and three are login walls; the other two are pages the county renamed, which is worth tracking. The three redirect_offsite rows are a dropped www., a map link shortener, and an old domain forwarding to a new one. The lone client_error is a social media site answering a script with HTTP 429, “too many requests”: rate limiting, not rot. A one-time snapshot of a well-kept page mostly measures your classifier’s false alarms. County erosion shows up over time, so pair Step 4 with Step 3: compare the documents the plan page linked five or ten years ago with those it links now, and ask whether superseded plans, maps, and docket files are reachable anywhere. The page also links to a vendor-hosted meetings portal; where a county’s records live on a vendor’s domain, a contract change is an erosion event.
5.1.3.5 Step 5: a datasheet as a retention practice
Chapter 3 introduces the datasheet (Gebru et al. 2021) as documentation for a file you built, in seven sections: motivation, composition, collection process, preprocessing, uses, distribution, and maintenance. Writing one for a federal dataset you did not make is harder, because you must reconstruct answers from documentation you did not write. It is also a retention practice: a datasheet written today records what the dataset was, who kept it, and under what authority, in case the dataset or its documentation disappears tomorrow. Extend the maintenance section with fields that matter for erosion:
MAINTENANCE_EXTENSION = {
"mandate": "", # statute or regulation requiring collection, or "discretionary"
"steward_of_record": "", # office and program, not just the agency
"collection_status": "", # active, paused, discontinued (with notice date)
"access_status": "", # from your Step 2 audit
"known_mirrors": [], # who else holds a copy, since when, with what checksum
"last_verified_capture": "", # Wayback timestamp you checked by eye
"discontinuation_notice": "", # URL or Federal Register citation, if any
}The mandate field matters most. A dataset a statute requires erodes differently from one an agency keeps by choice. EPA’s Toxics Release Inventory (US Environmental Protection Agency 2024) exists because the Emergency Planning and Community Right-to-Know Act of 1986 requires facilities to report releases; the decennial census exists because the Constitution requires it. A dashboard built on agency initiative can be retired by the agency that built it. When the field reads “discretionary,” your stewardship plan has to supply the continuity the law does not.
5.1.4 What the audit can and cannot show
The audit measures erosion of access. It cannot, on its own, measure erosion of collection: a series whose landing page works but which stopped adding observations. For that, compare the most recent observation date against the expected update cadence. A monthly series whose last observation is eight months old has eroded even though every link returns 200.
The audit also cannot tell you who decided. A link went dead because someone chose to reorganize, retire, or defund. Who was in the room for that decision, and who was not, is the planning lineage’s question (Chapter 9).
5.2 The bridge: how ownership answers erosion, and where stewardship becomes control
The audit finds losses. It also finds an absence: usually, nobody held the obligation to keep the thing. Ownership answers erosion by assigning that obligation, writing it down, and making it survive the departure of whoever wrote it, which is why Keegan treats ownership as governance rather than storage. A hard drive of mirrored files is a copy. A copy with a named steward, a fixity manifest, a succession rule, and a public account of who may use it is the beginning of a record.
Federal data already has a stewardship skeleton. The Federal Records Act requires agencies to preserve records and to destroy them only under disposition schedules approved by the National Archives and Records Administration (its records management guidance is at https://www.archives.gov/records-mgmt). The OPEN Government Data Act, Title II of the Foundations for Evidence-Based Policymaking Act of 2018, requires agencies to maintain data inventories and to publish data in open formats by default.
Notice where it ends. Retention law governs whether a record is destroyed, not whether the public can reach it. A dataset can vanish from a public website while the records remain in agency custody, lawfully retained and practically inaccessible. That is the gap volunteer mirrors fill, and why their stewardship has to be designed rather than improvised.
When you archive a source at the moment of citation, you exercise a kind of ownership the law does not require: not of the page, but of responsibility for the evidence your argument rests on. The complication erosion adds: a volunteer mirror advances continuity but not authority. The copy survives, but nobody is obliged to accept it as the record. An audit that records checksums, capture timestamps, and the chain of custody from agency server to mirror is how a public-interest copy earns enough authority to be cited in a comment, a report, or a brief. Ownership, in Keegan’s sense, is the work of turning a surviving copy into an accountable one.
Stewardship has a shadow. Whoever holds the copy decides who may see it. The tiers that protect people named in a dataset can become a new enclosure (Chapter 3), with “responsible access” as the reason nobody else gets in. Keegan’s Anthropocene case names this as the co-optation critique: “trust” can be reputational cover, and partnerships can produce enclosure-by-partnership or state-centered control. The response is to make the custodian answerable: written, versioned, challengeable decision rules; independence from the parties whose conduct the record documents; and escalation paths when someone alleges exclusion, manipulation, or disappearance.
5.3 The value: ownership as stewardship
A commercial data broker will tell you, if pressed, that it owns the nine-hundred-variable dossier it sells about you, assembled from loyalty programs, voter files, credit header data, and the exhaust of a hundred free apps. Ownership there means rights to exclude, alienate, and monetize, backed by contract law. Public-interest ownership is a different word.
5.3.1 Two senses of the word
Ownership-as-property treats data as an asset with a rights-holder who can license, sell, or destroy it, in the vocabulary of chain of title and assignment. The broker sits here. So, uncomfortably, does a good deal of “open” infrastructure: a university research dataset may be open to collaborators while the technology transfer office treats it as an asset.
Ownership-as-stewardship treats data as an ongoing obligation of maintenance, documentation, remediation, and succession, closer to trusteeship: duties of care and loyalty that cannot be dropped without arranging for someone else to take them up. A records manager is a steward. So is the volunteer who keeps a mirror of a retired federal dataset checksummed and online. You do not own a public dataset the way a broker owns a dossier. You own it the way a county archivist owns the property records: accountable for their condition, usability, and survival, and unable to sell them off when the grant runs out.
Most public-interest infrastructure runs on labor that presumes stewardship inside institutions that default to property. Karasti and Blomberg (2018) found that long-running scientific infrastructures work until the person doing the work moves on, then fail in ways that take years to surface. Schwartz and Cook (2002) made the argument for archives decades ago: what gets kept, and who decides, are political choices all the way down. Stoler (2009), reading colonial Dutch archives, showed the archive to be an instrument of power whose silences must be read as carefully as its records.
5.3.2 Data trusts, briefly
One response to the mismatch is the data trust: a legal structure in which a trustee holds rights over data on behalf of beneficiaries, with fiduciary duties enforceable in court. The Ada Lovelace Institute’s review (Ada Lovelace Institute 2021) found trusts more proposed than operational, but the proposal forces the right questions: who benefits, what the trustee may do, and what remedy exists for breach. Delacroix and Lawrence (2019) argue for bottom-up trusts in which data subjects themselves are the beneficiary class. The tutorial below builds the minimum you can maintain before a trust exists: tiered access, a threat model, and a stewardship plan.
5.3.3 Indigenous data sovereignty
“Stewardship with duties to beneficiaries” presumes the beneficiaries delegated anything. For many datasets they did not. Te Mana Raraunga (Te Mana Raraunga 2018), the Māori Data Sovereignty Network in Aotearoa New Zealand, argues that Māori data is not a resource for a non-Māori institution to steward on Māori behalf; it belongs to Māori, under Māori governance, as sovereignty rather than trust. In Canada, the First Nations principles of OCAP (ownership, control, access, and possession) (First Nations Information Governance Centre, n.d.) assert that First Nations collectively own their data, control how it is collected and used, decide who may access it, and should physically possess it. OCAP uses the word “ownership” deliberately, and it does not mean stewardship by someone else. The CARE Principles (Carroll et al. 2020) (collective benefit, authority to control, responsibility, ethics) extend the argument to Indigenous data governance generally.
In the United States, federal agencies hold large amounts of data about tribal nations and their citizens, and the US Indigenous Data Sovereignty Network (United States Indigenous Data Sovereignty Network 2024) has pressed the same claims. The tools below assume a public that has delegated stewardship to an institution. They do not work when a people has delegated nothing; Chapter 13 takes up cases where the right answer is refusal.
5.3.4 Tutorial: tiering a federal mirror
Chapter 3 builds openness on a city campaign finance table; federal campaign finance has the same shape. The Federal Election Commission publishes itemized individual contributions with each donor’s name, city, state, ZIP code, employer, and occupation, and the OpenFEC API also returns street addresses for many itemized receipts. All of it is legally public, but legal publicness is not safe republishability: name plus street address plus employer enables harassment well beyond what disclosure law contemplated. The statute knows this. The Federal Election Campaign Act bars anyone from selling or using information copied from these reports to solicit contributions or for commercial purposes (52 U.S.C. § 30111(a)(4)), a use restriction written into the law that makes the data public.
Suppose you mirror Colorado contributions for researchers and reporters, in case the FEC’s interfaces change. You will build three tiers over one SQLite file:
- Public tier. Aggregates only, by committee and ZIP code. No individual rows.
- Researcher tier. Individual rows without street address. Token-gated and logged per query, for credentialed journalists and researchers.
- Restricted tier. Full rows including address. Case by case, granted by a named human, logged in a public register.
5.3.4.1 Pull, load, and define the views
import os, sqlite3, requests, pandas as pd
KEY = os.environ.get("FEC_API_KEY", "DEMO_KEY") # api.data.gov key; DEMO_KEY is rate-limited
params = {"api_key": KEY, "contributor_state": "CO",
"two_year_transaction_period": 2024, "per_page": 100}
r = requests.get("https://api.open.fec.gov/v1/schedules/schedule_a/",
params=params, timeout=60)
rows = r.json()["results"] # one page; follow "last_indexes" to paginate
cols = ["sub_id", "committee_id", "contributor_name", "contributor_street_1",
"contributor_city", "contributor_zip", "contributor_employer",
"contributor_occupation", "contribution_receipt_amount",
"contribution_receipt_date"]
df = pd.DataFrame(rows).reindex(columns=cols)
df["zip5"] = df["contributor_zip"].str[:5]
con = sqlite3.connect("fec_co_mirror.db")
df.to_sql("filings_raw", con, if_exists="replace", index=False)
len(df)
# => 100-- Public tier: aggregates with a k-anonymity floor.
CREATE VIEW public_totals_by_zip AS
SELECT zip5, COUNT(*) AS n, SUM(contribution_receipt_amount) AS total
FROM filings_raw GROUP BY zip5 HAVING n >= 5;
-- Researcher tier: individual rows, no street address.
CREATE VIEW researcher_filings AS
SELECT sub_id, committee_id, contributor_name, contributor_city, zip5,
contributor_employer, contributor_occupation,
contribution_receipt_amount, contribution_receipt_date
FROM filings_raw;
-- Restricted tier: filings_raw itself, gated at the application layer.The public view enforces a floor of five contributions per ZIP so an aggregate cannot single out a lone donor. The researcher view drops the street address but keeps employer and occupation, which are newsworthy in ways addresses rarely are. SQLite has no per-row permissions, so the restricted tier is enforced in application code.
5.3.4.2 A thin gate with an audit log
from flask import Flask, request, abort, jsonify
import hmac, json, datetime
app = Flask(__name__)
DB, AUDIT_LOG = "fec_co_mirror.db", "access_audit.jsonl"
TOKEN = os.environ["MIRROR_RESEARCHER_TOKEN"]
def log_query(tier, user, query):
entry = {"ts": datetime.datetime.now(datetime.timezone.utc).isoformat(),
"tier": tier, "user": user, "query": query}
with open(AUDIT_LOG, "a") as f:
f.write(json.dumps(entry) + "\n")
@app.route("/public/zip")
def public_zip():
rows = sqlite3.connect(DB).execute("SELECT * FROM public_totals_by_zip").fetchall()
log_query("public", "anonymous", "totals_by_zip")
return jsonify(rows)
@app.route("/researcher/query", methods=["POST"])
def researcher_query():
token = request.headers.get("X-Research-Token", "")
if not hmac.compare_digest(token, TOKEN):
abort(401)
q = request.json.get("query", "")
if not q.strip().lower().startswith("select") or "filings_raw" in q.lower():
abort(403)
rows = sqlite3.connect(DB).execute(q).fetchall()
log_query("researcher", request.headers.get("X-Research-User", "unknown"), q)
return jsonify(rows)
# => GET /public/zip returns [["80302", 41, 12650.0], ...] (illustrative)This is not a hardened system; a determined attacker can evade two string checks. The point is to make each tier’s permissions legible to a reviewer in one file.
Environment-variable credentials are not security. They are a social contract with your deployment pipeline, and the pipeline leaks them in ways tutorials rarely mention. A token printed to a container log because someone left DEBUG=true on is not a secret anymore. A token captured in a stack trace that an error-tracking service forwarded to a third party is not a secret either. A token committed in a .env file two refactors ago and never rotated is, for practical purposes, plaintext. Rotate on a schedule, not only after incidents, and check what your logging captures on exception. Note also that the audit log you just built is itself sensitive: it records who researched whom, and it can be subpoenaed.
5.3.4.3 Decision rules and a threat model
The code enforces tiers. The decision rules say who belongs in which tier, and they will be contested, so keep them in a versioned document. That is also the answer to stewardship as control: rules a reader can see are rules a reader can challenge.
# access_policy.yaml
dataset: fec_colorado_individual_contributions_mirror
tiers:
public: {contents: "aggregates, k >= 5", auth: none}
researcher: {audience: [credentialed journalists, IRB-approved researchers],
contents: "rows without street address",
auth: "named token", logging: "per query, 12 months"}
restricted: {audience: case-by-case, auth: "two stewards plus public register"}
revocation: {grounds: [misuse, commercial or solicitation use], appeal: full steward group}A threat model fits on a page: assets (donor rows, addresses, access logs, tokens); actors (a harasser seeking a donor’s address, a broker enriching dossiers in violation of the sale-or-use rule, a careless researcher, a party compelling disclosure of the access log); attack paths (token leak, SQL that evades the views, re-identification from small-ZIP aggregates, social engineering a steward); mitigations; and the gaps you have not closed (no rate limiting, no differential privacy). OWASP’s “Threat Modeling Cheat Sheet” (https://cheatsheetseries.owasp.org/cheatsheets/Threat_Modeling_Cheat_Sheet.html) is a serviceable template. It turns “we took security seriously” into a list someone can check.
5.3.5 A stewardship plan in YAML
Every volunteer mirror lives or dies by its stewardship plan: retention, migration, custody, and wind-down. A fixity manifest is the technical core, because checksums prove a copy has not changed since it left the agency.
import hashlib, pathlib, json
def fixity_manifest(folder):
out = {}
for p in sorted(pathlib.Path(folder).rglob("*")):
if p.is_file():
out[str(p)] = hashlib.sha256(p.read_bytes()).hexdigest()
return out
json.dump(fixity_manifest("mirror/"), open("manifest-sha256.json", "w"), indent=2)
# => {"mirror/fec_co_mirror.db": "9f2c...", ...}# stewardship_plan.yaml
dataset: <federal dataset from Exercise 5.4>
source_of_record: <agency, program, URL, retrieval date>
retention: {keep: "every release", review: annually}
fixity: {manifest: manifest-sha256.json, verify: monthly}
migration: {formats: [CSV, Parquet], triggers: [format deprecation, host change]}
custody:
primary: <named steward or role>
mirrors: [<institutional repository>, <Internet Archive item>]
succession: <who takes over, and how they are told>
access: <public, or tiered per access_policy.yaml>
wind_down: {condition: "agency resumes publication with equivalent coverage",
action: "freeze, deposit, and point to the agency source"}The mirrors field is where one plan joins Keegan’s federated continuity backbone: each mirror is another institution with its own commitments, so losing one steward is not losing the record. The wind-down clause matters too. A mirror with no end condition either outlives its stewards or competes with the agency’s own record; saying in advance when you will stop is part of being accountable.
“Just use GitHub” is tempting. But GitHub is a commercial service whose terms it may change unilaterally, subject to sanctions law and takedown claims, so choosing it is a stewardship outsourcing decision on terms you did not negotiate. The same holds for any cloud folder, and for a county’s vendor-hosted meetings portal. Each can sit inside a stewardship arrangement; none of them is one.
Ownership-as-stewardship turns the installed base’s continuity (Chapter 2) from a slogan into a job. For federal data, retention law protects records from destruction but not from disappearing from public view, so the public’s practical ownership of a federal dataset depends on stewards outside the agency who write down retention, migration, custody, and wind-down, and who can prove fixity. A mirror without that plan loses continuity within two transitions of its own. And the challenge from Te Mana Raraunga and OCAP stands: for data about Indigenous nations, the steward’s first obligation may be to return possession, not to keep a copy. Chapter 19 picks up custody when you deposit your own work.
5.4 Exercises
Exercise 5.1 (Guided; laptop, real data). Choose one federal agency (EPA, NOAA, or the Census Bureau) and a topic query. Use federal_records() to pull catalog records, then run the link-rot audit over at least 30 resource URLs. Save the result as exercises/ch05_audit.csv. In 200 words, describe the outcomes and name the most consequential broken link.
Exercise 5.2 (Guided). For five broken or offsite-redirecting URLs from 5.1, find the closest Wayback capture and pull the capture history. For each, record the original URL, the capture URL, the bracket within which the resource was lost, and whether the capture holds the data or only a landing page. Then compare one federal page’s last capture before an administration transition (January 2017, 2021, or 2025) with its first capture six months later, describing in 300 words what changed. Describe; do not editorialize. Save as exercises/ch05_recoveries.md.
Exercise 5.3 (Guided; county). Run Step 4 on two Boulder County pages (or your own county’s): the comprehensive plan page and one land use page that links to docket documents. Normalize trailing slashes and www. and separate rate limiting from rot before you report a number. Then list documents one page linked at its earliest Wayback capture that it no longer links, and say whether each is still on the county site, only in the Wayback Machine, or nowhere. Save as exercises/ch05_county_audit.md.
Exercise 5.4 (Analytic). Pick one federal dataset from 5.1, ideally from an institution you can reach (in Boulder: NOAA, NIST, NCAR, or NSIDC). Write a datasheet with the seven sections plus the maintenance extension. Where you cannot find an answer, say where you looked. Save as exercises/ch05_datasheet_<dataset>.md.
Exercise 5.5 (Technical; laptop, real data). Pull at least 500 Colorado individual contributions from the OpenFEC API (paginate with last_indexes). Build the two views, run the Flask gate locally, and issue one public and one researcher query. Submit the SQL, the app, and the first ten lines of the log.
Exercise 5.6 (Analytic). Write threat_model.md and access_policy.yaml for Exercise 5.5. Name three actors, three attack paths, three mitigations, and two gaps you have not closed. In one paragraph each, explain how the statutory sale-or-use restriction changes your threat model and how your decision rules keep the steward answerable rather than merely in control.
Exercise 5.7 (Applied research). Document the governance of one operating body: a data trust or cooperative (UK Biobank, Salus Coop, or an Ada Lovelace Institute case) or an Indigenous data governance body (Te Mana Raraunga, the First Nations Information Governance Centre, or a tribal research review board). In 500 to 800 words, cover who governs, on whose behalf, members’ rights, wind-down, and funding. Cite governance documents, not journalistic summaries.
Exercise 5.8 (Open-ended; submittable artifact). Identify one public dataset, federal or county, that you believe will not survive the next decade in publicly accessible form. Write a stewardship plan for it from the YAML skeleton, with a fixity manifest for a copy you hold, a steward named by role, a mirror held by another institution, a succession rule, and a wind-down condition. Use a stakeholder map (Chapter 9) to decide who has a say in the access rules. Add a 600-word memo naming the mechanisms you expect to erode the dataset (access, collection, or both). If you conclude that the dataset should not be mirrored at all, write a refusal specification (Chapter 13) instead. Save as exercises/ch05_stewardship/; Chapter 19 shows how to deposit it.
5.5 Closing
You now have an audit that says what has been lost and roughly when, and a way to hold what remains: tiers, a threat model, and a plan for custody and an end. The three pressures and values are paired one by one in Chapters 3 to 5, but they do not operate one by one: erosion is often enclosure’s long tail, and a stewarded mirror is also an instrument of oversight. Part II turns to the professions that have carried these values, starting with journalism (Chapter 6); planning (Chapter 9) asks who decided what got kept. Chapter 13 asks the harder question underneath this chapter: whether the record should exist in the form you are preserving.
5.6 Further Reading and Resources
- Jean-Christophe Plantin, Carl Lagoze, Paul N. Edwards, and Christian Sandvig (2016), “Infrastructure studies meet platform studies in the age of Google and Facebook,” New Media & Society 20(1): 293–310. Platform time versus infrastructure time.
- Helena Karasti and Jeanette Blomberg (2018), “Studying infrastructuring ethnographically,” Computer Supported Cooperative Work 27: 233–265. Project time, infrastructure time, and maintenance labor.
- Tara Mazurczyk, Nathan Piekielek, Eira Tansey, and Benjamin Goldman (2018), “American archives and climate change: Risks and adaptation,” Climate Risk Management 20: 111–125 (Mazurczyk et al. 2018). What climate risk means for the physical places where records live.
- Environmental Data and Governance Initiative, Website Monitoring: https://envirodatagov.org/website-monitoring/. Tracking federal environmental websites across three transitions.
- End of Term Web Archive: https://eotarchive.org/. A partnership of libraries and the Internet Archive that crawls federal websites at each presidential transition.
- Joan M. Schwartz and Terry Cook (2002), “Archives, records, and power,” Archival Science 2: 1–19. Archives as instruments of power.
- Ada Lovelace Institute (2021), “Exploring legal mechanisms for data stewardship”: https://www.adalovelaceinstitute.org/report/legal-mechanisms-data-stewardship/.
- Te Mana Raraunga, “Principles of Māori data sovereignty” (2018): https://www.temanararaunga.maori.nz/tutohinga.
- First Nations Information Governance Centre, “The First Nations Principles of OCAP”: https://fnigc.ca/ocap-training/.
- Stephanie Russo Carroll et al. (2020), “The CARE Principles for Indigenous data governance,” Data Science Journal 19: 43.