Skip to content

Commit b3e2630

Browse files
committed
feat(ce-work-beta): surface Codex result handoff to user after delegation
Adds verification_summary to the result schema and output contract so Codex reports what tests it ran. Adds a result handoff display step so the orchestrator shows the user a summary, files changed, verification outcome, and issues before committing or rolling back — addressing feedback that delegation completion was opaque.
1 parent 7e22eaf commit b3e2630

1 file changed

Lines changed: 19 additions & 2 deletions

File tree

plugins/compound-engineering/skills/ce-work-beta/references/codex-delegation-workflow.md

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,9 @@ Report your result via the --output-schema mechanism. Fill in every field:
158158
- issues: array of strings describing any problems, gaps, or out-of-scope
159159
work discovered
160160
- summary: one-paragraph description of what was done
161+
- verification_summary: what you ran to verify (command and outcome).
162+
Example: "Ran `bun test` -- 14 tests passed, 0 failed."
163+
If no verification was possible, say why.
161164
</output_contract>
162165
```
163166

@@ -172,9 +175,10 @@ Write the result schema to `.context/compound-engineering/codex-delegation/<run-
172175
"status": { "enum": ["completed", "partial", "failed"] },
173176
"files_modified": { "type": "array", "items": { "type": "string" } },
174177
"issues": { "type": "array", "items": { "type": "string" } },
175-
"summary": { "type": "string" }
178+
"summary": { "type": "string" },
179+
"verification_summary": { "type": "string" }
176180
},
177-
"required": ["status", "files_modified", "issues", "summary"],
181+
"required": ["status", "files_modified", "issues", "summary", "verification_summary"],
178182
"additionalProperties": false
179183
}
180184
```
@@ -251,6 +255,19 @@ If the output is "Waiting for Codex...", issue the same polling command again as
251255
| 4 | Exit code 0, `status: "partial"` | Partial success | Keep the diff. Complete remaining work locally, verify, and commit. Increment `consecutive_failures`. |
252256
| 5 | Exit code 0, `status: "completed"` | Success | Commit changes. Reset `consecutive_failures` to 0. |
253257

258+
**Result handoff — surface to user:** After reading the result JSON and before committing or rolling back, display a summary so the user sees what happened. Format:
259+
260+
> **Codex batch <batch-num> — <classification>**
261+
> <summary from result JSON>
262+
>
263+
> **Files:** <comma-separated list from files_modified>
264+
> **Verification:** <verification_summary from result JSON>
265+
> **Issues:** <issues list, or "None">
266+
267+
On failure or partial results, include the classification reason (e.g., "status: failed", "result JSON missing") so the user understands why the orchestrator is rolling back or completing locally.
268+
269+
Keep this brief — the goal is transparency, not a wall of text. One short block per batch.
270+
254271
**Rollback procedure:**
255272

256273
```bash

0 commit comments

Comments
 (0)