Skip to content

docs: establish Manager/Service/Provider/Runtime naming convention#140

Merged
mivertowski merged 1 commit intomainfrom
docs/naming-convention
Apr 22, 2026
Merged

docs: establish Manager/Service/Provider/Runtime naming convention#140
mivertowski merged 1 commit intomainfrom
docs/naming-convention

Conversation

@mivertowski
Copy link
Copy Markdown
Owner

Summary

  • Add docs/conventions/naming.md defining the type-suffix taxonomy (Manager / Service / Provider / Runtime / Analyzer / Helpers) so new code for v1.0.0 GA follows a consistent, reviewable pattern rather than today's interchangeable usage.
  • Document eight future-rename candidates identified from the audit (e.g. SecurityAlertManager really acts as a Service, CudaCapabilityManager is a stateless facade, the three PluginLifecycleManager duplicates) — informational only, no renames performed because they are public API breaks.
  • Reference the convention from CLAUDE.md under Development Guidelines (3 lines) so contributors see it without hunting.

Scope and limits

  • Applies to new code from v1.0.0-preview3 onward. Existing public types are grandfathered.
  • Skips the optional internal-rename demo (Deliverable 4). The only clearly-misfit internal candidate (PoolReturnManager in CudaStreamPool.cs) is also dead code — never constructed anywhere in the codebase — so the right action is removal, not rename. Documented in the future-rename list instead.
  • Orleans.GpuBridge.Core consumer surface, Hopper code, and native P/Invoke wrappers are explicitly out of scope for this convention.

Test plan

  • dotnet build DotCompute.sln --configuration Release → 0 errors, 0 warnings.
  • dotnet test DotCompute.sln --configuration Release --no-build --filter "Category=Unit" → all 511 unit tests pass, no regressions. (Docs-only change, no code impact.)
  • docs/conventions/naming.md renders correctly with the table, flowchart, examples, checklist, and future-rename section.
  • CLAUDE.md has a 3-line reference to the new doc.

🤖 Generated with Claude Code

Document the type-suffix taxonomy for v1.0.0 GA so new code follows a
consistent, reviewable pattern rather than the current interchangeable
usage of Manager/Service/Provider/Runtime.

The convention applies to new code only — existing public types are
grandfathered to avoid breaking API consumers (Orleans.GpuBridge.Core
and downstream). A future-rename list is included so reviewers can
flag candidates for the next major version.

- Add docs/conventions/naming.md with the taxonomy, flowchart, fit
  examples, new-code checklist, 8 future-rename candidates, and
  scope-exclusion notes.
- Reference the convention from CLAUDE.md under Development Guidelines
  so contributors see it without hunting.

Docs-only change. 0 warnings, 0 errors. Unit tests unaffected.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@mivertowski mivertowski merged commit fa15ae7 into main Apr 22, 2026
7 checks passed
@mivertowski mivertowski deleted the docs/naming-convention branch April 22, 2026 07:08
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