Skip to content

feat: add drift-analyzer and reconciler for diverged project state #107

@snipcodeit

Description

@snipcodeit

Summary

When state detection finds Diverged state (project.json and GitHub both exist but inconsistent), spawn a drift-analyzer Task agent that identifies specific mismatches, then display a reconciliation table for user confirmation.

Output Schema (.mgw/drift-report.json)

{
  "mismatches": [
    {"type": "missing_github", "milestone": "...", "action": "create"},
    {"type": "missing_local", "github_number": N, "action": "import"},
    {"type": "count_mismatch", "milestone": "...", "local": N, "github": M}
  ],
  "summary": "N mismatches found"
}

Files

  • commands/project.md — add reconcile_drift step

GSD Route

gsd:quick

Depends On

  • A1 (state detection routes to this step)

Metadata

Metadata

Assignees

No one assigned

    Labels

    coreChanges to core libraryslash-commandsChanges to slash command files

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions