codex-orchestrator 0.1.49 → 0.1.51

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.
Files changed (57) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/README.md +22 -2
  3. package/bridge-runtime.json +2719 -0
  4. package/dist/src/bridge-runtime.d.ts +17 -0
  5. package/dist/src/bridge-runtime.d.ts.map +1 -0
  6. package/dist/src/bridge-runtime.js +170 -0
  7. package/dist/src/bridge-runtime.js.map +1 -0
  8. package/dist/src/cli.js +6 -1
  9. package/dist/src/cli.js.map +1 -1
  10. package/dist/src/fs/durable-atomic-file.d.ts +2 -0
  11. package/dist/src/fs/durable-atomic-file.d.ts.map +1 -0
  12. package/dist/src/fs/durable-atomic-file.js +33 -0
  13. package/dist/src/fs/durable-atomic-file.js.map +1 -0
  14. package/dist/src/index.d.ts +3 -1
  15. package/dist/src/index.d.ts.map +1 -1
  16. package/dist/src/index.js +1 -0
  17. package/dist/src/index.js.map +1 -1
  18. package/dist/src/runner/command-utils.d.ts +1 -0
  19. package/dist/src/runner/command-utils.d.ts.map +1 -1
  20. package/dist/src/runner/command-utils.js +7 -0
  21. package/dist/src/runner/command-utils.js.map +1 -1
  22. package/dist/src/runner/daemon-command.d.ts.map +1 -1
  23. package/dist/src/runner/daemon-command.js +17 -1
  24. package/dist/src/runner/daemon-command.js.map +1 -1
  25. package/dist/src/runner/hygiene-cleanup.js +1 -1
  26. package/dist/src/runner/hygiene-cleanup.js.map +1 -1
  27. package/dist/src/runner/local-state.d.ts +7 -1
  28. package/dist/src/runner/local-state.d.ts.map +1 -1
  29. package/dist/src/runner/local-state.js +14 -5
  30. package/dist/src/runner/local-state.js.map +1 -1
  31. package/dist/src/runner/mission-coordinator-lock.d.ts +3 -0
  32. package/dist/src/runner/mission-coordinator-lock.d.ts.map +1 -1
  33. package/dist/src/runner/mission-coordinator-lock.js +32 -21
  34. package/dist/src/runner/mission-coordinator-lock.js.map +1 -1
  35. package/dist/src/runner/plan-auto-command.d.ts.map +1 -1
  36. package/dist/src/runner/plan-auto-command.js +19 -1
  37. package/dist/src/runner/plan-auto-command.js.map +1 -1
  38. package/dist/src/runner/scoped-auto-command.d.ts.map +1 -1
  39. package/dist/src/runner/scoped-auto-command.js +21 -3
  40. package/dist/src/runner/scoped-auto-command.js.map +1 -1
  41. package/dist/src/runner/scoped-recovery.d.ts.map +1 -1
  42. package/dist/src/runner/scoped-recovery.js +19 -2
  43. package/dist/src/runner/scoped-recovery.js.map +1 -1
  44. package/dist/src/runner/target-activity-fence.d.ts +23 -0
  45. package/dist/src/runner/target-activity-fence.d.ts.map +1 -0
  46. package/dist/src/runner/target-activity-fence.js +249 -0
  47. package/dist/src/runner/target-activity-fence.js.map +1 -0
  48. package/dist/src/setup/setup-command.d.ts +3 -0
  49. package/dist/src/setup/setup-command.d.ts.map +1 -1
  50. package/dist/src/setup/setup-command.js +47 -1
  51. package/dist/src/setup/setup-command.js.map +1 -1
  52. package/dist/src/setup/skill-runtime-v2-preparation.d.ts +56 -0
  53. package/dist/src/setup/skill-runtime-v2-preparation.d.ts.map +1 -0
  54. package/dist/src/setup/skill-runtime-v2-preparation.js +304 -0
  55. package/dist/src/setup/skill-runtime-v2-preparation.js.map +1 -0
  56. package/docs/deep-dive.md +27 -0
  57. package/package.json +4 -2
package/CHANGELOG.md CHANGED
@@ -6,6 +6,31 @@ The format is based on Keep a Changelog, and this project follows SemVer.
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.1.51] - 2026-07-15
10
+
11
+ ### Fixed
12
+ - Bridge publication normalizes the package CLI executable mode before hashing,
13
+ so installed-package verification matches npm's required `bin` mode.
14
+
15
+ ## [0.1.50] - 2026-07-15
16
+
17
+ ### Added
18
+ - Added a target-scoped shared/exclusive activity fence for daemon lifetime,
19
+ targeted claims, setup, and skill-runtime-v2 preparation.
20
+ - Added `setup --prepare-skill-runtime-v2`, strict Darwin/Linux legacy-process
21
+ drain checks, canonical prepared-generation evidence, and a verified
22
+ `bridge-runtime.json` package manifest.
23
+
24
+ ### Changed
25
+ - Runner state can preserve a forward-compatible empty version-2 envelope while
26
+ bridge config remains version 1; bridge execution still stores only legacy
27
+ run records and does not change prompt or Codex transport behavior.
28
+
29
+ ### Security
30
+ - Skill-runtime-v2 preparation now fails closed on foreign or ambiguous process
31
+ ownership, active local/GitHub claims, GitHub read failure, and bridge package
32
+ provenance mismatch.
33
+
9
34
  ## [0.1.49] - 2026-07-15
10
35
 
11
36
  ### Added
package/README.md CHANGED
@@ -225,8 +225,28 @@ Run setup and create missing labels:
225
225
  codex-orchestrator setup --prepare-labels
226
226
  ```
227
227
 
228
- Commit the generated `.codex-orchestrator/` directory to your repository. It is
229
- the repository-owned policy for how autonomous work should run.
228
+ ### Prepare A Consumer For Skill Runtime V2
229
+
230
+ The bridge release adds a fail-closed activity fence without changing prompt
231
+ execution. After that exact bridge package is installed, stop every runner for
232
+ the target and prepare canonical migration evidence:
233
+
234
+ ```sh
235
+ codex-orchestrator setup --target . --prepare-skill-runtime-v2
236
+ ```
237
+
238
+ Preparation succeeds only when no daemon, targeted claim, setup, local
239
+ nonterminal run, or open GitHub issue with the running label can overlap it.
240
+ It writes `skill-runtime-v2/prepared-generation.json` below the configured
241
+ runner state directory and records the verified bridge package hash. Relative
242
+ or otherwise ambiguous daemon process identities block preparation. This
243
+ command does not migrate config, switch the Codex transport, publish a package,
244
+ or start work; those actions belong to a separately authorized structural
245
+ release.
246
+
247
+ For normal setup, commit the repository-owned config and prompt policy files
248
+ under `.codex-orchestrator/`. Do not commit `prepared-generation.json`; it is
249
+ runtime migration evidence beneath the ignored runner state directory.
230
250
 
231
251
  By default, setup reads the GitHub owner and repo from `git remote origin`. Use
232
252
  `--target`, `--github-owner`, or `--github-repo` only when you need to override