Skip to content

Rename the last artifacts carrying retired placement vocabulary #725

Closed

Description

@David-Noble-at-work

Follows: #715 — the provider role vocabulary became ProviderFlags / Surfaces / Placement.

#715 renamed the types, constants, accessors, directives, and test functions. Two artifacts still spell the
retired vocabulary, and one of them is a file rename, which is a delete-and-create rather than an edit.

To rename

Current Why
pkg/op/provider/ui/root_test.go its subject is now placement; the tests inside were renamed to TestUIPromoted_* and the filename did not follow
tierCollisionRootProvider (plan/provider_test.go) a synthetic fixture declared PlacementPromoted; "root" is the retired word for it

MUST NOT be renamed — different meaning entirely

This is the trap #716's name-mapping appendix exists to prevent, and it applies here too. These contain "root"
in a filesystem sense and are unaffected:

  • pkg/fsroot/** — rootName, RelWithin, makePath, and the package itself
  • pkg/op/provider/plan/root_binding_test.go — the RUN root; TestRun_BindsPendingResourcesToTheRunRoot
  • pkg/op/provider/file/** — TestGlob_RefusesPatternsOutsideTheRoot, TestRoot_ReturnsScopedRootPath, and
    the rest of the scoped-root tests
  • TestNewRuntimeEnvironment_MintsRootFromAnchor, TestTriad_*Root*, TestLintCommands_LoadConfigFromGitRoot

A word-level sweep over "root" would rewrite every one of these and break meaning without breaking the build —
which is precisely the failure the #715 work took care to avoid.

Also worth deciding

ProviderFlags doc comments deliberately retain ProviderRole, RoleAction, and Dispatch() in a historical
note explaining why the rename happened. Those should stay. Listing them here so a later sweep does not treat
them as misses:

  • pkg/op/receiver_type.go — the note on ProviderFlags
  • pkg/op/receiver_registry.go — the note on PromotedProviders, recording a doc correction

Acceptance

  • No filename carries retired placement vocabulary
  • No identifier spells "root" in a placement sense
  • Every filesystem-root name above is untouched, verified by their absence from the diff
  • The two historical notes survive

Metadata

Metadata

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions