open-research-protocol 0.4.25 → 0.4.26

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/CHANGELOG.md CHANGED
@@ -6,6 +6,36 @@ There was no prior in-repo changelog file, so the first formal entry starts
6
6
  with the currently shipped `v0.4.4` release and summarizes the full release
7
7
  delta reflected in this repo.
8
8
 
9
+ ## v0.4.26 - 2026-04-17
10
+
11
+ This release adds ORP-native project context and OpenAI research-loop support,
12
+ so agents can initialize a directory, keep its operating lens refreshed, and
13
+ use explicit high-reasoning or web-synthesis API calls only when the local
14
+ loop needs them.
15
+
16
+ ### Added
17
+
18
+ - Added `orp project refresh` and `orp project show` for `orp/project.json`,
19
+ a process-only project context lens that records authority surfaces,
20
+ directory signals, evolution policy, and research call timing.
21
+ - Added `orp research ask`, `orp research status`, and `orp research show` for
22
+ durable OpenAI research runs with dry-run planning by default and explicit
23
+ `--execute` live calls.
24
+ - Added a tiny `scripts/orp-mcp` stdio wrapper exposing the research commands
25
+ as MCP tools for Codex-like clients.
26
+ - Added versioned schemas for research runs and project context artifacts.
27
+ - Added `orp secrets keychain-add` so users can save a local machine OpenAI key
28
+ or other provider credential without relying on hosted secret storage.
29
+
30
+ ### Changed
31
+
32
+ - Updated `orp init`, `orp status`, `orp about`, and `orp home` to expose the
33
+ project context lifecycle as a first-class ORP surface.
34
+ - Documented the research timing rule: decompose locally first, call high
35
+ reasoning for ambiguous decision gates, call web synthesis for current public
36
+ facts and citations, and reserve Deep Research for heavier source conflicts
37
+ or literature-scale synthesis.
38
+
9
39
  ## v0.4.25 - 2026-04-16
10
40
 
11
41
  This release strengthens ORP continuation handling for long-running delegated
package/README.md CHANGED
@@ -307,7 +307,7 @@ The practical model is:
307
307
 
308
308
  ## Secrets Quick Start
309
309
 
310
- Today, ORP secrets use the hosted ORP secret inventory as the canonical store, with optional local macOS Keychain caching. That means the real first step for secrets is:
310
+ ORP secrets can live in the hosted ORP secret inventory, with optional local macOS Keychain caching, or directly in the local ORP Keychain registry when you need a machine-local store immediately. For hosted secrets, start with:
311
311
 
312
312
  ```bash
313
313
  orp auth login
@@ -335,6 +335,18 @@ For an agent or script, use stdin:
335
335
  printf '%s' 'sk-...' | orp secrets add --alias openai-primary --label "OpenAI Primary" --provider openai --value-stdin
336
336
  ```
337
337
 
338
+ For a local-only machine secret, use the ORP Keychain path:
339
+
340
+ ```bash
341
+ printf '%s' 'sk-...' | orp secrets keychain-add --alias openai-primary --label "OpenAI Primary" --provider openai --env-var-name OPENAI_API_KEY --value-stdin
342
+ ```
343
+
344
+ If the key is already in the current process environment:
345
+
346
+ ```bash
347
+ orp secrets keychain-add --alias openai-primary --label "OpenAI Primary" --provider openai --env-var-name OPENAI_API_KEY --from-env
348
+ ```
349
+
338
350
  If a service needs both a username and a secret, store the username with it:
339
351
 
340
352
  ```bash
@@ -376,6 +388,7 @@ For secrets, the simplest plain-English rule is:
376
388
  - `orp secrets show ...` = inspect one saved key record
377
389
  - `orp secrets resolve ...` = get the key value for use right now
378
390
  - `orp secrets ensure ...` = use the saved key if it exists, otherwise create it
391
+ - `orp secrets keychain-add ...` = save or update a machine-local ORP secret in macOS Keychain
379
392
  - `orp secrets sync-keychain ...` = keep a secure local Mac copy too
380
393
 
381
394
  You can ignore `--env-var-name` at first. It is optional metadata like `OPENAI_API_KEY`, not the key itself.
@@ -444,6 +457,7 @@ orp workspace remove-tab main --path /absolute/path/to/project
444
457
  orp workspace sync main
445
458
  orp secrets list --json
446
459
  orp secrets ensure --alias openai-primary --provider openai --current-project --json
460
+ orp secrets keychain-add --alias openai-primary --provider openai --env-var-name OPENAI_API_KEY --value-stdin --json
447
461
  orp secrets sync-keychain openai-primary --json
448
462
  orp schedule add codex --name morning-summary --prompt "Summarize this repo" --json
449
463
  ```
@@ -530,6 +544,7 @@ The bridge package lives at `packages/lifeops-orp/`.
530
544
  Stable artifact paths:
531
545
 
532
546
  - `orp/state.json`
547
+ - `orp/project.json`
533
548
  - `orp/artifacts/<run_id>/RUN.json`
534
549
  - `orp/artifacts/<run_id>/RUN_SUMMARY.md`
535
550
  - `orp/packets/<packet_id>.json`
@@ -542,26 +557,28 @@ Stable artifact paths:
542
557
  1. Copy this folder into your repo (recommended location: `orp/`).
543
558
  2. Link to `orp/PROTOCOL.md` from your repo `README.md`.
544
559
  3. Customize **Canonical Paths** inside `orp/PROTOCOL.md` to match your repo layout.
545
- 4. Run `orp init` in the repo root to establish ORP governance.
560
+ 4. Run `orp init` in the repo root to establish ORP governance and create `orp/project.json`.
546
561
  5. If you keep many repos under one umbrella directory, run `orp agents root set /absolute/path/to/projects` once and let `orp init --projects-root /absolute/path/to/projects` link each child repo back to that parent guidance.
547
562
  6. Use `orp agents audit` whenever you want to confirm `AGENTS.md` and `CLAUDE.md` are still aligned without overwriting human notes.
548
- 7. Use `orp status`, `orp branch start`, `orp checkpoint create`, and `orp backup` as the default implementation loop.
549
- 8. Use the templates for all new claims and verifications.
550
- 9. Optional (agent users): integrate ORP into your agent’s primary instruction file (see `orp/AGENT_INTEGRATION.md`).
563
+ 7. Use `orp project refresh --json` after adding or changing roadmap, spec, agent-guidance, docs, manifest, or command-surface files.
564
+ 8. Use `orp status`, `orp branch start`, `orp checkpoint create`, and `orp backup` as the default implementation loop.
565
+ 9. Use the templates for all new claims and verifications.
566
+ 10. Optional (agent users): integrate ORP into your agent’s primary instruction file (see `orp/AGENT_INTEGRATION.md`).
551
567
 
552
568
  ## Quick start (new project)
553
569
 
554
570
  1. Copy this folder into a new project directory.
555
571
  2. If you keep projects under one umbrella directory, run `orp agents root set /absolute/path/to/projects` once from anywhere.
556
- 3. Run `orp init` immediately so the repo starts ORP-governed and scaffolds or updates `AGENTS.md` and `CLAUDE.md`.
572
+ 3. Run `orp init` immediately so the repo starts ORP-governed, scaffolds or updates `AGENTS.md` and `CLAUDE.md`, and creates `orp/project.json`.
557
573
  4. Edit `PROTOCOL.md` to define your canonical paths and claim labels.
558
- 5. Run `orp agents audit` to confirm the repo-level agent files are aligned and still preserving human notes.
559
- 6. Start implementation on a work branch with `orp branch start`.
560
- 7. Create regular checkpoint commits with `orp checkpoint create`.
561
- 8. Use `orp backup` whenever you want ORP to capture current work to a dedicated remote backup ref.
562
- 9. Validate promotable task/decision/hypothesis artifacts with `orp kernel validate <path> --json`.
563
- 10. Start by adding one small claim + verification record using the templates.
564
- 11. Optional (agent users): integrate ORP into your agent’s primary instruction file (see `AGENT_INTEGRATION.md`).
574
+ 5. Run `orp project refresh --json` whenever the directory gains new roadmap, spec, docs, manifest, or command-surface files.
575
+ 6. Run `orp agents audit` to confirm the repo-level agent files are aligned and still preserving human notes.
576
+ 7. Start implementation on a work branch with `orp branch start`.
577
+ 8. Create regular checkpoint commits with `orp checkpoint create`.
578
+ 9. Use `orp backup` whenever you want ORP to capture current work to a dedicated remote backup ref.
579
+ 10. Validate promotable task/decision/hypothesis artifacts with `orp kernel validate <path> --json`.
580
+ 11. Start by adding one small claim + verification record using the templates.
581
+ 12. Optional (agent users): integrate ORP into your agent’s primary instruction file (see `AGENT_INTEGRATION.md`).
565
582
 
566
583
  **Activation is procedural/social, not runtime:** nothing “turns on” automatically. ORP works only if contributors follow it.
567
584