Skip to content

Intelligent Review: Wire index to review pipeline (Tier 1) #443

Closed

Description

@ajianaz

Goal

Wire cora's symbol index (brain intelligence) into the review pipeline so cora review uses index-based caller resolution, impact analysis, affected tests, and brain search — when an index is available.

Design Doc

docs/design/intelligent-review-tier1.md

Scope (~137 LOC)

File Change
src/engine/context/types.rs Add use_brain: bool, impact_depth: u32 to ContextConfig
src/engine/context/resolver.rs Wire graph::find_callers() as primary, fallback to regex
src/engine/review.rs Add brain enrichment phase: impact, tests, related patterns
src/hook/template.rs Add cora index --quiet before review in pre-commit hook

Behavior

  • Index exists → use graph::find_callers + impact_analysis + brain_search + affected_tests
  • No index → identical to current behavior (regex scan, no brain context)
  • use_brain: true (default) / false to disable
  • Pre-commit hook runs cora index --quiet before review (non-blocking)

Acceptance Criteria

  • cora index && cora review --staged uses index callers (not regex)
  • Impact analysis injected into review prompt
  • Affected tests suggested in review output
  • Without index, behavior identical to pre-change
  • Pre-commit hook includes index step
  • All existing tests pass

Activity

  1. self-assigned this
    on Aug 1, 2026
  2. added
    enhancement
    scope:cli
    scope:code-intel
    on Aug 1, 2026
  3. added 2 commits that reference this issue on Aug 1, 2026
    9f5d46d
    899ac6f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementscope:cliscope:code-intel

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions