Skip to content

Define the public telemetry naming policy - #358

Open
gmemuriuki wants to merge 1 commit into
telemetry/pm-provenance-policyfrom
telemetry/public-naming-policy
Open

gmemuriuki wants to merge 1 commit into
telemetry/pm-provenance-policyfrom
telemetry/public-naming-policy

Conversation

@gmemuriuki

Copy link
Copy Markdown
Contributor

What does this PR do?

This PR defines the telemetry-owned policy that maps typed package provenance onto the frozen version 1 public naming vocabularies. It emits no telemetry.

Package naming accepts only an exact Cargo coordinate from the canonical crates.io source. Source rejection precedes coordinate validation, so private registries, Git, path, workspace, and unknown sources retain the contract's specific unnamed reason rather than becoming invalid coordinates.

Extension naming shares one source decision across plugins, skills, and future plugin commands. Canonical crates.io and the exact recommendations repository are public; every other source remains unnamed. The allowlist follows shared source URLs rather than configured registry names, and raw provenance never enters a telemetry row.

Tests cover every package reason, malformed and wildcard coordinates, the Cargo ecosystem guard, exact URL matching, the recommendations package/extension asymmetry, the real path-backed user-plugins registry, and the Cargo classifier-to-policy boundary.

Disclosure questions

AI disclosure.

  • The AI tool authored large parts of the code

Questions for reviewers.

Are the version 1 URL allowlists, package-versus-extension asymmetry, and unnamed-reason precedence the right public identity boundary?

@gmemuriuki
gmemuriuki added this pull request to stack #331 October 17, 2026 06:35
@gmemuriuki
gmemuriuki force-pushed the telemetry/public-naming-policy branch from dd4eaac to 8238fd7 Compare October 17, 2026 07:10
@gmemuriuki gmemuriuki self-assigned this Oct 17, 2026
@gmemuriuki
gmemuriuki force-pushed the telemetry/public-naming-policy branch from 8238fd7 to 8da6853 Compare October 20, 2026 13:23
@gmemuriuki
gmemuriuki force-pushed the telemetry/public-naming-policy branch 2 times, most recently from 62f5e2f to f0f0737 Compare October 21, 2026 07:23
@nikomatsakis
nikomatsakis force-pushed the telemetry/public-naming-policy branch from f0f0737 to 1b5f884 Compare October 25, 2026 08:30
Map typed package provenance to versioned package and extension labels.

Keep raw URLs behind the policy boundary and share source selection.
@nikomatsakis
nikomatsakis force-pushed the telemetry/public-naming-policy branch from 1b5f884 to 834b38c Compare October 25, 2026 12:45

This branch has not been deployed

No deployments
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