🚧 4JK4MP task: Allow replacement after a rejected external-agent result [202608241454-4JK4MP] - #4883
densmirnov wants to merge 1 commit into
Conversation
Signed-off-by: Denis Smirnov <densmirnov@me.com>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b6727bb356
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| expect(replacement.action.kind).toBe("agent_episode"); | ||
| expect(replacement.exchange?.result_path).not.toBe(rejectedResultPath); | ||
| expect(replacement.transition_id).not.toBe(issued.transition_id); | ||
| expect(replacement.exchange?.directory).not.toBe(issued.exchange.directory); |
There was a problem hiding this comment.
Exercise the corrected result after issuing the replacement
This regression stops after confirming that a replacement exchange was issued, despite its name and the task acceptance criteria claiming that a corrected replacement is accepted. It never creates an allowed workspace change, writes a completed result to replacement.exchange.result_path, or returns that result through task advance, so a failure in the replacement acceptance/consumption path could leave the feature broken while this test still passes.
Useful? React with 👍 / 👎.
|
Keep this PR for focused rework against current main (review baseline: ca07204, 0.7.9-beta.1). The no-change implementation rejection still exists, while the proposed pre-apply rejection recovery is absent from the current supervisor. Requested changes:
Acceptance evidence:
This is a rework request, not an approval or a claim that the updated implementation has been tested. |
|
Superseded by #5951 ( |
Task:
202608241454-4JK4MPTitle: Allow replacement after a rejected external-agent result
Canonical task record:
.agentplane/tasks/202608241454-4JK4MP/README.mdSummary
Allow replacement after a rejected external-agent result
Fix the external-agent supervisor so a schema-valid result that is durably recorded but later rejected by pre-apply implementation-authority validation does not permanently lock the exchange or replay the same failure. Preserve immutable accepted/consumed result semantics and effect-in-doubt safety. Add a regression for completed implementation with no workspace change followed by a corrected replacement exchange, plus conflicting replay coverage. This is a v0.7.8 release blocker discovered by task 202608241434-NCQYZ4; it must remain a separate code Task and merge before a fresh release attempt.
Scope
Verification
Raw evidence
agentplane pr check/agentplane integrate