@sproutseeds/orp-cli
v0.3.0
Published
ORP CLI (Open Research Protocol): agent-friendly research workflows, runtime, reports, and pack tooling.
Maintainers
Readme
ORP — Open Research Protocol (template pack)
ORP is a project-agnostic, docs-first, agent-friendly protocol for doing research (or research-like engineering) with:
- explicit claim levels,
- reproducible verification hooks,
- dispute handling that resolves disagreements by verification or downgrade (not argument),
- first-class “failed paths” (dead ends recorded as assets),
- and a non-blocking Alignment/Polish Log for optional wording/clarity suggestions.
Boundary (non-negotiable): ORP files are process-only. They are not evidence and must not be cited as proof for results. Evidence lives in your project’s canonical artifact paths (data, code, paper, proofs, logs, etc.).
ORP also supports optional, modular Instruments for framing inquiry upstream of claims. Instruments are process-only and
verification remains independent of framing. See modules/instruments/README.md and docs/WHY_INSTRUMENTS.md.
What’s in this folder
AGENT_INTEGRATION.md— optional: integrate ORP into an AI agent’s primary instruction filellms.txt— concise discovery guide for LLM and agentic systemsPROTOCOL.md— the protocol to copy into a projectINSTALL.md— how to adopt ORP in an existing repo or start a new project from itdocs/AGENT_LOOP.md— canonical operating loop when an agent is the primary ORP userdocs/EXTERNAL_CONTRIBUTION_GOVERNANCE.md— canonical local-first workflow for external OSS PR workdocs/OSS_CONTRIBUTION_AGENT_LOOP.md— agent operating rhythm for external contribution workflowstemplates/— claim, verification, failure, and issue templatesexamples/— minimal examples (illustrative, not exhaustive)scripts/— optional helper scripts (no dependencies beyond standard shell tools)modules/— optional modules (including Instruments)docs/— optional docs (including Instruments overview + presentation)- includes standardized external PR governance:
docs/EXTERNAL_CONTRIBUTION_GOVERNANCE.md - includes sunflower-coda PR governance mapping:
docs/SUNFLOWER_CODA_PR_GOVERNANCE_MAPPING.md
- includes standardized external PR governance:
cone/— optional process-only context log (agentic handoff/compaction)spec/— optional v1 runtime draft schemas (packets/config/lifecycle mapping)packs/— optional downloadable profile packs (domain templates + metadata)
Install CLI (npm)
Global install:
npm i -g @sproutseeds/orp-cli
orp -hPrerequisites:
- Python 3 available on
PATH PyYAMLin that Python environment (python3 -m pip install pyyaml)
Fresh-directory smoke test:
mkdir test-orp && cd test-orp
npm i -g @sproutseeds/orp-cli
orp init
orp gate run --profile default
orp packet emit --profile default
orp report summary
find orp -maxdepth 3 -type f | sortWhat this proves:
- the global
orpbinary resolves, - the runtime can initialize a repo-local ORP workspace,
- a gate run writes
RUN.json, - packet emit writes process metadata to
orp/packets/, - and report summary renders a one-page digest from the last run.
Local repo usage still works:
./scripts/orp -hAgent-first discovery surfaces:
orp about --json
orp erdos sync --json
orp pack list --json
orp pack install --pack-id erdos-open-problems --json
orp pack fetch --source <git-url> --pack-id <pack-id> --install-target . --json
orp gate run --profile default --json
orp packet emit --profile default --json
orp report summary --jsonThese surfaces are meant to help automated systems discover ORP quickly:
llms.txtgives a concise repo/package map for agents that scan documentation.docs/AGENT_LOOP.mdgives agents one intended operating rhythm instead of leaving them to invent one.orp about --jsonreturns machine-readable capability, artifact, schema, and pack metadata.- Core runtime and pack commands can emit JSON so agents do not need to scrape human text.
- Stable artifact paths make it easy to follow outputs across runs:
orp/state.jsonorp/artifacts/<run_id>/RUN.jsonorp/artifacts/<run_id>/RUN_SUMMARY.mdorp/packets/<packet_id>.jsonorp/packets/<packet_id>.md
Release process:
docs/NPM_RELEASE_CHECKLIST.md.github/workflows/npm-publish.yml(publishes onv*tags)
Quick start (existing repo)
- Copy this folder into your repo (recommended location:
orp/). - Link to
orp/PROTOCOL.mdfrom your repoREADME.md. - Customize Canonical Paths inside
orp/PROTOCOL.mdto match your repo layout. - Use the templates for all new claims and verifications.
- Optional (agent users): integrate ORP into your agent’s primary instruction file (see
orp/AGENT_INTEGRATION.md).
Quick start (new project)
- Copy this folder into a new project directory.
- Edit
PROTOCOL.mdto define your canonical paths and claim labels. - Start by adding one small claim + verification record using the templates.
- Optional (agent users): integrate ORP into your agent’s primary instruction file (see
AGENT_INTEGRATION.md).
Activation is procedural/social, not runtime: nothing “turns on” automatically. ORP works only if contributors follow it.
Optional Runtime Draft (v1)
ORP remains docs-first by default. For teams that want local gate execution and machine-readable packets, there is an optional v1 draft:
- Overview:
docs/ORP_V1_ATOMIC_DISCOVERY_EVOLUTION.md - Packet schema:
spec/v1/packet.schema.json - Config schema:
spec/v1/orp.config.schema.json - Lifecycle mapping:
spec/v1/LIFECYCLE_MAPPING.md - Sunflower atomic profile example:
examples/orp.sunflower-coda.atomic.yml
Minimal CLI skeleton:
orp init
orp gate run --profile default
orp packet emit --profile default
orp report summary --run-id <run_id>
orp pack list
orp erdos syncEquivalent local-repo commands are available via ./scripts/orp ... when developing ORP itself.
Run summaries are one-page markdown reports generated from RUN.json and intended for fast teammate review:
- what ran,
- what passed/failed,
- where evidence logs live,
- and how reproducible the run is.
Sample summaries:
examples/reports/sunflower_live_compare_857.RUN_SUMMARY.mdexamples/reports/sunflower_live_compare_20.RUN_SUMMARY.mdexamples/reports/sunflower_live_compare_367.RUN_SUMMARY.md
Optional Profile Packs
ORP supports reusable domain profile packs so core runtime stays general.
- Pack docs:
docs/PROFILE_PACKS.md - Pack metadata schema:
spec/v1/profile-pack.schema.json - Included pack:
packs/erdos-open-problems/(857/20/367 + catalog sync + governance profiles) - Included pack:
packs/external-pr-governance/(generic external OSS contribution workflow pack) - Included pack:
packs/issue-smashers/(opinionated external contribution workspace pack built on the same governance ideas)
Install pack configs into a target repo (recommended):
orp pack list
orp pack install \
--pack-id erdos-open-problemsFetch an external pack repo and install through CLI (no manual clone flow required):
orp pack fetch \
--source https://github.com/example/orp-packs.git \
--pack-id erdos-open-problems \
--install-target .This writes rendered configs and a dependency audit report at:
./orp.erdos-catalog-sync.yml./orp.erdos-live-compare.yml./orp.erdos-problem857.yml./orp.erdos.pack-install-report.md
Install the Issue Smashers workspace pack:
orp pack install \
--pack-id issue-smashersThis writes:
./orp.issue-smashers.yml./orp.issue-smashers-feedback-hardening.yml./orp.issue-smashers.pack-install-report.md./issue-smashers/workspace scaffold
The pack is intentionally install-and-adapt:
- it creates the workspace layout and starter docs
- it does not auto-clone target repos
- it keeps governance commands as explicit placeholders until you wire in a repo adapter
By default, install includes starter scaffolding for Problems 857/20/367 so live_compare runs are install-and-go in a fresh repo.
If you want the Problem 857 lane to pull the real public sunflower-lean repo into an empty repo instead of writing starter-only 857 files, use:
orp pack install \
--pack-id erdos-open-problems \
--include problem857 \
--var PROBLEM857_SOURCE_MODE=public_repo \
--var PROBLEM857_PUBLIC_REPO_URL=https://github.com/SproutSeeds/sunflower-leanThis syncs the public Lean repo into sunflower_lean/ and generates the ORP-owned 857 bridge files (analysis/, docs/, scripts/, and orchestrator/) on top of it.
For public-only adoption (no private sunflower adapters yet):
orp pack install \
--pack-id erdos-open-problems \
--include catalogClean-room public pack cycle:
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 summaryThis is the simplest end-to-end pack workflow currently validated against the published npm package.
Manual render path (advanced):
python3 scripts/orp-pack-render.py --pack packs/erdos-open-problems --list
python3 scripts/orp-pack-render.py --pack packs/erdos-open-problems --template sunflower_live_compare_suite \
--var TARGET_REPO_ROOT=/path/to/repo --out /path/to/repo/orp.erdos-live-compare.yml
python3 scripts/orp-pack-render.py --pack packs/erdos-open-problems --template sunflower_mathlib_pr_governance \
--var TARGET_REPO_ROOT=/path/to/repo --out /path/to/repo/orp.erdos-mathlib-pr-governance.yml
python3 scripts/orp-pack-render.py --pack packs/erdos-open-problems --template erdos_problems_catalog_sync \
--var TARGET_REPO_ROOT=/path/to/repo --var ORP_REPO_ROOT=/path/to/orp --out /path/to/repo/orp.erdos-catalog-sync.yml