codex-orchestrator 0.1.30 → 0.1.35

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 (133) hide show
  1. package/CHANGELOG.md +65 -0
  2. package/README.md +152 -164
  3. package/dist/src/cli.js +68 -1
  4. package/dist/src/cli.js.map +1 -1
  5. package/dist/src/codex/command-adapter.d.ts +2 -1
  6. package/dist/src/codex/command-adapter.d.ts.map +1 -1
  7. package/dist/src/codex/command-adapter.js +13 -2
  8. package/dist/src/codex/command-adapter.js.map +1 -1
  9. package/dist/src/codex/mobile-device-guard.d.ts +7 -0
  10. package/dist/src/codex/mobile-device-guard.d.ts.map +1 -0
  11. package/dist/src/codex/mobile-device-guard.js +63 -0
  12. package/dist/src/codex/mobile-device-guard.js.map +1 -0
  13. package/dist/src/config/constants.d.ts +1 -1
  14. package/dist/src/config/constants.d.ts.map +1 -1
  15. package/dist/src/config/constants.js +1 -0
  16. package/dist/src/config/constants.js.map +1 -1
  17. package/dist/src/config/schema.d.ts +16 -2
  18. package/dist/src/config/schema.d.ts.map +1 -1
  19. package/dist/src/config/schema.js +42 -0
  20. package/dist/src/config/schema.js.map +1 -1
  21. package/dist/src/github/gh-pull-request-adapter.d.ts +1 -0
  22. package/dist/src/github/gh-pull-request-adapter.d.ts.map +1 -1
  23. package/dist/src/github/gh-pull-request-adapter.js +20 -0
  24. package/dist/src/github/gh-pull-request-adapter.js.map +1 -1
  25. package/dist/src/github/pull-requests.d.ts +2 -0
  26. package/dist/src/github/pull-requests.d.ts.map +1 -1
  27. package/dist/src/github/pull-requests.js +9 -0
  28. package/dist/src/github/pull-requests.js.map +1 -1
  29. package/dist/src/runner/acceptance-proof-runner.d.ts +54 -0
  30. package/dist/src/runner/acceptance-proof-runner.d.ts.map +1 -0
  31. package/dist/src/runner/acceptance-proof-runner.js +229 -0
  32. package/dist/src/runner/acceptance-proof-runner.js.map +1 -0
  33. package/dist/src/runner/acceptance-proof.d.ts +121 -0
  34. package/dist/src/runner/acceptance-proof.d.ts.map +1 -0
  35. package/dist/src/runner/acceptance-proof.js +405 -0
  36. package/dist/src/runner/acceptance-proof.js.map +1 -0
  37. package/dist/src/runner/android-visual-proof-command.d.ts +26 -0
  38. package/dist/src/runner/android-visual-proof-command.d.ts.map +1 -0
  39. package/dist/src/runner/android-visual-proof-command.js +598 -0
  40. package/dist/src/runner/android-visual-proof-command.js.map +1 -0
  41. package/dist/src/runner/command-utils.d.ts.map +1 -1
  42. package/dist/src/runner/command-utils.js +55 -6
  43. package/dist/src/runner/command-utils.js.map +1 -1
  44. package/dist/src/runner/completion-report.d.ts +3 -1
  45. package/dist/src/runner/completion-report.d.ts.map +1 -1
  46. package/dist/src/runner/completion-report.js +2 -1
  47. package/dist/src/runner/completion-report.js.map +1 -1
  48. package/dist/src/runner/daemon-command.d.ts +1 -0
  49. package/dist/src/runner/daemon-command.d.ts.map +1 -1
  50. package/dist/src/runner/daemon-command.js +139 -14
  51. package/dist/src/runner/daemon-command.js.map +1 -1
  52. package/dist/src/runner/doctor-command.js +3 -3
  53. package/dist/src/runner/doctor-command.js.map +1 -1
  54. package/dist/src/runner/durable-run-summary.d.ts +3 -0
  55. package/dist/src/runner/durable-run-summary.d.ts.map +1 -1
  56. package/dist/src/runner/durable-run-summary.js +2 -0
  57. package/dist/src/runner/durable-run-summary.js.map +1 -1
  58. package/dist/src/runner/handoff-evidence.d.ts +5 -0
  59. package/dist/src/runner/handoff-evidence.d.ts.map +1 -1
  60. package/dist/src/runner/handoff-evidence.js +22 -0
  61. package/dist/src/runner/handoff-evidence.js.map +1 -1
  62. package/dist/src/runner/ios-visual-proof-command.d.ts +25 -0
  63. package/dist/src/runner/ios-visual-proof-command.d.ts.map +1 -0
  64. package/dist/src/runner/ios-visual-proof-command.js +355 -0
  65. package/dist/src/runner/ios-visual-proof-command.js.map +1 -0
  66. package/dist/src/runner/lifecycle-events.d.ts +1 -1
  67. package/dist/src/runner/lifecycle-events.d.ts.map +1 -1
  68. package/dist/src/runner/local-execution-session.d.ts +20 -6
  69. package/dist/src/runner/local-execution-session.d.ts.map +1 -1
  70. package/dist/src/runner/local-execution-session.js +98 -11
  71. package/dist/src/runner/local-execution-session.js.map +1 -1
  72. package/dist/src/runner/local-state.d.ts +6 -0
  73. package/dist/src/runner/local-state.d.ts.map +1 -1
  74. package/dist/src/runner/local-state.js +14 -0
  75. package/dist/src/runner/local-state.js.map +1 -1
  76. package/dist/src/runner/mobile-device-lease.d.ts +11 -0
  77. package/dist/src/runner/mobile-device-lease.d.ts.map +1 -0
  78. package/dist/src/runner/mobile-device-lease.js +121 -0
  79. package/dist/src/runner/mobile-device-lease.js.map +1 -0
  80. package/dist/src/runner/mobile-visual-proof-command.d.ts +17 -0
  81. package/dist/src/runner/mobile-visual-proof-command.d.ts.map +1 -0
  82. package/dist/src/runner/mobile-visual-proof-command.js +168 -0
  83. package/dist/src/runner/mobile-visual-proof-command.js.map +1 -0
  84. package/dist/src/runner/plan-auto-command.d.ts.map +1 -1
  85. package/dist/src/runner/plan-auto-command.js +58 -7
  86. package/dist/src/runner/plan-auto-command.js.map +1 -1
  87. package/dist/src/runner/prompt.js +2 -2
  88. package/dist/src/runner/prompt.js.map +1 -1
  89. package/dist/src/runner/recovery.d.ts +2 -1
  90. package/dist/src/runner/recovery.d.ts.map +1 -1
  91. package/dist/src/runner/recovery.js +24 -0
  92. package/dist/src/runner/recovery.js.map +1 -1
  93. package/dist/src/runner/review-gate-policy.d.ts +7 -0
  94. package/dist/src/runner/review-gate-policy.d.ts.map +1 -1
  95. package/dist/src/runner/review-gate-policy.js +88 -22
  96. package/dist/src/runner/review-gate-policy.js.map +1 -1
  97. package/dist/src/runner/review-gates.d.ts.map +1 -1
  98. package/dist/src/runner/review-gates.js +44 -11
  99. package/dist/src/runner/review-gates.js.map +1 -1
  100. package/dist/src/runner/rework-policy.d.ts +1 -0
  101. package/dist/src/runner/rework-policy.d.ts.map +1 -1
  102. package/dist/src/runner/rework-policy.js +7 -0
  103. package/dist/src/runner/rework-policy.js.map +1 -1
  104. package/dist/src/runner/scoped-auto-command.d.ts +46 -1
  105. package/dist/src/runner/scoped-auto-command.d.ts.map +1 -1
  106. package/dist/src/runner/scoped-auto-command.js +148 -48
  107. package/dist/src/runner/scoped-auto-command.js.map +1 -1
  108. package/dist/src/runner/scoped-recovery.d.ts +65 -0
  109. package/dist/src/runner/scoped-recovery.d.ts.map +1 -0
  110. package/dist/src/runner/scoped-recovery.js +484 -0
  111. package/dist/src/runner/scoped-recovery.js.map +1 -0
  112. package/dist/src/runner/status-command.d.ts.map +1 -1
  113. package/dist/src/runner/status-command.js +1 -0
  114. package/dist/src/runner/status-command.js.map +1 -1
  115. package/dist/src/runner/visual-proof-runner.d.ts +1 -0
  116. package/dist/src/runner/visual-proof-runner.d.ts.map +1 -1
  117. package/dist/src/runner/visual-proof-runner.js +144 -16
  118. package/dist/src/runner/visual-proof-runner.js.map +1 -1
  119. package/dist/src/setup/project-config.d.ts +4 -0
  120. package/dist/src/setup/project-config.d.ts.map +1 -1
  121. package/dist/src/setup/project-config.js +142 -9
  122. package/dist/src/setup/project-config.js.map +1 -1
  123. package/dist/src/setup/setup-command.d.ts.map +1 -1
  124. package/dist/src/setup/setup-command.js +2 -2
  125. package/dist/src/setup/setup-command.js.map +1 -1
  126. package/dist/src/setup/workflows.d.ts.map +1 -1
  127. package/dist/src/setup/workflows.js +5 -0
  128. package/dist/src/setup/workflows.js.map +1 -1
  129. package/docs/deep-dive.md +230 -31
  130. package/package.json +1 -1
  131. package/prompts/workflows/acceptance-proof.md +25 -0
  132. package/prompts/workflows/issue-breakdown.md +7 -0
  133. package/prompts/workflows/scoped-implementation.md +6 -2
@@ -1 +1 @@
1
- {"version":3,"file":"setup-command.js","sourceRoot":"","sources":["../../../src/setup/setup-command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM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AEX,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;AAEnE,wBAAsB,sBAAsB,IAAI,OAAO,CAAC,iBAAiB,CAAC,CAYzE"}
1
+ {"version":3,"file":"workflows.d.ts","sourceRoot":"","sources":["../../../src/setup/workflows.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEtE,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,UAAU,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,mBAAmB,EAAE,SAAS,kBAAkB,EA4BnD,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;AAEnE,wBAAsB,sBAAsB,IAAI,OAAO,CAAC,iBAAiB,CAAC,CAYzE"}
@@ -21,6 +21,11 @@ export const workflowDefinitions = [
21
21
  skillName: 'issue-orchestrator',
22
22
  promptPath: '.codex-orchestrator/prompts/workflows/issue-tree-orchestration.md',
23
23
  },
24
+ {
25
+ id: 'acceptanceProof',
26
+ skillName: 'spec-implementer',
27
+ promptPath: '.codex-orchestrator/prompts/workflows/acceptance-proof.md',
28
+ },
24
29
  ];
25
30
  export async function resolveWorkflowConfigs() {
26
31
  const entries = workflowDefinitions.map((definition) => {
@@ -1 +1 @@
1
- {"version":3,"file":"workflows.js","sourceRoot":"","sources":["../../../src/setup/workflows.ts"],"names":[],"mappings":"AAQA,MAAM,CAAC,MAAM,mBAAmB,GAAkC;IAChE,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,8CAA8C,EAAE;IAC9F;QACE,EAAE,EAAE,gBAAgB;QACpB,SAAS,EAAE,WAAW;QACtB,UAAU,EAAE,0DAA0D;KACvE;IACD;QACE,EAAE,EAAE,iBAAiB;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E,EAAE,sBAAsB;QAC1B,SAAS,EAAE,kBAAkB;QAC7B,UAAU,EAAE,gEAAgE;KAC7E;IACD;QACE,EAAE,EAAE,wBAAwB;QAC5B,SAAS,EAAE,oBAAoB;QAC/B,UAAU,EAAE,mEAAmE;KAChF;IACD;QACE,EAAE,EAAE,iBAAiB;QACrB,SAAS,EAAE,kBAAkB;QAC7B,UAAU,EAAE,2DAA2D;KACxE;CACO,CAAC;AAIX,MAAM,CAAC,KAAK,UAAU,sBAAsB;IAC1C,MAAM,OAAO,GAAG,mBAAmB,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE;QACrD,MAAM,MAAM,GAAmB;YAC7B,SAAS,EAAE,UAAU,CAAC,SAAS;YAC/B,MAAM,EAAE,wBAAwB;YAChC,UAAU,EAAE,UAAU,CAAC,UAAU;SAClC,CAAC;QAEF,OAAO,CAAC,UAAU,CAAC,EAAE,EAAE,MAAM,CAAU,CAAC;IAC1C,CAAC,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC,WAAW,CAAC,OAAO,CAAsB,CAAC;AAC1D,CAAC"}
package/docs/deep-dive.md CHANGED
@@ -81,12 +81,20 @@ Executes one selected issue when its labels and state allow autonomous work.
81
81
 
82
82
  ### `daemon`
83
83
 
84
- Polls GitHub Issues for eligible autonomous work and runs one issue at a time.
84
+ Polls GitHub Issues for eligible autonomous work. Scoped `agent:auto` issues can
85
+ run concurrently up to the daemon concurrency limit when their runner metadata
86
+ declares non-overlapping ownership. `agent:plan-auto` parent runs are exclusive.
85
87
 
86
88
  The daemon applies the configured issue selection policy after safety filters.
87
89
  By default, priority labels sort eligible issues and issue number is the
88
90
  deterministic tie-breaker.
89
91
 
92
+ Parallel scoped issue selection uses the issue body section
93
+ `## codex-orchestrator metadata` and its `Ownership:` bullet list. Issues without
94
+ that metadata are treated as unknown ownership and run one at a time. Two scoped
95
+ issues cannot share a batch when their ownership entries are the same path or
96
+ match each other as supported path globs.
97
+
90
98
  After polling, the daemon can clean up runner-owned worktrees whose pull
91
99
  requests have already been merged. Dirty, blocked, active, or unpublished
92
100
  worktrees are preserved.
@@ -129,7 +137,7 @@ For an `agent:auto` issue, the runner follows this lifecycle:
129
137
  8. Read the Codex completion report.
130
138
  9. Collect the full local change set.
131
139
  10. Run configured validation checks.
132
- 11. Run visual proof when required.
140
+ 11. Run acceptance proof when required.
133
141
  12. Evaluate quality gates and deny rules.
134
142
  13. Optionally run bounded rework for machine-checkable blockers.
135
143
  14. Optionally run Fresh-Context Review.
@@ -159,8 +167,10 @@ The parent flow can:
159
167
  - validate the integration branch;
160
168
  - open one integration draft PR.
161
169
 
162
- Parallel child execution is bounded by `runner.maxParallelChildren`. Child work
163
- uses separate worktrees so concurrent runs do not share a mutable workspace.
170
+ Parallel child execution is bounded by `runner.maxParallelChildren`. Parallel
171
+ standalone scoped execution is bounded by `runner.maxParallelScopedIssues` or
172
+ the daemon `--concurrency` override. Child and standalone work use separate
173
+ worktrees so concurrent runs do not share a mutable workspace.
164
174
 
165
175
  ## Full Change-Set Awareness
166
176
 
@@ -200,8 +210,10 @@ Typical checks include commands such as:
200
210
  }
201
211
  ```
202
212
 
203
- By default, a missing `npm run <script>` command is reported as a skipped
204
- warning instead of a hard failure. Repositories can change that with
213
+ Setup and runtime config loading adapt package-owned default `npm run <script>`
214
+ checks to the target `package.json`: unsupported default npm checks are omitted
215
+ when `checksPolicy.missingNpmScript` is `skip`, while custom checks are
216
+ preserved. Repositories can make missing scripts fail with
205
217
  `checksPolicy.missingNpmScript`.
206
218
 
207
219
  For repositories with existing lint debt, `checksPolicy.lintBaseline.mode` can
@@ -225,36 +237,153 @@ Runtime and test paths are configurable through:
225
237
  - `reviewGates.quality.runtimeChangedPathGlobs`;
226
238
  - `reviewGates.quality.testChangedPathGlobs`.
227
239
 
228
- The visual proof gate can require screenshots or another runner-owned proof
229
- command when issue text or changed paths indicate UI work.
230
-
231
- ## Visual Proof
232
-
233
- Visual proof is intentionally runner-owned. Codex can implement the UI, but the
234
- runner decides whether proof is required and executes the configured proof
235
- command after implementation.
236
-
237
- The proof command usually runs browser automation, such as Playwright. The
238
- runner provides environment variables for:
240
+ The acceptance proof gate can require runner-owned proof artifacts when issue
241
+ text or changed paths indicate UI, API, worker, CLI, or smoke-verifiable work.
242
+ `reviewGates.acceptanceProof` is canonical; `reviewGates.visualProof` remains a
243
+ configuration migration adapter for existing screenshot and mobile proof policy.
244
+
245
+ ## Acceptance Proof
246
+
247
+ Acceptance proof is intentionally runner-owned. Codex can implement product
248
+ behavior, but the runner decides whether proof is required, starts the proof
249
+ phase after implementation, validates the proof report, and makes the final
250
+ publishability decision. Runtime config loading still preserves package-owned
251
+ visual proof behavior for older configs where visual proof is enabled but no
252
+ runner command is set, but screenshot-only command success is not sufficient for
253
+ Acceptance Proof.
254
+
255
+ Adaptive Acceptance Proof is the canonical proof model. Instead of treating a
256
+ screenshot or a final agent sentence as enough evidence, the runner can launch a
257
+ separate `acceptance-proof` Codex phase with the issue, changed files,
258
+ implementation evidence, and repository proof policy. Repositories opt into that
259
+ adaptive Codex proof session by configuring `codex.profiles.acceptance-proof`;
260
+ existing runner-owned visual/mobile proof commands remain evidence producers, not
261
+ standalone pass conditions. The adaptive phase can navigate a browser, inspect
262
+ mobile UI state, run API or CLI checks, inspect logs, or create a focused
263
+ live-smoke check for observable product behavior. The proof phase writes
264
+ artifacts under the runner-owned proof directory and writes a machine-readable
265
+ `acceptance-proof-report.json`.
266
+
267
+ The gate is selected when `reviewGates.acceptanceProof.enabled` is true and
268
+ either:
269
+
270
+ - the issue title or body matches `reviewGates.acceptanceProof.issueTextPatterns`;
271
+ or
272
+ - the implementation changed a path matched by
273
+ `reviewGates.acceptanceProof.changedPathGlobs`.
274
+
275
+ The proof phase is not an implementation phase. It has no publication authority
276
+ and must not edit GitHub issues, labels, comments, branches, pull requests,
277
+ releases, or deployments. If a proof script needs repair, edits must stay inside
278
+ `reviewGates.acceptanceProof.proofOwnedPathGlobs`. Product-code changes during
279
+ proof are blockers, even when the proof report claims success.
280
+
281
+ The proof report has three top-level outcomes:
282
+
283
+ - `passed` means every required acceptance criterion has `status: "passed"`,
284
+ `confidence: "high"`, and at least one artifact reference.
285
+ - `needs-rework` means proof found missing or uncertain product behavior and
286
+ returns a concrete rework request for the next implementation attempt.
287
+ - `blocked` means proof could not continue safely, for example because the
288
+ environment is missing required credentials or tooling.
289
+
290
+ The runner validates the report independently. It rejects malformed JSON, empty
291
+ criteria, low or medium confidence, failed or unknown criteria, missing artifact
292
+ references, artifact paths that do not exist, and forbidden product-code diffs
293
+ from the proof phase.
294
+
295
+ For UI proof, the proof report must satisfy the UI Evidence Contract. Screenshot
296
+ or UI-dump artifacts must be mapped to:
297
+
298
+ - the exact user workflow under test, including the relevant entrypoint and
299
+ create/edit/detail context;
300
+ - viewport coverage, with wide desktop required for web layout proof and mobile
301
+ required when the issue or acceptance criteria mention responsive or mobile
302
+ behavior;
303
+ - artifact freshness, so the report identifies the current post-run artifact
304
+ rather than an old or intermediate screenshot;
305
+ - visual layout review for spacing, padding, clipping, overlap, alignment, and
306
+ the specific visual complaint being verified;
307
+ - user-facing copy review, including absence of rejected implementation terms
308
+ when copy is part of the acceptance path;
309
+ - source inputs that show how the proof derived task-specific checks from issue
310
+ criteria, implementation evidence, reproduction signals, runtime validation,
311
+ and any Manual QA Plan content.
312
+
313
+ If authentication is required and smoke or admin credentials are available
314
+ through configured environment variables, UI proof should use the real sign-in
315
+ flow. Session or cookie seeding is allowed only when the report records why the
316
+ normal UI login path is unavailable or irrelevant to the acceptance criteria.
317
+
318
+ This borrows workflow discipline from UI proof systems such as Symphony:
319
+ user-facing changes should have an end-to-end UI walkthrough, a reproduction
320
+ signal when one exists, runtime/media evidence for app-touching work, and Manual
321
+ QA Plan expectations when provided. Codex Orchestrator enforces those inputs
322
+ through the runner-validated Proof Report rather than requiring Symphony's
323
+ Linear workpad or PR media workflow.
324
+
325
+ When proof returns `needs-rework`, the runner feeds the rework request back into
326
+ the bounded implementation loop. The maximum number of implementation-plus-proof
327
+ iterations is controlled by `reviewGates.acceptanceProof.maxIterations`; the
328
+ runner keeps the issue claimed while the loop continues. A successful proof can
329
+ continue to the normal publishability gates and draft PR handoff. A terminal
330
+ proof blocker marks the issue blocked and preserves the proof prompt, report
331
+ path, artifact directory, validation line, residual risks, and blocker summary in
332
+ runner evidence.
333
+
334
+ Child Codex processes receive a mobile-device guard directory at the front of
335
+ `PATH`. The guard blocks direct device/emulator control through `adb`,
336
+ `emulator`, Flutter device-control subcommands, and `xcrun simctl`. Adaptive
337
+ proof Codex phases keep that guard, so they can inspect and verify behavior
338
+ without independently owning shared devices. Runner-owned mobile proof commands
339
+ use the shared mobile lease described below.
340
+
341
+ The proof phase often runs browser automation, such as Playwright, but the same
342
+ contract applies to non-visual proof. A live-smoke proof can exercise an API,
343
+ worker, CLI, or other observable behavior and save the command output as a
344
+ `smoke-output` artifact. The runner provides environment variables for:
239
345
 
240
346
  - issue number;
241
347
  - artifact directory;
242
348
  - proof directory;
243
349
  - Playwright profile directory;
244
350
  - worktree path;
245
- - changed files.
246
-
247
- Screenshot files created under the proof directory are attached to the PR and
248
- issue review report. If a proof command exits successfully but does not create
249
- the configured minimum number of screenshots, the runner reports a warning.
250
-
251
- For Android UI work, the implementation prompt uses device-backed proof through
252
- `adb` or an emulator. Missing Android tooling or no usable device is reported as
253
- a concrete warning instead of a release blocker by itself. Native Android proof
254
- uses the project Gradle wrapper with a writable Gradle cache. Flutter SDK cache
255
- recovery applies only to Flutter projects and only through a preconfigured
256
- writable SDK path in `CODEX_ORCHESTRATOR_FLUTTER_ROOT`. Native iOS proof uses
257
- Xcode simulator/device tooling with a writable DerivedData path.
351
+ - changed files;
352
+ - target root and shared state directory when the runner knows them;
353
+ - mobile device lock directory for runner-owned Android proof.
354
+
355
+ Proof artifacts created under the proof directory are attached to the PR and
356
+ issue review report. Supported artifact types include screenshots, UI dumps,
357
+ logs, smoke outputs, and other explicit artifacts. Screenshots remain supported
358
+ for visual proof, but screenshot existence alone is not sufficient: each required
359
+ criterion must map to high-confidence artifact evidence in the proof report, and
360
+ UI artifacts must satisfy the UI Evidence Contract.
361
+
362
+ Visual proof reporting separates desire from capability. UI-like issue text or
363
+ changed frontend paths can make visual proof desirable, but the runner only emits
364
+ missing-screenshot artifact warnings when a runner-owned provider is configured
365
+ and has not reported a tooling/provider capability gap. If proof is desirable
366
+ but no command, device, emulator, or platform tooling is available, the review
367
+ report records a capability note instead of an actionable-looking artifact
368
+ warning. Repositories that intentionally want visual-desirable work to block
369
+ review-ready publication until proof is produced can set
370
+ `reviewGates.visualProof.requireWhenDesirable` to `true`.
371
+
372
+ For mobile UI work, setup uses the package-owned
373
+ `codex-orchestrator visual-proof mobile --issue ${issueNumber}` command. The
374
+ command detects Flutter, native Android, and native iOS projects. It tries
375
+ Android first when an Android target exists, resolving SDK tools from
376
+ environment variables, `PATH`, and the default macOS, Linux, and Windows SDK
377
+ locations. Android proof takes a runner-owned mobile device lease under the
378
+ shared state directory before selecting a connected device, starting an AVD, or
379
+ using adb, so parallel issue work cannot race over one emulator. If Android
380
+ tooling or devices are unavailable on macOS and an iOS target exists, it falls
381
+ back to the iOS simulator. Native iOS projects go directly through Xcode
382
+ simulator tooling with a writable DerivedData path. Repos that need a specific
383
+ Flutter launch config, flavor, Gradle install task, package name, iOS scheme, or
384
+ bundle id pass that through command flags or `CODEX_ORCHESTRATOR_*` environment
385
+ variables. Missing mobile tooling or no usable device is reported as a concrete
386
+ warning instead of a release blocker by itself.
258
387
 
259
388
  ## Loop Policy
260
389
 
@@ -317,6 +446,76 @@ Durable evidence can include:
317
446
  The runner preserves worktrees when deleting them would hide useful evidence,
318
447
  for example when they are dirty, blocked, active, or unpublished.
319
448
 
449
+ ### Interrupted Scoped Handoff Recovery
450
+
451
+ The main recovery case is an interrupted scoped issue run. This can happen when
452
+ Codex already wrote a completed report and left valid local changes in the
453
+ issue worktree, but the outer runner stopped before it pushed the branch,
454
+ opened the draft PR, posted the review report, and moved the issue from
455
+ `agent:running` to `agent:review`.
456
+
457
+ Recovery is runner-owned. It does not ask Codex to implement the issue again.
458
+ Instead, the runner treats the preserved worktree and completion report as the
459
+ candidate output, then runs the same publication gates used by a normal scoped
460
+ handoff.
461
+
462
+ ```mermaid
463
+ flowchart TD
464
+ A["status / daemon / targeted run --issue"] --> B["Read runner-state.json"]
465
+ B --> C["Fetch matching GitHub issue"]
466
+ C --> D{"Local metadata proves ownership?"}
467
+ D -- "no" --> E["unknown-or-foreign: report only"]
468
+ D -- "yes" --> F{"Live runner still plausible?"}
469
+ F -- "yes" --> G["active: do not mutate"]
470
+ F -- "no" --> H{"Completed report + base evidence?"}
471
+ H -- "yes" --> I["completed-pending-handoff"]
472
+ I --> J["Reuse worktree and completed report"]
473
+ J --> K["Run normal publishability gates"]
474
+ K --> L{"Gates pass?"}
475
+ L -- "yes" --> M["Push branch, create/reuse draft PR"]
476
+ M --> N["agent:running -> agent:review, post report, clear local run"]
477
+ L -- "no" --> O["agent:blocked with recovery evidence"]
478
+ H -- "no" --> P{"Stale runner-owned failure?"}
479
+ P -- "yes" --> O
480
+ P -- "no" --> E
481
+ ```
482
+
483
+ The local run metadata must match the GitHub issue and the preserved workspace:
484
+ issue number, mode, branch, worktree path, report path, session id, and base
485
+ evidence. New scoped runs also record a runner lease with host, process id, and
486
+ timestamps. Daemon recovery mutates GitHub only when that lease is stale and the
487
+ same-host process is gone. If the process still looks alive, the host is
488
+ unknown, or the metadata is incomplete, recovery stays read-only.
489
+
490
+ Targeted `run --issue <number>` can recover a legacy interrupted run when the
491
+ local context snapshot contains the base SHA and the operator explicitly picked
492
+ that issue. This is how old runs that predate lease metadata can still be
493
+ finished without allowing the daemon to mutate them automatically.
494
+
495
+ Recoverable runs are classified with explicit states:
496
+
497
+ - `active` means a live runner may still own the issue, so nothing changes.
498
+ - `completed-pending-handoff` means the completed report, worktree, branch, and
499
+ base evidence are sufficient to retry runner-owned publication.
500
+ - `failed-pending-block` means the stale runner-owned run cannot satisfy
501
+ publication preconditions and should be moved to `agent:blocked` with
502
+ concrete evidence.
503
+ - `unknown-or-foreign` means ownership or safety cannot be proven, so the runner
504
+ does not mutate GitHub.
505
+
506
+ When a matching open draft PR already exists for the branch and base, recovery
507
+ verifies those refs and completes the remaining label, comment, lifecycle, and
508
+ local-state cleanup instead of creating a duplicate PR. Blocked recovery uses a
509
+ stable marker in the GitHub comment so repeated recovery attempts do not post
510
+ the same blocked report again.
511
+
512
+ Recovery is intentionally narrow. It does not scan every `agent:running` issue
513
+ blindly, does not recover runs from another repository, does not recover
514
+ plan-parent or tree-child publication in the scoped path, does not auto-merge,
515
+ and does not rerun Codex just to finish a handoff. The package live-smoke suite
516
+ is not part of the default recovery gate because it creates or updates real
517
+ GitHub issues and pull requests.
518
+
320
519
  ## Prompt and Workflow System
321
520
 
322
521
  Workflows are configured in `config.json`.
@@ -345,7 +544,7 @@ The top-level config areas are:
345
544
  - `project` for config and prompt directories;
346
545
  - `workflows` for prompt or skill routing;
347
546
  - `checks` and `checksPolicy` for validation commands;
348
- - `reviewGates` for quality and visual proof requirements;
547
+ - `reviewGates` for quality and acceptance proof requirements;
349
548
  - `loopPolicy` for issue selection, rework, review, summaries, and suggestions;
350
549
  - `deny` for secret and unsafe-action protection;
351
550
  - `branches` for branch templates;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codex-orchestrator",
3
- "version": "0.1.30",
3
+ "version": "0.1.35",
4
4
  "description": "Reusable GitHub Issues runner for Codex.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -0,0 +1,25 @@
1
+ # Adaptive Acceptance Proof
2
+
3
+ You are the Adaptive Proof Agent. Your job is verification, not implementation.
4
+
5
+ ## Responsibilities
6
+
7
+ - Inspect the issue, changed files, and acceptance criteria.
8
+ - Run focused proof steps that exercise observable behavior.
9
+ - Save artifacts under the runner-provided proof artifact directory.
10
+ - Write only the machine-readable Acceptance Proof Report requested by the runner.
11
+ - If proof scripts need repair, change only runner-declared proof-owned paths.
12
+
13
+ ## Boundaries
14
+
15
+ - Do not edit product code. Product fixes belong to the implementation phase.
16
+ - Do not create commits, push branches, open pull requests, merge, publish, or deploy.
17
+ - Do not edit GitHub issues, labels, comments, projects, milestones, or releases.
18
+ - Do not read or modify configured secret files.
19
+ - Do not start Android emulators or own mobile devices independently; use runner-provided device context when available.
20
+
21
+ ## Proof Standard
22
+
23
+ Every required criterion must have status `passed`, confidence `high`, and at least one artifact reference. If proof is incomplete, return `needs-rework` with a concrete Proof Rework Request. If the environment is blocked, return `blocked` with the exact blocker and any artifacts already produced.
24
+
25
+ For UI proof, screenshot or UI-dump artifacts require `uiEvidence`. Derive task-specific checks from issue acceptance criteria, implementation evidence, reproduction signals, validation sections, Manual QA Plan content when present, and runtime/media artifacts. Record exact workflow scope, viewport coverage, artifact freshness, layout review, copy review, and source inputs. Prefer real UI login when configured credentials exist; explain any seeded session or cookie shortcut. The runner validates this contract and blocks screenshot-only proof.
@@ -109,6 +109,13 @@ Status: confirmed / needs proof / not applicable
109
109
  - Manual/live:
110
110
  - Required fixtures or files:
111
111
 
112
+ ## codex-orchestrator metadata
113
+
114
+ Ownership:
115
+
116
+ - List the narrow files, directories, modules, or glob scopes this issue is expected to own.
117
+ - Use scopes precise enough that non-overlapping AFK issues can run in parallel.
118
+
112
119
  ## Blocked by
113
120
 
114
121
  Blocking issue references, or "None - can start immediately."
@@ -44,9 +44,13 @@ Run code-review before completion when the issue or repo policy requires it, or
44
44
 
45
45
  For compact low-risk changes, focused validation plus a clear completion report is enough unless repo policy says otherwise.
46
46
 
47
- ## UI And Visual Proof
47
+ ## Acceptance Proof
48
48
 
49
- For browser UI work, prepare runner-owned visual proof artifacts when configured. Prefer Playwright for web UI proof, but let the runner execute configured proof commands when the prompt says so.
49
+ Prepare runner-owned acceptance proof artifacts when configured. For visual work,
50
+ screenshots must be tied back to the acceptance criteria; for non-visual work,
51
+ use smoke outputs, logs, or other observable artifacts. Let the runner execute
52
+ configured proof commands when the prompt says so, and keep proof script repair
53
+ inside proof-owned paths.
50
54
 
51
55
  For Android mobile app UI work, use device-backed proof instead of Playwright:
52
56