Skip to content

feat(cli): add memory conflicts and resolve-conflict operator commands#145

Merged
BunsDev merged 1 commit into
mainfrom
feat/memory-conflict-ops
Jul 8, 2026
Merged

feat(cli): add memory conflicts and resolve-conflict operator commands#145
BunsDev merged 1 commit into
mainfrom
feat/memory-conflict-ops

Conversation

@BunsDev

@BunsDev BunsDev commented Jul 8, 2026

Copy link
Copy Markdown
Member

Summary

Context

Changes

  • crates/cli/src/memory_admin.rs: conflicts [--dir <team-memory-path>] [--json] lists unresolved pull conflicts via team_memory_sync::pending_conflicts; resolve-conflict <key> [--dir <path>] validates the key with validate_memory_path then calls resolve_conflict. Default team dir is team_memory_path(auto_memory_path(cwd)). Usage text updated. Four new tests.
  • docs/configuration.md, docs/src/content/configuration.js: operator-controls table/summary updated.

Validation

  • cargo check --workspace — clean
  • cargo fmt --all — clean
  • cargo clippy --workspace --all-targets -- -D warnings — clean
  • cargo test --package claurst --bin coven-code -- memory_admin — 8 passed, 0 failed
  • git diff --check — clean
  • Not run: full cargo test --workspace — change is confined to the CLI admin module covered above.

PR Readiness

  • Diff is limited to the intended files.
  • Generated files were not edited by hand.
  • Contributor credited: Co-authored-by: romgenie <5861166+romgenie@users.noreply.github.com>.

Ports the team-memory conflict inspection and resolution operations from
PR #142 onto the coven-code memory operator surface that landed in #144:

- coven-code memory conflicts [--dir <team-memory-path>] [--json] lists
  unresolved pull conflicts (key, kind, reason)
- coven-code memory resolve-conflict <key> [--dir <path>] removes the
  persisted conflict record after validating the key against traversal

closes #142

Co-authored-by: romgenie <5861166+romgenie@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings July 8, 2026 15:31
@vercel

vercel Bot commented Jul 8, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview Jul 8, 2026 3:31pm

@BunsDev
BunsDev merged commit db735f8 into main Jul 8, 2026
4 checks passed
@BunsDev BunsDev mentioned this pull request Jul 8, 2026
14 tasks

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds operator-facing team-memory conflict inspection/resolution to the existing coven-code memory admin surface, completing the conflict workflow that wasn’t covered by the earlier lifecycle-controls landing.

Changes:

  • Adds memory conflicts and memory resolve-conflict subcommands (plus usage text) to the CLI memory admin module.
  • Adds CLI tests covering conflict listing, resolution behavior, and traversal-key rejection.
  • Updates operator controls documentation (markdown + docs site content) to include the new commands.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
src-rust/crates/cli/src/memory_admin.rs Adds conflicts/resolve-conflict handlers, help text, and new tests for conflict workflows.
docs/src/content/configuration.js Updates docs-site “Memory Retention” section to list the new operator commands.
docs/configuration.md Updates the operator-controls table with conflict inspection/resolution commands and descriptions.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +206 to +214
let conflicts = claurst_core::team_memory_sync::pending_conflicts(&team_dir);
if json {
println!("{}", serde_json::to_string_pretty(&conflicts)?);
return Ok(());
}
if conflicts.is_empty() {
println!("no pending team-memory conflicts in {}", team_dir.display());
return Ok(());
}
@BunsDev
BunsDev deleted the feat/memory-conflict-ops branch July 9, 2026 06:30
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.

2 participants