mach10 icon indicating copy to clipboard operation
mach10 copied to clipboard

Add critical evaluation category to issue-assessment Step 4

Open LeanAndMean opened this issue 7 months ago • 4 comments

Summary

The issue-assessment command's Step 4 (Assess) produces a research report -- scope, risks, ambiguities -- but does not instruct the model to challenge the issue's premise or proposed approach. The assessment's purpose in the Mach 10 workflow is to provide an objective perspective that the issue reporter may not have: questioning whether there's a more elegant design, or identifying root causes vs. symptoms. The current Step 4 categories are all descriptive/scoping and don't fulfill this gating function.

Current Behavior

Step 4 asks for six categories: Summary, Current state, Gaps, Ambiguities, Scope, Risks. All are descriptive. The model explores the codebase, summarizes what it finds, and identifies unknowns -- but never evaluates whether the issue's proposed approach is correct given what the codebase reveals. The result reads as "here's how to do what the issue asks" rather than "here's whether and how the issue should be done."

Observed failure mode: on a wiki documentation update issue, the assessment accepted the issue's framing, added implementation guidance (essentially a mini-plan), but didn't flag that the proposed change would create redundancy with existing pages or that the issue's assumed structure may not suit the updated content. The downstream issue-plan command then over-weighted this implementation guidance, adopting its constraints without presenting alternatives.

Proposed Behavior

Add a category to Step 4 that explicitly instructs adversarial evaluation of the issue's premise and proposed approach. This category should ask the model to evaluate:

  • Whether the codebase suggests a different approach than what the issue proposes
  • Whether the proposed change creates redundancy, conflicts, or maintenance burden given existing code/content
  • Whether the issue is addressing symptoms rather than the root cause
  • Whether there's a more elegant design that achieves the same goal
  • Whether the reported problem is a special case of a more general problem worth solving -- issue reporters frequently ask for fixes to their specific problem because they are unaware of other users and the broader codebase. Without this check, the codebase accumulates ad hoc changes servicing individual requests rather than general solutions that satisfy multiple current (or future) needs. The assessment should identify when a more general solution exists whose special case covers the reporter's ask.

The category should not cover scheduling concerns (e.g., "is it too early?") -- those are human prioritization decisions, not assessment findings.

Acceptance Criteria

  • [ ] Step 4 includes a new assessment category that instructs the model to critically evaluate the issue's proposed approach against codebase evidence, including whether the problem generalizes beyond the reporter's specific case
  • [ ] The new category is distinct from "Ambiguities" (which covers underspecified aspects) and "Risks" (which covers pitfalls)
  • [ ] The category does not instruct the model to make scheduling/prioritization judgments
  • [ ] The assessment output naturally feeds into issue-plan Step 3 (clarifying questions) and Step 4 (architecture design) by surfacing alternative approaches the planner should consider

Technical Notes

  • File: commands/issue-assessment.md
  • The new category should be added to Step 4's assessment structure (after Risks, or potentially replacing Risks if it subsumes it)
  • Consider whether the category name signals its adversarial nature clearly enough to the model (e.g., "Challenge", "Counter-evidence", "Critical evaluation")

LeanAndMean avatar May 01 '26 13:05 LeanAndMean

Independent Assessment

Summary: This issue requests adding a 7th assessment category to Step 4 of issue-assessment.md that performs adversarial/critical evaluation of the issue's premise and proposed approach. The current six categories are descriptive/scoping but none instruct the model to actively challenge whether the issue is asking for the right thing or whether the codebase suggests a better approach.

Current state: Step 4 (lines 54-61) has six categories: Summary, Current state, Gaps, Ambiguities, Scope, Risks. The repo has precedent for adversarial evaluation patterns in pr-review.md Step 4 (independent finding verification) and feature-completeness-checker.md (evidence-based severity classification), but neither is currently applied to issue assessment.

Gaps: No instruction currently challenges the issue's premise, checks for more general problems, or evaluates whether the codebase suggests a different approach than what the issue proposes.

Scope: Small -- single-file change adding one numbered item to Step 4's list in commands/issue-assessment.md. No CLAUDE.md sync rules are affected. No downstream command changes needed (issue-plan consumes assessment output as undifferentiated comment context).

Key design decisions for implementation:

  • The new category should be evidence-based (challenge only when the codebase provides counter-evidence) to avoid hallucinated disagreement
  • It should be positioned after Risks (not replace it) -- Risks covers pitfalls/edge cases which is complementary but distinct
  • The instruction must explicitly exclude scheduling/prioritization judgments per the acceptance criteria
  • The category name should signal adversarial intent clearly (e.g., "Critical evaluation" is more directive than "Challenge")

LeanAndMean avatar May 01 '26 13:05 LeanAndMean

Implementation Plan

Stage 1: Add Critical Evaluation Category to Step 4

Scope: Single-file change to commands/issue-assessment.md

Change: Add a 7th numbered item to the Step 4 assessment list (after "Risks"):

  1. Critical evaluation: Evaluate the issue's premise and proposed approach against codebase evidence and established engineering principles. Challenge only when grounded in evidence or principle -- do not speculate.
    • Whether the codebase suggests a different or better approach than what the issue proposes
    • Whether the proposed change creates redundancy, conflicts, or maintenance burden given existing code
    • Whether the issue addresses symptoms rather than the root cause
    • Whether a more elegant design achieves the same goal with less complexity
    • Whether the problem generalizes beyond the reporter's specific case -- a special case of a broader problem worth solving generally

Do not make scheduling or prioritization judgments.

Files modified: commands/issue-assessment.md (Step 4 numbered list)

Acceptance criteria verification:

  • New category instructs critical evaluation against codebase evidence (criterion 1)
  • Distinct from Ambiguities (underspecified) and Risks (pitfalls) -- this challenges the approach itself (criterion 2)
  • Explicitly excludes scheduling/prioritization (criterion 3)
  • Output feeds into issue-plan Steps 3-4 by surfacing alternative approaches (criterion 4)

No downstream changes needed -- issue-plan reads the assessment as unstructured comment context.

Testing: No testable runtime code. Verification is acceptance-criteria-based.


Decision Log

Clarifying Questions

Category name: User chose "Critical evaluation" over "Challenge" and "Counter-analysis" -- more directive, clearly signals active evaluation.

Evidence scope: Challenges may be grounded in codebase evidence OR general engineering principles. Not limited to only code-backed challenges.

Generalization check framing: Included as a sub-bullet within the category, keeping the category cohesive rather than giving it standalone emphasis.

Architecture Choice

Single viable approach: add a numbered item to the existing list in Step 4. No alternative architectures meaningfully differ given the scope (single-file, single-list-item change).


This comment will guide staged implementation via /mach10:issue-implement 124 1.

LeanAndMean avatar May 01 '26 14:05 LeanAndMean

Implementation Plan

Stage 1: Add Critical Evaluation Category to Step 4 and Supporting Exploration Guidance to Step 3

Scope: Single-file change to commands/issue-assessment.md

Changes:

1. Step 3 (Explore the Codebase) -- Add a 4th exploration lens to the agent list:

  • Counter-evidence: Look for codebase evidence that challenges the issue's premise or proposed approach. Identify existing patterns, design decisions, or prior solutions that suggest a different approach, reveal the issue may be addressing symptoms rather than root causes, or indicate the problem is a special case of something more general.

2. Step 4 (Assess) -- Add a 7th numbered item to the assessment list (after "Risks"):

  1. Critical evaluation: Evaluate the issue's premise and proposed approach against codebase evidence and established engineering principles. This category challenges whether the issue is asking for the right thing -- distinct from Ambiguities (underspecified aspects of the issue) and Risks (pitfalls assuming the issue is valid). Challenge only when grounded in evidence or principle -- do not speculate. All claims must be backed by specific references: cite files or patterns for codebase-based challenges; cite source code or documentation for claims about how established projects or codebases approach problems.
    • Whether the codebase suggests a different or better approach than what the issue proposes
    • Whether the proposed change creates redundancy, conflicts, or maintenance burden given existing code
    • Whether the issue addresses symptoms rather than the root cause
    • Whether a more elegant design achieves the same goal with less complexity
    • Whether the problem generalizes beyond the reporter's specific case -- a special case of a broader problem worth solving generally

If codebase exploration did not surface evidence relevant to evaluating the premise, state that no counter-evidence was found rather than manufacturing concerns. Do not make scheduling or prioritization judgments.

Files modified: commands/issue-assessment.md (Step 3 agent list, Step 4 numbered list)

Acceptance criteria verification:

  • New category instructs critical evaluation against codebase evidence (criterion 1)
  • Distinct from Ambiguities (underspecified) and Risks (pitfalls) -- explicit boundary language included (criterion 2)
  • Explicitly excludes scheduling/prioritization (criterion 3)
  • Output feeds into issue-plan Steps 3-4 by surfacing alternative approaches as ambient context in the comment thread (criterion 4)

No downstream changes needed -- issue-plan reads the assessment as unstructured comment context via gh issue view --comments.

Testing: No testable runtime code. Verification is acceptance-criteria-based.

Known limitations (intentionally not addressed in this stage):

  • The Cancel-path comment format (Step 6) only posts condensed Summary and Gaps; Critical evaluation findings are not explicitly preserved on the cancel path. This is acceptable because the approve path (the common case) preserves the full assessment including Critical evaluation.
  • Step 5's action-suggestion guidance does not explicitly reference Critical evaluation findings as a trigger for "split/close/reframe" paths. The model can reach this connection implicitly via the built-in "Other" option.

Decision Log

Plan Review Findings Addressed

Evidence citation requirement strengthened: All claims must be backed by specific references -- codebase files/patterns for local challenges, source code or documentation for claims about how established projects approach problems.

Escape hatch added: Explicit instruction to state "no counter-evidence was found" rather than manufacturing concerns when exploration doesn't surface relevant evidence.

Step 3 exploration lens added: A 4th exploration agent ("Counter-evidence") explicitly gathers evidence that might challenge the issue's premise, ensuring Step 4's Critical evaluation category has material to work with.

Boundary language included: Category header explicitly distinguishes Critical evaluation from Ambiguities (underspecified aspects) and Risks (pitfalls assuming validity).

Original Design Choices Retained

Category name: "Critical evaluation" -- more directive than "Challenge" or "Counter-analysis".

Evidence scope: Challenges may be grounded in codebase evidence OR general engineering principles, but both require specific references.

Generalization check: Included as a sub-bullet within the category, keeping it cohesive.

Position: After Risks (item 7), not replacing it.


This comment will guide staged implementation via /mach10:issue-implement 124 1.

LeanAndMean avatar May 01 '26 14:05 LeanAndMean

Progress: Stage 1 Complete

Implemented Stage 1 of the plan -- added critical evaluation category to issue-assessment.md.

Changes (commit ad88315):

  • Step 3: Added 4th exploration lens "Counter-evidence" that instructs the agent to gather codebase evidence challenging the issue's premise
  • Step 4: Added 7th assessment category "Critical evaluation" with 5 evaluation sub-bullets, evidence citation requirement, escape hatch for when no counter-evidence exists, and explicit scheduling/prioritization exclusion

All acceptance criteria verified:

  • Category instructs critical evaluation against codebase evidence including generalization check
  • Explicitly distinguished from Ambiguities and Risks via boundary language
  • Excludes scheduling/prioritization judgments
  • Feeds into issue-plan as ambient comment context (no downstream changes needed)

LeanAndMean avatar May 01 '26 15:05 LeanAndMean