Skip to content

refactor: rename *Manager types to domain-role names#626

Merged
Wirasm merged 2 commits intomainfrom
kild/rename-managers
Mar 17, 2026
Merged

refactor: rename *Manager types to domain-role names#626
Wirasm merged 2 commits intomainfrom
kild/rename-managers

Conversation

@Wirasm
Copy link
Copy Markdown
Owner

@Wirasm Wirasm commented Mar 4, 2026

Summary

  • Rename SessionManagerDaemonSessionStore (kild-daemon)
  • Rename PtyManagerPtyStore (kild-daemon)
  • Rename ProjectManagerProjectRegistry (kild-core, kild-ui)
  • Rename TeamManagerTeamStore (kild-ui)

Pure mechanical rename — no behavior changes. Updates all usages, doc comments, and CLAUDE.md/AGENTS.md references.

Closes #520

Test plan

  • cargo fmt --check passes
  • cargo clippy --all -- -D warnings passes
  • cargo test --all passes (2 pre-existing env-dependent failures unrelated to this change)

Wirasm added 2 commits March 4, 2026 17:22
Rename four types that used the vague `Manager` suffix to descriptive
domain-role names per the Code Naming Contract:

- SessionManager → DaemonSessionStore (kild-daemon)
- PtyManager → PtyStore (kild-daemon)
- ProjectManager → ProjectRegistry (kild-core)
- TeamManager → TeamStore (kild-ui)

No behavior changes — pure mechanical rename across all usages, docs,
and CLAUDE.md/AGENTS.md references.

Closes #520
- Rename team_manager field → team_store across all UI call sites
- Rename 13 test functions test_project_manager_* → test_project_registry_*
- Fix 2 doc comments still saying "project manager"
@Wirasm
Copy link
Copy Markdown
Owner Author

Wirasm commented Mar 17, 2026

PR Review Summary

Critical Issues (0 found)

None.

Important Issues (0 found)

None.

Suggestions (1 found)

Agent Suggestion Location
docs-reviewer AGENTS.md kild-ui section is missing a teams/ module entry entirely (predates this PR) AGENTS.md:234-244

Strengths

  • All 20 files consistently renamed — zero stale references in .rs files
  • Doc comments and rustdoc links updated correctly
  • No backward-compat shims introduced (follows "one name, one type, everywhere")
  • New names follow the naming contract: domain role over implementation detail
  • CLAUDE.md and AGENTS.md both patched

Verdict

READY TO MERGE

The rename is complete and consistent. The one suggestion (missing teams/ entry in AGENTS.md) predates this PR and is not a regression.

@Wirasm Wirasm merged commit 9375e68 into main Mar 17, 2026
6 checks passed
@Wirasm Wirasm deleted the kild/rename-managers branch March 17, 2026 11:40
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.

refactor: rename *Manager types to domain-role names

1 participant