Skip to content

feat(doctor): add guided repair for missing ownership lock#43

Merged
dapi merged 5 commits into
mainfrom
codex/gh-42
Jul 24, 2026
Merged

feat(doctor): add guided repair for missing ownership lock#43
dapi merged 5 commits into
mainfrom
codex/gh-42

Conversation

@dapi

@dapi dapi commented Jul 24, 2026

Copy link
Copy Markdown
Owner

Summary

Adds opt-in memory-bank-cli doctor --fix support for template.identity_missing. The repair reuses the validated ownership adoption path, requires explicit pinned template provenance, emits the complete dry-run mutation plan, refuses conflicts, and tells users to commit memory-bank/.lock.

The doctor JSON report now exposes the optional structured repair plan, and the README documents the recovery flow.

Validation

  • go test ./...
  • go vet ./...
  • git diff --check

Safety

Existing locks are never replaced. Conflicting managed content is reported without mutation.

@dapi
dapi marked this pull request as ready for review July 24, 2026 20:04
@dapi
dapi merged commit c7ffc11 into main Jul 24, 2026
4 checks passed
@dapi
dapi deleted the codex/gh-42 branch July 24, 2026 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant