Test parser fuzz variants#68
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Worried about impact? Review this PR in Change Stack to explore blast radius before you approve or request changes. 📝 WalkthroughWalkthroughThis PR updates the Codex prompt-to-status reclassification heuristic in the agent output parser and introduces a comprehensive deterministic fuzz test suite. The parser now allows repeated or template-like prompts to convert to status blocks even when active work is present. The fuzz test validates parsing stability across 80 seeded transcript variants for both tool modes. ChangesCodex prompt reclassification and fuzz validation
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
src/agent-output-parser.ts (1)
229-366:⚠️ Potential issue | 🟠 MajorRegenerate
dist/forsrc/agent-output-parser.tsruntime changes
dist/is missing, so there’s no compiled output to verify that this parser change made it into runtime artifacts.- Run
yarn buildand confirm thedistoutput foragent-output-parseris present and reflects the update.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@src/agent-output-parser.ts` around lines 229 - 366, The dist/ build artifacts for the runtime are missing for the changes in normalizeTranscriptBlocks (src/agent-output-parser.ts); run the project build (e.g., yarn build) to regenerate compiled output, verify that dist/ contains the updated compiled artifact for agent-output-parser reflecting the new normalizeTranscriptBlocks logic, and commit the updated dist/ files so the runtime uses the new parser implementation.Source: Coding guidelines
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Outside diff comments:
In `@src/agent-output-parser.ts`:
- Around line 229-366: The dist/ build artifacts for the runtime are missing for
the changes in normalizeTranscriptBlocks (src/agent-output-parser.ts); run the
project build (e.g., yarn build) to regenerate compiled output, verify that
dist/ contains the updated compiled artifact for agent-output-parser reflecting
the new normalizeTranscriptBlocks logic, and commit the updated dist/ files so
the runtime uses the new parser implementation.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: ee7bd713-9253-4644-8e9c-efb0d8b04025
📒 Files selected for processing (2)
src/agent-output-parser-fuzz.test.tssrc/agent-output-parser.ts
Summary
Verification
Summary by CodeRabbit
Tests
Bug Fixes