Skip to content

fix: pin tiktoken version to >=0.7,<1.0 - #8

Open
xiaolai wants to merge 1 commit into
kingbootoshi:mainfrom
xiaolai:fix/nlpm-pin-tiktoken
Open

fix: pin tiktoken version to >=0.7,<1.0#8
xiaolai wants to merge 1 commit into
kingbootoshi:mainfrom
xiaolai:fix/nlpm-pin-tiktoken

Conversation

@xiaolai

@xiaolai xiaolai commented Jun 21, 2026

Copy link
Copy Markdown

Automated: drive-by fix from NLPM, an NL artifact linter. Reviewed and reproduced before submission.

Bug: tiktoken is referenced without a version constraint in both the UV inline script spec (scan-codebase.py line 4, # dependencies = ["tiktoken"]) and the fallback pip install tiktoken instructions in SKILL.md (lines 55, 57, 292–296). An unpinned runtime install resolves to the latest release on every cold run, allowing a future breaking or compromised release to affect users silently.

Evidence: scan-codebase.py:4# dependencies = ["tiktoken"] — no specifier. SKILL.mdpip install tiktoken (×2 locations) — no specifier. Both confirmed by direct file inspection.

Fix: Pins all references to tiktoken>=0.7,<1.0, consistent with the current stable release series and the API surface used (cl100k_base encoding, available since 0.3.x).

The UV inline script dependency and the fallback pip install
instructions both referenced tiktoken with no version constraint.
An unpinned runtime install allows arbitrary future versions,
including breaking or malicious releases.

Pins all three install paths to `tiktoken>=0.7,<1.0`, consistent
with the current stable release series.

Co-Authored-By: Claude Code <noreply@anthropic.com>
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