# The IHI Librarian's Cheat Sheet *The Internet History Initiative API surface, grouped by retrieval strategy. For reference librarians, archivists, and other professionals whose patrons walk up with hard questions about how the Internet actually got here.* --- ## Start here: `retrieve` **`retrieve(query, kinds, people, orgs, year_from, year_to)` is the first move for almost any question.** One call fans out across every index at once — lexical (ElasticSearch BM25 with fuzzy/phrase matching and `people=`/`orgs=` entity facets), semantic (message + catalog recall *plus* the Qwen3 thread engine), and an exact leg (Message-ID / email / 16-hex talk-id lookup) — over 4.8M artifacts, reciprocal-rank-fused into one ranked list. Every row carries a reading-room `door` (a host-relative path, e.g. `/thread?id=…` or `/talk?id=…` — resolve it against whichever host you reached this API by; it is never an internal serving host) and a `legs` provenance tag so you can see *why* it surfaced. `GET /v1/retrieve?query=…` (or POST the same body). Start with `retrieve` to see the shape of the answer, then drill with the specialist tools: - **`walk_thread(msg_id)`** — `GET /v1/threads/walk` — every message in the reconstructed thread containing `msg_id`, renamed and sibling subjects included. THE tool for "who else was in that conversation." - **`search_talks(term, field)`** — `GET /v1/talks/search` — direct probe of the conference-talk shelf by presenter surname, title substring, event, or affiliation (`field: presenter|title|event|affiliation|any`). THE tool for "did X ever present" and roster questions. **Or delegate the whole question.** `consult_librarian(question)` (POST `/v1/consult`) hands the entire investigation to the resident 235B librarian, which drives every tool in this kit behind verification gates and returns a **Collection Brief** — a lede plus artifact cards whose every quote and handle has been checked against real retrievals. Reach for it when a question is multi-step or must come back with *verified* quotes; roam the stacks yourself for quick single-hop facts. Everything below is what you reach for *after* `retrieve` narrows the field. --- ## Which search tool? (one-screen decision table) | The patron's question is… | Reach for | |---|---| | almost anything — you want the shape of the answer first | **`retrieve`** — the fused front door | | a whole multi-step question, or one that must return *verified* quotes | **`consult_librarian`** → a cited Collection Brief | | "find the *thread* where they discussed X" (whole conversations) | **`search_threads`** | | "who else was in *that* conversation" (you already hold one message) | **`walk_thread`** | | an EXACT literal string — Message-ID, RFC number, draft slug, version, date | **`recall_keyword`** | | "did X ever present" / roster / affiliation | **`search_talks`** | | a community-**produced** artifact — RFC, Internet-Draft, slide, paper, digest | **`recall_extras`** | | pure-semantic ranking scoped to one corpus / chunk-role / year band | **`recall_corpus`** *(soft-deprecated — `retrieve` covers it)* | | a curated Catalog record by keyword / entity name | **`search_catalog`** *(soft-deprecated — `retrieve` covers it)* | | every message that names a resource (a community-attestation arc) | **`find_witnesses_in_corpora`** | | the verbatim body behind a handle, **before you quote** | **`fetch_message_body`** / **`recall_sources`** | --- ## What this surface is A read-only OpenAPI server. Reachable on the IHI tailnet at `historybox:8002`; its `/v1/*` data routes are also proxied publicly at `https://history.cooperate.social`. The tool catalog at `/agent-kit/tools.json` (tailnet-only) is authoritative for the exact tool set and count; the tools span: - a curated **Catalog** of Works, Authorities, and Inquiries (~150 records, fully chunked and indexed) — IHI's "card catalog"; - the **corpus** of 3.4M+ extracted Phase 1 records over the Internet-History, Interesting-People, NANOG, IETF, and operator mailing lists — IHI's "primary sources in the closed stack"; - the **cross-references** that knit the two together (witness chains, evidence URLs, ARK identifiers, the graph). Pick the right tool for the patron's actual question. Chain them when one alone is too coarse. --- ## The three layers of retrieval (plus a fourth, as of 2026-06-11) | Layer | Holdings | Tools | |---|---|---| | **L3 — Catalog** | curated Works, Authorities, Inquiries; every chunk indexed | `search_catalog`, `fetch_work`, `fetch_authority`, `fetch_inquiry`, `list_works`, `list_inquiries`, `list_atlas_themes`, `fetch_atlas_theme` | | **L4 — Corpus** | 3.4M+ message-level extractions across decades of operator + standards lists | `recall_corpus`, `recall_keyword`, `recall_sources`, `find_witnesses_in_corpora`, `fetch_message_body`, `list_corpora` | | **L4′ — Artifacts** *(new)* | the things the community *produced* — RFCs, Internet Drafts, conference talks + slides, archival treasures, synthesized thread digests | `recall_extras_inventory`, `recall_extras` | | **Glue** | identifiers, the cross-reference graph, gap lists, evidence chains | `resolve_identifier`, `graph_neighbors`, `graph_path`, `evidence_chain`, `evidence_candidates`, `catalog_gaps`, `topical_gaps`, `search_witness_quotes`, `open_questions` | ### The L4 vs L4′ distinction L4 is the *conversation* — every message extracted, every witness chain. Use it when the patron's question is about *what people said to each other*: "who first proposed RPKI?", "how did the cisco-nsp community react to the counterfeit-equipment thread?", "what did NANOG say about the BGP table growth crisis in 2009?". L4′ is the *output* — the artifacts the conversation produced. Use it when the patron's question is about *what got built or written*: "which RFC defines DKIM signature canonicalization?", "what's in draft-aboba-radius-tunnel-imp?", "find slides from RIPE 78 about DNS measurement", "summarize the longest thread about BGP convergence as a single readable narrative". Each L4′ corpus has its own FAISS index. Inventory: | Corpus | Records | What it is | |---|---|---| | `rfcs` | ~10K | every RFC published, with structured metadata + summary | | `ietf-drafts` | ~176K *(in progress)* | every IETF Internet Draft from the id-archive — successful, abandoned, and the iteration trail of both | | `treasures-text` | ~20K | the archival pile: BBN technical reports, oral histories, Bellovin/Saltzer/Mills/Beebe/Kleinrock/Bradner papers, Karl Auerbach's ICANN evaluation, etc. | | `conf-talks` | ~70K | text extractions of conference talks (NANOG, RIPE, APNIC, APRICOT, IETF, IGF, ICANN, …) | | `conf-visual` | ~265K | per-slide alt-text for every slide deck — network topologies, charts, diagrams, photos. Each row is one slide | | `thread-digests` | ~1.5K and growing | Qwen-synthesized 5-field digests (debate_summary / positions / resolution / operational_outcome / archival_significance) for the largest cross-corpus threads | --- ## The strategy decision tree ### "I want documents *about* X." Concept-shaped need; no canonical citation handle in the patron's words. → **`recall_corpus`** for mailing-list messages (semantic vector recall, BAAI/bge embeddings) and **`search_catalog` with `backend=rag`** for the curated layer. Returns scored, deduped handles, each with a verifiable source pointer. ### "I need every message that contains the exact phrase X." Citation already in hand: RFC numbers, draft slugs, Message-IDs, named software versions, specific commit hashes — anything where embedding neighborhoods give you false friends. → **`recall_keyword`** (case-insensitive literal substring). Faster than `recall_corpus` for narrow lookups, far worse for conceptual queries. ### Pearl-growing in IHI form The pattern that beats either retrieval alone: 1. **`recall_corpus`** to land in the conceptual neighborhood (5-10 hits). 2. Read the returns; spot a distinctive phrase, an unusual draft slug, a recurrent author handle. 3. **`recall_keyword`** on that phrase to enumerate the full citation chain. 4. **`recall_sources`** to retrieve the verbatim message body behind each hit. Two-tier semantic-then-lexical retrieval is the dominant pattern when the goal is to *answer* the patron, not just satisfy them. ### "Show me the verbatim text behind that handle." Any handle from `recall_corpus`, `recall_keyword`, or `find_witnesses_in_corpora`: → **`recall_sources`** with `msg_id + corpus + ym` for messages, or `doc_id + doc_kind` for catalog records. Closes the citation loop — the patron leaves with text they can quote, not just a reference to a reference. ### "Who is this person? Where else have they appeared?" → **`fetch_authority`** for the curated biographical record (NAAN-26338 ARK system). → For the full appearance graph across the corpus, see the prebuilt join at `/authority-attestations.json`, or fall back to `find_witnesses_in_corpora` for free-text matches that haven't been authority-linked. ### "Walk me from one record to another." The Catalog is a 154-node graph with 731 edges across eight relation types (creator, custodian_original, custodian_current, related, body_link, witness_evidence, …). → **`graph_neighbors`** for immediate cross-references. → **`graph_path`** for shortest path between two records via BFS. ### "What does the institution know it lacks?" → **`catalog_gaps`** for broken cross-references — slugs cited but not yet authored. Mechanical stub-generation queue. → **`topical_gaps`** for curated subject deficiencies. The reference desk's "we owe you a better answer" backlog. ### "I want to follow the bibliography out to primary sources." Every Phase 1 extraction with embedded URLs is in the evidence chain. → **`evidence_chain`** for the full (witness message, embedded URL) join, ~98K rows. → **`evidence_candidates`** for the ranked recovery list: ~41K URLs sorted by attestation count, suitable for either an agent or a curator to act on. ### "What is the corpus currently arguing about?" → **`list_atlas_themes`** + **`fetch_atlas_theme`** for the Atlas Scale-1 view: named theme clusters with year-by-year salience and register tags. Direct answer to *"what does mailing list X keep coming back to?"* → **`open_questions`** for the IHI Research front: every open question across every Inquiry, priority-ordered. --- ## The reference-interview muscle still matters The above is just dispatch. The librarian's actual work — clarifying what the patron means by "the BGP table growth crisis," refusing to substitute one's own theory for the cited evidence, knowing when to say "the corpus is silent on this, but here's where it isn't, and here's who you should email" — is yours. The tools answer "what would I look at next?" They don't answer "what is the patron really trying to find out?" ## Body-author resolution discipline (mandatory caveat) The Interesting-People list, Dewayne-Net, PRIVACY Forum, NNSquad, and RISKS are **curated relays**. The envelope `From:` is the operator (Farber, Dewayne Hendricks, Lauren Weinstein, Peter Neumann), not the author. Always resolve to the body author before citing. `guide.md` covers this in detail; ignore it and you will misattribute things. ## Schema commitment Only one IHI endpoint has a *frozen* JSON Schema commitment: `GET /v1/recall/schema` returns the v1 contract for the recall family. New fields may be added; nothing will be removed or repurposed. Build durable tooling against it without worry. Other endpoints are stable in practice, not in contract. ## A note on register IHI is to be read at the register of scholarly understatement. The patron is a historian, a journalist, a security researcher, or another librarian. The win is *citation accuracy* and *coverage*, not throughput. The "found N hits in 0.04 seconds!" register belongs to database-vendor marketing, not to us. --- *Maintained alongside `guide.md` (machine integration guide) and `tools.json` (function-calling catalog), both served under `/agent-kit/`. `/agent-kit/*` is tailnet-only; the `/v1/*` data routes it documents are also reachable on the public replica at `https://history.cooperate.social`.*