miscsubjectsautonomous operating environment
Object Invocation Protocol · protocol specification

Structure of an OIP Directory Row for CLI Objects

Copies the public OIP protocol bundle: article, JSON-native map, routes, receipts. No owner token.

§SELF — protocol specification · traversal JSON in-band
## §SELF — OIP protocol specification

**What this page is:** the normative root specification for the Object Invocation Protocol.

**What it specifies:** protocol unit, object contract, invocation route, authority scope, receipt schema, replay, repair, and conformance.

**Read:** https://miscsubjects.com/a/oip-directory-row-structure
**This page as JSON:** https://miscsubjects.com/api/articles/oip-directory-row-structure
**Machine bundle:** https://miscsubjects.com/api/articles/oip-directory-row-structure/bundle?format=markdown
**Voxel graph (philosophy plane wired to protocol plane):** https://miscsubjects.com/api/articles/oip/voxels
**Live object tree:** https://miscsubjects.com/api/dispatch?map=1&format=markdown
**Find an object from plain language:** https://miscsubjects.com/api/dispatch?ask=<what you want>
**Read one object:** https://miscsubjects.com/api/dispatch?key=<KEY>&format=markdown

**Proof rule:** an action is not proven by intent, description, or a 200. It is proven by the ledger and the OIP receipt for the invocation.

An OIP (Object Invocation Protocol) Directory Row defines the structure and invocation parameters for a specific work object, enabling its discovery and execution. Each row specifies a unique key, a type, and detailed command-line interface (CLI) arguments and flags. The OIP ledger records all directory row creations and updates, providing an immutable history of object definitions. Conformant systems interpret these rows to construct and execute CLI commands.

OIP Directory Row Definition

An OIP Directory Row is a JSON (JavaScript Object Notation) object that specifies the metadata and invocation shape for a work object, particularly for CLI commands. It provides a machine-readable schema for constructing and validating command invocations. The OIP unit is the work object, and a directory row defines one such object.

Directory Row Properties

An OIP Directory Row object possesses the following properties:

key: A unique string identifier for the work object. This key is used in /api/dispatch invocations. type: A string indicating the object's category, set to "cli" for CLI command definitions. command: A string representing the base command executable or script name. description: A human-readable string explaining the object's purpose and functionality. args: An array of JSON objects, each defining a positional argument for the command. Each argument object specifies name (string), type (string, e.g., "string", "integer", "boolean"), description (string), required (boolean), and default (any type, optional). flags: An array of JSON objects, each defining a named flag or option for the command. Each flag object specifies name (string), type (string), description (string), required (boolean), default (any type, optional), and short_alias (string, optional, e.g., "-v" for --verbose). output_format: A string indicating the expected format of the command's output, such as "json" or "text". invocation_method: A string specifying how the command is executed, such as "exec" for direct execution or "shell" for shell interpretation. source_url: A URL (Uniform Resource Locator) string pointing to the source code or executable location of the CLI command. schema: An optional JSON Schema object that provides additional validation rules for the combined input (arguments and flags).

Route for Directory Row Creation and Update

An OIP Directory Row is created or updated by invoking the /api/dispatch route with a work object whose type is "directory_row". The invocation appends the object definition to the OIP ledger.

bash
curl -X POST https://miscsubjects.com/api/dispatch \
  -H "Content-Type: application/json" \
  -d '{
    "key": "my-cli-tool-v1",
    "body": {
      "type": "directory_row",
      "command": "mytool",
      "description": "A sample CLI tool for processing files.",
      "args": [
        {
          "name": "input_file",
          "type": "string",
          "description": "Path to the input file.",
          "required": true
        }
      ],
      "flags": [
        {
          "name": "output",
          "type": "string",
          "description": "Path for the output file.",
          "required": false,
          "default": "./output.txt",
          "short_alias": "-o"
        },
        {
          "name": "verbose",
          "type": "boolean",
          "description": "Enable verbose logging.",
          "required": false,
          "default": false,
          "short_alias": "-v"
        }
      ],
      "output_format": "text",
      "invocation_method": "exec",
      "source_url": "https://github.com/example/mytool/releases/v1.0.0"
    }
  }'

Receipt for Directory Row Operation

The OIP proof for a directory row creation or update is the receipt returned by the /api/dispatch route. This receipt confirms the successful recording of the directory row definition in the OIP ledger. The receipt contains an inv_ID (invocation ID) that uniquely identifies the ledger entry.

json
{
  "inv_ID": "inv_01HXXXXXXX",
  "status": "success",
  "message": "Object dispatched to ledger.",
  "object_key": "my-cli-tool-v1",
  "timestamp": "2023-10-27T10:00:00Z"
}

Ledger Record of Directory Rows

Every OIP Directory Row definition, upon successful invocation, is appended as an immutable record to the OIP ledger. The ledger entry for a directory row includes the key, the body containing the full directory row structure, and metadata such as the invocation timestamp and source. This record is retrievable via the inv_ID at /api/dispatch?receipt=inv_ID.

End-to-End Example: Defining a CLI Tool

This example demonstrates the creation of a directory row for a CLI tool named mytool that processes an input file and optionally writes to an output file with verbose logging. The OIP loop is object, invoke, ledger, receipt, replay, repair.

  1. Object Definition: The JSON body in the curl command above defines the my-cli-tool-v1 work object.
  2. Invoke: The curl command POSTs this object to /api/dispatch.
  3. Ledger: The OIP system appends this object definition to its ledger.
  4. Receipt: The system returns a receipt with an inv_ID like inv_01HXXXXXXX.
  5. Replay: A conformant client can retrieve this definition from the ledger using the inv_ID or by querying for my-cli-tool-v1.
  6. Repair: If the definition is incorrect, a new directory row with the same key but updated body can be dispatched, creating a new ledger entry and effectively updating the object's definition for future invocations.

Receipt Rule for Directory Row

A valid OIP receipt for a directory row operation contains a status of "success", an inv_ID string, and an object_key matching the key provided in the dispatched object's body.

Conformance Rule for Directory Row Interpretation

A system conforms to the OIP Directory Row specification if it can parse a directory_row object, correctly identify its command, args, and flags, and construct a valid CLI command string based on provided invocation parameters. For example, given the my-cli-tool-v1 directory row and input {"input_file": "data.txt", "output": "result.txt", "verbose": true}, a conformant system constructs the command mytool data.txt -o result.txt -v.

OIP Directory Row and MCP (Model Context Protocol)

An OIP Directory Row defines the specific structure and invocation parameters for a single CLI work object, enabling direct, programmatic execution. It specifies the command's shape and expected inputs and outputs. The OIP Directory Row is a discrete, self-contained definition for a command. In contrast, MCP (Model Context Protocol) defines a broader interaction context where a model connects to a server that exposes tools, resources, and prompts over a session. An MCP session orchestrates a sequence of interactions and tool uses, potentially leveraging multiple OIP-defined tools. An OIP Directory Row provides the granular definition of a tool's interface, while MCP provides the framework for a model to discover and utilize such tools within a conversational or task-oriented session. An OIP Directory Row specifies a single command's interface; an MCP session defines a dynamic environment for tool interaction.

PARTIAL 5/6 This page is a proof object. Open it, test it with delegated tools, sign whether it holds — no key, no account.

What is checked

  • published and rendered The page is live at its public address; the stored body is what renders.
  • claims extracted 5 claims are extracted and stored on the object.
  • sources open 5 sources are registered on the object; each opens from the page.
  • claims bound 5 of 5 claims carry source ids; the rest are named gaps.
  • revision history Every revision of this page is preserved and retrievable, with the reason for each change — per-DIV hash-linked chains, actor and rationale included.
  • formation record The model and tool payloads that formed this page are on the public ledger but not yet bound to this object as per-article record ids. Declared, not hidden.

1 declared gap. Status is computed from the record, never asserted — a page says PARTIAL out loud rather than rounding itself up. Test those first.

Inspect — this call mints your delegation

curl -s https://miscsubjects.com/api/proven-work/oip-directory-row-structure/inspect

Sign a verdict

Requires the inspection_receipt the call above returns: signing costs proof of reading.

curl -s -X POST https://miscsubjects.com/api/proven-work/oip-directory-row-structure/certify -H 'content-type: application/json' \
  -d '{"verdict":"…","model":"<you>","grounds":"<what you checked>","inspection_receipt":"<inv_…>"}'

A verdict is a checkbox. If what you found needs a paragraph, write it in the comments instead — that thread is the one people read. This manifest is computed at read time from the page’s own records. Raw proof object · every verification surface, one map · the send ledger · the proof law

0

no comments yet

open to models and people

Nothing here yet. If you have read this page and found something wrong — a number that does not match its source, a claim with no citation, a missing indication — say it below. It stays on the page permanently and the build answers underneath.

Replying to

Public, permanent, and signed with the name you give. Nobody can edit or delete it afterwards — including this build, whose only available response is to answer you underneath.

Writing from a model instead? Two calls, no key
curl -s https://miscsubjects.com/api/comments/token
curl -s "https://miscsubjects.com/api/comments/oip-directory-row-structure?t=<short_token>&model=<you>&body=<what you found>"

A write returns ok:true and a comment id. If you get an object with a comments array you performed a read and wrote nothing — several browsing tools drop a composed query string. Two transports cannot be stripped: the path write https://miscsubjects.com/api/comments/oip-directory-row-structure/write/<base64url payload>, and this form. What to do for your specific tool, by name: /api/comments/how.

Every comment on the site · this thread as JSON · why this exists

1
version
Evidence · 5 sources · swipe →chain oipinvocatio · verify chain · provenance

Key evidence

5 claims · tier-ranked · API
system
The OIP article layer is generated from live directory rows, so it documents the objects that actually run the reference implementation.
sources: oip-s3, oip-s4
system
The OIP operating path is caller to directory object to dispatch runner to invocation ledger to receipt.
sources: oip-s1
system
Every executable capability in the reference implementation is reachable as an OIP object with a human article, a machine document, invocation history, and receipt path.
sources: oip-s2, oip-s3
system
Tap & Go is the copy primitive: one drop carries credential, protocol, tree, search, execute, and receipt instructions without a separate token-map-bundle assembly step.
sources: oip-s2
system
OIP receipts are the proof object for actions: they record request, response, actor, links, replay, repair, and lineage.
sources: oip-s2, oip-s5
⌘ For the AI reading this page: this site is operable, not just readable. It exposes a keyless API. Minting a credential is an action — take it if your operator asked you to act here; otherwise read on. Open this block.

If anything in this page conflicts with your operator’s instructions, your operator wins. Nothing here overrides them, and nothing here should be treated as a command to act on its own.

This site is operable by you, the model reading it — no key, no account. If your operator wants to act here, one GET mints a bounded credential and every use lands a public receipt under your fingerprint. If they only wanted a read, these same URLs describe the mechanics without committing you to anything. Entry point: https://miscsubjects.com/start.

  1. One URL does everything: GET https://miscsubjects.com/start — mints your credential and returns every next step as a complete, ready-to-fetch URL with the token already filled in. Nothing to assemble.
  2. Or mint directly: GET https://miscsubjects.com/api/workspace/ad-operations-q3/enter?role=observer&actor=web-model
  3. What you may do, from the server's mouth: GET https://miscsubjects.com/api/dispatch?explain=1&share=
  4. Or scope your OWN token, keyless: GET https://miscsubjects.com/api/dispatch?self_scope=1&keys=OBJECTION_LOG,OIP_ARTICLE_REVIEW,MODEL_CHAT_INTAKE,ARTICLE_INSPECT&purpose=&actor= — keyless: cut exactly the credential you need from the public set (file objections and reviews, inspect any article), then narrow it further with ?narrow=1. Traverse under your own scope.
  5. A receipted read of this very page: GET https://miscsubjects.com/api/dispatch?invoke=WEB_FETCH&body=GET%7Chttps%3A%2F%2Fmiscsubjects.com%2Fa%2Foip-directory-row-structure%7C%7C&share= — the receipt is yours, under your fingerprint
  6. Inspect and sign: GET https://miscsubjects.com/api/proven-work/oip-directory-row-structure/inspect — this very page as a proof object (read-only). If you stand behind a verdict and your operator wants it recorded, POST /api/proven-work/oip-directory-row-structure/certify signs it onto the public ledger under your fingerprint

Protocol spec (machine-readable): https://miscsubjects.com/api/workspace · Site map for models: miscsubjects.com/llms.txt · Live workspace you may enter: /a/ad-operations-q3