Skip to content

feat: Smarter Planning - Dependency Detection and Effort Estimation #235

Closed

Description

@admarble

Summary

Enhance /spec to warn about file conflicts between concurrent issues.

Scope: Simple overlap detection, not semantic dependency analysis.


Proposed Feature

File Overlap Warning (Single Feature)

When running /spec on an issue, check if other in-progress issues touch the same files:

/spec 220

⚠️  File Overlap Warning
Issue #218 (in exec phase) modifies:
  - src/actions/updateArticleImage.ts
  - prisma/schema.prisma

These files may conflict with #220. Consider:
  1. Complete #218 first
  2. Coordinate changes carefully
  3. Proceed with awareness of potential merge conflicts

How it works:

  1. /spec reads .sequant/state.json to find in-progress issues
  2. For each in-progress issue, get changed files from git diff in worktree
  3. Compare with files likely affected by new issue (from /spec analysis)
  4. Warn if overlap detected

Detection is simple:

  • Changed files: git diff main...HEAD --name-only in each worktree
  • Likely files for new issue: Based on /spec file exploration
  • Match: Simple path comparison

What This Is NOT

  • ❌ Not semantic dependency detection ("Issue A must complete before B")
  • ❌ Not effort estimation (too unreliable)
  • ❌ Not a dependency graph visualization
  • ❌ Not blocking (just warning)

Acceptance Criteria

  • /spec checks for file overlap with in-progress issues
  • Warning shown with specific conflicting files listed
  • Warning includes which issue and its current phase
  • Works with multiple concurrent worktrees
  • No false positives on unrelated files

Value

Prevents merge conflicts and coordination issues when working on multiple issues concurrently. Simple, deterministic, actionable warning.


Example Output

## Spec: Issue #220 - Add image compression

### File Overlap Warning ⚠️

| In-Progress Issue | Phase | Conflicting Files |
|-------------------|-------|-------------------|
| #218 - Focal point picker | exec | `src/actions/updateArticleImage.ts`, `prisma/schema.prisma` |

**Recommendation:** Complete #218 before starting #220, or coordinate changes to avoid conflicts.

### Implementation Plan
[... rest of spec output ...]

Future Consideration (Not This Issue)

  • Smarter "likely files" prediction based on issue content
  • Auto-suggest issue ordering based on conflicts
  • Integration with GitHub project boards

Revised from original feature planning discussion - scoped to file overlap warning only, removed effort estimation and dependency graphs

Activity

  1. added
    enhancement
    on Feb 2, 2026
  2. added
    auto-ready
    on Feb 16, 2026
  3. admarble commented on Feb 22, 2026

    @admarble
    ContributorAuthor

    Closing per issue audit. Title ("Dependency Detection and Effort Estimation") is misleading — actual scope is file overlap warnings for concurrent issues. Premature: requires historical data and broader state tracking that doesn't exist yet. If file overlap warnings are wanted later, create a scoped issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    auto-readyenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions