open-research-protocol 0.4.2 → 0.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +42 -9
- package/cli/orp.py +9770 -2497
- package/docs/AGENT_LOOP.md +4 -2
- package/docs/CANONICAL_CLI_BOUNDARY.md +337 -0
- package/docs/NPM_RELEASE_CHECKLIST.md +42 -10
- package/docs/ORP_LINK_RUNNER_PLAN.md +521 -0
- package/docs/ORP_PUBLIC_LAUNCH_CHECKLIST.md +24 -1
- package/docs/RUNNER_INTERNAL_OPERATIONS.md +107 -0
- package/package.json +3 -2
- package/scripts/npm-prepublish-guard.js +55 -0
- package/scripts/orp-release-smoke.sh +234 -0
- package/spec/v1/link-project.schema.json +57 -0
- package/spec/v1/link-session.schema.json +97 -0
- package/spec/v1/runner-machine.schema.json +48 -0
- package/spec/v1/runner-runtime.schema.json +130 -0
package/README.md
CHANGED
|
@@ -21,6 +21,7 @@ verification remains independent of framing. See `modules/instruments/README.md`
|
|
|
21
21
|
- `PROTOCOL.md` — the protocol to copy into a project
|
|
22
22
|
- `INSTALL.md` — how to adopt ORP in an existing repo or start a new project from it
|
|
23
23
|
- `docs/AGENT_LOOP.md` — canonical operating loop when an agent is the primary ORP user
|
|
24
|
+
- `docs/CANONICAL_CLI_BOUNDARY.md` — canonical source-of-truth boundary between CLI, Rust, and web
|
|
24
25
|
- `docs/EXTERNAL_CONTRIBUTION_GOVERNANCE.md` — canonical local-first workflow for external OSS PR work
|
|
25
26
|
- `docs/OSS_CONTRIBUTION_AGENT_LOOP.md` — agent operating rhythm for external contribution workflows
|
|
26
27
|
- `templates/` — claim, verification, failure, and issue templates
|
|
@@ -39,6 +40,7 @@ verification remains independent of framing. See `modules/instruments/README.md`
|
|
|
39
40
|
ORP should feel like one CLI with built-in abilities:
|
|
40
41
|
|
|
41
42
|
- `workspace` for hosted auth, idea, feature, world, checkpoint, and worker operations
|
|
43
|
+
- `governance` for local-first repo initialization, branch safety, checkpoint commits, backup refs, readiness, repair, and cleanup
|
|
42
44
|
- `discover` for profile-based GitHub scanning and opportunity selection
|
|
43
45
|
- `collaborate` for repository collaboration setup and workflow execution
|
|
44
46
|
- `erdos` for Erdos-specific data and workflow support
|
|
@@ -68,7 +70,13 @@ Fresh-directory smoke test:
|
|
|
68
70
|
mkdir test-orp && cd test-orp
|
|
69
71
|
npm i -g open-research-protocol
|
|
70
72
|
orp init
|
|
73
|
+
orp status --json
|
|
74
|
+
orp branch start work/bootstrap --allow-dirty --json
|
|
75
|
+
orp checkpoint create -m "bootstrap governance" --json
|
|
76
|
+
orp backup -m "backup bootstrap work" --json
|
|
71
77
|
orp gate run --profile default
|
|
78
|
+
orp checkpoint create -m "capture passing validation" --json
|
|
79
|
+
orp ready --json
|
|
72
80
|
orp packet emit --profile default
|
|
73
81
|
orp report summary
|
|
74
82
|
find orp -maxdepth 3 -type f | sort
|
|
@@ -78,8 +86,10 @@ What this proves:
|
|
|
78
86
|
|
|
79
87
|
- the global `orp` binary resolves,
|
|
80
88
|
- running bare `orp` opens the CLI home screen with packs and quick actions,
|
|
81
|
-
- the runtime can initialize a repo-local ORP workspace,
|
|
89
|
+
- the runtime can initialize a repo-local ORP-governed workspace,
|
|
90
|
+
- branch safety and checkpoint mechanics are available locally from day one,
|
|
82
91
|
- a gate run writes `RUN.json`,
|
|
92
|
+
- readiness can be marked explicitly after validation plus checkpointing,
|
|
83
93
|
- packet emit writes process metadata to `orp/packets/`,
|
|
84
94
|
- and report summary renders a one-page digest from the last run.
|
|
85
95
|
|
|
@@ -100,7 +110,16 @@ orp whoami --json
|
|
|
100
110
|
orp ideas list --json
|
|
101
111
|
orp world bind --idea-id <idea-id> --project-root /abs/path --codex-session-id <session-id> --json
|
|
102
112
|
orp checkpoint queue --idea-id <idea-id> --json
|
|
103
|
-
orp
|
|
113
|
+
orp runner work --once --json
|
|
114
|
+
orp runner work --continuous --transport auto --json
|
|
115
|
+
orp agent work --once --json # compatibility alias with legacy checkpoint fallback
|
|
116
|
+
orp status --json
|
|
117
|
+
orp branch start work/<topic> --json
|
|
118
|
+
orp checkpoint create -m "describe completed unit" --json
|
|
119
|
+
orp backup -m "backup current work" --json
|
|
120
|
+
orp ready --json
|
|
121
|
+
orp doctor --json
|
|
122
|
+
orp cleanup --json
|
|
104
123
|
orp discover profile init --json
|
|
105
124
|
orp discover github scan --profile orp.profile.default.json --json
|
|
106
125
|
orp collaborate workflows --json
|
|
@@ -118,7 +137,8 @@ These surfaces are meant to help automated systems discover ORP quickly:
|
|
|
118
137
|
|
|
119
138
|
- bare `orp` opens a home screen with repo/runtime status, available packs, and next commands
|
|
120
139
|
- `orp home --json` returns the same landing context in machine-readable form
|
|
121
|
-
- `orp auth ...`, `orp ideas ...`, `orp world ...`, `orp checkpoint ...`, and `orp agent ...` expose the hosted workspace surface directly through ORP
|
|
140
|
+
- `orp auth ...`, `orp ideas ...`, `orp world ...`, `orp checkpoint ...`, `orp runner ...`, and `orp agent ...` expose the hosted workspace surface directly through ORP
|
|
141
|
+
- `orp init`, `orp status`, `orp branch start`, `orp checkpoint create`, `orp backup`, `orp ready`, `orp doctor`, and `orp cleanup` expose the local-first repo governance surface directly through ORP
|
|
122
142
|
- `orp discover ...` exposes profile-based GitHub scanning as a built-in ORP ability
|
|
123
143
|
- `orp collaborate ...` exposes built-in collaboration setup and workflow execution without asking users to think in terms of separate governance packs
|
|
124
144
|
- `llms.txt` gives a concise repo/package map for agents that scan documentation.
|
|
@@ -146,15 +166,21 @@ Release process:
|
|
|
146
166
|
1. Copy this folder into your repo (recommended location: `orp/`).
|
|
147
167
|
2. Link to `orp/PROTOCOL.md` from your repo `README.md`.
|
|
148
168
|
3. Customize **Canonical Paths** inside `orp/PROTOCOL.md` to match your repo layout.
|
|
149
|
-
4.
|
|
150
|
-
5.
|
|
169
|
+
4. Run `orp init` in the repo root to establish ORP governance.
|
|
170
|
+
5. Use `orp status`, `orp branch start`, `orp checkpoint create`, and `orp backup` as the default implementation loop.
|
|
171
|
+
6. Use the templates for all new claims and verifications.
|
|
172
|
+
7. Optional (agent users): integrate ORP into your agent’s primary instruction file (see `orp/AGENT_INTEGRATION.md`).
|
|
151
173
|
|
|
152
174
|
## Quick start (new project)
|
|
153
175
|
|
|
154
176
|
1. Copy this folder into a new project directory.
|
|
155
|
-
2.
|
|
156
|
-
3.
|
|
157
|
-
4.
|
|
177
|
+
2. Run `orp init` immediately so the repo starts ORP-governed.
|
|
178
|
+
3. Edit `PROTOCOL.md` to define your canonical paths and claim labels.
|
|
179
|
+
4. Start implementation on a work branch with `orp branch start`.
|
|
180
|
+
5. Create regular checkpoint commits with `orp checkpoint create`.
|
|
181
|
+
6. Use `orp backup` whenever you want ORP to capture current work to a dedicated remote backup ref.
|
|
182
|
+
7. Start by adding one small claim + verification record using the templates.
|
|
183
|
+
8. Optional (agent users): integrate ORP into your agent’s primary instruction file (see `AGENT_INTEGRATION.md`).
|
|
158
184
|
|
|
159
185
|
**Activation is procedural/social, not runtime:** nothing “turns on” automatically. ORP works only if contributors follow it.
|
|
160
186
|
|
|
@@ -175,9 +201,16 @@ orp auth login
|
|
|
175
201
|
orp ideas list --json
|
|
176
202
|
orp world bind --idea-id <idea-id> --project-root /abs/path --codex-session-id <session-id> --json
|
|
177
203
|
orp checkpoint queue --idea-id <idea-id> --json
|
|
178
|
-
orp
|
|
204
|
+
orp runner work --once --json
|
|
205
|
+
orp runner work --continuous --transport auto --json
|
|
206
|
+
orp agent work --once --json # compatibility alias with legacy checkpoint fallback
|
|
179
207
|
orp init
|
|
208
|
+
orp status --json
|
|
209
|
+
orp branch start work/<topic> --json
|
|
210
|
+
orp checkpoint create -m "describe completed unit" --json
|
|
211
|
+
orp backup -m "backup current work" --json
|
|
180
212
|
orp gate run --profile default
|
|
213
|
+
orp ready --json
|
|
181
214
|
orp packet emit --profile default
|
|
182
215
|
orp report summary --run-id <run_id>
|
|
183
216
|
orp erdos sync
|