sprawl diff

Diagnostics

Visualizes DNA drift between local workspace and upstream registry.


📌 1. The Target Problem

1. The Target Problem

"How do I check if my local workspace rules have drifted or been modified compared to the organization's central DNA registry?"

When working on customized local workspaces, you may accidentally modify rules or miss updates pushed to the central DNA repository, leading to drift in configuration standards.


⚙️ 2. Usage & Options

sprawl diff [workspace_path]

Options & Flags

  • workspace_path: Optional workspace path (defaults to current folder).

🔍 3. How it Works (Under the Hood)

  1. Performs hash-based checksum calculations on rules, skills, and files in the active DNA template path.
  2. Compares local hashes against ~/.sprawl/core/ registry rules, printing line-by-line file diffs.

🩺 4. Troubleshooting

  • Drift is detected but we want to restore DNA baseline
  • Resolution: Run sprawl sync to force-refresh rules files and overwrite any un-committed local alterations.

🔗 Related Resources & Tutorials