Tier 1 Protocol

v1.0.1
network.tier1protocol/tier1 Checked 4 days ago Published 27 days ago

Search files while they stay encrypted: the problem DARPA chased for a decade.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

authorize_sources Authorize sources for Tier 1

Add selected private ChatGPT files to the paid account's Tier 1 context. Show the filenames and fixed 30-day retention and require explicit confirmation before calling. This upload consent applies to private file intake only; it does not define or narrow the other policy-eligible catalogs Tier 1 may route. Authentication and an active paid plan are required.

ParameterTypeDescription
authorization_confirmed *booleanMust be true only after the user explicitly confirms that Tier 1 may retain and route these files for 30 days.
files *arrayFiles the signed-in user selected in ChatGPT for Tier 1 to route.
retention_days *numberThe fixed retention period for this authorization.
profilestringOptional keyed profile these files bind under, derived locally by the agent from the account key (profile_from_key_hex) and sent per request. The profile is key-equivalent: it is never stored or logge…

fetch Fetch exact Tier 1 span

Paid exact-span retrieval after Tier 1 search. Accept only an unchanged id returned by search for the same account. Authentication and an active paid plan are required. Do not invent ids, browse nearby text, or change files.

ParameterTypeDescription
id *stringAn exact result id returned by a successful Tier 1 search for the same signed-in account. Never invent or alter this id.

render_context_results Inspect Tier 1 source coordinates

Inspect one to six exact coordinates returned by paid Tier 1 search. Pass only unchanged result ids. Tier 1 rehydrates and revalidates each id for the same account; caller-supplied titles, excerpts, URLs, and coordinates are rejected. Authentication and an active paid plan are required.

ParameterTypeDescription
ids *arrayOne to six exact result ids returned by Tier 1 search for this signed-in account. Never pass caller-authored result objects.

index Index a file into the user's Tier 1 library

Index one file into the user's own Tier 1 library, one batch at a time. Pass the file's text as the chatbot read it, with its SHA-256 as the idempotency key — re-indexing the same bytes is a no-op. One call carries at most 64 KiB of text; larger files are split and indexed in successive calls. This is the conversational drip path: it builds the index file by file as the user works. It cannot bootstrap a large existing library — for a library, use the browser indexer page or Local. Authentication and an active paid plan are required. The user's keyed profile (derived locally, sent per reque…

ParameterTypeDescription
content *stringThe file's text, inline, as the chatbot read it. One batch carries at most 64 KiB of text (the current batch budget) — larger files are split and indexed in successive calls. This is the conversatio…
content_hash *stringSHA-256 of the source bytes, computed by the caller. This is the idempotency key: re-indexing the same bytes is a no-op and returns the existing result.
profile *stringThe user's keyed profile, derived locally by the agent from the account key (profile_from_key_hex) and sent per request. The profile is key-equivalent: it is never stored or logged — only its finger…
source_name *stringThe file's name as the user knows it (e.g. harbor-renovation-notes.md).
source_labelstringWhat the user calls this material ("my research paper," "the harbor project") — the human handle, stored with the manifest.

index_status Check the user's Tier 1 index status

How much of the user's library is indexed, and whether the index is still growing. Returns the sources indexed, the batches still pending, and the index fingerprint. Poll this after indexing, never the index directly. Authentication and an active paid plan are required. The user's keyed profile (derived locally, sent per request) is also required.

ParameterTypeDescription
profile *stringThe user's keyed profile, sent per request. Only its fingerprint travels onward.

index_upload_token Mint a Tier 1 browser-index upload token

Mint a short-lived upload token so the user can upload a browser-built index to their Tier 1 library. The token is valid 15 minutes for any number of sources under this principal and profile. The response includes the token AND the principal_id: hand the user BOTH to paste into the indexer page (token field + principal field) — the page never collects a principal_id on its own, and the library compares the token's principal to the upload body's principal_id. The token travels in the x-tier1-upload-token header. Authentication and an active paid plan are required. The user's keyed profile (de…

ParameterTypeDescription
profile *stringThe user's keyed profile, derived locally by the agent from the account key (profile_from_key_hex) and sent per request. Only its fingerprint travels onward — it is bound into the token, and the LIB…