Skip to content

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

Merged
zfoong merged 1 commit into
improvement/prompt-auditfrom
improvement/prompt-audit-continuati9on
Nov 3, 2026
Merged

zfoong merged 1 commit into
improvement/prompt-auditfrom
improvement/prompt-audit-continuati9on

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.

Replaces #519 after renaming the source branch.

@ahmad-ajmal ahmad-ajmal self-assigned this Nov 2, 2026
@ahmad-ajmal
ahmad-ajmal requested a review from zfoong November 2, 2026 17:04
@zfoong
zfoong merged commit 34efe99 into improvement/prompt-audit Nov 3, 2026
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.

2 participants