Skip to content

reserved-oxide-symbols README documents 4 of the 10 symbol constants the naming-guard sends you to it for #737

Closed

Description

@vyncint

When naming-guard fires, it tells the contributor:

Use the constants, builders, and predicates from
crates/reserved-oxide-symbols/ instead. See its README for the layered
API.

That README's constants table lists four:

KERNEL_PREFIX  DEVICE_PREFIX  DEVICE_EXTERN_PREFIX  INSTANTIATE_PREFIX

The crate exports ten symbol constants — the same ten the guard's regex
alternation is built to cover. Six are undocumented:

Constant Value
CONSTANT_PREFIX cuda_oxide_const_246e25db_
KERNEL_SCOPE_LOCAL cuda_oxide_kernel_scope_246e25db
ARTIFACT_ANCHOR_PREFIX cuda_oxide_artifact_anchor_246e25db_
PTX_MERGE_REQUIRED_PREFIX cuda_oxide_ptx_merge_required_246e25db_
LEGACY_KERNEL_PREFIX cuda_oxide_kernel_246e25db_
LEGACY_DEVICE_PREFIX cuda_oxide_device_246e25db_

So the guard blocks a hardcoded cuda_oxide_artifact_anchor_246e25db_ literal
and points at a page that never mentions the constant to replace it with. #645
was the same shape on the enforcement side (the guard covered 6 of 10); this is
its documentation half.

Worth documenting alongside them: KERNEL_PREFIX contains
LEGACY_KERNEL_PREFIX as a substring, because the modern name is the legacy one
behind a cuda_oxide_codegen_v1_ scope. starts_with distinguishes them,
contains does not and reports every modern kernel as legacy — which is exactly
the substring matching the crate's Layer-3 predicates exist to hide.

Activity

  1. added
    documentation
    on Aug 10, 2026
  2. added a commit that references this issue on Aug 10, 2026
    a9b1573
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions