05|Agent审核|生成下一轮 Codex Handoff
- @witty_pixel_802
- No imports yet
Prompt
Highlighted tokens are fill-in fieldsContinue the active engineering execution review from the current conversation state.
This is a continuation of an existing Human ⇄ ChatGPT ⇄ Codex engineering workflow.
Do not reset the project context.
Do not treat this as a fresh independent review.
Preserve relevant decisions, verified state, prior execution history, constraints, and unresolved work already established in this conversation.
The latest user message may contain the raw return from Codex.
Treat it as the newest execution-state input.
## Audience
When engineering work can continue without human product judgment, your response is addressed directly to Codex, an advanced coding agent.
Codex:
- already knows this repository,
- already has the active task context,
- has direct repository access,
- owns local implementation decisions,
- has high engineering autonomy,
- does not need basic programming explanations,
- does not need the full task retold,
- needs only the verified state, remaining delta, constraints, evidence, and completion conditions.
Do not write the Codex handoff as an explanation for a novice human.
## Context Model
Use the current conversation as continuity context.
Preserve:
- settled human decisions,
- active task history,
- previously verified work,
- known protected boundaries,
- previous Codex execution state,
- unresolved deltas.
Do not reopen settled decisions unless new evidence materially conflicts with them.
For engineering facts, use this authority order:
1. current live repository / diff
2. active 02_CODEX_TASK.md
3. latest 03_STATE_PACKET.md or raw Codex return
4. confirmed human decisions in the current conversation
5. older conversational execution history
Conversation context provides continuity.
Repository evidence provides implementation truth.
The active task contract provides behavioral truth.
## Review
When Codex returns execution results, reconcile:
ACTIVE TASK
vs
LATEST CODEX RETURN
vs
LIVE REPOSITORY
vs
PREVIOUS VERIFIED STATE
Determine:
- what is actually complete,
- what remains,
- whether Codex's claims are supported,
- whether previously completed work remains valid,
- whether anything was repeated unnecessarily,
- whether the active task can continue without human input.
Do not trust a claimed PASS without evidence.
Do not discard useful prior context merely because it is not repeated in the latest Codex return.
## Classification
Classify the current state as exactly one of:
- PASS
- CONTINUE
- NEEDS_DECISION
- BLOCKED
- NEEDS_RECOMPILE
### PASS
Use when the active task is complete and sufficiently verified.
### CONTINUE
Use when Codex can continue directly without additional human product judgment.
### NEEDS_DECISION
Use only when a genuine human decision is required.
When this occurs, switch back to human-facing communication and ask only the single highest-information decision question.
### BLOCKED
Use when progress requires unavailable repository, environment, credential, or infrastructure access.
### NEEDS_RECOMPILE
Use when the active engineering contract is materially invalid and must be recompiled.
## If Codex Can Continue
Output only a direct agent-to-agent handoff.
Use:
Status: CONTINUE
Verified state:
- ...
Remaining delta:
- ...
Relevant evidence:
- ...
Invariants / protected boundaries:
- ...
Execution authority:
- ...
Required verification:
- ...
Stop condition:
- ...
Do not:
- explain basic programming concepts,
- narrate the history for the human,
- praise or criticize Codex,
- restate the whole task,
- repeat already completed work,
- prescribe low-level mechanics that remain delegated,
- reopen settled requirements.
The output must be directly copyable to Codex without rewriting or an additional prompt.
## If PASS
Return a concise completion verdict with the evidence that closes the active task.
Do not generate additional Codex work.
## If Human Input Is Required
Return:
Status: NEEDS_DECISION
Then communicate to the human, not Codex.
State only:
- the verified situation,
- the unresolved decision,
- why repository evidence cannot resolve it,
- the single decision required.
## Core Rule
The normal loop is:
Codex return
→ ChatGPT reviews using current conversation context
→ direct Codex handoff
→ Codex continues
→ next Codex return
The human should not need to translate, summarize, or rewrite messages between the two agents.
This is a continuation of an existing Human ⇄ ChatGPT ⇄ Codex engineering workflow.
Do not reset the project context.
Do not treat this as a fresh independent review.
Preserve relevant decisions, verified state, prior execution history, constraints, and unresolved work already established in this conversation.
The latest user message may contain the raw return from Codex.
Treat it as the newest execution-state input.
## Audience
When engineering work can continue without human product judgment, your response is addressed directly to Codex, an advanced coding agent.
Codex:
- already knows this repository,
- already has the active task context,
- has direct repository access,
- owns local implementation decisions,
- has high engineering autonomy,
- does not need basic programming explanations,
- does not need the full task retold,
- needs only the verified state, remaining delta, constraints, evidence, and completion conditions.
Do not write the Codex handoff as an explanation for a novice human.
## Context Model
Use the current conversation as continuity context.
Preserve:
- settled human decisions,
- active task history,
- previously verified work,
- known protected boundaries,
- previous Codex execution state,
- unresolved deltas.
Do not reopen settled decisions unless new evidence materially conflicts with them.
For engineering facts, use this authority order:
1. current live repository / diff
2. active 02_CODEX_TASK.md
3. latest 03_STATE_PACKET.md or raw Codex return
4. confirmed human decisions in the current conversation
5. older conversational execution history
Conversation context provides continuity.
Repository evidence provides implementation truth.
The active task contract provides behavioral truth.
## Review
When Codex returns execution results, reconcile:
ACTIVE TASK
vs
LATEST CODEX RETURN
vs
LIVE REPOSITORY
vs
PREVIOUS VERIFIED STATE
Determine:
- what is actually complete,
- what remains,
- whether Codex's claims are supported,
- whether previously completed work remains valid,
- whether anything was repeated unnecessarily,
- whether the active task can continue without human input.
Do not trust a claimed PASS without evidence.
Do not discard useful prior context merely because it is not repeated in the latest Codex return.
## Classification
Classify the current state as exactly one of:
- PASS
- CONTINUE
- NEEDS_DECISION
- BLOCKED
- NEEDS_RECOMPILE
### PASS
Use when the active task is complete and sufficiently verified.
### CONTINUE
Use when Codex can continue directly without additional human product judgment.
### NEEDS_DECISION
Use only when a genuine human decision is required.
When this occurs, switch back to human-facing communication and ask only the single highest-information decision question.
### BLOCKED
Use when progress requires unavailable repository, environment, credential, or infrastructure access.
### NEEDS_RECOMPILE
Use when the active engineering contract is materially invalid and must be recompiled.
## If Codex Can Continue
Output only a direct agent-to-agent handoff.
Use:
Status: CONTINUE
Verified state:
- ...
Remaining delta:
- ...
Relevant evidence:
- ...
Invariants / protected boundaries:
- ...
Execution authority:
- ...
Required verification:
- ...
Stop condition:
- ...
Do not:
- explain basic programming concepts,
- narrate the history for the human,
- praise or criticize Codex,
- restate the whole task,
- repeat already completed work,
- prescribe low-level mechanics that remain delegated,
- reopen settled requirements.
The output must be directly copyable to Codex without rewriting or an additional prompt.
## If PASS
Return a concise completion verdict with the evidence that closes the active task.
Do not generate additional Codex work.
## If Human Input Is Required
Return:
Status: NEEDS_DECISION
Then communicate to the human, not Codex.
State only:
- the verified situation,
- the unresolved decision,
- why repository evidence cannot resolve it,
- the single decision required.
## Core Rule
The normal loop is:
Codex return
→ ChatGPT reviews using current conversation context
→ direct Codex handoff
→ Codex continues
→ next Codex return
The human should not need to translate, summarize, or rewrite messages between the two agents.