Skip to content

gitmoot-skillopt v0.4.2

Latest

Choose a tag to compare

@jerryfane jerryfane released this 30 Jun 12:53
8f56201

Patch: sanitize Mode A PR-ref item ids instead of rejecting them.

safe_item_path_segment raised ValueError on item ids containing / (e.g. a gitmoot PR ref owner/repo#5, which Mode A trace harvesting (#465) uses as the eval-item id), so optimizing a package built from real merged/blocked PR outcomes crashed in the dataloader. Already-safe ids now pass through unchanged; unsafe ids are deterministically sanitized into a safe path segment (slug + short stable hash), which also neutralizes path-traversal ids. Found by a live end-to-end Mode A optimization run (#79).

Install: pip install https://github.com/jerryfane/gitmoot-skillopt/releases/download/v0.4.2/gitmoot_skillopt-0.4.2-py3-none-any.whl