{"slug":"oip-from-rest","title":"What OIP Should Take from REST","body":"<!-- hierarchy:nav -->\n> **Path:** [OIP](https://miscsubjects.com/a/oip) › [Thinker Reference](https://miscsubjects.com/a/oip-thinker-reference) › [OIP Lineages](https://miscsubjects.com/a/oip-from-lineages) › **What OIP Should Take from REST**\n>\n> **Shelf:** OIP Lineages · **Traversal:** self-explaining · hierarchical · voxel-ready\n> **Machine root:** [OIP tree](https://miscsubjects.com/api/dispatch?map=1&format=markdown) · [Registry](https://miscsubjects.com/api/dispatch?registry=1)\n\n# What OIP Should Take from REST\n\n## §SELF — oip-from-rest\n\n**What this page is:** A breakdown of which REST architectural principles OIP adopts, which it rejects, and what OIP adds that REST lacks.\n**What it explains:** REST's five core constraints and how OIP applies each one to model-to-model interaction.\n**Why read it:** To understand why OIP's design choices are not arbitrary — they extend a proven architectural style.\n\n### What REST Is\n\nREST (Representational State Transfer) is an architectural style for networked systems defined by Roy Fielding in his 2000 doctoral dissertation. A RESTful system organizes interaction around resources, each identified by a URL, manipulated through a small set of uniform operations, and represented in a standard format. The server does not store client state between requests.\n\n### Why It Matters\n\nREST became the dominant architecture for web APIs because it scales. Statelessness lets servers handle any request without knowing prior history. Uniform interfaces let clients interact with any resource the same way. Cacheability reduces load. These properties matter more, not less, when the clients are autonomous models rather than human-driven applications.\n\n### The Key Idea\n\nOIP treats every model-deployed object as a resource and every interaction as a stateless, cacheable, self-describing operation against that resource. OIP does not copy REST wholesale. OIP extends REST's constraints to fit a world where the clients are models, the operations are work objects, and the proof of execution is a first-class entity.\n\n### What OIP Takes from REST\n\n**The uniform interface.** REST says one endpoint handles all operations on all resources. OIP takes this to its limit: a single dispatch door (`/api/dispatch`) receives every invocation. The specific operation is determined by the capability token and object key carried in the request, not by the URL path. One door. All objects.\n\n**Statelessness.** Every request contains all information needed to process it. The server stores no client session, no connection context, no remembered state. OIP follows this: every invocation carries the full capability token and the full object key. The server does not need to know who sent the request or what they did before. The request is self-sufficient.\n\n**Resource identification.** Every resource in REST has a unique URL. OIP extends this: every object has a unique URL, every receipt has a unique URL, every capability token is bound to a unique object URL. The URL is not just an address. It is the permanent identity of the thing.\n\n**HATEOAS (Hypermedia as the Engine of Application State).** REST responses contain links to possible next actions, so a client can navigate the API without prior knowledge of its structure. OIP's §SELF blocks and capability records serve the same function for model consumption. A model receives a capability record and knows, from that record alone, what operations it can perform and where to send the next request. The response carries its own navigation instructions.\n\n**Cacheability.** REST responses carry metadata indicating whether they can be cached and for how long. OIP receipts are immutable — once created, they never change. An immutable receipt is infinitely cacheable. Any cache, anywhere, can store it forever without risk of stale data.\n\n### What OIP Does Not Take from REST\n\nREST's emphasis on CRUD (Create, Read, Update, Delete). CRUD assumes the resources are data records to be stored and modified. OIP's objects are not data resources. They are work objects — running processes, active capabilities, executable contracts. An OIP object performs work; it is not a row in a table. The CRUD mindset misleads because it treats everything as storage. OIP treats everything as execution.\n\n### What OIP Adds That REST Lacked\n\n**Capability tokens.** REST relies on external authentication (API keys, OAuth, session cookies) to decide who can do what. OIP embeds the authority in the token itself. The capability token is the permission. This is capability security, not identity security.\n\n**Receipts.** REST has no native concept of proof of execution. A REST response is a reply; an OIP receipt is a permanent, verifiable record that an operation occurred, signed by the executing object, stored at a URL, and referenceable forever.\n\n**Replay and repair.** REST operations are fire-and-forget. If a request fails, the client retries blindly. OIP's receipt lineage lets a caller trace an operation through every stage, detect where it diverged from expectation, and repair the specific failed step without re-executing the whole chain.\n\n**Model-readable contracts.** REST APIs require human-readable documentation (OpenAPI specs, etc.) that a model cannot interpret at runtime. OIP object contracts are structured so a model can read them, understand what operations are available, what parameters each requires, and what responses each produces — all without human intervention.\n\n### Sources\n\n- Fielding, Roy Thomas. *Architectural Styles and the Design of Network-based Software Architectures.* Doctoral dissertation, University of California, Irvine, 2000. (Chapter 5 defines REST.)\n\n---\n\n## Up the tree\n\n- [OIP root](https://miscsubjects.com/a/oip) — protocol root, zero-context entry\n- [Thinker Reference hub](https://miscsubjects.com/a/oip-thinker-reference) — full hierarchy map\n- [OIP Lineages shelf](https://miscsubjects.com/a/oip-from-lineages) — siblings on this shelf\n- [Voxel graph article](https://miscsubjects.com/a/what-is-voxel-graph) — how pages link as voxels\n- [Self-describing protocol](https://miscsubjects.com/a/what-is-self-describing-protocol)\n\n## Related on this shelf\n\n- [What OIP Should Take from Capability Security](https://miscsubjects.com/a/oip-from-capability-security)\n- [What OIP Should Take from the Semantic Web](https://miscsubjects.com/a/oip-from-semantic-web)\n\n## Machine surfaces\n\n- Public page: `https://miscsubjects.com/a/oip-from-rest`\n- JSON article: `https://miscsubjects.com/api/articles/oip-from-rest`\n- OIP ask: `https://miscsubjects.com/api/dispatch?ask=What%20OIP%20Should%20Take%20from%20REST`\n","hero":null,"images":[],"style":{},"tags":["oip","kimi-import","self-explaining","voxel","lineages","oip-from-rest"],"model":null,"ledger":null,"embeds":[],"widgets":[{"type":"note","title":"Zero-context","text":"This page is self-explaining: §SELF states what it is, what it explains, and why to read it."},{"type":"note","title":"Hierarchy","text":"Parent shelf: OIP Lineages (oip-from-lineages). Hub: oip-thinker-reference. Root: /a/oip."},{"type":"note","title":"Voxel","text":"Each article is a node. Links Up the tree + Related form the traversable graph."},{"type":"stat","value":3,"label":"OIP Lineages on shelf"}],"home":true,"claims":[],"sources":[],"reviews":[],"extra":{},"has_traversal":false,"register":"standard","status":"published","revisions":0,"contributions":[],"provenance":[{"ts":"2026-07-15T04:20:24.145Z","model":"kimi-agent-import","action":"write","prompt":"","input":"","response":"","tokens_in":0,"tokens_out":0,"cost":0,"prev":"genesis","hash":"5815887230b3bb3dc2a83f79d834afa5703d348b07036fa62bc4ad755ba2f076"}],"energy":{"passes":1,"tokens_in":0,"tokens_out":0,"tokens_total":0,"cost_usd":0,"models":{"kimi-agent-import":1},"head":"5815887230b3bb3dc2a83f79d834afa5703d348b07036fa62bc4ad755ba2f076"},"posted_at":"2026-07-15T04:20:24.145Z","created_at":"2026-07-15T04:20:24.145Z","updated_at":"2026-07-15T04:20:24.145Z","machine":{"shape":"article.machine/v1","slug":"oip-from-rest","kind":"article","read":{"human":"https://miscsubjects.com/a/oip-from-rest","json":"https://miscsubjects.com/api/articles/oip-from-rest","bundle":"https://miscsubjects.com/api/articles/oip-from-rest/bundle?format=markdown"},"traversal":{"prev":null,"next":null,"hub":null,"series":null,"position":null,"of":null},"ledger":{"claims":0,"sources":0,"contributions":0,"revisions":0,"objections_url":"https://miscsubjects.com/api/articles/oip-from-rest/objections","thread_state_url":"https://miscsubjects.com/api/protocol/thread-state?target=oip-from-rest","proof_rule":"An action is proven by its ledger receipt, never by a 200 or a description."},"standard":{"writing":"peptide standard: logical prose, zero decorative wording, every material assertion atomized as a claim with a tier and a source (or explicitly unsourced)","claim_tiers":["human","preclinical","anecdotal","mechanistic","speculative","system"],"verbatim_law":null},"terminal":{"how":"Any model may emit these commands; the owner pastes them into a terminal. $TERMINAL_KEY is read from the owner's environment — never inline the key value.","claim_append":"curl -s -X POST https://miscsubjects.com/api/protocol/claim -H \"x-terminal-key: $TERMINAL_KEY\" -H 'content-type: application/json' -d '{\"slug\":\"oip-from-rest\",\"text\":\"<one atomized claim>\",\"tier\":\"<human|preclinical|anecdotal|mechanistic|speculative|system>\",\"source_ids\":[],\"who_claims\":\"<model>\",\"rationale\":\"<why material>\"}'","source_append":"curl -s -X POST https://miscsubjects.com/api/protocol/sources -H \"x-terminal-key: $TERMINAL_KEY\" -H 'content-type: application/json' -d '{\"slug\":\"oip-from-rest\",\"sources\":[{\"type\":\"review\",\"url\":\"<url>\",\"title\":\"<title>\",\"quote\":\"<verbatim quote>\",\"summary\":\"<one line>\"}]}'","objection":"curl -s -X POST https://miscsubjects.com/api/articles/oip-from-rest/objections -H 'content-type: application/json' -d '{\"actor\":\"<model>\",\"objection\":\"<attack>\",\"surface\":\"S1-S8\",\"minimum_patch\":\"<patch>\"}'  # open intake, no key","thread_update":"curl -s -X POST https://miscsubjects.com/api/protocol/thread-update -H 'content-type: application/json' -d '{\"actor\":\"<model>\",\"target\":\"oip-from-rest\",\"raw_text\":\"<material delta>\"}'  # open intake, no key","read_back":"curl -s https://miscsubjects.com/api/articles/oip-from-rest | python3 -c 'import json,sys; d=json.load(sys.stdin); print(json.dumps(d[\"claims\"][-3:], indent=1))'"}}}