You are an independent reviewer. Critique the plan against the actual repository.…
- User
You are an independent reviewer. Critique the plan against the actual repository.
codeProject directory: /Users/user_c042661f/Documents/megaplan Idea:Quality gates and prompt improvements for megaplan pipeline
Items to address
1. Executor notes prompt is too prescriptive
The prompt says 'say what you verified' so the executor literally starts every note with 'Verified...' — parroting, not reasoning. Fix: show 2-3 varied examples in the JSON block that demonstrate different verification styles (edge case catch, expected behavior confirmation, design choice explanation). Let the agent infer the pattern.
2. Perfunctory-note detector for executor_notes
We have _is_perfunctory_ack for sense checks (rejects 'ok', 'done', 'confirmed' etc.) but executor notes have no equivalent quality gate. A note like 'Verified. Done.' would pass today. The nonempty_fields check only ensures non-empty, not non-trivial. Add a quality gate.
3. Review prompt should positively frame settled decisions
The review prompt says 'do not re-litigate' settled decisions. It should be framed positively: 'verify the executor implemented these decisions correctly.' The reviewer's job is to check execution honored them, not to question them.
4. Remove _is_substantive_reviewer_verdict and unify with _is_perfunctory_ack
We have two separate quality heuristics: _is_perfunctory_ack (word blocklist for sense check acks) and _is_substantive_reviewer_verdict (char/word/unique-word counts for reviewer verdicts). They solve the same problem — detecting rubber stamps. Unify them into one function.
5. Critique should not waste iteration cycles on structural nitpicks
In our recent run, FLAG-004 was 'the plan fails the required step-section structure' because a step had prose instead of numbered substeps. This burned an entire critique→gate→revise cycle on formatting, not correctness. The critique prompt should distinguish structural nitpicks from real concerns — structural issues should be minor severity, not significant.
codePlan: # Implementation Plan: Quality gates and prompt improvements for megaplan pipelineOverview
Five targeted improvements to the megaplan pipeline's quality gates and prompts. The codebase is a Python project with prompts in
megaplan/prompts.py, quality checks inmegaplan/evaluation.py, handler logic inmegaplan/handlers.py, and tests intests/. All changes are isolated — no new files needed, no schema changes. - Assistant
{"flags":[{"id":"FLAG-001","concern":"The plan over-unifies text-quality heuristics that currently serve different evidence roles; a single
is_rubber_stampthreshold will likely misclassify acceptable concise acknowledgments as rubber stamps.","category":"correctness","severity_hint":"likely-significant","evidence":" in uses 20-char/4-word/3-unique-word thresholds only where a reviewer verdict can soften missing in . in is much looser and only audits sense-check acknowledgments. The review prompt explicitly allows concise acknowledgments when they are specific in , and existing fixtures use short acknowledgments like 'Confirmed prompt coverage.' in and 'Confirmed.' in ."},{"id":"FLAG-002","concern":"The plan misses the prompt-test surface it is changing, so it can leave the affected suite red or unverified even if the code edits themselves are correct.","category":"completeness","severity_hint":"likely-significant","evidence":"Steps 1-3 all modify , , and , but Step 6 only mentions and . Prompt wording is already asserted in and the settled-decisions wording specifically checks for 'do not re-litigate' in ."}],"verified_flag_ids":[],"disputed_flag_ids":[]}