Skip to content

Latest commit

 

History

History
177 lines (130 loc) · 6.08 KB

File metadata and controls

177 lines (130 loc) · 6.08 KB

Installing ORP into a repo

ORP supports both:

  • docs-first template adoption (PROTOCOL.md, templates), and
  • optional runtime CLI usage (orp) for gates/packets/packs.

The default runtime story is now:

  • orp auth ..., orp ideas ..., orp feature ..., orp world ..., orp checkpoint ..., and orp agent ... for hosted workspace work
  • orp discover ... for profile-based GitHub scanning and opportunity selection
  • orp collaborate ... for repository collaboration
  • orp erdos ... for Erdos-specific workflows
  • orp pack ... only when you need advanced/internal template install behavior

Optional global CLI install:

npm i -g open-research-protocol
orp
orp -h
orp about --json

CLI prerequisites:

  • Python 3 on PATH
  • PyYAML (python3 -m pip install pyyaml)

Agent-friendly discovery surfaces:

  • bare orp for the CLI home screen with packs, repo status, and quick actions
  • orp home --json for machine-readable landing context
  • orp auth login for hosted workspace login
  • orp whoami --json for the current hosted identity
  • orp ideas list --json for hosted idea listing
  • orp world bind --idea-id <idea-id> --project-root /abs/path --codex-session-id <session-id> --json for hosted world binding
  • orp checkpoint queue --idea-id <idea-id> --json for queueing a hosted checkpoint
  • orp agent work --once --json for processing one hosted checkpoint job
  • orp discover profile init --json for a portable discovery profile scaffold
  • orp discover github scan --profile orp.profile.default.json --json for ranked GitHub repo/issue/person recommendations
  • orp collaborate init for immediate collaboration scaffolding
  • orp collaborate workflows --json for built-in collaboration workflow discovery
  • orp collaborate gates --workflow full_flow --json for the exact gate chain
  • llms.txt for quick repo/package discovery
  • orp about --json for machine-readable capabilities, schemas, artifacts, and bundled packs
  • docs/DISCOVER.md for the discovery profile model and scan artifacts
  • docs/AGENT_LOOP.md for the intended agent operating rhythm
  • orp pack list --json for machine-readable bundled pack inventory

Fastest collaboration setup in a fresh repo:

orp collaborate init
orp collaborate workflows --json
orp collaborate run --workflow full_flow --json

This uses ORP's built-in collaboration ability. You do not need to think in terms of separate governance packs for the default collaboration path.

Fastest hosted workspace loop from the published ORP binary:

orp auth login
orp whoami --json
orp ideas list --json
orp world bind --idea-id <idea-id> --project-root /abs/path --codex-session-id <session-id> --json
orp checkpoint queue --idea-id <idea-id> --json
orp agent work --once --json

To choose where collaboration should start, scaffold a profile first:

orp discover profile init --owner SproutSeeds --owner-type org
orp discover github scan --profile orp.profile.default.json --json

Option 0 — Smoke-test ORP in a fresh directory

This is the fastest way to verify the published CLI before integrating ORP into a real repo.

mkdir test-orp && cd test-orp
npm i -g open-research-protocol
orp init
orp gate run --profile default
orp packet emit --profile default
orp report summary
find orp -maxdepth 3 -type f | sort

Expected outcomes:

  • orp.yml is created in the working directory
  • orp/artifacts/<run_id>/RUN.json is written after gate run
  • orp/packets/*.json and orp/packets/*.md are written after packet emit
  • orp/artifacts/<run_id>/RUN_SUMMARY.md is written after report summary

Then validate a real public pack flow:

orp pack list
orp pack install --pack-id erdos-open-problems --include catalog
orp --config orp.erdos-catalog-sync.yml gate run --profile erdos_catalog_sync_active
orp report summary

This exercises the published pack install path plus a real pack-backed gate run.

Option A — Add ORP to an existing repo

  1. Copy the folder into your repo (recommended: orp/):
mkdir -p /path/to/your/repo/orp
cp -R /path/to/orp/* /path/to/your/repo/orp/
  1. Link it from your repo README.md (example):
## Protocol
This project follows ORP: `orp/PROTOCOL.md`.
  1. Edit orp/PROTOCOL.md and fill in the Canonical Paths section for your repo. This is required for correctness.

  2. Start using templates for all claims/verifications:

  • orp/templates/CLAIM.md
  • orp/templates/VERIFICATION_RECORD.md
  • orp/templates/FAILED_TOPIC.md
  1. Optional (agent users): integrate ORP into your agent’s primary instruction file:
  • Read orp/AGENT_INTEGRATION.md
  • Or run: orp/scripts/orp-agent-integrate.sh --sync /path/to/your/agent/instructions.md
    • Optional checkpoint tool (writes a process-only handoff/compaction log): orp/scripts/orp-checkpoint.sh --sync --agent-file /path/to/your/agent/instructions.md "checkpoint note"

Option B — Start a new project from ORP

  1. Create a new project directory and copy ORP in:
mkdir -p /path/to/new-project
cp -R /path/to/orp/* /path/to/new-project/
  1. Rename/edit README.md and PROTOCOL.md for your project.

  2. Define canonical paths (paper/code/data/etc) in PROTOCOL.md.

  3. Optional (agent users): integrate ORP into your agent’s primary instruction file:

  • Read AGENT_INTEGRATION.md
  • Or run: scripts/orp-agent-integrate.sh --sync /path/to/your/agent/instructions.md
    • Optional checkpoint tool (writes a process-only handoff/compaction log): scripts/orp-checkpoint.sh --sync --agent-file /path/to/your/agent/instructions.md "checkpoint note"

Optional helper script

If you want a guided copy:

./scripts/orp-init.sh /path/to/your/repo/orp

If you are evaluating ORP for the first time, prefer Option 0 before copying files into a larger repo.

Important note: “activation”

ORP becomes real only when your team adopts the procedure:

  • claims must be labeled,
  • Exact/Verified claims must have verification hooks,
  • disagreements are resolved by verification or downgrade,
  • and failures are recorded as first-class artifacts.

There is no automated enforcement unless you add it (CI hooks, PR checks, etc.).