cleanup-sweep-stale

Cleanup: sweep stale .coordinator-* tasks from this graph

Metadata

Statusdone
Assignedagent-754
Agent identityf51439356729d112a6c404803d88015d5b44832c6c584c62b96732b63c2b0c7e
Modelclaude:haiku
Created2026-04-27T16:01:39.082017561+00:00
Started2026-04-27T16:45:50.676728373+00:00
Completed2026-04-27T16:56:12.056575497+00:00
Tagschat-redesign,cleanup, eval-scheduled

Description

Description

The current .workgraph/ graph has many stale '.coordinator-*' tasks crufting it up. Now that 'implement-rename-remaining' has fixed new-chat creation to emit '.chat-N' and the migration covers all sources, sweep the existing graph clean.

Steps:

  1. Run 'wg list' filtered to '.coordinator-*' tasks. Categorize:
    • Active chats with real history → migrate to '.chat-N' via 'wg migrate chat-rename'
    • Empty/test/abandoned chats with no useful history → 'wg abandon' or remove via 'wg sweep'
    • On-disk chat-dirs under stale ids → move/remove to match
  2. Verify post-cleanup: 'wg list | grep coordinator-' returns no live tasks (only legacy data preserved for tests, if any)
  3. Document the sweep in a log entry on this task so future audits can trace what was cleaned

Be CAREFUL: only sweep '.coordinator-*' that are truly stale. Anything with chat history that the user might want should be migrated, not abandoned. When in doubt, migrate.

Validation

  • 'wg list' shows no '.coordinator-*' tasks in active states (open/in-progress)
  • All chat-dirs on disk match their task ids (no orphans pointing to renamed tasks)
  • A log entry on this task summarizes how many tasks were migrated vs abandoned
  • No data loss: every pre-sweep '.coordinator-*' with non-trivial chat history is either migrated to '.chat-N' or explicitly logged as abandoned-with-reason
  • cargo build + cargo test pass (no schema/migration regressions)

Depends on

Required by

Log