Skip to content

ci: branding_lint red on develop — 4 unrecognised RTK refs in src/hooks/init.rs #183

Closed

Description

@thehoff

Summary

branding_lint_no_unrecognised_rtk_references_in_src is red on develop: four RTK/rtk literals in src/hooks/init.rs aren't covered by any allowlist rule. Confirmed reproduces on a clean lab/develop checkout (fa99875… after #78/#80 landed).

The four leaks

src/hooks/init.rs:28    const PI_EXTENSION: &str = include_str!("../../hooks/pi/rtk-extension.ts");
src/hooks/init.rs:3031  "[dry-run] would remove RTK guidance block from {}: {}",
src/hooks/init.rs:3051  eprintln!("Removed RTK guidance block from {}: {}", label, path.display());
src/hooks/init.rs:5125  "RTK marker must be gone after uninstall"

Impact

Proposed fix

Line Fix
28 (rtk-extension.ts path) Per-line // branding-lint: allow legacy marker. Renaming the on-disk file is a separate, more invasive change — defer.
3031 / 3051 (user-visible) Rebrand RTK guidance block → ContextCrawler guidance block.
5125 (test assertion msg) Rebrand RTK marker → ContextCrawler marker.

Acceptance: cargo test --test branding_lint returns 5/5 green on the resulting branch.

Out of scope

  • Renaming hooks/pi/rtk-extension.ts to hooks/pi/contextcrawler-extension.ts. That touches the Pi.Dev extension API and the rename should be its own audit.

Originally filed on the gitea lab mirror. Filing on github for release-notes cross-reference. Already fixed in the inbound PR.

Activity

  1. thehoff commented on May 26, 2026

    @thehoff
    OwnerAuthor

    Fixed in v0.1.11 via #184.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions