Skip to content

fix(core): harden local review runner output handling#2122

Open
christso wants to merge 1 commit into
AgentWrapper:mainfrom
christso:fix/ao-review-runner-robustness
Open

fix(core): harden local review runner output handling#2122
christso wants to merge 1 commit into
AgentWrapper:mainfrom
christso:fix/ao-review-runner-robustness

Conversation

@christso

Copy link
Copy Markdown

Summary

AO-local review runs now fail when a reviewer exits without a structured JSON findings payload, instead of allowing empty output to become a clean review. The Codex reviewer invocation now runs with user config ignored, read-only sandboxing, approval disabled, and an output schema, which keeps configured MCP/GitHub/Agent Mail tooling out of the local review task. The output parser still salvages valid JSON from noisy process logs, so recoverable runs are not discarded just because stdout/stderr contain diagnostics.

Tests

  • pnpm --filter @aoagents/ao-core test -- code-review-manager.test.ts
  • pnpm --filter @aoagents/ao-cli test -- review.test.ts
  • pnpm --filter @aoagents/ao-cli test -- review-check.test.ts
  • pnpm --filter @aoagents/ao-core typecheck
  • pnpm --filter @aoagents/ao-cli typecheck
  • pnpm exec prettier --check packages/core/src/code-review-manager.ts packages/core/src/__tests__/code-review-manager.test.ts packages/core/src/index.ts

Compound Engineering
GPT-5

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