Skip to content

Clean Motus local workspace and source-of-truth friction #137

@bnvoss

Description

@bnvoss

Parent

Cross-repo roadmap item tracked in motus-os/motus-work-ledger#41.

Problem

Repeated GitHub/process friction was not only a GitHub issue. The local Motus workspace had multiple stale source-of-truth signals that could cause agents to use old branches, old remotes, old process docs, or an old installed Motus CLI.

Current verified state on 2026-05-22

  • Bare motus now resolves to motusos 0.5.3; the stale global 0.3.5 install has been remediated.
  • Current canonical /motus source worktree is /Users/ben/GitHub/worktrees/motus-cr-motus-0.4.6-store-first-work-truth-1-20260508.
  • That canonical worktree is clean on main and matches origin/main.
  • /Users/ben/GitHub/motus is still a stale CR checkout on cr-motus-release-workflow-actions-parity-1-20260504, ahead 1 / behind 45 against public/main; it should not be treated as canonical source.
  • Dead local remote hardening has been removed.
  • Remaining registered /motus worktrees include many historical branches; dirty or unmerged worktrees must not be deleted without targeted review.
  • Supporting generic cache/session cleanup is complete in motus-internal; remaining work here is source-of-truth/worktree hygiene only.

Scope

Inventory and clean the local Motus workspace process hazards without deleting user work or unreviewed state.

Acceptance criteria

  • Inventory active vs stale Motus worktrees and branches.
  • Archive or remove only clean, merged, or explicitly obsolete worktrees after verification.
  • Define the canonical local checkout/worktree for /motus work.
  • Define authoritative remote names for public and internal work.
  • Ensure current Motus CLI invocation is deterministic for Work Journal usage.
  • Preserve all unmerged or user-authored work.
  • Link evidence back to Cross-repo roadmap: Work Journal operating loop and repo hygiene motus-work-ledger#41 and the relevant Work Journal run/receipt.

Non-goals

  • Do not rewrite Git history.
  • Do not delete unknown dirty worktrees.
  • Do not change product code unless a separate issue/claim covers it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions