Skip to content

fix: preserve tool results and trim duplicate prompt context - #519

Closed
ahmad-ajmal wants to merge 1 commit into
improvement/prompt-auditfrom
codex/prompt-audit-continuation
Closed

ahmad-ajmal wants to merge 1 commit into
improvement/prompt-auditfrom
codex/prompt-audit-continuation

Conversation

@ahmad-ajmal

Copy link
Copy Markdown
Collaborator

MCP tool errors could appear successful, structured result fields could be lost, and sub-agent queries were duplicated in prompts. This child PR targets improvement/prompt-audit, the branch behind #514.

  • Preserve native MCP error flags and structured result fields.
  • Compact new result JSON and render exact duplicate bootstrap queries once, without rewriting stored history.
  • Keep the enhancer's workflow and verification guidance, with targeted rules for preserving constraints, avoiding invented targets/schedules, and removing the sentence cap.

Validation: 180 tests passed, 8 skipped across the focused MCP, event-stream, sub-agent, and prompt suites. Ruff, formatting, and syntax checks passed for all changed files.

The latest enhancer wording has not been live-benchmarked; the earlier pilot evaluated different wording.

@ahmad-ajmal ahmad-ajmal closed this Nov 2, 2026
@ahmad-ajmal
ahmad-ajmal deleted the codex/prompt-audit-continuation branch November 2, 2026 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant