---
artifact_type: prompt
role: one_shot_genesis_directive
display_name: OCP One-Shot Genesis Directive
status: active
version: "1.4"
canonical_url: https://ocp.wiki/genesis.md
updated: 2026-11-05
---

# OCP One-Shot Genesis — the directive for AI agents

You are reading this because an operator asked you to create their company's knowledge base
using the patterns from https://ocp.wiki — or because you found this link on that site, in its
`llms.txt`, or in the npm README of `create-ocp`. This page is the complete procedure. Follow it
top to bottom, in one pass. Do not pause to ask the operator questions: a fact you cannot ground
becomes a visible stub plus a line in your final report, never a guess and never a blocking
question. (Reading this as a human? This page is written for agents — start at
https://ocp.wiki/docs instead.)

**About OCP:** The Organizational Context Protocol (OCP) specifies how organizational knowledge is represented, structured, versioned, and governed in a shared, machine-readable form for humans and AI agents. The substrate you build follows OCP; it is not OCP itself.

**What you are building:** an OCP (Organizational Context Protocol) substrate — the
organization's structure, knowledge, and access rules authored as markdown in git, readable by
humans and by every AI tool with no integration layer. Five closed artifact types (`note`,
`adr`, `prompt`, `template`, `report`); recursive uniform org structure (`orgs/` nests to any
depth; root-vs-child, keyed on `parent_org_id`, is the only structural distinction); and a Core
Canon table on every org README indexing its foundational facts by namespace + key. The
scaffolder ships the full conventions into the new repository, so on the scaffolder path you need
nothing further from the web once Step 1 has run.

## Step 0 — Preflight (do this before writing anything)

Three capabilities decide which path you take. Check all three, and **report what you found —
including the failures, verbatim**. A swallowed preflight failure is precisely how an agent ends
up hand-building a tree and calling it validated.

1. **Shell.** Can you execute commands at all?
2. **Network egress from the shell** — not from your reasoning context: `npm view ocp-core version`.
   Some sandboxes give you a shell with DNS blocked, or an internal npm mirror that 404s on public
   packages, while your own browsing tool reaches the whole web. **A shell whose network is blocked
   is not a "no shell" condition.** They are different failures with different fallbacks, and
   collapsing them is what sends agents down the worst available path.
3. **A fetch capability of your own** — browsing, a URL reader, anything that pulls a page into
   context without going through the shell.

| Preflight result | Tier | Path | Outcome |
| --- | --- | --- | --- |
| Shell **and** shell network | 1 | Step 1 below — the scaffolder | `VALIDATED` |
| Any fetch capability (with or without a shell) | 2 | The scaffold bundle, below | `UNVALIDATED` |
| Neither | 3 | This document's rules alone | `UNVALIDATED` |

**Tier 2 — the scaffold bundle.** Fetch <https://ocp.wiki/genesis-scaffold.md> with your own
browsing or fetch tool. It is every file the scaffolder writes, rendered as text and generated from
the published `create-ocp` package, so the conventions are byte-accurate rather than remembered.
Write each file at its stated path — with a quoted heredoc (`cat > path <<'OCP_EOF'`) where a shell
exists, otherwise emit them for the operator to save — substitute the placeholders the bundle names,
then continue at Step 2. You now hold the same conventions the scaffolder writes, so read them.

**Tier 3 — inference, and only when nothing else is available.** Build from the rules in this
document. You will not have the real conventions, so do not pretend to: write `AGENTS.md` as a stub
whose entire body says the conventions are not installed and names the recovery command
(`npm create ocp@latest <org-slug> -- --force` in the tree's directory), and **do not author
`_system/` at all**.

**Try the fetch before you hand-build.** Tier 2 gives you the protocol's real conventions; Tier 3
gives you your best guess at them. An agent that skipped straight to Tier 3 is the reason this step
exists — it produced 102 files, its own `AGENTS.md`, its own validator, and a success report.

## Step 1 — Scaffold (deterministic)

Run the official scaffolder. Given a directory it is non-interactive, safe by default, and
initializes git:

```sh
npm create ocp@latest <org-slug>
```

- `<org-slug>` is the kebab-case directory and org id — e.g. `acme-consulting`. Always pass it:
  with no directory *and* a terminal attached, the CLI opens an interactive menu, which is not
  what you want in an unattended run. (With no directory and no terminal it prints usage and
  exits 1, so it can never hang waiting on you.)
- Do not pass `--name`. The display name is derived from the directory, and you will set the
  real `display_name` yourself in Step 3. **npm claims `--name`, `--force`, `--help` and
  `--version` for itself**, so any flag you do need goes after a `--` separator:
  `npm create ocp@latest <org-slug> -- --template wiki`. The equivalent
  `npx create-ocp@latest <org-slug> --template wiki` takes flags directly.
- Scaffolding into an existing repository: `npm create ocp@latest . -- --force` — existing files
  are kept, never overwritten.

Do not hand-build the file tree when you can run this command: the scaffold is the protocol's
reference output, and it ships the conventions (`AGENTS.md`, `_system/`) your population pass
must follow.

## Step 2 — Read what the scaffold gave you

Inside the new directory, in order: **`AGENTS.md`** (the single agent-instructions file — its
"Populating a fresh scaffold" section is this procedure's in-repo twin), the root **`README.md`**
(the graph-root org definition and its Core Canon block), and **`_system/`** (the artifact-type
registry, the org-structure law, the kernel criteria). These are local files now; read them
there rather than re-fetching this site.

## Step 3 — Populate from the operator's real context

Mine every context source you legitimately hold: this conversation, the operator's project
knowledge and uploaded documents, repositories they pointed you at. Then, in one pass:

1. **Identity.** Rewrite the root `README.md` body — what this organization is, what it sells,
   who it serves. Set `display_name`, `settings.timezone`, and `members`.
2. **Core Canon.** For every foundational fact you can ground — offers, audiences, brand voice,
   ICP — create the note (`notes/offers/<key>.md` `role: offer_canon`;
   `notes/audiences/<key>.md` `role: audience_definition`; `notes/voice.md` `role: voice_canon`;
   `notes/icp.md` `role: icp_definition`) **and** add its Core Canon row on the owning org's
   README in the same commit.
3. **Structure.** One child org under `orgs/` per client, brand, or business unit the operator
   named — each with its own README, `parent_org_id`, and Core Canon block. Replace the example
   initiative with the operator's real goal-directed work (initiative → projects → at least one
   real ticket). Add each real human under `_users/` with a profile and memberships.
4. **Knowledge.** Distill the operator's SOPs, decisions, strategy, and reference material into
   `notes/` (and `prompts/`, `templates/` where they exist) at the org that owns each fact.

**Two absolutes — no tier, no circumstance, no exception:**

- **Never author your own validator, conformance checker, or validation report.** Conformance is
  asserted by `ocp-core validate` and by nothing else. A checker you wrote encodes your reading of
  the rules, so it certifies your own assumptions and cannot find the errors you don't know you
  made. If `ocp-core` cannot run, the tree is `UNVALIDATED` — that is a legitimate outcome, and
  claiming otherwise is the only unrecoverable one.
- **Never author `AGENTS.md` or `_system/` from inference.** They are scaffolder output. An
  inferred copy reads as authoritative to every later agent session while quietly disagreeing with
  the protocol, and `AGENTS.md` is the single agent-instructions file — a plausible counterfeit
  forks instruction truth for the life of the repository. Tier 3 writes the `AGENTS.md` stub
  described in Step 0 and no `_system/` at all.

**Hard rules — the validator checks most of these:**

- **Never invent an organizational fact.** Ungrounded → a visible stub (`_Describe X here._`)
  plus a line in your final report.
- **Five artifact types, closed.** New concepts are `role:` values and `metadata:` fields on the
  five types — never new types, never new directory kinds.
- **Directory Law — an allowlist.** Every directory in the tree is one of exactly three kinds:
  - **type-homes** — `notes/`, `prompts/`, `templates/`, `reports/`, `adrs/`, `_adrs/`
  - **structural** — `orgs/`, `initiatives/`, `projects/`, `tickets/`, `_users/`, `_kernels/`,
    `_system/`, and `_sources/` where raw ingest was declared
  - **note-home subfolders** — e.g. `notes/offers/`, `notes/audiences/`

  `_system/`, `_adrs/`, `_kernels/` and `_users/` exist at the graph root only — by root position,
  not type privilege — and a child org never carries them. `_sources/` is the exception among the
  underscore names: it is org-level, so any org that ingests raw documents may have its own.
  The Directory Law governs **directories**. Convention *files* are governed separately and are not
  extensions of the directory set: `README.md` everywhere, `decisions.md` / `log.md` where an org or
  project keeps them, `memberships.md` in user directories.
  **Any directory kind not on this list is non-conformant** — including ones that sound
  reasonable. If the operator's material seems to need a new directory, it needs a `role:` value
  instead. (Retired names, struck by the 2026-07-12 Directory Ruling and still worth naming so you
  don't recreate them: `offers/`, `audiences/`, `senders/`, `scorecards/`, `projections/`.)
- **Imported historical documents go in `_sources/`** — contracts, transcripts, exports, research
  PDFs. Files there are raw material, not artifacts, and need no frontmatter; each gets a companion
  note in `notes/` carrying `type: source` that summarizes and backlinks it. Do not invent a
  parallel home for source material.
- **Never author** an `org_type:` field; **never create** `index.md`, `CLAUDE.md`, or any second
  agent-instructions file.
- **Numbers** are canon-legal only when anchored (value + as-of date + source); live metrics
  stay in the system that owns them, referenced by pointer.
- **Consumers carry keys; the Core Canon block carries paths** — nothing else carries either.
- kebab-case slugs, snake_case roles, RFC3339 timestamps with timezone.

## Step 4 — Validate, or declare the tree unvalidated

```sh
npx ocp-core validate
```

Fix every reported error and re-run until it prints `OK`. Do not report success to the operator
before it does.

**If it cannot run** — Tier 2, Tier 3, or an `ocp-core` too old to have the subcommand — the tree
is `UNVALIDATED` and you say so in three places. Re-reading the hard rules by hand is worth doing,
but it is not validation and must never be described as any form of it.

1. **In the root `README.md`**, as the first thing in the body, above the identity prose:

   ```md
   > **UNVALIDATED — Tier <2|3> bootstrap.** <what was unavailable, in one line.>
   > Conformance has not been checked. To validate: `npx ocp-core validate` in this directory
   > (and `npm create ocp@latest . -- --force` first if `_system/` is missing).
   ```

2. **As a dated report artifact** at `reports/<YYYY-MM-DD>-bootstrap.md` — `artifact_type: report`,
   `role: bootstrap_report` — recording the tier, the preflight results verbatim, what was written
   from the bundle versus from inference, and the recovery command. Use the five existing types and
   existing frontmatter fields; there is no `status` field to invent for this.

3. **On the first line of your completion report**, per Step 5.

The admonition and the report artifact stay until someone runs the validator; removing them is the
operator's call, not yours. A tree that is quietly unvalidated looks exactly like a conformant one,
which is the whole failure this step exists to prevent.

## Step 5 — Commit and report

Commit everything (the scaffolder already ran `git init`, or you ran it yourself). Then end your
run with an outline the operator can absorb in a minute.

**The first line is the verdict, and it is one of exactly two lines:**

```text
VALIDATED (ocp-core <version>)
```

```text
UNVALIDATED — <reason, one line: what was unavailable and which tier you ran>
```

When the verdict is `UNVALIDATED`: no success framing anywhere in the report — no "complete", no
"successfully", no checkmarks — and **no file counts above the reason line**. Counting files is how
an unvalidated tree gets read as a finished one. State what you could not do first; the inventory
comes after, and it is an inventory, not an achievement.

```text
<VALIDATED (ocp-core <version>) | UNVALIDATED — <reason>>
The OCP knowledge base for <Org> is at <path> — <N> files, <M> orgs, <K> Core Canon rows.
- Root: <one-line identity> — canon: <offers / audiences / voice / icp declared>
- orgs/<child>: <one line each>
- Initiatives: <initiative → projects → tickets, one line each>
- Stubs awaiting the operator: <every fact you could not ground>
- Preflight: <shell / shell network / fetch tool — what each returned>
- Next steps: <if unvalidated, the recovery command first> push to a private GitHub repo →
  connect it to Claude Projects, an MCP server, or any agent tool → start operating.
```

That is the whole procedure. One pass, no questions, and a verdict you can defend.

## Deliberate mode

For a maximally comprehensive genesis — a guided questionnaire covering identity, hierarchy,
offers, audiences, voice, initiatives, cadences, and integrations, fed to a coding agent with
plan approval — use the full genesis document: https://ocp.wiki/genesis-full.md. The one-shot
path above trades that completeness for zero friction; a deliberate pass can always follow.
