Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

HPM documentation

HPM is a package manager for SideFX Houdini. It installs Houdini packages and the Python packages they need, records exactly what it installed in a lock file, and writes the files Houdini reads to load them. It is a single command-line program, hpm.

Start here

  • Install hpm
  • Quickstart: install a package into a project and load it in Houdini.
  • Concepts: packages, projects, the store, registries, the lock file.

Guides

Step-by-step, one task each.

I want toGuide
Make a packageCreate your first package
See my edits in Houdini while I workDevelop against a live Houdini
Use numpy or other Python packagesAdd Python dependencies
Ship compiled pluginsShip an HDK plugin
Cover Houdini 21 and 22Support several Houdini versions
Release a packagePublish a package
Host in-house packagesRun a studio registry
Automate installs and releasesContinuous integration
Run tools and farm tasksRun package code outside Houdini
Set OCIO, asset roots, show pathsSet a project’s environment
Free disk spaceKeep disk usage down

Reference

How it works

Contributing

Install hpm

hpm is a single executable. It needs nothing else installed: it downloads its own copy of uv, and the Python interpreters for its virtual environments, the first time a package needs them. Git is needed only for Git registries and for hpm init to create a repository.

Houdini 20.5, 21 and 22 are supported.

Download a release

Download the file for your platform, and the .sha256 file beside it, from the latest release:

PlatformFile
Linux x86_64hpm-v<version>-linux-x86_64
macOS (Apple silicon and Intel)hpm-v<version>-darwin-universal
Windows x86_64hpm-v<version>-windows-x86_64.exe

Linux and macOS

sha256sum -c hpm-v<version>-linux-x86_64.sha256     # macOS: shasum -a 256 -c
chmod +x hpm-v<version>-linux-x86_64
mv hpm-v<version>-linux-x86_64 ~/.local/bin/hpm     # any directory on your PATH
hpm --version

Windows

# The two values must be equal, ignoring case.
(Get-FileHash hpm-v<version>-windows-x86_64.exe).Hash
Get-Content hpm-v<version>-windows-x86_64.exe.sha256

New-Item -ItemType Directory -Force "$env:USERPROFILE\bin"
Move-Item hpm-v<version>-windows-x86_64.exe "$env:USERPROFILE\bin\hpm.exe"
hpm --version      # after adding %USERPROFILE%\bin to your PATH

The checksum file comes from the same release as the binary, so it detects a corrupted or swapped download, not a compromised release.

Build from source

Requires Rust 1.89 or newer.

git clone https://github.com/3db-dk/hpm.git
cd hpm
cargo build --release
# binary: target/release/hpm

Upgrade

Replace the executable with a newer release. The store, virtual environments and configuration under ~/.hpm/ carry over. Read Upgrade notes first when skipping several versions.

Uninstall

Delete the executable and ~/.hpm/. Before that, run hpm global remove for anything you installed with hpm global add, because those package files live in Houdini’s preferences directory, not under ~/.hpm/.

Shell completions

# Bash (add to ~/.bashrc)
eval "$(hpm completions bash)"

# Zsh (add to ~/.zshrc)
eval "$(hpm completions zsh)"

# Fish
hpm completions fish | source

# PowerShell (add to $PROFILE)
hpm completions powershell | Out-String | Invoke-Expression

Supported shells: bash, zsh, fish, powershell, elvish.

Next

Quickstart: use packages in a Houdini project.

Quickstart: use packages in a Houdini project

Ten minutes, from an empty directory to a Houdini session that loads a package hpm installed. You need hpm installed and Houdini 20.5 or newer.

1. Add a registry

A registry is where hpm looks packages up. Add the one you install from, once per machine. This documentation uses one example registry throughout: a studio’s own, named studio, which Run a studio registry builds from nothing. Substitute your registry’s URL:

hpm registry add git@git.studio.example:pipeline/hpm-index.git --name studio --type git

2. Create a project

A project is a directory with an hpm.toml that lists the packages you want. --bare creates only that file:

hpm init my-project --bare --houdini "^21"
cd my-project

--houdini is the Houdini version the project runs in. ^21 means any Houdini 21; use ^22 for Houdini 22, or ^20.5 for 20.5. It matters most when packages bring Python dependencies, because it selects the Python version they are installed for.

3. Find and add a package

hpm search rock
hpm add acme/rock-tools

hpm add takes the full creator/slug name that hpm search prints. It picks the newest version, writes it to hpm.toml, and installs it:

[dependencies]
"acme/rock-tools" = "0.1.0"

To get a specific version, ask for it: hpm add acme/rock-tools@0.1.0.

4. See what was installed

hpm list

Two things now exist beside hpm.toml:

  • hpm.lock records the exact version and a checksum. Commit it.
  • .hpm/packages/ holds one small JSON file per package, which tells Houdini where the package is. Do not commit .hpm/.

The package itself is in the shared store under ~/.hpm/packages/, not in the project.

5. Start Houdini with the project’s packages

Houdini loads the packages listed in the directories named by HOUDINI_PACKAGE_PATH. Point it at the project:

# Linux, macOS
HOUDINI_PACKAGE_PATH="$PWD/.hpm/packages" houdini
# Windows (PowerShell)
$env:HOUDINI_PACKAGE_PATH = "$PWD\.hpm\packages"
houdini

houdini here is whatever starts Houdini on your machine, from a shell where Houdini’s environment is set up.

6. Check it loaded

In Houdini, the package’s nodes are in the TAB menu and its shelves in the shelf list. To check from Houdini’s Python shell:

import hou
print(hou.getenv("HOUDINI_PATH"))

The output includes a path under .hpm/packages/ in your home directory.

If the package is missing, see Troubleshooting.

Day to day

hpm add acme/fast-scatter         # add one more
hpm remove acme/rock-tools
hpm update --dry-run             # what newer versions exist?
hpm update                       # move to them
hpm install                      # after pulling a teammate's hpm.toml and hpm.lock

Restart Houdini after any of these; it reads package files only at startup.

A tool in every session, without a project

For a personal tool you always want, skip the project and install it into Houdini’s own preferences for one Houdini version:

hpm global add acme/rock-tools --houdini 21.0
hpm global list --houdini 21.0
hpm global remove acme/rock-tools --houdini 21.0

It then loads in every Houdini 21.0 session with no environment variable. See hpm global.

Next

Concepts

The handful of ideas the rest of the documentation assumes.

Package

A package is a directory of things Houdini can load: digital assets in otls/, shelves in toolbar/, Python modules in python/, compiled plugins in dso/, and so on, with an hpm.toml that names it.

A package is identified by its path, creator/slug, for example acme/rock-tools, and a semantic version. hpm pack turns the directory into an archive that can be published and installed elsewhere.

Project

A project is a directory whose hpm.toml lists the packages a piece of work needs: a show, a shot, a personal setup. hpm install makes those packages available and writes the files that let Houdini load them.

A project and a package use the same file, and a directory can be both. The difference is which commands you run and which sections they read:

As a packageAs a project
You runhpm check, hpm build, hpm packhpm add, hpm install, hpm update
[package]Its published identityA name for the project
[compat].houdiniThe Houdini versions it supportsThe project’s Houdini, which selects the Python version
[dependencies]What it needs from other packages, as rangesWhat to install, as exact versions
[runtime]Variables it sets in HoudiniOverrides applied on top of every package
[stage], [[operators]]What ships in the archiveNot used

hpm init creates a package layout. For a project that only consumes packages, hpm init --bare creates just the hpm.toml.

Store

Installed packages live once per machine, in the store at ~/.hpm/packages/, as <slug>@<version>/. Projects do not contain copies. Ten projects using the same version of a package share one directory.

Package files

Houdini discovers packages by reading small JSON package files. For each dependency, hpm install writes one into <project>/.hpm/packages/, pointing at the package in the store. You start Houdini with HOUDINI_PACKAGE_PATH set to that directory, and Houdini loads exactly the project’s packages.

This is the whole integration: hpm does not modify Houdini, and Houdini does not know hpm exists. How Houdini loads hpm packages shows the files.

Global install

hpm global add skips the project. It writes the package file into Houdini’s own preferences directory, so the package loads in every session of one Houdini version. Use it for personal tools; use projects for anything a team must reproduce.

Registry

A registry is an index that maps creator/slug and a version to a download URL and checksum. hpm consults the registries you have added when you run hpm add, hpm install, hpm update or hpm search. A registry can be public or private; a studio can run its own.

A dependency does not have to come from a registry. It can also be a URL to an archive, or a path to a package directory on disk, which is how you use a package while developing it.

Versions, and what install adds

A project’s [dependencies] hold exact versions. hpm add picks the newest version and writes it; hpm update moves it forward; hpm install installs what is written.

It also installs what those packages need. Each published version records the ranges it requires of other packages, and hpm install adds every package the project’s versions require, at the newest version that fits all of them, and records it in the lock. When the requirements cannot all be met, for example the project pins a version another package rules out, the install stops and says which packages disagree.

Lock file

hpm install records the installed versions and a checksum of each in hpm.lock. Committed alongside hpm.toml, it makes the next install, on any machine, produce the same packages or fail. See the lock file reference for what it does and does not pin.

Python environments

A package can declare Python packages it needs inside Houdini. hpm installs them with a bundled uv into a virtual environment built for the Python that the project’s Houdini ships, and adds it to that package’s PYTHONPATH. Environments are shared: projects whose packages resolve to the same set use the same one. See Python environments.

Where to go next

Create your first package

You will make a package with a Python module and a shelf, load it in Houdini from a project, and build the archive you would publish. No registry is involved.

1. Scaffold

hpm init rock-tools --description "Rock scattering tools"
Package structure:
├── .gitignore
├── README.md
├── config
├── hpm.toml
├── otls
├── presets
├── python
│   └── __init__.py
├── scripts
└── tests

The folders are Houdini conventions, not hpm ones. Anything Houdini finds under a HOUDINI_PATH entry works: otls/ for digital assets, toolbar/ for shelves, python_panels/, viewer_states/, dso/, and so on. Delete the ones you do not use and add the ones you need.

2. Name it

hpm init writes a placeholder identity. Open rock-tools/hpm.toml and set the real one:

[package]
path = "acme/rock-tools"       # creator/slug: lowercase letters, digits, hyphens
name = "Rock Tools"            # display name
version = "0.1.0"
description = "Rock scattering tools"
authors = ["You <you@example.com>"]
license = "MIT"
readme = "README.md"
keywords = ["houdini"]

[compat]
houdini = "^21"                # Houdini 21.x

path is how others will depend on the package. The creator part is your account or studio name on the registry you publish to.

3. Add content

A Python module:

# rock-tools/python/rock_tools.py
def hello():
    return "rocks"

A shelf. Create rock-tools/toolbar/ and save a shelf file into it from Houdini (right-click a shelf tab, Edit Shelf Tab, and choose a file under that folder), or copy an existing .shelf file there.

A digital asset: save an HDA into rock-tools/otls/.

4. Check it

cd rock-tools
hpm check

hpm check validates the manifest and warns about what a published package should have: a description, a README, a license file. Warnings do not fail the command.

5. Use it from a project

Create a project next to the package and depend on it by path:

cd ..
hpm init shot-010 --bare
cd shot-010
hpm add acme/rock-tools --path ../rock-tools
[dependencies]
"acme/rock-tools" = { path = "../rock-tools" }

Start Houdini on the project:

HOUDINI_PACKAGE_PATH="$PWD/.hpm/packages" houdini

In Houdini’s Python shell:

>>> import rock_tools
>>> rock_tools.hello()
'rocks'

hpm put the package’s python/ folder on PYTHONPATH and the package root on HOUDINI_PATH, which is why the module imports and the shelf and HDAs appear.

A path dependency installs a copy of the package. After you change the package, run hpm install in the project again and restart Houdini. Develop a package against a live Houdini shows how to skip the copy.

6. Set an environment variable

Packages often need Houdini to know where something is. Declare it in the package’s hpm.toml:

[runtime]
ROCK_TOOLS_PRESETS = { method = "set", value = "$HPM_PACKAGE_ROOT/presets" }

$HPM_PACKAGE_ROOT becomes the installed package’s directory. After hpm install and a restart, hou.getenv("ROCK_TOOLS_PRESETS") returns it. See [runtime].

7. Build the archive

cd ../rock-tools
hpm pack

This writes rock-tools-0.1.0.zip and prints its SHA-256. The archive contains the package under a rock-tools/ folder and a rock-tools.json beside it, so it also works unzipped into a Houdini packages directory without hpm.

Files ignored by .gitignore are left out. To control exactly what ships, see [stage].

Next

Develop a package against a live Houdini

While you work on a package you want Houdini to load your working copy, not a published version. A path dependency does that. It comes in two modes, and which one you use decides how edits reach Houdini.

Copy mode (the default)

hpm add acme/rock-tools --path ../rock-tools
[dependencies]
"acme/rock-tools" = { path = "../rock-tools" }

hpm install copies the package’s install image into the store: the files hpm pack would ship, not the whole working directory. .git/, build directories and anything ignored are left behind.

  • To pick up a change: run hpm install in the project, then restart Houdini.
  • Use it when you want to test exactly what users will get, and for any package with compiled plugins.

Each install of changed content goes to a new directory, so a Houdini that is still running keeps the copy it started with.

hpm add acme/rock-tools --path ../rock-tools --link
[dependencies]
"acme/rock-tools" = { path = "../rock-tools", link = true }

The store entry is a symlink (a junction on Windows, which needs no special permission) to your working directory. Houdini reads your files directly.

  • To pick up a change: nothing to run. What Houdini does with the edit depends on the file; see the table below.
  • Use it when the package is Python, HDAs, shelves and other data.

A package that declares native platforms in [compat].platforms is always installed as a copy, even with link = true. A linked plugin binary could not be rebuilt while Houdini has it loaded, and Houdini cannot reload one without a restart anyway.

What needs what

You changedCopy modeLink mode
A Python modulehpm install, restartReload the module (importlib.reload) or restart
An HDAhpm install, restartHoudini sees the file; refresh asset libraries or restart
A shelf, a preset, other datahpm install, restartRestart, or reload where Houdini offers it
hpm.toml: [runtime], [python_dependencies], [compat]hpm install, restarthpm install, restart
A compiled pluginRebuild, hpm install, restartSame; it is installed as a copy

Changes to hpm.toml always need hpm install, because they change the package file hpm generates for Houdini, and Houdini reads those only at startup.

Editing HDAs from inside Houdini

Houdini saves an HDA back to the file it loaded. In link mode that is your working copy, which is what you want. In copy mode it is the copy in the store: the edit is not in your repository, and the next install will not include it. Use link mode when you edit assets in Houdini.

Values that differ in development

A [runtime] value can depend on whether the package was installed from a path or from a registry:

[runtime.ROCK_TOOLS_DEBUG]
method = "set"
value = [
  { when = { install_source = "dev" }, set = "1" },
  { when = {}, set = "0" },
]

Do not use this to point at a build directory. A copy-mode install does not contain it; see HDK plugins: where a dev install finds its DSOs.

Going back to the published version

Replace the path dependency with a registry one:

hpm add acme/rock-tools@1.2.0

Path installs live apart from registry installs in the store, so a development copy of rock-tools 1.2.0 is never mistaken for the published 1.2.0, in this project or any other.

hpm clean removes development copies no project refers to. Close Houdini sessions that use them first.

Add Python dependencies to a package

Your package’s code imports numpy, or requests, or PySide helpers. Declare them, and hpm installs them for the right Python and makes them importable inside Houdini, without touching Houdini’s own Python or the system one.

This continues from Create your first package.

1. Declare them in the package

In the package’s hpm.toml (the package whose code does the importing):

[python_dependencies]
numpy = ">=1.26,<3"
requests = { version = ">=2.31", extras = ["socks"] }

Versions use pip’s syntax (PEP 440), which differs from the syntax of [dependencies]:

To sayWrite
At least 1.26">=1.26"
1.26 or newer, below 3">=1.26,<3"
Compatible with 1.26 (1.x, at least 1.26)"~=1.26"
Exactly 1.26.4"==1.26.4"
Any version"*"

Two things that look right and are not: a bare "1.26.4" (write "==1.26.4"), and the caret "^1.26" (write "~=1.26").

2. Install in the project

cd ../shot-010
hpm install

The first time, this downloads uv and a CPython build into ~/.hpm/. Then it resolves the constraints, creates a virtual environment under ~/.hpm/venvs/, and adds its site-packages to the package’s PYTHONPATH in the generated package file.

3. Use them in Houdini

Restart Houdini on the project and, in the Python shell:

>>> import numpy
>>> numpy.__version__
'2.1.3'

Which Python?

The one your Houdini ships. hpm reads it from the lower bound of the project’s [compat].houdini:

Project’s HoudiniPython
20.53.11
213.11
223.13

So set the project’s [compat].houdini to the Houdini you actually launch. A project declaring ^21 and launched in Houdini 22 gets Python 3.11 packages in a Python 3.13 interpreter, and compiled modules such as numpy fail to import. The package’s own [compat].houdini says what it supports; it does not choose the Python.

Where to declare what

Declare a Python dependency in the package that imports it. hpm install builds Houdini’s environment from the installed packages’ declarations. [python_dependencies] in the project’s own hpm.toml are not part of that environment; they are used when the project runs its own package-env scripts.

Keeping versions stable

hpm.lock pins Houdini packages, not Python packages. uv resolves your constraints again on each install, so >=1.26 can produce a newer numpy next month. Where that matters, pin:

[python_dependencies]
numpy = "==2.1.3"

The trade-off is sharing, described next.

Several packages, one environment

All of a project’s packages share one virtual environment, so every package sees the same version of numpy. Two consequences:

  • The same Python package must be declared with the same constraint everywhere. If one package says numpy = ">=1.26" and another numpy = ">=1.26,<3", install fails with Conflicting versions for package numpy. Agree on one spelling across your packages.
  • Projects whose packages resolve to the same set share the environment on disk. Loose, identical constraints across a studio’s packages keep the number of environments small.

Dependencies you do not want installed

optional = true records a dependency without installing it:

[python_dependencies]
matplotlib = { version = ">=3.8", optional = true }

hpm skips it. Use it to document something your code imports only if the user has installed it themselves.

If it goes wrong

See Troubleshooting, and Python environments for how the environments are built, shared and cleaned up.

Ship an HDK plugin

A package with compiled code differs from a data package in three ways: it is built per platform, the build output is not where Houdini should load it from, and it is tied to a Houdini major version. hpm.toml has a section for each.

The example is a SOP plugin built with CMake into build/.

1. Declare platforms and Houdini version

[package]
path = "acme/fast-scatter"
name = "Fast Scatter"
version = "1.0.0"

[compat]
houdini = "^21"
platforms = ["linux-x86_64", "macos-aarch64", "windows-x86_64"]

Keep the Houdini range bounded to one major. A plugin compiled against the Houdini 21 SDK does not load in Houdini 22, and hpm check warns when a package with platforms has no upper bound. For more than one major, see Support several Houdini versions.

2. Describe the build as a script

[scripts]
build-dso = "cmake -S . -B build && cmake --build build --config Release"

Run it with hpm run build-dso. Where the command differs per OS, give cmd one variant per OS. The script runs in your shell, so it needs the Houdini build environment set up the way your CMake project expects.

3. Place the binaries where Houdini looks

Houdini loads plugins from a dso/ folder under any HOUDINI_PATH entry. Your build writes somewhere else. [stage] moves files as the package is assembled, without changing your source tree:

[stage]
prepack = ["build-dso"]                 # scripts to run before staging
exclude = ["src/**", "CMakeLists.txt"]    # sources stay out of the package

[stage.platform.linux-x86_64]
place = [{ from = "build/*.so", to = "dso/" }]

[stage.platform.macos-aarch64]
place = [{ from = "build/*.dylib", to = "dso/" }]

[stage.platform.windows-x86_64]
place = [{ from = "build/Release/*.dll", to = "dso/" }]

With the plugin in dso/ at the package root, it needs no environment variable at all. That matters: a package that locates its plugin through a [runtime] variable loses it on install routes that ignore the variable, such as Houdini’s own Package Browser.

Two rules decide whether a placed file actually ships, and both are easy to trip over:

  • [stage].exclude beats place. Do not exclude build/**; that removes the binaries the place rules name.

  • Ignored files are not staged. Build output is normally in .gitignore, so re-include just the binaries in an .hpmignore beside hpm.toml:

    # .hpmignore
    !build/*.so
    !build/*.dylib
    !build/Release/*.dll
    

    Everything else in build/ stays ignored, so object files and caches do not end up in the package.

Keep dist/ (the output of the next step) in .gitignore as well, which hpm init does. Otherwise hpm pack ships the previous build’s dist/ inside the archive.

4. Build the install image

hpm build

This runs the prepack scripts, then writes the package exactly as it would be installed into dist/: your data folders, plus dso/ holding this machine’s plugin. Look at it. If dist/dso/ is empty, the place rule’s from did not match.

Point a Houdini at dist/ to test it directly, or depend on the package by path from a project (hpm add acme/fast-scatter --path ../fast-scatter). A path dependency on a package with platforms installs this same image as a copy, so after a rebuild run hpm install in the project and restart Houdini.

5. A debug build

Profiles let one manifest describe more than one build:

[scripts]
build-dso-debug = "cmake -S . -B build && cmake --build build --config Debug"

[stage.profile.debug]
prepack = ["build-dso-debug"]

[stage.profile.debug.platform.windows-x86_64]
place = [{ from = "build/Debug/*.pdb", to = "dso/" }]    # added to the base rules
hpm build --profile debug

A profile’s prepack replaces the base list; its place rules are added to the base ones. Two files placed at the same path are an error, so have the debug build write its binaries where the base rules already look, and use the profile for what is extra, such as the PDB files above (re-included in .hpmignore like the binaries).

A single script can also branch on $HPM_BUILD_PROFILE, which hpm build sets for prepack scripts. See build profiles.

6. Declare the operators

So a registry can answer “which package provides the fast_scatter SOP”:

[[operators]]
kind      = "dso"
type_name = "acme::fast_scatter"
label     = "Fast Scatter"
category  = "Sop"
source    = { linux-x86_64 = "dso/fast_scatter.so", macos-aarch64 = "dso/fast_scatter.dylib", windows-x86_64 = "dso/fast_scatter.dll" }

hpm cannot read operator names out of a compiled plugin, so they are declared. source lets hpm pack check the file really is in the archive.

7. Pack, once per platform

Build and pack on each platform you declared:

hpm run build-dso
hpm pack --verify-assets --json

This produces fast-scatter-1.0.0-linux-x86_64.zip on Linux, and so on. Each archive contains the shared files and only that platform’s binaries. --verify-assets fails the pack if a declared operator’s file is missing.

hpm pack does not run prepack scripts; build first. Pack archives that contain Unix executables on a Unix machine, because Windows cannot record the executable bit.

When all archives are published under the same version, a user’s hpm install picks the one for their platform.

Next

Support several Houdini versions

How much work this is depends on what the package contains.

The package containsWhat to do
HDAs, shelves, pure PythonWiden [compat].houdini. One archive serves every version.
Paths or settings that differ per versionConditional [runtime] values.
Python dependencies with compiled parts (numpy, …)Nothing in the package; the project’s Houdini selects the build.
Compiled HDK pluginsOne binary per Houdini major, in version-keyed folders.

Declare the range

[compat]
houdini = ">=21, <23"      # Houdini 21 and 22

hpm compiles the range into the package file’s enable expression, so a Houdini outside it skips the package. Only declare versions you have tested. Useful forms:

RangeMeans
"^21"21.x
"~21.5"21.5.x
">=20.5, <23"20.5 through 22.x
">=21"21 and everything after. For data-only packages you are willing to vouch for.

Values that differ per version

A [runtime] value can be a list of variants, each with a condition. The first variant that matches wins:

[runtime.ROCK_TOOLS_UI]
method = "set"
value = [
  { when = { houdini = "^21" }, set = "$HPM_PACKAGE_ROOT/ui/h21" },
  { when = { houdini = "^22" }, set = "$HPM_PACKAGE_ROOT/ui/h22" },
]

Houdini evaluates the conditions at startup, so one installed package adapts to whichever Houdini loads it. Conditions can also test os and python; see conditional values.

Houdini’s own variables pass through untouched, which is often shorter:

[runtime]
ROCK_TOOLS_UI = { method = "set", value = "$HPM_PACKAGE_ROOT/ui/h$HOUDINI_MAJOR_RELEASE" }

Python dependencies

Houdini 21 ships Python 3.11 and Houdini 22 ships 3.13. A package does not choose between them. The project does: hpm builds the virtual environment for the Python that matches the lower bound of the project’s [compat].houdini.

For the package author this means: declare Python dependencies with constraints that have releases for every Python you support, and widen the package’s Houdini range. For the project owner: set the project’s [compat].houdini to the Houdini that is actually launched, and use one project per Houdini major rather than one project launched in both.

Compiled plugins

A plugin built against one Houdini major does not load in another, so a package covering two majors carries two binaries. Both cannot be named dso/fast_scatter.so, so place them in version-keyed folders and point Houdini at the right one:

[compat]
houdini = ">=21, <23"
platforms = ["linux-x86_64"]

[stage.platform.linux-x86_64]
place = [
  { from = "build/h21/*.so", to = "dso/21/" },
  { from = "build/h22/*.so", to = "dso/22/" },
]

[runtime]
HOUDINI_DSO_PATH = { method = "prepend", value = "$HPM_PACKAGE_ROOT/dso/$HOUDINI_MAJOR_RELEASE" }

The cost of this layout: the plugin is found only where the [runtime] variable is applied. That is every hpm install and every manual install that keeps the shipped package file, but not Houdini’s Package Browser “Install Package Archive”, which discards it. If that route matters to your users, publish one package version per Houdini major instead, each with a plain dso/ folder and a ^21 or ^22 range.

Building only some majors

A build script that loops over Houdini versions can take the list from hpm:

hpm build --houdini-majors "21 22"

Prepack scripts receive it as HPM_HOUDINI_MAJORS. hpm passes the value along and does not interpret it. Treat an empty or unset value as “build every major the package declares”, so that a plain hpm build still does the full job, and CI can narrow it to the majors installed on a runner.

Declaring operators per platform

[[operators]] source is checked against one path per platform. With version-keyed folders, name one of the binaries, or omit source and index the operator by name only.

Publish a package

Publishing has two halves. hpm does the first: it builds the archive and tells you its checksum. The second is yours: put the archive somewhere it can be downloaded, and tell a registry where it is. hpm has no publish command and no upload step.

1. Prepare the release

  • Set the real path (creator/slug) and bump version in hpm.toml. A published version is permanent: registries and lock files identify the bytes by it. Fix mistakes with a new version.
  • Declare the Houdini range you tested in [compat].houdini.
  • Declare dependencies on other packages as ranges you have tested, for example "acme/core" = ">=1.2, <2". See versions and ranges.
  • Add a README.md and a license file.
hpm check

2. Declare what the package provides (optional)

[[operators]] lists the node types in the package, so a registry can search by node name:

[[operators]]
kind      = "hda"
type_name = "acme::rock_scatter::1.0"
label     = "Rock Scatter"
category  = "Sop"
source    = "otls/rock_scatter.hda"

See [[operators]].

3. Pack

hpm pack --json --verify-assets --output release/
{
  "archive": "release/rock-tools-1.0.0.zip",
  "sha256": "40c67f243a852eff6b08ebf52bd15757115db71e0a509fad67bade62ce3c436f",
  "signature": null,
  "key_id": null,
  "platform": null,
  "assets": []
}

Keep this output. The registry needs sha256, and platform when it is set. Read the archive’s name from it rather than constructing it.

A package that declares [compat].platforms is packed once per platform, on that platform; see Ship an HDK plugin.

4. Sign (optional)

openssl genpkey -algorithm ed25519 -out signing.pem      # once; keep it secret, outside the package
openssl pkey -in signing.pem -pubout -out signing.pub.pem

hpm pack --json --key signing.pem

signature and key_id are then filled in. Be clear about what this buys: hpm produces signatures and registries can store them, but hpm does not verify signatures on install. They are for a registry or a pipeline that checks them itself. See Security.

5. Host the archive

Upload the .zip anywhere that serves it over https: a release on your code host, an object storage bucket, a studio file server. Do not change the file after packing; the checksum and signature cover its exact bytes.

6. Register the version

Tell the registry the package path, version, download URL, checksum, and platform. How depends on the registry, and on whether it accepts packages from you at all: a registry decides who may publish to it.

  • A Git registry you control. Append one line to the package’s index file and push. See Run a studio registry.
  • An API registry. hpm only reads from API registries; registering a version is done through whatever its operator provides. The fields it needs are the ones in the hpm pack --json output. See Registry formats for what such a registry serves.

Then check it from a clean project:

hpm registry update          # Git registries only
hpm search rock-tools
hpm add acme/rock-tools@1.0.0

Without a registry

Two ways to hand a package to someone directly:

  • A URL dependency. They add the archive’s URL to their project:

    [dependencies]
    "acme/rock-tools" = { url = "https://packages.studio.example/rock-tools-1.0.0.zip", version = "1.0.0" }
    

    The key and version must match the archive’s own hpm.toml.

  • No hpm at all. The archive unzips to rock-tools.json beside a rock-tools/ folder. Both go into a Houdini packages directory. See Installing an archive without HPM for the options and the one Houdini install flow to avoid.

SideFX’s hpackage repository

SideFX validates the archive’s package file more strictly than Houdini does. hpm pack --sidefx produces a file it accepts, or fails and says why:

hpm pack --sidefx

The main restriction: [compat].houdini must be a single lower bound such as ">=21.0". A range with an upper bound, including ^21, cannot be published there. A README.md is required. Details are under hpm pack.

Withdrawing a version

Mark it yanked in the registry. Ranges then skip it, while projects that already pin that exact version keep installing. Do not delete or replace the archive: every lock file that names it would start failing.

Run a studio registry

A private registry for in-house packages needs no server software. A Git repository holds the index, and any https file host holds the archives. Whoever can clone the repository can install from it.

1. Create the index repository

mkdir hpm-index && cd hpm-index
git init
echo '{}' > config.json
git add config.json && git commit -m "Empty index"

config.json must exist; hpm uses it to recognise an index. Push the repository to your Git host.

2. Pack a package and host the archive

In the package:

hpm pack --json
{"archive":"rock-tools-0.1.0.zip","sha256":"40c67f24...436f","platform":null, ...}

Upload the .zip to a location served over https, for example https://packages.studio.example/rock-tools-0.1.0.zip.

3. Add the version to the index

Each package has one file, <creator>/<slug>.json, with one JSON object per line. Append a line for the new version:

mkdir -p acme
cat >> acme/rock-tools.json <<'EOF'
{"name":"acme/rock-tools","vers":"0.1.0","dl":"https://packages.studio.example/rock-tools-0.1.0.zip","cksum":"sha256:40c67f243a852eff6b08ebf52bd15757115db71e0a509fad67bade62ce3c436f","houdini_compat":"^21","description":"Rock scattering tools"}
EOF
git add acme/rock-tools.json && git commit -m "rock-tools 0.1.0" && git push

cksum is the sha256 from hpm pack --json, prefixed with sha256:. houdini_compat is the package’s [compat].houdini. For a per-platform archive add "platform":"linux-x86_64", with one line per platform. All fields are in Registry formats.

4. Add the registry on each workstation

hpm registry add git@git.studio.example:pipeline/hpm-index.git --name studio --type git
hpm search rock
Found 1 packages matching 'rock':

  acme/rock-tools 0.1.0
    Rock scattering tools
    Houdini: ^21

Or declare it in a project’s hpm.toml, so that everyone who checks the project out resolves from it without running hpm registry add:

[[registries]]
name = "studio"
url = "git@git.studio.example:pipeline/hpm-index.git"
type = "git"

5. Install from it

hpm add acme/rock-tools --registry studio
[dependencies]
"acme/rock-tools" = { version = "0.1.0", registry = "studio" }

--registry pins the dependency to your registry. Without the pin, hpm asks every configured registry in order and takes the first that has the package; with it, a package of the same name appearing in a public registry can never be installed instead.

Publishing a new version

Pack, upload, append a line, push. Then on workstations:

hpm registry update      # fetch the index; Git registries are read from a local clone
hpm update acme/rock-tools

hpm does not fetch the index on its own. A version published after the last hpm registry update is not visible until the next one.

Withdrawing a version

Add "yanked":true to its line and push. hpm add and hpm update stop choosing it; projects pinned to exactly that version keep installing.

Automating it

Steps 2 and 3 are a few lines of shell in a release pipeline: pack with --json, upload the archive, build the index line from the JSON, commit and push to the index repository. See Continuous integration.

Private archives

hpm sends no credentials when it downloads an archive, so the host must serve the file without authentication to the machines that install it: a server reachable only inside the studio network is the usual answer. Access to the index is controlled by Git.

Continuous integration

Two pipelines come up: one for a project that consumes packages (a show setup, a render-farm environment), and one for a package that is built and released. The examples are plain shell; they fit any CI system.

hpm’s regular output is for people. In CI, rely on exit codes, and use --output json or hpm pack --json where a later step needs a value. Diagnostics go to stderr, results to stdout.

Installing hpm in a job

VERSION=0.46.0
BASE=https://github.com/3db-dk/hpm/releases/download/v$VERSION
curl -fsSLO $BASE/hpm-v$VERSION-linux-x86_64
curl -fsSLO $BASE/hpm-v$VERSION-linux-x86_64.sha256
sha256sum -c hpm-v$VERSION-linux-x86_64.sha256
install -m 0755 hpm-v$VERSION-linux-x86_64 /usr/local/bin/hpm

Pin the version. Cache ~/.hpm/ between jobs to avoid downloading packages, uv and Python again.

A project: reproduce the committed lock

hpm registry add git@git.studio.example:pipeline/hpm-index.git --name studio --type git --if-not-exists
hpm install --frozen-lockfile
hpm audit
  • A Git registry is cloned with git, so the runner needs read access to the index repository: a deploy key for the git@ form, or an https:// URL the runner can already read.
  • --if-not-exists makes the registry step safe to repeat. Registries declared in the project’s own hpm.toml need no step at all.
  • --frozen-lockfile fails if hpm.lock is missing, does not match hpm.toml, or lacks a checksum. Every downloaded package is checked against the lock.
  • hpm audit exits 1 if an installed package no longer matches what was recorded.

The same three lines prepare a render node. Then start Houdini with HOUDINI_PACKAGE_PATH=<project>/.hpm/packages.

A nightly job can report available updates without applying them:

hpm --output json update --dry-run

A package: validate on every push

hpm check
hpm pack --json --verify-assets --output /tmp/pack-test

hpm check alone exits 0 on warnings. Packing is the stronger test: it fails on an invalid manifest and, with --verify-assets, on a declared operator whose file is not in the archive.

A package: release on a tag

# 1. The tag must match the manifest.
test "v$(grep -m1 '^version' hpm.toml | cut -d'"' -f2)" = "$CI_TAG"

# 2. Build, if the package has compiled parts.
hpm run build-dso

# 3. Pack, signed. The key comes from a CI secret, inline.
export HPM_SIGNING_KEY="$SIGNING_KEY_PEM"
hpm pack --json --verify-assets --output release/ > pack.json

# 4. Upload the archive to your host.
ARCHIVE=$(python3 -c 'import json;print(json.load(open("pack.json"))["archive"])')
SHA=$(python3 -c 'import json;print(json.load(open("pack.json"))["sha256"])')
your-upload-tool "$ARCHIVE"

# 5. Register the version with your registry, using $SHA and the URL.

Notes:

  • HPM_SIGNING_KEY may hold the PEM text itself, which is how CI secrets usually arrive; no key file touches the runner’s disk.
  • hpm pack refuses to pack a private key that has ended up inside the package directory.
  • For a package with [compat].platforms, run steps 2 to 4 once per platform, each on a runner of that platform. The archives share a version and differ in the platform field of pack.json. Pack on the platform you built on; --platform exists for cross-packing prebuilt binaries, and an archive with Unix executables must be packed on Unix.
  • Step 5 depends on the registry: a commit to the index repository for a Git registry, or whatever the operator of an API registry provides.

Exit codes

CodeMeaning
0Success
1The command failed
2The command line was wrong
otherFrom hpm run: the script’s own exit code

Run package code outside Houdini

[scripts] gives a package named commands: a build step, a setup wizard, a render-farm entry point. hpm run <name> runs one, and can give it a Python environment without anyone installing anything by hand.

A plain command

[scripts]
hello = "echo package root is $HPM_PACKAGE_ROOT"
hpm run hello -- a b
package root is /work/rock-tools a b
  • The command runs through the system shell (sh -c, or cmd /C on Windows), from the directory holding hpm.toml.
  • HPM_PACKAGE_ROOT is that directory.
  • Everything after the script name is passed to the command.
  • hpm exits with the command’s exit code.

Use -m <dir> or -C <dir> to run a script of a package elsewhere.

Different commands per OS

Shell syntax differs between sh and cmd.exe ($VAR against %VAR%), so give cmd one variant per OS where it matters:

[scripts.register]
cmd = [
  { when = { os = "windows" }, set = "\"%HPM_PACKAGE_ROOT%\\bin\\tool.exe\" register" },
  { when = {},                 set = "\"$HPM_PACKAGE_ROOT/bin/tool\" register" },
]

The first matching variant runs; when = {} matches any OS.

A script with its own Python packages

A script that needs Python packages declares them, and hpm builds a virtual environment for it on first run:

[scripts.setup]
cmd          = "python scripts/setup_wizard.py"
python       = "3.11"
requirements = ["PySide6>=6.6", "pyyaml"]
hpm run setup

python in the command is then the environment’s interpreter. The environment contains only the listed requirements. It does not include the package’s own modules or its [python_dependencies].

Use this for tools that stand apart from the package’s code: installers, code generators, linters.

A script that imports the package

Code that ships in the package and runs outside Houdini, such as a farm task or a command-line tool, needs the same imports it has inside Houdini. package-env = true provides them:

[scripts.submit]
cmd         = "python -m rock_tools.submit"
package-env = true
hpm install        # once, so the project is locked and its packages are present
hpm run submit -- --shot 010

The script runs with:

  • the project’s and its dependencies’ [python_dependencies] installed, for the Python of the project’s Houdini;
  • the package’s python/ folder and each dependency’s python/ folder on PYTHONPATH.

It does not provide hou. For that, the command itself must be hython from a Houdini installation.

On a render farm

A farm job that should run with a project’s packages needs two lines on the worker:

hpm install --frozen-lockfile -C /path/to/project
hpm run submit -C /path/to/project -- --shot 010

The first reproduces the project’s lock on that machine; the second runs inside its environment. Nothing about the environment is set up in the job script.

Scripts as build steps

hpm build runs the scripts named in [stage].prepack before it assembles the package, so [scripts] is also where a compile step lives. See Ship an HDK plugin.

Reference

[scripts] and hpm run, including the Windows rules for arguments.

Set a project’s environment

Packages bring their own environment variables. A project often needs to add to them or overrule them: the show’s OCIO config, an asset root, an extra Python path. The project’s own [runtime] section does that, and it is applied after every package.

Set a variable for the project

In the project’s hpm.toml:

[runtime]
SHOW_ROOT = { method = "set", value = "/mnt/shows/rocks" }
OCIO      = { method = "set", value = "/mnt/shows/rocks/color/config.ocio" }
hpm install

After a restart, Houdini has both. No package needs to mention the variable. set on OCIO replaces the config Houdini ships with, rather than being added to it.

Add to what packages provide

[runtime]
PYTHONPATH         = { method = "append",  value = "/mnt/shows/rocks/python" }
HOUDINI_OTLSCAN_PATH = { method = "prepend", value = "/mnt/shows/rocks/otls" }

With prepend and append, every package keeps its own contribution and the project’s value is merged in once, after all of them. Houdini supplies the path separator.

Overrule a package

If a package sets a variable and the project wants a different value, use set in the project:

Project’s methodResult
setOnly the project’s value remains.
prepend, appendPackage values stay; the project’s is added.

Variables a package requires

A package can demand a value without choosing one:

# in the package
[runtime]
ROCK_TOOLS_LIBRARY = { method = "set", required = true }

A project that uses the package must then supply it, or hpm install fails:

# in the project
[runtime]
ROCK_TOOLS_LIBRARY = { method = "set", value = "/mnt/shows/rocks/library" }

If the package gives required = true together with a value, that value is the default and the project may leave it out.

Different values per OS

[runtime.SHOW_ROOT]
method = "set"
value = [
  { when = { os = "windows" }, set = "S:/shows/rocks" },
  { when = {},                 set = "/mnt/shows/rocks" },
]

Houdini picks the variant at startup, so one committed hpm.toml serves every workstation.

Things to know

  • $HPM_PACKAGE_ROOT means “this package’s directory” and has no meaning in a project’s [runtime]. Use real paths there.
  • Other $VARIABLES are expanded by Houdini at startup, so "$HIP/cache" or "$HOME/presets" work.
  • The project’s entries are written to .hpm/packages/~hpm-project-overrides.json. The name sorts after every package’s file, which is what makes Houdini apply it last.
  • Global installs (hpm global add) have no project and therefore no project overrides.

Reference: [runtime].

Keep disk usage down

hpm never deletes a package on its own. hpm remove and hpm update leave the old version in the store, because another project may use it. hpm clean removes what nothing uses, and to do that it has to know where your projects are.

1. Tell hpm where your projects are

hpm clean treats a package as in use when a project it knows about depends on it. It finds projects through [projects] in ~/.hpm/config.toml:

[projects]
search_roots   = ["/home/me/houdini-projects", "/mnt/shows"]
explicit_paths = ["/home/me/pipeline-tools"]
max_search_depth = 3
  • search_roots are scanned for directories containing an hpm.toml, down to max_search_depth levels.
  • explicit_paths are individual projects that are always counted.

Until this is set, hpm clean removes nothing. With no projects, every package would look unused, so it stops instead:

No HPM-managed projects found - skipping cleanup to prevent removing all packages

The reverse also holds: a project outside these locations is invisible, and its packages will be removed. They are not lost; the next hpm install in that project downloads them again.

Packages installed with hpm global add are always kept.

2. Look before deleting

hpm clean --dry-run
Found 1 orphaned dev installs:
  - _dev/rock-tools@0.1.0

Run 'hpm clean' to remove these packages

3. Clean

hpm clean                    # packages and development copies; asks first
hpm clean --yes              # without asking
hpm clean --python-only      # only Python environments
hpm clean --comprehensive    # packages, development copies and Python environments

Close Houdini sessions first. A session started from a project you have since reinstalled may still be reading a development copy that hpm now considers replaced.

What uses the space

du -sh ~/.hpm/*
DirectoryHoldsReclaim with
packages/Installed packageshpm clean
venvs/Python environmentshpm clean --python-only
cache/Downloaded archivesDelete it; archives are fetched again when needed
uv-cache/Downloaded Python wheelsDelete it
uv-python/CPython buildsDelete it; fetched again on the next Python install

A Python environment is removed when none of the packages that used it are installed any more. One with no recorded users, which is what a script’s own environment looks like, is removed after 30 days without use.

A shared or larger disk

To move everything hpm stores:

[storage]
home_dir = "/fast-disk/hpm"

Generated package files contain absolute paths into the store, so run hpm install in each project after moving it.

Do not point several users at one store on a shared volume unless they can all be trusted with each other’s Houdini sessions: whoever can write to the store can change what the others load.

CLI reference

Every hpm command, its flags and what it does. For task-oriented walkthroughs see the guides; for the manifest those commands read see the hpm.toml reference.

Global options

Available on every command, before or after the subcommand name, except --output, which goes before it (hpm --output json list): build and pack have their own --output <dir>.

OptionDescription
-v, --verboseShow progress logs on stderr (-vv for more). By default only warnings and errors appear there.
-q, --quietSuppress non-error output.
--color <when>auto, always, or never.
--output <format>human (default), json, json-lines, json-compact. The JSON error document follows the same format.
-C, --directory <dir>Run as if invoked from <dir>: the project is found there, and relative paths in other arguments resolve against it.

Commands that work on a project (add, remove, update, list, install, check, build, pack, run, audit) also take -m, --manifest <path>, naming the project’s hpm.toml or the directory holding it.

hpm init

Create a new HPM package.

hpm init [OPTIONS] [NAME]

Options

FlagDefaultDescription
--description <text>—Package description.
--author <name>git config user.* if setAuthor ("Name <email>").
--version <v>0.1.0Initial version.
--license <id>MITLicense identifier.
--houdini <range>^21[compat].houdini Cargo-style range (e.g. "^21", ">=20.5, <22", ">=21"). Default is bounded to a single Houdini major — see [compat] for why.
--bareoffSkip standard directories and generated files; create only hpm.toml.
--vcs <vcs>gitgit or none.

Examples

hpm init my-tools
hpm init --bare minimal
hpm init advanced-tools \
  --description "Advanced geometry tools" \
  --author "Artist <artist@studio.com>" \
  --license Apache-2.0 \
  --houdini ">=20.5, <22"

hpm add

Add one or more dependencies to hpm.toml.

hpm add [OPTIONS] <PACKAGE>...

<PACKAGE> is creator/slug or creator/slug@version. hpm add resolves it straight away: a bare name takes the highest non-yanked version in the configured registries, name@version takes that version, and the exact version found is written to hpm.toml. It then installs, like hpm install.

Options

FlagDescription
--path <dir>Add as a local path dependency (only valid with a single package). Path dependencies install into a _dev/ subtree of the global packages dir so they never overwrite a registry install at the same (slug, version).
--linkFor path dependencies, install as a symlink (Unix) or NTFS junction (Windows) instead of copying. Working-tree edits become visible to a live Houdini session without re-running hpm install. Requires --path. Packages that declare native [compat].platforms (a DSO/HDK build, not universal) are installed as a copy of their install image even with --link: a linked native binary can’t be rebuilt in place while a Houdini session has it loaded (Windows LNK1104), and a mapped DSO needs a relaunch to reload anyway.
-m, --manifest <path>Path to the manifest to modify (hpm.toml or containing dir). Defaults to cwd.
--optionalRecord optional = true on the added dependencies. The flag is metadata: hpm install installs optional dependencies like any other, and hpm list marks them.
--registry <name>Resolve from this configured registry only, and record registry = "<name>" in hpm.toml so later installs and updates keep using it. Errors if the name is not configured. Not valid with --path.

Examples

hpm add acme/utility-nodes@1.0.0
hpm add acme/a@1.0.0 acme/b@2.0.0
hpm add local-tools --path ../local-tools
hpm add local-tools --path ../local-tools --link  # live edits → Houdini
hpm add acme/visualize@1.0.0 --optional
hpm add acme/lib@1.0.0 -m /path/to/project
hpm add acme/internal@1.0.0 --registry studio   # pin to one registry

hpm remove

Remove a dependency from hpm.toml. This does not delete package files from ~/.hpm/packages/ — run hpm clean for that.

hpm remove [OPTIONS] <PACKAGE>
FlagDescription
-m, --manifest <path>Manifest to modify.

hpm install

Install the dependencies hpm.toml declares, at the versions it names.

hpm install [OPTIONS]

Install does the following:

  1. Loads hpm.toml and, if present, hpm.lock. An hpm.lock that cannot be read stops the install. A lock older than 90 days prints a warning.
  2. Works out the packages to install: every entry of [dependencies], and every package their versions require that the project does not list, directly or through each other. A registry dependency written as a full version is installed at exactly that version; a range takes the newest version in it that fits. A path or URL dependency takes part at the version its own hpm.toml declares, and brings what that file’s registry dependencies require. Versions are held to the project’s [compat].houdini and to each other’s requirements: when they cannot all hold, install stops before downloading anything from a registry and names the packages involved. A package the project does not list keeps the version hpm.lock recorded while it still fits.
  3. Installs them into the store (~/.hpm/packages/), several at once: a registry package is downloaded, a URL dependency is downloaded, a path dependency is copied or linked. A package already in the store is reused. Each package the lock pins is checked against its locked checksum, whether it was just downloaded or reused.
  4. Collects [python_dependencies] from the installed packages, resolves them with the bundled uv for the Python that matches the project’s [compat].houdini, and installs them into a shared venv under ~/.hpm/venvs/<hash>/.
  5. Writes one Houdini package file per installed package to <project>/.hpm/packages/{creator}.{slug}.json, required packages included, and removes files there for packages no longer installed.
  6. Writes hpm.lock, with an entry for every installed package.

A required package is looked up in the project’s registries, the first one that has it. It is chosen the way an application that embeds hpm chooses it, so the two install the same set for the same project.

The venv is built from the Python dependencies of the installed packages. [python_dependencies] in the project’s own manifest are used by package-env scripts, not by the venv Houdini loads.

Options

FlagDescription
-m, --manifest <path>Path to hpm.toml (or its containing directory).
--frozen-lockfileFail if hpm.lock is missing or would need to change. Use in CI.

hpm update

Move registry dependencies to newer versions.

hpm update [OPTIONS] [PACKAGES]...

With no packages, checks every registry dependency. With specific packages, only those.

For each dependency, hpm update asks the registry for all versions and picks the highest non-yanked one in the dependency’s update range:

  • An exact pin such as 1.2.3 is searched as ^1.2.3, so it moves to the newest release with the same major version (the same minor, for 0.x).
  • A range such as >=1.2, <1.5 is searched as written.

Applying an update rewrites the entry in hpm.toml to the exact version found, then installs. That install sets aside the versions hpm.lock recorded for packages the project does not list, so they move to the newest version that fits too. With no packages named, it does this even when every listed dependency is current. Path and URL dependencies are left alone, and so are Python dependencies: uv resolves those again on every install.

With a non-human --output, pass --dry-run or --yes; there is nobody to answer the prompt.

FlagDescription
-m, --manifest <path>Manifest to operate on.
--dry-runPrint the proposed plan without applying it.
-y, --yesSkip the confirmation prompt.

Examples

hpm update --dry-run
hpm update
hpm update acme/geometry-tools
hpm --output json update --yes      # CI-friendly

hpm list

Display installed dependencies and their metadata.

hpm list [OPTIONS]
FlagDescription
-m, --manifest <path>Manifest to read.
--treeRender dependencies as a tree.

hpm check

Validate hpm.toml and the surrounding project.

hpm check

Check runs:

  • hpm.toml exists, parses, and passes manifest validation (scoped creator/slug path, semver version, [compat].houdini parseable, [stage] and [[operators]] per-platform consistency with [compat].platforms).
  • Soft warnings for: missing description, missing authors, missing keywords, missing [compat].houdini, missing README or license file, missing .gitignore when a .git directory is present, packages larger than 100 MB, and individual files larger than 10 MB. Size is measured over what hpm pack would ship: files excluded by .gitignore, .hpmignore or [stage] (a build/ tree, say) do not count.

Check is advisory — warnings do not fail the command.

hpm run

Execute a script defined in the manifest’s [scripts] table.

hpm run <SCRIPT> [-- ARGS...]
ArgumentDescription
<SCRIPT>Name of the entry under [scripts].
ARGS...Trailing arguments forwarded to the script verbatim, after shell-quoting.

Behaviour:

  • Looks up the named entry; if its cmd is a conditional list, the first variant whose when.os matches the host wins. Plain entries always match.
  • Sets HPM_PACKAGE_ROOT to the manifest directory and runs the command from that directory through the host shell (sh -c on Unix, cmd /C on Windows).
  • Because it runs through a shell, cmd is shell syntax, and the two hosts do not share one: sh expands $VAR, while cmd.exe means nothing by it and spells the same thing %VAR%. Give each host the spelling its shell reads with a conditional cmd keyed on when.os rather than expecting one string to work on both.
  • Forwarded ARGS are quoted per argument for that shell, so spaces and backslashes reach the script as written, and on Unix quotes do too. On Windows an argument holding a double quote or a line break is refused, because cmd.exe ends its quoting at either. One more Windows case has no escape and is not attempted: cmd.exe expands %NAME% even inside double quotes, and its command-line parser — unlike a batch file’s — offers no way to suppress it, so an argument containing %NAME% where NAME is set in the environment arrives expanded. An unmatched %, or a name that is not set, passes through as written.
  • For table-form entries with python or requirements, materializes a uv-managed venv at ~/.hpm/venvs/<hash>/, prepends its bin/ (or Scripts/ on Windows) to PATH, and sets VIRTUAL_ENV. Two scripts whose python + requirements resolve to the same closure share one venv on disk.
  • For entries with package-env = true, runs inside the package’s full resolved environment instead: the merged venv across the project and its installed dependencies, with every package’s python/ on PYTHONPATH. Requires hpm install to have been run.
  • The script’s exit code becomes hpm’s exit code, so hpm run is safe to chain in CI or wrap in a Houdini hook.

Example

[scripts.setup]
cmd          = "python scripts/setup.py"
python       = "3.11"
requirements = ["PySide6>=6.6"]
hpm run setup

Search every configured registry for packages matching a query.

hpm search <QUERY>

If no registries are configured, HPM prints instructions to add one.

hpm build

Materialise the install image into a directory. Runs [stage].prepack scripts (compile DSO, collapse expanded HDAs, etc.), then copies workspace files into the output directory using the same include/exclude/place rules hpm pack would apply. The result is what a registry consumer’s install would look like.

hpm build [OPTIONS]

hpm build is a one-shot CLI verb — it copies files and exits, with no background watcher. The output directory is yours to manage; common patterns:

  • Single workstation, one Houdini at a time: leave the default [stage].output_dir (dist/), point Houdini at it, rerun hpm build whenever you want a refresh.
  • Multiple Houdini sessions in parallel: pass --output <tmpdir> per session and have each session’s HOUDINI_PACKAGE_PATH reference its own staging directory. Avoids cross-session DSO lock conflicts.

Options

FlagDescription
-m, --manifest <path>Path to hpm.toml or containing dir. Defaults to cwd.
-o, --output <dir>Override [stage].output_dir. Relative paths resolve against the manifest dir; absolute paths are used verbatim.
--platform <id>Target platform. Defaults to host when [compat].platforms is declared. Required when host is not in the declared list.
--profile <name>Build profile. Defaults to release. Selects the matching [stage.profile.<name>] table (if any) and is exposed to prepack scripts as HPM_BUILD_PROFILE.
--houdini-majors <list>Houdini major versions this build targets, space-separated (e.g. --houdini-majors "21 22"). Forwarded verbatim to prepack scripts as HPM_HOUDINI_MAJORS. Omit to leave it unset.
--no-prepackSkip [stage].prepack scripts. Use in CI when build steps already ran out-of-band.
--no-cleanKeep existing output-dir contents instead of wiping first.

Prepack environment. In addition to HPM_PACKAGE_ROOT, prepack scripts (and any [scripts] they invoke) see these build-context variables:

  • HPM_BUILD_PROFILE — the selected --profile (default release). A single prepack script can branch on it, e.g. cmake --build --config $HPM_BUILD_PROFILE, instead of maintaining one script per build type.

  • HPM_PLATFORM — the resolved target platform (e.g. macos-aarch64), set whenever the package declares [compat].platforms.

  • HPM_HOUDINI_MAJORS — the set of Houdini major versions this build should target, space-separated (e.g. 21 22, or just 22). A package that builds one native artifact per Houdini major (a compiled USD resolver, say) reads it to restrict the matrix — build every declared major when it is unset or empty, otherwise only the listed ones. hpm forwards the value verbatim and does not interpret it.

    hpm build sets it from --houdini-majors; CI passes the release matrix that way instead of exporting an ad-hoc, unprefixed variable. When the flag is omitted, an HPM_HOUDINI_MAJORS already present in the environment passes through unchanged, so an out-of-process producer (e.g. a desktop launcher that discovers the machine’s installed majors) can set it and an explicit --houdini-majors still overrides. Unset in both = the package’s full declared matrix.

HPM_BUILD_PROFILE, HPM_PLATFORM, and HPM_HOUDINI_MAJORS are set only for the hpm build prepack path; a standalone hpm run <script> does not carry build-profile, platform, or Houdini-major context.

Workflow notes — live editing and DSO rebuild

These are user-level concerns; HPM doesn’t model them in the manifest:

  • HDA editing. Edits made inside Houdini save back to whatever path Houdini loaded the HDA from. If you load from dist/otls/foo.hda (collapsed by hpm build), saves go into the build output and get clobbered on the next hpm build. If you want round-trip editing, point Houdini at an unstaged expanded HDA dir during dev, and run hpm build only when you want to produce the publishable form.
  • DSO rebuild while Houdini is loaded. On Windows, a loaded .dll is locked. With --output <tmpdir-A> for session A and --output <tmpdir-B> for session B, your cmake --build (writing to build/<plat>/) doesn’t hit either lock, and a fresh hpm build --output <tmpdir-C> writes to a third location — you only hit the lock when you try to rebuild into a directory a live Houdini still has loaded. The typical workflow is one temp dir per Houdini lifetime, thrown away on Houdini close.

hpm pack

Build a distributable archive from the current package.

hpm pack [OPTIONS]

Pack runs hpm check first, then:

  1. Auto-generates a Houdini-native {slug}.json for the archive unless the user has provided one (a hand-written file ships verbatim). This file follows Houdini’s own package format, so the archive is usable by Houdini even without HPM: the archive uses the hpackage layout — {slug}.json at the root next to a {slug}/ folder holding all package content. See Installing an archive without HPM for how to install one, and which Houdini install flow to avoid. (hpm install strips the {slug}/ wrapper again; installed trees stay flat with hpm.toml at the root.) The archive is named {slug}-{version}.zip, or {slug}-{version}-{platform}.zip for a per-platform build; read the path from --json rather than building it.

  2. Filters files by [stage] (per-platform place rules and include/exclude globs) when the manifest declares [compat].platforms.

  3. Produces a .zip archive plus a SHA-256 checksum. Each entry carries the executable bit of the file it came from, normalised to 0755 or 0644 — so a package that ships a program (a [scripts] entry pointing at bin/<platform>/<tool>, a bundled configure.sh) installs runnable on macOS and Linux. Only the executable bit survives; the group and other bits are normalised away so that two machines with different umasks pack an identical tree to identical bytes, and therefore to the same checksum.

    Windows has no file mode to read, so an archive packed there cannot carry an executable bit. Pack an archive containing a Unix program from a Unix host — per-platform CI that builds each archive on its own worker already does. (hpm install compensates where it can: see file modes on install.)

    Symlinks are resolved, not stored. A symlink to a file is packed as an ordinary entry holding the target’s bytes, so a source tree using the usual libfoo.so -> libfoo.so.1.2.3 layout ships both names and installs correctly everywhere, including on Windows. A symlink to a directory is skipped with a warning — the pack walk does not descend through links, so its contents would go missing silently — and a broken link is skipped rather than failing the pack. The result is that hpm archives never contain a link entry, which is what lets extraction refuse them outright.

  4. If a signing key is supplied, produces an Ed25519 signature over the archive bytes and emits a keyId.

  5. Builds a searchable asset index from the manifest’s [[operators]] declarations and includes it in --json output (and warns if a declared source file is missing from the archive).

Options

FlagDescription
-m, --manifest <path>Path to hpm.toml or containing dir. Defaults to cwd.
--key <path>Ed25519 PKCS#8 PEM private key. Overrides HPM_SIGNING_KEY.
--output <dir>Output directory. Defaults to the current directory.
--jsonEmit the result as JSON (useful in CI).
--platform <id>Override host-platform detection. Valid: linux-x86_64, linux-aarch64, macos-x86_64, macos-aarch64, windows-x86_64, windows-aarch64, universal. Only legal when [compat].platforms is declared.
--verify-assetsFail the pack (and delete the archive) if any [[operators]] source is missing from the produced archive, instead of just warning.
--sidefxShape the bundled {slug}.json for SideFX’s hpackage repository, so the archive can be uploaded exactly as packed. Fails the pack if the manifest declares something hpackage cannot represent, if the descriptor that actually ships breaks its rules, or if README.md is missing.

Packing for SideFX’s hpackage repository

SideFX validates the root {slug}.json when an archive is uploaded to its hpackage repository, and it is stricter than Houdini itself. A publisher that rewrites the json to satisfy it has to re-zip, which invalidates the checksum and signature hpm pack just reported. --sidefx emits the accepted form directly, so the packed bytes are the uploaded bytes.

It changes two things, both confined to that json:

  • hpackage.version drops trailing zero segments while more than two remain, so 0.1.0 becomes 0.1. That is also the version SideFX puts in the served archive’s URL.
  • Every >=/<= operand in the enable expression becomes major.minor. A single segment is padded (21 to 21.0), and a build segment is kept only when it is zero, since 21.0.0 means the same range as 21.0.

The pack fails rather than emit something whose meaning changed:

  • A bound with a real build number, such as >=20.5.445, has no hpackage form. Truncating it to >=20.5 would enable the package on builds [compat].houdini excludes, and the same expression ships to hpm-managed installs, so the widening would not stay on the SideFX side. Declare a two-segment bound if that is what you mean.
  • A missing [compat].houdini, or a range compiling only to <, >, == or !=, leaves SideFX no version to read — it looks only at >= and <= clauses — and it refuses the upload without saying why. Express the lower bound with >=.
  • A bounded range compiles to more than one clause, and hpackage matches the whole enable value against a single one. >=21, <23 is refused, and so is the ^21 shorthand, which expands to a lower and an upper bound.

To publish to SideFX, declare a single lower bound such as >=21.0. To keep an upper bound, host the archive somewhere else. Splitting the range into several enable keys is not a workaround; see Design notes.

--sidefx also requires a README.md in the package directory, spelled exactly that way. hpackage’s uploader reads it and sends its text as the published description, and refuses when it is absent or still holds the placeholder its own scaffold writes. hpm’s ordinary README check is looser — it accepts README.txt and a bare README, and only warns — so a package can pass hpm check and still be refused on upload.

The bundled descriptor is matched by exact name

If the package directory holds a file named exactly {slug}.json, hpm pack ships it verbatim instead of generating one. The match is on exact spelling, compared against the directory’s entries rather than asked of the filesystem: macOS and Windows answer exists case-insensitively, so a repo holding FLOPs.json would otherwise ship that file as flops.json when packed there and the generated descriptor when packed on Linux — the same source tree producing different archives depending on who built it. A file differing only by case is reported and skipped, and the descriptor is generated.

Under --sidefx the descriptor that reaches the archive is checked against hpackage’s rules whichever way it got there. A hand-written file is still shipped byte for byte — the check only reads it, and never rewrites what an author wrote — but one declaring a bounded or object enable, or a version hpackage cannot store, fails the pack with the constraint named rather than being refused at upload time by whatever tool publishes. Without this the path hpm generates was the checked one and the path an author hand-writes was not, so --sidefx silently did nothing on exactly the packages whose author cared enough to write the file by hand.

The check reads the fields it constrains and ignores the rest, so a hand-written descriptor may use Houdini keys hpm does not model. Generated descriptors go through the same check, which is what keeps the generator and the check from drifting apart. A hpackage.version SideFX will store differently is reported but allowed: 0.1.0 uploads as 0.1, and the served archive’s URL uses the trimmed form.

The flag does not affect an hpm install: the extractor skips this file and generates its own package json. It matters to a manual unzip into a Houdini packages directory, and to SideFX’s uploader.

Asset index in --json output

--json adds an assets array alongside the existing checksum/signature fields. Each entry describes one bundled operator; None fields are omitted. HDA-vs-DSO is carried by kind (hda_operator / dso_operator).

{
  "archive": "rbd-tools-1.0.0.zip",
  "sha256": "…",
  "signature": null,
  "key_id": null,
  "platform": null,
  "assets": [
    {
      "kind": "hda_operator",
      "type_name": "studio::rbd_configure::2.0",
      "label": "RBD Configure",
      "category": "Sop",
      "namespace": "studio",
      "op_version": "2.0",
      "tab_submenu": "Studio/Dynamics",
      "icon": "SOP_rbd",
      "source_file": "otls/rbd.hda"
    },
    {
      "kind": "dso_operator",
      "type_name": "studio::fast_scatter",
      "label": "Fast Scatter",
      "category": "Sop",
      "namespace": "studio",
      "source_file": "dso/scatter.so"
    }
  ]
}

The index is built from declarations, not by parsing the bundled files — see [[operators]] for why and how to declare them.

Signing key resolution order

  1. --key <path> (CLI flag).
  2. HPM_SIGNING_KEY environment variable. If its value starts with -----BEGIN, it’s treated as inline PEM; otherwise it’s a path.
  3. [signing].key_path in ~/.hpm/config.toml.

Generating a signing key

openssl genpkey -algorithm ed25519 -out signing.pem
openssl pkey -in signing.pem -pubout -out signing.pub.pem

Keep signing.pem secret, and outside the package directory: hpm pack and hpm build refuse to package any file that is a PEM private key, and any link that points outside the package. Publish signing.pub.pem so consumers can verify. See Security for the wire format.

hpm audit

Run a security audit on the current project.

hpm audit [OPTIONS]
FlagDescription
-m, --manifest <path>Manifest to audit.

Audit checks:

  • HTTP URLs — flags any url = ... dependency whose URL is http:// rather than https://.
  • Lock file presence — warns if hpm.lock is missing.
  • Lock file staleness — warns if hpm.lock is older than 90 days.
  • Checksum verification — verifies every cached package in ~/.hpm/packages/ matches the checksum stored in hpm.lock.
  • Installed files — compares each locked package’s installed files with the record its install wrote (missing, truncated or changed files).

The first three are advisories: they print WARN and the audit still succeeds. Checksum and installed-file failures, and an hpm.lock that cannot be read, are integrity failures: they print FAIL and hpm audit exits 1.

See Security for more.

hpm global

Install a package into Houdini’s user preferences, so it loads in every session of one Houdini version without a project or launcher wiring.

hpm global add    <PACKAGE> --houdini <X.Y> [--registry <name>]
hpm global list             --houdini <X.Y>
hpm global remove <PACKAGE> --houdini <X.Y>

<PACKAGE> is creator/slug or creator/slug@version; a bare name resolves to the highest non-yanked version. Resolution goes through the configured registries exactly like hpm add, including the --registry pin.

--houdini <X.Y> is required and is not guessed. hpm does not discover Houdini installations, and the preferences directory is per-version, so a default would risk writing where your Houdini never looks. A full build string is accepted (21.0.729) and truncated to its major.minor line.

The manifest is written as hpm-<creator>.<slug>.json into:

PlatformDirectory
Linux~/houdiniX.Y/packages/
macOS~/Library/Preferences/houdini/X.Y/packages/
Windows%USERPROFILE%\Documents\houdiniX.Y\packages\

HOUDINI_USER_PREF_DIR takes precedence when set, with __HVER__ expanded to X.Y, matching Houdini’s own behaviour.

That directory is not hpm’s. It holds files from SideFX, other tools, and you. Unlike a project install — which owns <project>/.hpm/packages/ and sweeps anything unrecognized out of it — hpm global never scans that directory to decide what to delete. Every removal is driven off the ledger at ~/.hpm/global/houdini-<X.Y>.json and touches only files hpm recorded writing. Files you put there by hand are left alone.

A package whose [compat].houdini does not include the target version is rejected before anything is written. Installing it anyway would emit a manifest whose enable expression is false, and Houdini would ignore it in silence.

hpm global remove deletes the manifest but leaves the package in the store, matching hpm remove. Run hpm clean to reclaim the space.

There is no hpm global update yet: with no manifest to rewrite, updating is hpm global add at the new version, which replaces the entry in place.

Examples

hpm global add acme/utility-nodes --houdini 21.0
hpm global add acme/utility-nodes@1.2.0 --houdini 21.0 --registry studio
hpm global list --houdini 21.0
hpm global remove acme/utility-nodes --houdini 21.0

Only public packages resolve today: the standalone CLI has nowhere to store credentials, so it always resolves anonymously. A private package fails as “not found”.

hpm clean

Remove orphaned packages, dev (path-dep) installs, and/or venvs that no active project depends on.

Globally installed packages are roots here too — they belong to no project, so without the global ledger they would look unreferenced and be deleted out from under a manifest Houdini still loads. If a ledger cannot be read, hpm clean refuses to run rather than risk that.

hpm clean [OPTIONS]
FlagDescription
-n, --dry-runPrint what would be removed, without touching anything.
-y, --yesSkip confirmation.
--python-onlyClean only orphaned venvs.
--comprehensiveClean packages, dev installs, and venvs.

HPM identifies active projects via [projects] in ~/.hpm/config.toml (explicit_paths plus recursive search_roots; see Configuration). If that finds no project at all, hpm clean removes nothing: with no project to mark packages as used, every package would look orphaned. Three classes of artifact are considered:

  • Registry/URL packages in ~/.hpm/packages/<slug>@<version>/: preserved if reachable from any active project’s dependency graph. A project’s roots are its [dependencies] and every package its hpm.lock records, at the locked version, so a required package the lock kept at an older version is preserved even when a newer one is installed too.
  • Dev installs in ~/.hpm/packages/_dev/<slug>@<version>/ (created by { path = "..." } deps, copy or link mode): preserved if any active project’s path-dep source manifest reports that (slug, version). Entries are listed as _dev/<slug>@<version> so the source of each is obvious. Link installs are unlinked safely — never followed. A copy is content-addressed as _dev/<slug>@<version>/<source-hash>/, so each rebuild makes a new directory. hpm install removes the copies it supersedes once no project’s packages point at them; clean does the same for every package, including copies made by an earlier hpm, and keeps the current build. A copy a project still points at, or that a process recorded as using it still runs from, is kept. hpm does not know about a Houdini you started yourself against a project you have since re-installed, so close such sessions before clean.
  • Python venvs under ~/.hpm/venvs/: preserved if any kept package declares matching [python_dependencies]. Removed only when --python-only or --comprehensive is set.

A project whose path-dep source can’t be read (workspace moved or deleted) logs a warning and doesn’t block cleanup of other dev installs; re-run hpm install after fixing the path to reinstate anything that was swept.

hpm registry

Manage registries in ~/.hpm/config.toml. See Registries.

hpm registry add <URL> [--name <alias>] [--type api|git] [--if-not-exists]
hpm registry list
hpm registry remove <NAME>
hpm registry update

If --type is omitted, HPM infers it: URLs ending in .git or hosted on github.com / gitea.* are treated as git; everything else is api.

Pass --if-not-exists to make add idempotent: if a registry with the same name already exists it is left unchanged and the command exits 0, instead of erroring. Useful in provisioning scripts.

hpm completions

Emit shell completion scripts — see Install.

Output formats and automation

All commands emit human-readable output by default. The --output global flag selects a machine-readable format instead:

FormatWhen to use
humanDefault. Colored, styled for terminal use.
jsonPretty-printed JSON.
json-linesOne JSON object per line. Good for streaming and log ingestion.
json-compactSingle-line JSON. Minimal bandwidth.

Structured output is supported by list, check, update, search, and pack. Commands whose output is inherently interactive (init, add, remove, install, build, audit, run, clean, registry, global, completions) reject a non-human --output with a clear error rather than silently ignoring it.

Errors in any machine-readable format are also emitted as JSON, with fields success, error, error_type, and elapsed_ms.

See Continuous integration for a full pipeline.

hpm --output json update --dry-run is useful for nightly jobs that want to detect available updates without applying them.

Exit codes

CodeMeaning
0Success.
1An hpm failure: bad configuration, a missing or invalid manifest, a failed install, a network or I/O error, an hpm audit integrity failure, a registry hpm registry update could not refresh.
2A usage error: an unknown flag, or a value a flag does not accept (--vcs, --type, --platform, --houdini, conflicting flags).
Nhpm run passes through the exit code of the script it ran.

The hpm.toml manifest

hpm.toml describes one directory to hpm. The same file plays two roles: it describes a package (what hpm pack ships, and what other projects depend on), and it describes a project (the dependencies hpm install makes available to Houdini). See Concepts for the difference.

Unknown keys are errors that name the key, in every section, so a typo such as optinal = true is reported instead of ignored.

A minimal manifest:

[package]
path = "acme/my-tools"
name = "My Tools"
version = "1.0.0"

All sections, in the order they appear in practice:

[package]

FieldRequiredDescription
pathyesScoped identifier, creator/slug. Both segments must be kebab-case (lowercase letters, digits, hyphens). Example: acme/rock-tools. hpm init defaults the creator to local, producing local/<name> — change it before publishing.
nameyesFreeform display name.
versionyesSemantic version per semver.org. major.minor.patch is required; pre-release identifiers (1.0.0-alpha.1, 1.0.0-rc.2) and build metadata (1.0.0+build.5) are accepted.
descriptionnoShort description.
authorsnoList of "Name <email>" strings.
licensenoLicense identifier (e.g. MIT, Apache-2.0).
readmenoPath to README, relative to the package. Defaults to README.md for init-generated packages.
homepagenoProject homepage URL.
repositorynoRepository URL.
documentationnoDocumentation URL.
keywordsnoList of keywords for discovery.
categoriesnoList of categories.

[compat]

Target-environment compatibility for the package. Two axes:

  • houdini — a Cargo-style version requirement string.
  • platforms — the native platforms this package supports. Omit (or use ["universal"]) for pure-data / pure-Python packages; list the platforms the package ships binaries for otherwise.
[compat]
houdini = "^21"                                # default — Houdini 21.x only
# houdini = ">=20.5, <22"                       # explicit range
# houdini = "~21.5"                             # tilde: >=21.5, <21.6
# houdini = "21"                                # bare = caret = ^21
# houdini = ">=20.5"                            # unbounded above — only safe for pure-data
platforms = ["linux-x86_64", "macos-aarch64"]   # omit for pure-data

The supported operators are =, >=, >, <=, <, ^, ~, and the bare-version shorthand (aliases caret). Multiple comparators combine with and when separated by commas. The same grammar is reused inside [runtime] conditional values (when = { houdini = "^21" }).

The lower bound of [compat].houdini on the root manifest drives the bundled Python version. A dependency package’s range is a compatibility floor only and does not influence the venv ABI. See Python guide.

Why the default is bounded above

Houdini’s binary compatibility doesn’t survive a major-version bump. A DSO compiled against the Houdini 21 SDK won’t load in Houdini 22; some Python module signatures shift between majors too. The init template defaults to houdini = "^21" (Houdini 21.x only) for that reason — authors who ship binaries get a safe starting point, and authors of pure-data / pure-Python packages can widen the range explicitly after testing on the next major.

hpm check warns when [compat].platforms is non-empty but [compat].houdini is unbounded above (e.g. ">=21"). That catches the failure mode where a native-binary package installs cleanly on a newer Houdini and then crashes at load.

[dependencies]

HPM package dependencies. Keys are scoped creator/slug paths. Values take one of four shapes:

[dependencies]

# 1. Registry, version-only (shorthand)
"acme/utility-nodes" = "1.0.0"

# 2. Registry with options
"acme/material-library" = { version = "2.0.0", optional = true }
"acme/internal-tool" = { version = "1.0.0", registry = "studio" }

# 3. Direct URL (pre-built archive — ZIP or gzipped tar both accepted)
"acme/prebuilt" = { url = "https://packages.studio.example/prebuilt-1.0.0.zip", version = "1.0.0" }

# 4. Local path (development). Installs a copy of the package's install
#    image: the files `hpm pack` would ship (see [stage]), not the whole
#    workspace, so .git/, build trees and virtualenvs are never copied.
"local/local-tools" = { path = "../local-tools" }
"local/optional-tools" = { path = "../optional-tools", optional = true }

# 5. Local path, installed as a symlink/junction (live edits)
#    Working-tree edits become visible to a live Houdini session without
#    re-running `hpm install`. Otherwise identical to (4): same _dev/ namespace
#    isolation, no effect on registry installs at the same coordinate.
"local/linked-tools" = { path = "../linked-tools", link = true }

A registry = "<name>" key pins the dependency to one configured registry. The pin is authoritative: resolution, install, and hpm update all consult only that registry, and pinning a registry that is not configured is an error rather than a silent fallback to the rest of the set. Without the key, a dependency resolves across every configured registry in order, first match wins. Add a pin from the command line with hpm add <package> --registry <name>.

optional = true is a label. hpm install installs an optional dependency like any other and hpm list marks it; a client that composes projects may use it to offer the dependency as a choice.

A URL dependency’s archive must contain an hpm.toml whose path and version match the dependency’s key and version, and version must be a semantic version. An archive that declares another identity is refused.

hpm.lock records the installed version and a SHA-256 checksum for each dependency, so later installs reproduce the same bytes.

Versions and ranges

A full version ("1.0.0") on its own means exactly that version, here as everywhere in the manifest. Anything else is a range in Cargo’s syntax: "^1.0", "~1.2", ">=1.0, <2". Inside a comma list each comparator follows Cargo, so a bare full version there is a caret: ">=1.0, 1.2.3" means ">=1.0, ^1.2.3".

Which of the two to write depends on who reads the manifest:

  • In a project you install with hpm install, write exact versions. An exact version installs that version; a range installs the newest version in it that fits, and hpm.lock keeps the choice until hpm update. hpm add and hpm update choose a version for you and write it back as an exact one.

  • In a package you publish, write the range you have tested against. When a version is published, its registry dependencies (not path or url ones) are registered with it, and the registry serves them as that version’s deps. hpm install (and an application that embeds hpm) chooses versions for the whole project: it gives each unpinned package the newest version whose [compat].houdini supports the project’s Houdini and whose ranges agree with the versions chosen for the other packages, and adds a required package the project does not list. It never chooses a yanked version of a package the project does not pin, whatever the range says, an exact one included: a yanked version is installed only where the project itself names it at that version. Nor does it choose a version that has neither a build for the machine it installs on nor a universal one; it takes the newest version that has. A version the project pins is kept, and installing it fails with an error that names it. Give an upper bound when a dependency’s next release may break you:

    [dependencies]
    "acme/core" = ">=0.47, <0.48"
    

So a project lists the packages it uses, and hpm install adds what they need. A path dependency counts as the version its hpm.toml declares, and its registry dependencies are followed the same way.

[python_dependencies]

Python packages the package needs inside Houdini, installed through the bundled uv into a shared venv:

[python_dependencies]

# Version constraint shorthand
numpy = ">=1.26,<3"

# Detailed form
requests = { version = ">=2.25.0", extras = ["security", "socks"] }
matplotlib = { version = ">=3.5", optional = true }

A table gives version, extras, or both.

Versions are PEP 440 specifiers, the syntax pip and uv use, and they are passed to uv as written. This is not the syntax of [dependencies]:

WriteNotBecause
"==1.26.4""1.26.4"A bare version has no operator. The requirement becomes numpy1.26.4, which uv reads as a package name.
"~=1.26" or ">=1.26,<2""^1.26"^ is not a PEP 440 operator; uv rejects it.

"*" means any version.

Each entry must be one plain requirement: the name and extras are PEP 508 names, and the version holds only version-specifier characters, with a - only after a letter or digit (1.0-1). Direct URLs (name @ url), environment markers and pip options are refused when the manifest loads.

optional = true leaves the dependency out: hpm does not install it, and there is no switch that turns it on. Use it to record a dependency users may install themselves.

When two installed packages declare the same Python package, their version constraints must be spelled identically. >=1.20 in one and >=1.21 in the other is a conflict, even though both could be satisfied.

hpm.lock does not pin Python packages; uv resolves the constraints again on each install. Pin with == where you need the same version every time. See Python environments for the Houdini-to-Python mapping and how venvs are shared.

[runtime]

Environment variables to set when Houdini loads the package. The key is the variable name; the value is a { method, value } pair:

[runtime]
MY_PLUGIN_ROOT = { method = "set", value = "$HPM_PACKAGE_ROOT/config" }
HOUDINI_TOOLBAR_PATH = { method = "prepend", value = "$HPM_PACKAGE_ROOT/toolbar" }
HOUDINI_AUDIT_LOG = { method = "append", value = "$HPM_PACKAGE_ROOT/logs/audit" }
MethodEffect
setReplace the variable.
prependPrepend to the existing variable (Houdini picks the platform separator).
appendAppend to the existing variable.

Use $HPM_PACKAGE_ROOT to refer to the installed package directory. HPM merges these entries with its built-in PYTHONPATH and HOUDINI_SCRIPT_PATH entries when generating the Houdini package file. The exact JSON each method becomes, and why, is in How Houdini loads hpm packages.

Required variables

A package can declare an env var as required without giving it a value. Any project that depends on the package must then supply the value in its own [runtime] section in hpm.toml. hpm install (and project sync) errors out otherwise — the package isn’t launchable without it.

# In the package's hpm.toml
[runtime]
PROJECT_ASSETS = { method = "set", required = true }
# In the consuming project's hpm.toml
[runtime]
PROJECT_ASSETS = { method = "set", value = "/mnt/studio/assets" }

required = true may be combined with a value; the value then acts as a default and the project override becomes optional. Without a value, the entry is a hard placeholder.

Project overrides

A consuming project can override any package-declared variable by re-declaring the same key in its own [runtime]. How the project entry combines with the package’s depends on the project entry’s method:

Project methodResult
setReplaces every package contribution wholesale — only the project’s value survives.
prepend / appendExtends them — each declaring package’s own entry stays in place, and the project’s value merges in once, after all of them.

So a project append/prepend adds to a package-provided value (e.g. extending a package’s PYTHONPATH) rather than clobbering it. Use set when you genuinely want to replace what the packages contribute.

A project [runtime] entry takes effect even when no package declares the variable. It has no owning package, so $HPM_PACKAGE_ROOT is undefined in it. How Houdini loads hpm packages describes the file these entries are written to.

Conditional values

value accepts either a flat string or an ordered list of { when, set } variants. The variants are selected against four axes; the first match wins per the rules below.

[runtime.PXR_PLUGINPATH_NAME]
method = "prepend"
value = [
  { when = { houdini = "^21" }, set = "$HPM_PACKAGE_ROOT/resolver/houdini21/r" },
  { when = { houdini = "^22" }, set = "$HPM_PACKAGE_ROOT/resolver/houdini22/r" },
]
FieldFormEvaluated byCompiles to
houdiniCargo-style req: "^21", "~21.5", ">=21, <22.5", "21" (alias for ^21)Houdini at startuphoudini_version >= 'X' and houdini_version < 'Y'
os"linux", "macos", "windows"Houdini at startuphoudini_os == '<os>'
python"3.11", "python3.10", etc.Houdini at startuphoudini_python == 'python<v>'
install_source"dev" (path dependency) or "registry" (registry/URL install)hpm at install timefiltered out before emission

The first three axes lower into Houdini’s package.json expression form per https://www.sidefx.com/docs/houdini/ref/plugins.html. install_source is install-time evaluated by hpm — variants gated to a non-matching install source are dropped before the Houdini package.json is written, so a "dev" branch never ships to a registry consumer’s manifest and a "registry" branch never fires in the dev’s own Houdini.

All present axes combine with and within a single when. Order matters: the first matching branch wins. (Houdini itself applies every matching element of a conditional value array, so hpm compiles each emitted branch to exclude all earlier branches’ conditions — first-match is guaranteed by the emitted expressions, and anything after an always-true branch is dropped as unreachable.) An empty when = {} is the always-true fallback and should appear last. $HPM_PACKAGE_ROOT is substituted in each branch, just like in flat values; any other $VAR (e.g. $HOUDINI_MAJOR_RELEASE) passes through verbatim so Houdini’s own variable expansion handles it.

Malformed selectors fail at manifest validation time, so authors find them before publish, not at install.

HDK plugins: where a dev install finds its DSOs

Point HOUDINI_DSO_PATH at the directory your [stage] rules place the binaries into, the same value for a dev install and a registry install:

[runtime]
HOUDINI_DSO_PATH = { method = "prepend", value = "$HPM_PACKAGE_ROOT/dso" }

[stage.platform.windows-x86_64]
place = [{ from = "build/Release/*.dll", to = "dso/" }]

A dev install is not the workspace. A path dependency is installed as a copy of the staged image: exactly the files hpm build would stage for this machine (.gitignore + .hpmignore, [stage] include/exclude, the release profile, and the host’s [stage.platform.*] place rules), in a content-addressed _dev/<slug>@<version>/<hash>/ directory. A package that declares native platforms in [compat].platforms is always copied, even with link = true, so a rebuild is never blocked by the DLL a running Houdini has mapped. A build tree such as build/Release is usually gitignored or moved by a place rule, so it does not exist in a dev install: a dev variant pointing HOUDINI_DSO_PATH at it gives Houdini a directory that isn’t there, and the dev launch registers no operators, with no error. Pointing at the placed dso/ works for both install kinds, and a rebuild reaches the next dev install through the place rule.

Keep install_source for values that really differ between the developer’s own Houdini and a consumer’s, such as a dev-only debug switch:

[runtime.MYPLUGIN_DEBUG]
method = "set"
value = [
  { when = { install_source = "dev" }, set = "1" },
  { when = {}, set = "0" },
]

Only a link = true install of a package with no native platforms points at the workspace itself, so a build-tree path resolves only there. Don’t rely on it for DSOs: a native package should declare its platforms, which makes its dev install a copy.

[stage]

Defines how the install image is derived from the workspace. [stage] governs both hpm pack (which streams an archive directly from the workspace, applying these rules) and — when present — hpm build (which materialises the same image into output_dir on disk so a path-dep consumer can pick it up live).

[stage]
# Where `hpm build` materialises the install image. Default: "dist".
output_dir = "dist"

# Scripts (named entries from [scripts]) to run before staging. Fail-fast.
prepack = ["build-dso"]

# Gitignore-style globs applied on top of .gitignore and .hpmignore.
# Empty `include` means "everything not excluded". Always-excluded: .git/, .hpm/.
include = ["python/**", "otls/**", "config/**", "LICENSE", "README.md"]
exclude = ["src/**", "tests/**"]       # exclude wins over place: never exclude what a place rule names

# Per-platform place rules. The platform key must appear in [compat].platforms.
[stage.platform.linux-x86_64]
place = [{ from = "build/linux/*.so", to = "dso/" }]

[stage.platform.macos-aarch64]
place = [{ from = "build/macos/*.dylib", to = "dso/" }]

[stage.platform.windows-x86_64]
place = [{ from = "build/win/*.dll", to = "dso/" }]

Platforms. Valid platform identifiers (the spelling registries use): linux-x86_64, linux-aarch64, macos-x86_64, macos-aarch64, windows-x86_64, windows-aarch64, universal. Use universal for OS-agnostic content (pure-Python / data). Declare the platforms you ship under [compat].platforms; each per-platform [stage.platform.<plat>] table must reference a platform listed there.

Place rules. Each rule has a from glob (workspace-relative) and a to path (archive-relative). If to ends with / or /. it’s a directory; the file’s basename is appended. "./", "." and "" name the root of the install image, also as a directory. Otherwise to is the literal archive path (use when relocating a single file under a renamed name). Both from and to use forward slashes regardless of host OS. to must stay inside the install image: a to with a .. component, a leading /, a drive, a backslash or a colon fails the manifest load. Two files placed at the same archive path, for example two matches of a literal to, or build/Release/foo.dll and build/Debug/foo.dll under one directory, fail hpm pack, hpm build and dev installs with an error naming both.

Where to put native binaries. Place them in Houdini’s convention folders at the package root — dso/ for HDK plugins, apexdso/ for APEX callbacks — rather than in a version- or platform-keyed tree that a [runtime] variable has to point at. Houdini finds those folders beneath any HOUDINI_PATH entry, and the generated {slug}.json puts the package root there via hpath, so the operators register with no environment at all. This is what SideFX’s own packages do: $HFS/packages/apex.json contains nothing but {"hpath": "$HFS/packages/apex"}.

The reason is reach. A [runtime] variable only arrives if something actually reads the manifest — an hpm-managed install, or the generated {slug}.json sitting beside the content. Houdini’s Package Browser discards it (see Installing an archive without HPM), so a package that needs one to locate its own binaries loads its HDAs and toolbars there but registers no operators, with no error. Convention folders work on every install route; [runtime] does not.

place is what makes this cheap: let the build write wherever suits it and relocate at pack time, leaving the source tree alone. A dev install is a copy of that same staged image, so the placed path is the one to point at there too (see HDK plugins: where a dev install finds its DSOs).

Per-platform packing semantics. When packing for --platform <X>:

  • A path matched by [stage.platform.X].place[*].from is included at the rewritten to path. The target’s claim wins over other platforms’.
  • A path matched only by [stage.platform.Y].place[*].from (some Y != X) is excluded.
  • A path matched by no place rule and not covered by [stage].exclude is included as common content at its workspace-relative path. (If [stage].include is non-empty, common content is restricted to paths matching one of those globs.)

Two rules take precedence over all of the above:

  • A path matched by [stage].exclude is left out even when a place rule names it.
  • A path ignored by .gitignore or .hpmignore is left out even when a place rule names it. Re-include build outputs with a ! rule in .hpmignore (below).

This means listing the same from glob under every platform is a valid way to declare “this content ships in every per-platform archive” (e.g. a shared resolver path).

Build vs pack. hpm pack reads [stage] directly and streams the archive from the workspace — useful in CI where you build immediately before packing. hpm build runs prepack scripts and materialises the same install image into output_dir on disk, so a path-dep consumer working in another project can pick it up live (with link = true, edits flow through without re-running hpm install). A copied path dependency ({ path = "..." }, or a native package with link = true) installs this same image for the host platform, using the base [stage] plus the release profile.

.hpmignore. Ignore rules come from .gitignore and then .hpmignore, both in gitignore syntax; .git/ and .hpm/ are always excluded. .hpmignore exists mostly to re-include build outputs that .gitignore keeps out of the repository:

# .gitignore ignores resolver/ and *.hda; ship them anyway
!resolver/
!resolver/**
!otls/*.hda

One difference from git: the rule nearest to a file decides. A file or directory matched by a ! rule is shipped even when an ancestor directory is ignored, so !build/Release/*.dll ships those DLLs under an ignored build/. Git would not re-include them. [stage].include cannot re-include an ignored path; a ! rule is the only way.

Build profiles

Declared as [stage.profile.<name>] tables.

Build profiles are a second axis orthogonal to platform, for packages whose native binaries can be built more than one way — typically an optimized release (the default) and a symbol-bearing debug variant for attaching a debugger to an HDK plugin.

hpm build --profile <name> always exposes the name to prepack scripts as HPM_BUILD_PROFILE (see Prepack environment above). When a matching [stage.profile.<name>] table is declared, its overrides layer onto the base [stage] so the profile build is reproducible from the manifest:

[stage]
prepack = ["build-dso"]

[stage.profile.debug]
# Replaces the base prepack list when non-empty.
prepack = ["build-dso-debug"]

# Per-platform place rules here are appended to the base platform rules —
# e.g. ship Windows PDBs alongside the DSO only in the debug profile.
[stage.profile.debug.platform.windows-x86_64]
place = [{ from = "build/Debug/*.pdb", to = "dso/windows-x86_64/" }]

Merge semantics (base [stage] + selected profile):

  • prepack — the profile’s list replaces the base when non-empty; otherwise the base prepack runs.
  • include / exclude — profile entries are appended to the base globs.
  • platform.<plat>.place — profile place rules are appended to the matching base platform entry (a new platform key is created if absent). Each [stage.profile.<name>.platform.<plat>] key must appear in [compat].platforms, same as the base [stage.platform.<plat>] tables.

The default profile is release; you only need a [stage.profile.release] table if you want to customize the default. A --profile <name> that names no declared table is allowed — the env var is still set — but hpm build prints a warning so a typo is visible. hpm pack is unaffected by --profile; profile selection is a build-time concern only.

[[registries]]

Per-project registries. Same shape as the global version in ~/.hpm/config.toml:

[[registries]]
name = "studio"
url = "git@git.studio.example:pipeline/hpm-index.git"
type = "git"

[[registries]]
name = "vendor"
url = "https://registry.vendor.example/v1/registry"
type = "api"

Project registries are additive to global registries.

[scripts]

Named scripts for the package. Run them with hpm run <name> [args...], which sets HPM_PACKAGE_ROOT to the manifest directory and forwards trailing arguments to the script.

[scripts]
build = "python scripts/build.py"
test = "python -m pytest tests/"

Display metadata (label and description)

The table form accepts two optional, purely informational fields for tools that present scripts to people (menus, buttons, tooltips):

[scripts.launch]
cmd         = "python -m mytool.ui"
label       = "Launch My Tool"
description = "Open the main UI"

label is a human-readable display name and description is a one-line summary. HPM itself never acts on either — hpm run ignores them, and hpm check only echoes them back so you can confirm they parsed. They are consumer-agnostic metadata: any frontend that surfaces a package’s scripts may use them (falling back to the entry key when label is absent), but nothing in HPM treats a labelled script as special. Both are omitted from round-tripped manifests when unset.

Applications (app and icon)

Two more optional fields describe a script that opens a program the user works in, such as an editor or a review tool, rather than a task that runs to completion:

[scripts.editor]
cmd         = "python -m mytool.editor"
label       = "Editor"
description = "Open the editor on this project"
app         = true
icon        = "resources/editor.png"

app = true marks the script as an application, which a frontend may offer as a launch target of its own rather than one entry in a list of scripts. icon is a path, relative to the package root, of a PNG or SVG image that represents the script; ship the file in the archive (see [stage]). Like label, both are consumer-agnostic: hpm run runs an app like any other script, and HPM never reads the icon. hpm check reports which scripts are apps and warns when icon names a path that is not a file in the package. Both are omitted from round-tripped manifests when unset.

An older HPM refuses a manifest that uses either field (unknown fields are errors), and so refuses to install a package version that declares one. Add them only once the HPM versions that install your package understand them.

Per-host variation

Scripts whose command differs per OS use a conditional cmd value — the same when-grammar [runtime] uses, restricted to the os axis:

[scripts]
build = "cargo build"                        # runs on any host

[scripts.register]
cmd = [
  { when = { os = "windows" }, set = "\"%HPM_PACKAGE_ROOT%\\plugin\\bin\\tool.exe\" register" },
  { when = { os = "macos"   }, set = "\"$HPM_PACKAGE_ROOT/plugin/bin/tool\" register" },
  { when = { os = "linux"   }, set = "\"$HPM_PACKAGE_ROOT/plugin/bin/tool\" register" },
]

The command runs through the host’s shell, so each variant uses that shell’s spelling for variables: $HPM_PACKAGE_ROOT for sh, %HPM_PACKAGE_ROOT% for cmd.exe.

hpm run picks the first variant whose when.os matches the host. Add an empty when = {} branch as a last entry to declare a fallback that matches any host the explicit branches missed. A script with no matching variant on the current host is treated as absent — hpm run errors with a message that the script only matches other platforms.

Only the os axis is meaningful for scripts: HPM has no Houdini-version or Python context at hpm run time, and install_source is irrelevant because scripts run against the dev’s workspace, not an install. Setting any non-os axis in a script when is rejected at manifest validation time.

Per-script Python environments

A script that needs a pinned Python interpreter or extra packages can opt into a uv-managed virtual environment by switching from the shorthand string to the table form:

[scripts.setup]
cmd          = "python scripts/setup.py"
python       = "3.11"
requirements = ["PySide6>=6.6"]

hpm run setup then resolves requirements through the same uv pipeline that backs [python_dependencies], materialises a venv at ~/.hpm/venvs/<hash>/, prepends its bin/ (or Scripts/ on Windows) to PATH, and sets VIRTUAL_ENV so python in the command resolves to the pinned interpreter. Two scripts whose python + requirements resolve to the same closure share one venv on disk. Plain-string entries keep their prior behaviour and execute against whatever python is on PATH.

Conditional cmd + venv hints compose:

[scripts.regen]
cmd = [
  { when = { os = "windows" }, set = "python scripts\\regen.py" },
  { when = {},                  set = "python scripts/regen.py" },
]
python       = "3.11"
requirements = ["pyyaml"]

Both python and requirements are optional in the table form; omitting both yields a regular script with no venv overhead.

Running inside the package environment

A per-script venv is intentionally minimal — it installs only the script’s own requirements and does not expose the package’s [python_dependencies] or make the package’s python/ modules importable. That’s right for self-contained tooling, but the wrong shape for code that ships in the package and needs to import it (a render-farm task, a CLI the package exposes).

Set package-env = true to run the script inside the package’s full resolved environment instead:

[scripts.farm]
cmd         = "python -m rock_tools.farm"
package-env = true

hpm run farm then builds the same environment hpm install materialises for Houdini, but for this out-of-Houdini process:

  • a merged uv venv resolved from [python_dependencies] across the project and its installed hpm dependencies (so a dependency’s Python packages are present too);
  • every involved package’s python/ directory on PYTHONPATH — the running package first, then each dependency, then the venv’s site-packages;
  • the interpreter pinned to the project’s Houdini-mapped CPython (a per-script python here is ignored); any requirements on the entry are layered on top of the package environment.

This is read-only: the dependency set comes from the existing hpm.lock plus the global package store, so it never fetches packages or rewrites generated Houdini manifests. Because the venv is content-addressable, when hpm install already built it the run reuses it without re-resolving.

Run hpm install first so the project is locked and its dependencies are present; otherwise hpm run errors and points you there. Consumers like the Deadline render-farm plugin can then delegate the whole venv/deps/PYTHONPATH dance to hpm run <script> instead of reproducing it.

The table form also accepts plain inline-table syntax:

[scripts]
setup = { cmd = "python scripts/setup.py", python = "3.11", requirements = ["PySide6>=6.6"] }

[[operators]]

Declares the operators (node types) the package bundles, so hpm pack can emit a searchable asset index that lets a registry offer node-level search (e.g. “find the package that ships an rbd_configure SOP”) without ever downloading or opening the archive.

[[operators]]
kind        = "hda"                          # "hda" or "dso"
type_name   = "studio::rbd_configure::2.0"
label       = "RBD Configure"
category    = "Sop"
tab_submenu = "Studio/Dynamics"
icon        = "SOP_rbd"
source      = "otls/rbd.hda"

[[operators]]
kind      = "dso"
type_name = "studio::fast_scatter"
label     = "Fast Scatter"
category  = "Sop"
source    = "dso/scatter.so"
FieldRequiredDescription
kindyeshda (defined by an HDA/OTL digital asset) or dso (registered by a compiled plugin shipped as a DSO, i.e. authored against the HDK).
type_nameyesNamespaced operator type name, e.g. studio::rbd_configure::2.0. hpm derives namespace and op_version from it where it can.
categoryyesOperator table / network category: Sop, Object, Dop, Lop, Top, Vop, Rop, Driver, …
labelnoTAB-menu display name.
tab_submenunoTAB submenu path, e.g. Studio/Dynamics.
iconnoIcon identifier, e.g. SOP_rbd.
sourcenoWhere the operator’s file lives in the produced package (after [stage] placement) — either a single archive-relative path or a per-platform table (see below). When set, hpm pack checks it against the produced archive.

Per-platform source (multi-platform DSOs)

A single HDA ships at the same path in every archive, so one source string works. But a compiled operator’s binary differs per platform (.so / .dll / .dylib, often under dso/<platform>/), so its source is a table keyed by platform — mirroring [stage.platform.*]. The keys must appear in [compat].platforms:

[[operators]]
kind      = "dso"
type_name = "studio::fast_scatter"
label     = "Fast Scatter"
category  = "Sop"
source    = { linux-x86_64 = "dso/linux-x86_64/scatter.so", macos-aarch64 = "dso/macos-aarch64/scatter.dylib", windows-x86_64 = "dso/windows-x86_64/scatter.dll" }

Each per-platform hpm pack resolves source to the entry for the platform it targets and emits that concrete path. An operator whose table does not list the platform being packed is omitted from that platform’s index — its file isn’t in that package. (Omit source entirely to index an operator by name/category with no path and no check.)

Verifying sources at pack time

By default hpm pack warns when a declared source is missing from the produced archive. Pass --verify-assets to make it a hard error instead (and delete the invalid archive) — recommended in CI so a package never publishes an index advertising a file it doesn’t ship. The check runs against the built archive, so build compiled artifacts before packing.

Why declarations rather than reading the files? The HDA container format is officially undocumented and can change between Houdini versions, and a compiled HDK plugin (DSO) does not expose its operator names offline at all — they are C++ constructor arguments that only materialise inside Houdini. A declaration in hpm.toml is stable, version-proof, and a single source of truth. The author already knows exactly what they ship.

Platform and Houdini-version filtering come for free from elsewhere in the manifest: a DSO’s architecture is implied by the per-platform archive it ships in ([compat].platforms + [stage]), and the supported Houdini range is [compat].houdini. See hpm pack for the emitted index shape.

Configuration

hpm’s own settings live in config.toml. This is separate from hpm.toml, which describes a package or project. Most users need only two parts of it: [[registries]], which hpm registry add writes for you, and [projects], which tells hpm clean what is still in use.

HPM reads ~/.hpm/config.toml if it exists, then <cwd>/.hpm/config.toml (project override) if it exists. Layering is presence-aware: each file overrides exactly the values it sets, so a project config that omits a section (or a single key) leaves the user-level value in place, and anything no file sets falls back to the built-in default. Setting only storage.home_dir re-derives the cache/packages/registry directories under it unless they are set explicitly. A malformed config file is a hard error, not a silent fallback to defaults.

A project config may set only [install]. A project directory is often a repository someone else wrote, so [storage], [projects], [signing] and [[registries]] (where hpm keeps its store and tools, what hpm clean treats as live, which key hpm pack signs with, and which servers an embedder’s sign-in token may be sent to) are read only from ~/.hpm/config.toml; in a project config they are ignored with a warning naming the section. A project declares the registries it resolves from in hpm.toml’s [[registries]].

[install]
parallel_downloads = 8       # packages a sync fetches and installs at once

[storage]
home_dir = "/Users/me/.hpm"                # default: $HOME/.hpm
cache_dir = "/Users/me/.hpm/cache"
packages_dir = "/Users/me/.hpm/packages"
registry_cache_dir = "/Users/me/.hpm/registry"

[projects]
explicit_paths = [
    "/Users/me/studio/pipeline",
]
search_roots = [
    "/Users/me/houdini-projects",
]
max_search_depth = 3
ignore_patterns = [".git", ".hg", ".svn", "node_modules", "backup", "archive", ".cache", "temp", "tmp"]

[[registries]]
name = "studio"
url = "git@git.studio.example:pipeline/hpm-index.git"
type = "git"

[signing]
key_path = "/Users/me/.hpm/signing.pem"    # fallback for `hpm pack`

What each section controls

[install]

  • parallel_downloads — the most registry or URL packages a sync fetches and installs at once (default 8; must be at least 1).
  • path — written by older hpm versions but never used (projects always install into <project>/.hpm/packages). It is still accepted, with a warning, so an existing config keeps loading; remove it.

Any other key in a config file is an error that names it.

[storage]

  • home_dir — HPM’s root on disk. Default $HOME/.hpm on every platform (Linux, macOS, Windows). All other storage paths derive from this by default.
  • cache_dir, packages_dir, registry_cache_dir — override individual subdirectories without moving the whole root.

[projects] — drives hpm clean’s orphan detection.

  • explicit_paths — absolute project paths that are always considered active.
  • search_roots — directories scanned recursively for active projects.
  • max_search_depth — recursion limit for search_roots (default 3).
  • ignore_patterns — directory names to skip during scanning. Each matches a whole directory name exactly (not a prefix or a glob): temp skips temp/ but not temporal-fx/.

[[registries]] — list of registries. Same shape as [[registries]] in hpm.toml.

[signing]

  • key_path — fallback Ed25519 PKCS#8 PEM path for hpm pack when neither --key nor HPM_SIGNING_KEY is set.

The hpm.lock lock file

hpm install writes hpm.lock beside hpm.toml. It records what was installed, so that the next install, on any machine, gets the same package bytes or fails. Commit it. Do not edit it by hand.

# HPM Lock File
# This file is auto-generated. Do not edit manually.

[package]
name = "shot-010"
version = "0.1.0"

[dependencies."acme/rock-tools"]
version = "0.1.0"
checksum = "v2:ce3d0027c2544dc52a41ed3715101bfda903b837f724b7438fc812b13351db3d"

[dependencies."acme/rock-tools".source]
type = "url"
url = "https://packages.studio.example/rock-tools-0.1.0.zip"
version = "0.1.0"

[dependencies."local/my-tools"]
version = "0.3.0"

[dependencies."local/my-tools".source]
type = "path"
path = "../my-tools"

[python_dependencies.numpy]
version = ">=1.26,<3"

[metadata]
generated_at = "2026-11-16T10:59:29Z"
hpm_version = "0.40.2"
platform = "linux-x86_64"

What is pinned

EntryPinned toChecked on install
Registry and URL dependenciesThe version, the download URL, and a checksum of the installed files.Yes. A package the lock pins at the manifest’s version must match its checksum, whether it is freshly downloaded or reused from the store.
Path dependenciesThe version and the source path. No checksum: the source is expected to change.No.
Python dependenciesNot pinned. The lock repeats the constraint from hpm.toml; uv resolves it again on every install.No.

So hpm.lock makes Houdini packages reproducible, and Python packages only as reproducible as their constraints. Where you need the same Python package version every time, pin it with == in [python_dependencies].

The checksum

checksum is a SHA-256 over the installed tree: every file’s relative path and contents, each framed by its length, written v2:<hex>. It is taken after extraction, so it does not equal the SHA-256 of the archive that hpm pack prints or a registry serves as cksum. Lock files written by older versions hold a bare <hex> digest; those are still verified.

A lock entry whose version differs from the manifest’s is stale and pins nothing; the install replaces it.

Required packages

A package the project does not list, installed because a listed package requires it, gets an entry like any other. The next install keeps that version, verified against its checksum, while it still satisfies every requirement on it. When it no longer does (a listed package moved to a version that needs a newer one), the install chooses it again and the lock changes. hpm update chooses all of them again, the newest version that fits. An entry for a package nothing requires any more is dropped.

--frozen-lockfile

hpm install --frozen-lockfile fails instead of writing the lock when:

  • hpm.lock does not exist;
  • the installed versions, or the Python constraints, differ from what the lock records;
  • a registry or URL package, listed or required, has no checksum in the lock;
  • a required package’s locked version no longer satisfies the packages that require it.

Use it in CI and on render nodes, where a lock that needs to change means someone forgot to commit it.

Age

metadata.generated_at is when the lock was written. hpm install and hpm audit warn when it is more than 90 days old, as a prompt to run hpm update. The warning never blocks an install.

Registries are not recorded

The lock stores the URL a package was downloaded from, not the registry that supplied it. To keep a dependency coming from one registry, pin it in the manifest with registry = "<name>".

Files and directories

Every path hpm reads or writes. Other pages link here rather than repeat the layout.

The hpm home: ~/.hpm/

The same location on Linux, macOS and Windows (%USERPROFILE%\.hpm). Move it with [storage] home_dir.

~/.hpm/
├── config.toml                   # your configuration (optional)
├── packages/                     # the store: installed packages
│   ├── utility-nodes@1.0.0/      #   one directory per slug@version
│   ├── utility-nodes@1.0.0.files.json   # install record, read by `hpm audit`
│   ├── utility-nodes@1.0.0.exec-modes   # marker for the executable-bit repair
│   └── _dev/                     #   path dependencies
│       └── my-tools@0.1.0/       #     a link, or a folder of copies named by content hash
├── venvs/                        # Python environments, shared between projects
│   └── a1b2c3d4e5f60718/         #   named by a hash of the resolved package set
├── global/                       # what `hpm global` installed
│   └── houdini-21.0.json         #   one ledger per Houdini version
├── registry/                     # clones of Git registry indexes
│   └── <digest of the URL>/
├── cache/                        # downloaded archives
├── fetch/                        # archives being extracted
├── tools/
│   └── uv-<version>/             # the uv hpm downloads on first use
├── uv-cache/                     # uv's cache, separate from any uv of your own
├── uv-config/
└── uv-python/                    # CPython builds uv downloads for the venvs
PathSafe to delete?
config.tomlNo. It holds your registries and settings.
global/No. Without the ledger, hpm no longer knows which files it wrote into Houdini’s preferences. Use hpm global remove.
packages/Yes, with hpm clean. By hand it works too; the next hpm install downloads again.
venvs/, cache/, fetch/, registry/, tools/, uv-cache/, uv-python/Yes. All are rebuilt or downloaded again when needed.

The store is keyed by the package’s slug, without the creator: acme/tools and other/tools at the same version would use the same directory. hpm refuses to store a download whose own hpm.toml declares a different package than the one requested, so one cannot be served as the other, but two such packages cannot be installed side by side.

A project

<project>/
├── hpm.toml                      # the manifest. Commit.
├── hpm.lock                      # installed versions and checksums. Commit.
└── .hpm/                         # generated. Do not commit.
    ├── config.toml               # optional; may set [install] only
    └── packages/                 # the directory Houdini is pointed at
        ├── acme.utility-nodes.json        # one package file per dependency
        └── ~hpm-project-overrides.json    # the project's own [runtime] entries

.hpm/packages/ belongs to hpm: an install removes any .json file there that it does not recognise. hpm refuses to work in a project whose .hpm or .hpm/packages is a symlink or junction.

A package being developed

<package>/
├── hpm.toml
├── .hpmignore                    # optional; see [stage] in the manifest reference
├── dist/                         # `hpm build` output ([stage].output_dir)
└── <slug>-<version>[-<platform>].zip      # `hpm pack` output (or --output <dir>)

Houdini’s preferences

hpm global writes one file per package into the per-user, per-version packages directory, and nothing else there:

PlatformDirectory
Linux~/houdiniX.Y/packages/
macOS~/Library/Preferences/houdini/X.Y/packages/
Windows%USERPROFILE%\Documents\houdiniX.Y\packages\

The file is named hpm-{creator}.{slug}.json. HOUDINI_USER_PREF_DIR overrides the location, as it does for Houdini.

Environment variables

Read by hpm

VariableUsed byMeaning
HPM_SIGNING_KEYhpm packEd25519 signing key. A value starting with -----BEGIN is the PEM itself; anything else is a path to it. --key overrides it.
HPM_HOUDINI_MAJORShpm buildPassed through to prepack scripts when --houdini-majors is not given.
HOUDINI_USER_PREF_DIRhpm globalOverrides Houdini’s preferences directory, with __HVER__ expanded to the X.Y version, as Houdini does.
RUST_LOGevery commandLog filter, for example RUST_LOG=debug or RUST_LOG=hpm_core::python=trace. Replaces the level -v selects.
HOME (USERPROFILE on Windows)every commandWhere ~/.hpm is.

hpm has no variable for the location of its home or for credentials. Move the home with [storage] home_dir.

Set by hpm for scripts

hpm run, and the [stage].prepack scripts hpm build runs, start each script with:

VariableSet whenValue
HPM_PACKAGE_ROOTalwaysThe directory holding hpm.toml. Also the script’s working directory.
VIRTUAL_ENV, and the venv’s bin/ (or Scripts\) first on PATHthe script declares python or requirements, or package-env = trueThe script’s venv.
PYTHONPATHpackage-env = trueThe package’s python/, each dependency’s python/, then the venv’s site-packages.
HPM_BUILD_PROFILEprepack scripts onlyThe --profile name; release by default.
HPM_PLATFORMprepack scripts only, when [compat].platforms is declaredThe target platform, for example macos-aarch64.
HPM_HOUDINI_MAJORSprepack scripts only, when givenThe --houdini-majors value, or the inherited variable. Space-separated majors, for example 21 22.

Usable in hpm.toml

$HPM_PACKAGE_ROOT in a [runtime] value is replaced with the installed package’s directory when the Houdini package file is written. Any other $VAR is left for Houdini to expand at startup.

Set for Houdini

hpm sets nothing in your shell. What Houdini sees comes from the package files hpm generates: HOUDINI_PATH (through hpath), PYTHONPATH, HOUDINI_SCRIPT_PATH, and whatever the packages’ [runtime] sections declare. The one variable you set yourself is HOUDINI_PACKAGE_PATH; see How Houdini loads hpm packages.

For hpm’s own test suite

VariableMeaning
HPM_REQUIRE_HOUDINI=1Fail the Houdini conformance tests instead of skipping them when no Houdini is installed.
HFSThe Houdini installation those tests use.

Registry formats

What a registry has to serve for hpm to resolve packages from it. Read this to host a registry of your own; to use one, see Registries, and for a walkthrough see Run a studio registry.

A registry holds metadata only. Archives live wherever their dl URL points: a release page, an object store, a file server.

The entry

Both registry types describe a published archive with the same JSON object:

{
  "name": "acme/rock-tools",
  "vers": "1.2.0",
  "dl": "https://packages.studio.example/rock-tools-1.2.0.zip",
  "cksum": "sha256:40c67f243a852eff6b08ebf52bd15757115db71e0a509fad67bade62ce3c436f",
  "houdini_compat": ">=21, <23",
  "platform": "linux-x86_64",
  "description": "Rock scattering tools",
  "deps": [{ "name": "acme/core", "req": ">=1.0, <2" }]
}
FieldRequiredMeaning
nameyesThe package path, creator/slug.
versyesA semantic version.
dlyesDownload URL of the archive (.zip or .tar.gz). https, or http to the local machine only.
cksumnoSHA-256 of the archive bytes, as sha256:<hex> or bare hex. This is the sha256 that hpm pack --json prints. Without it the package installs with a warning and no download check.
houdini_compatnoThe package’s [compat].houdini range. Shown by hpm search, and used by clients that choose versions.
platformnoThe platform this archive is built for: one of the platform identifiers, or universal. Absent means universal.
yankednotrue withdraws the version: ranges skip it, an exact request still gets it.
depsnoThe version’s registry dependencies, as { name, req }. Read by clients that solve a whole project; hpm install ignores it.
description, author, created_atnoShown in search results.
sig, kidnoEd25519 signature and key id from hpm pack --key. Stored but not checked by hpm; see Security.

One entry is one archive. A version built for three platforms is three entries that differ in dl, cksum and platform. On install hpm takes the entry for the host platform, else a universal one, else fails.

The archive itself must contain an hpm.toml declaring the same name and vers; hpm refuses one that declares another package. hpm pack output always qualifies.

Git registry

A Git repository laid out like this:

index/
├── config.json           # must exist; `{}` is enough
└── acme/                 # one directory per creator
    ├── rock-tools.json   # one file per package
    └── core.json

Each package file holds one entry per line (JSON Lines), one line per published archive:

{"name":"acme/rock-tools","vers":"1.1.0","dl":"https://.../rock-tools-1.1.0.zip","cksum":"sha256:..."}
{"name":"acme/rock-tools","vers":"1.2.0","dl":"https://.../rock-tools-1.2.0.zip","cksum":"sha256:..."}

Publishing a version is appending a line and pushing. Withdrawing one is adding "yanked":true to its line.

hpm clones the repository to ~/.hpm/registry/ on first use and reads the clone afterwards. It fetches again only on hpm registry update.

The registry URL may be https://, ssh://, file://, git@host:path, or a local or network path. git:// and http:// are refused. Access control is Git’s: whoever can clone the repository can resolve from it.

API registry

An HTTPS service with three read-only endpoints under a base URL, which is what hpm registry add takes:

RequestResponse
GET {base}/packages?q={query}{ "packages": [entry, ...], "total": n } with the latest version of each match
GET {base}/packages/{creator}/{slug}{ "versions": [entry, ...] } with every archive of every version
GET {base}/packages/{creator}/{slug}/{version}{ "builds": [entry, ...] } with every archive of that version

An unknown package or version is a 404. A response may be at most 64 MiB.

API registries are queried live on every resolution; nothing is cached, and hpm registry update has nothing to do for them.

The hpm command line sends no credentials, so it can resolve public packages only. Applications that embed hpm can attach a bearer token; it is sent only to https registries configured for the user, never to one a project declares.

Limits

These apply to anything hpm downloads, from either registry type or from a URL dependency:

  • Zip entries must be stored or deflated. Other compression methods (bzip2, LZMA, zstd, …) and encrypted entries fail to extract.
  • An archive may expand to at most 1,000,000 entries and 256 GiB.
  • Entry names with an absolute path, a .. component, a backslash or a colon are refused. Symlink entries are skipped.
  • A connection must open within 30 seconds, and a download that sends nothing for 2 minutes fails.

Troubleshooting

Start with more output. -v shows progress, -vv shows more, and RUST_LOG selects modules:

hpm -v install
RUST_LOG=debug hpm install
RUST_LOG=hpm_core=debug,hpm_core::python=trace hpm install

Installing

No package registries are configured

error: Package error: Failed to sync project dependencies: Cannot install foo 1.2.3:
no package registries are configured. Run 'hpm registry add <url>' to add one.

Add one, with your registry’s URL:

hpm registry add git@git.studio.example:pipeline/hpm-index.git --name studio --type git

Version not found in registry

error: Package error: Failed to sync project dependencies: Failed to resolve
acme/tools 1.2.3 from registry: Version '1.2.3' of package 'acme/tools' not found in registry

The package or the version is not in any configured registry. Check, in order:

  1. The name is the full creator/slug, not the bare slug.
  2. The version exists: hpm search <slug>.
  3. For a Git registry, the local index is current: hpm registry update.
  4. The version in hpm.toml is the one you meant. An exact version is looked up as written; hpm update <package> chooses the newest and writes it for you.

A package’s own dependency is missing in Houdini

hpm install adds the packages your packages require, from the dependencies each version was published with. If one is still missing:

  • The version was published without it. Check its deps in the registry, or the [dependencies] in its hpm.toml; a path or url dependency there is not followed. Add the package to the project with hpm add.
  • The project was installed with an hpm older than 0.45.0, which installed only the listed packages. Run hpm install again.

The project’s packages cannot be installed together

The project's packages cannot be installed together: no version of acme/core works with the other packages: ...

Two packages need versions of a third that no single version satisfies, or the project pins a version another package rules out. The message names the versions and the requirement each one failed. Change the pin it names, or move the package that holds it back with hpm update.

Checksum mismatch

Checksum mismatch for acme/tools: expected v2:ab12..., got v2:cd34...

The package’s files do not match the checksum hpm.lock recorded. Either the copy in the store was changed after it was installed, or the registry now serves different bytes for that version.

For a changed store copy, move it aside and install again:

mv ~/.hpm/packages/tools@1.2.3 ~/.hpm/packages/tools@1.2.3.files.json /tmp/
hpm install

If a fresh download still mismatches, the published archive changed. Do not delete hpm.lock to make the error go away until you know why; that is the situation the lock exists to catch.

hpm.lock exists but cannot be read

Install stops rather than overwrite a lock it could not verify against. Fix the file (a merge conflict marker is the usual cause), or delete it to resolve and lock again.

--frozen-lockfile fails in CI

The lock is missing, does not match the manifest, or lacks a checksum for a registry or URL dependency. Run hpm install locally, commit hpm.lock, and retry.

No Python version mapping for Houdini

No Python version mapping for Houdini 23; supported versions are 20.5+, 21, 22.
Houdini 19.x (Python 3.7) and 20.0-20.4 (Python 3.9) are past EOL.

The lower bound of the project’s [compat].houdini names a Houdini hpm has no Python for. Set the range to a supported lower bound. hpm refuses rather than guess, because a venv built for the wrong Python installs cleanly and then fails on import inside Houdini.

uv fails while resolving Python dependencies

  • Couldn't parse requirement or Expected one of ... found ^. A version in [python_dependencies] is not a PEP 440 specifier. Use ~= or >=..,<.. instead of ^, and ==1.2.3 instead of a bare 1.2.3. See [python_dependencies].
  • A package name with a version glued on was “not found” (for example numpy1-26-4). Same cause: a bare version. Write ==1.26.4.
  • Conflicting versions for package numpy: >=1.20 vs >=1.21. Two installed packages declare the same Python package with differently spelled constraints. They must be identical; change one package, or pin the package versions whose constraints agree.
  • No interpreter found. The managed CPython download was interrupted. Run the install again with a network connection.
  • Disk space. A venv is tens to hundreds of MB, and each managed CPython about 50 MB.

In Houdini

The package does not appear at all

Check that Houdini was started with HOUDINI_PACKAGE_PATH containing <project>/.hpm/packages, and restart Houdini after any install. To see what Houdini resolved without opening a session:

HOUDINI_PACKAGE_PATH="$PWD/.hpm/packages" HOUDINI_PACKAGE_VERBOSE=1 hconfig

If the package is listed but disabled, the running Houdini is outside the package’s [compat].houdini range.

Python packages are not importable

  1. Open .hpm/packages/{creator}.{slug}.json for the package that declares the dependency. It should have a PYTHONPATH entry pointing into ~/.hpm/venvs/.
  2. Check that directory exists. If it does not, run hpm install again; venvs are a cache and are rebuilt on demand.
  3. A dependency declared only in the project’s own [python_dependencies] is not installed for Houdini. Declare it in the package that imports it.

An HDK plugin’s operators do not register

The package loads, its HDAs and shelves appear, and its nodes are missing, with no error. HOUDINI_DSO_PATH points at a directory that does not exist in the installed package, typically a build directory. See HDK plugins: where a dev install finds its DSOs.

A hand-installed archive registers but nothing loads

Symptom: Houdini’s package log lists the package, reports Disabled Packages (0), and logs no warning, but no HDAs, DSOs, or toolbars appear.

Almost always the package file and the {slug}/ content folder are not in the same directory. $HOUDINI_PACKAGE_PATH means the directory holding the package file, so $HOUDINI_PACKAGE_PATH/{slug}/... resolves relative to wherever the json ended up. Moving the {slug}/ folder in beside the json fixes it.

A milder symptom, where HDAs and toolbars appear while native plugins do not, means the package file Houdini is reading is not the one the archive shipped. See Installing an archive without HPM.

Cleaning up

hpm clean removes nothing

hpm clean only removes what no project uses, and it finds projects through [projects] in ~/.hpm/config.toml. With no projects found it removes nothing at all. See Keep disk usage down.

Starting over

Everything under ~/.hpm/ except config.toml and global/ can be rebuilt. To reset one project:

rm -rf .hpm/
hpm install

Keep hpm.lock: it is what makes the reinstall identical.

To reset everything, remove ~/.hpm/packages, ~/.hpm/venvs, ~/.hpm/cache and ~/.hpm/fetch, then run hpm install in each project. Removing ~/.hpm/global/ as well orphans the package files hpm global wrote into Houdini’s preferences; run hpm global remove first.

Getting help

Upgrade notes

Changes that can make a working setup stop working after an hpm upgrade, newest first. The changelog has every change; this page has only the ones that need action.

Use 0.40.1 or newer. 0.40.0 is a security release that closed several ways a cloned project, a registry or an archive could write outside hpm’s directories or run commands; 0.40.1 fixes a Windows regression in it.

0.40

  • Plain http is refused for API registries, download URLs and URL dependencies, except to the local machine. Serve them over https.
  • Git registry URLs must be https://, ssh://, file://, git@host:path or a local path. git:// and http:// are refused. Indexes are cloned again, into ~/.hpm/registry/<digest>/; the old ~/.hpm/registry/<name>/ directories can be deleted.
  • A project’s .hpm/config.toml may set only [install]. [storage], [projects], [signing] and [[registries]] there are ignored with a warning. Put them in ~/.hpm/config.toml, and declare a project’s registries in its hpm.toml.
  • hpm install stops on an unreadable hpm.lock instead of replacing it. Fix or delete the file.
  • --frozen-lockfile requires a checksum in the lock for every registry and URL dependency. Run hpm install once without the flag and commit the result.
  • A URL dependency must match its archive. The key and version must equal the path and version in the archive’s hpm.toml, and version must be a semantic version.
  • [python_dependencies] entries are plain requirements. Direct URLs (name @ url), environment markers and characters outside version specifiers fail the manifest load.
  • Zip archives must use stored or deflated entries. Repack an archive made with another compression method.
  • [stage] place rules: a to with .., a leading /, a drive, a backslash or a colon fails the manifest load, and a staged file whose name contains a colon or backslash is refused.
  • Symlinks pointing outside the package no longer pack or dev-install. Replace the link with the file.
  • A project whose .hpm or .hpm/packages is a symlink or junction no longer installs. Make it a real directory.
  • On Windows, hpm run arguments may not contain ", a line break, or a %NAME% reference to a set variable.
  • The first Python install after upgrading downloads a newer uv.

0.39

  • hpm pack names the archive after the slug: {slug}-{version}[-{platform}].zip, not the display name. Read the path from hpm pack --json.

0.38

  • Unknown keys in a dependency table are errors. registy = "..." or optinal = true used to be dropped silently. The rule applies to every hpm.toml hpm reads, including packages already in the store.
  • Exit codes changed. hpm audit exits 1 on an integrity failure, and hpm registry update exits 1 when a registry could not be refreshed. A flag value hpm does not accept is a usage error, exit 2.
  • hpm --output json update needs --dry-run or --yes.
  • Global flags -v, -q, --color and -C work on either side of the subcommand. --output <format> goes before it.
  • hpm init no longer writes a root package.json.

0.29

  • Generated package files are named {creator}.{slug}.json. The next install renames them; nothing to do unless a launcher referred to the old {slug}.json names.
  • registry = "<name>" on a dependency is authoritative. It no longer falls back to other registries.

0.28: old manifests no longer load

The manifest format used before 0.16 is rejected, as is any unknown section or key. If hpm.toml fails with an unknown field named houdini, env, dev or native, rewrite those sections:

OldNew
[houdini] with min_version = "20.5"[compat] with houdini = ">=20.5"
[env], and [dev.env] for the same keyOne [runtime] entry. Where the two differed, give value one variant per install_source (see conditional values).
[native] with platforms = [...] and [native.<platform>] files = [...][compat] platforms = [...] and [stage.platform.<platform>] place = [{ from, to }]

Other changes in 0.28:

  • The manifest flag is -m/--manifest on every command; -p/--package is gone.
  • A Git registry must use the creator/slug layout, and platform tags must be the full identifiers (linux-x86_64, not LINUX).

Houdini versions

Houdini 19.x and 20.0 to 20.4 are not supported: their Python versions are past end of life, and hpm refuses to build an environment for them.

Changelog

All notable changes to HPM (Houdini Package Manager) will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[Unreleased]

[0.46.0] - 2026-11-24

Added

  • ProjectManager::project_root() returns the project directory a manager was built for, so an embedder no longer has to carry it alongside.

[0.45.2] - 2026-11-24

Fixed

  • On Windows, the cleanup that runs after a sync could move a dev copy aside while a project still pointed at it, so Houdini found the package’s files missing until the next sync put the copy back. The cleanup now decides again, with a fresh look at who uses the copy, right before moving it, and on Windows it reads a usage record or Houdini package file that appears missing again before treating the claim as gone.

[0.45.1] - 2026-11-24

Fixed

  • A sync installed required packages that an application embedding hpm had deliberately left out of the project (switched off by the user, or not available to the account), loaded them into Houdini, and looked them up in a registry, which failed an offline launch that worked before 0.45.0. SyncOptions gains excluded: the sync neither installs nor requires those packages unless the manifest lists them. registry::closure::select_closed no longer chooses an excluded package offered as supplied, and select_keeping takes the same excluded. SyncOptions is no longer Copy; build it with ..SyncOptions::default().

[0.45.0] - 2026-11-24

Changed

  • hpm install now installs the packages a project’s packages require, not only the ones it lists. A package whose version requires another (a rig that needs a shared toolkit) used to load without it unless the project listed both. Install now chooses every required package at the newest version that fits all requirements and the project’s [compat].houdini, writes its Houdini package file, and records it in hpm.lock. A path or URL dependency brings what its own hpm.toml requires. When the requirements cannot all be met, install stops before downloading anything from a registry and names the packages that disagree.
  • A required package keeps the version hpm.lock recorded while it still fits. hpm update chooses them all again, the newest that fits, and does so even when every listed dependency is current. --frozen-lockfile requires every required package locked with a checksum, and fails rather than choose a version the lock does not record.
  • A registry dependency written as a range is installed at the newest version in it that fits, instead of failing with “version not found”.
  • hpm clean also keeps every package a project’s hpm.lock records, at the locked version. A required package the lock kept at an older version would otherwise be deleted whenever a newer version that also fits was installed for another project.

Added

  • hpm_core::registry::closure: the loop that finds a project’s whole package set (select_closed, with a VersionSource for where versions come from, and select_keeping for keeping a lock’s versions while they fit), shared by hpm install and applications that embed hpm.
  • ProjectManager::sync_dependencies_with(lock, SyncOptions), with SyncOptions { frozen, refresh }, and ProjectError::Resolution.
  • hpm_package::retry_transient, the brief retry atomic_write already used for the Windows errors a scanner or indexer causes for a moment (access denied, sharing and lock violations), is now public.

Fixed

  • A dev copy a project still used could be deleted on Windows. A reclaim moves a copy it judges unused aside to a hidden tombstone, asks again, and moves it back if it has been claimed since. A scanner opening the tombstone could refuse that move back for a moment, and the next reclaim deleted every tombstone it found. The move back now retries, and a tombstone whose copy is in use again, with its place still free, is put back instead of deleted.
  • The second check matched a project’s hpath to the copy by resolving the copy’s path, which fails while the copy is moved aside. So a claim spelled differently from the copy’s own path (an 8.3 short name, .., a link along the way) did not count. The match now resolves the container, which stays where it is, and compares hashes. A container path that cannot be resolved for any reason other than not existing keeps the copy.
  • On Windows, a git registry given the path // (or //<name>) was pinned to C://..., which git reads as a URL with the transport C. Such a path is now refused as naming no directory.

[0.44.1] - 2026-11-23

Fixed

  • hpm_core::registry::solve::solve and solve_with no longer depend on the order a version lists its deps in. When a set had more than one answer, the search took the first one in that order, and the same release reaches callers in different orders: a registry serves the publisher’s manifest order, a manifest read offline comes out sorted. So two applications solving the same project could select different versions. The requirements are now taken by name, then requirement; the SolveError::Conflict explanation follows the same order. The order of the packages passed in still decides which gets its newest version first.

[0.44.0] - 2026-11-23

Added

  • Optional app and icon fields on table-form [scripts] entries. app = true marks a script that opens a program the user works in, so a frontend that presents scripts can offer it as a launch target of its own; icon names a package-relative PNG or SVG that represents it. Like label and description, they are metadata only: hpm run treats an app like any other script and HPM never reads the icon. hpm check lists the apps and warns about an icon that is not a file in the package. A manifest using either field cannot be read by an earlier HPM.

[0.43.1] - 2026-11-22

Fixed

  • The Linux release binary runs on distributions older than the build machine. It was built on Ubuntu 24.04 and needed glibc 2.39, so it failed to start on Rocky or Alma Linux 8 and 9, Ubuntu 22.04 and Debian 12. It is now built on AlmaLinux 8 and needs at most glibc 2.28, as Houdini 22 does; the release refuses a binary that needs more.
  • url updated to 2.5.9 for RUSTSEC-2026-0592 (stack overflow in Url::origin() on nested blob: URLs).

[0.43.0] - 2026-11-20

Changed

  • hpm_core::registry::solve::SolveError::Conflict says in data, not only in its text, why each version of the package it could not place was ruled out. Rejection::reason (a string) is replaced by Rejection::causes, every requirement between that version and the selected versions that fails, each a Cause: ExcludedBy (a selected package requires this one, and this version does not meet it), Requires (this version requires a selected package, and its selected version does not meet it) or Unavailable (this version requires a package with no usable version, with that package’s own SolveError). Each names the package and version it means as a Selected, whose Origin says whether the project lists it (and whether it is pinned) or which chain of requirements pulled it in, and Conflict gains the same origin for the unplaced package. An application that embeds hpm can now tell a user which of their own packages to update or pin, instead of naming a package they never listed. The error’s text is unchanged.

Fixed

  • solve_with given raw build rows rather than the version view no longer treats each installable row of a version as a separate candidate. It searched such a version once per row and named it once per row in a conflict; it is now one candidate standing for the row install would pick (the host’s build, else a universal one). A pinned version’s Selection carries that row too, among the version’s live rows, where it carried the version’s first row even when that row was yanked. Solving raw rows and solving the version view now give the same result.

[0.42.0] - 2026-11-19

Fixed

  • hpm_core::registry::solve::solve and solve_with no longer choose a version with no build for the host platform. Such a version still lists (a version picker shows it), so an unpinned or offered package could be given its newest version, which install then refused with NoCompatibleBuild, although an older version had a build for the host. The solver now applies install’s rule: a version is a candidate only when it has a build for the host or a universal one. A pinned version is kept as before and install names it. A package with no such version is SolveError::NoVersionForPlatform, a new variant, so a caller matching SolveError exhaustively needs an arm for it.

Added

  • hpm_core::registry::solve::solve_for_host solves for a named platform rather than the one hpm runs on.
  • hpm_core::registry::has_build_for says whether install could use a registry entry on a given platform, the rule the solver applies, so a caller that ranks versions itself does not need its own copy.

[0.41.0] - 2026-11-18

Added

  • hpm_core::registry::solve::solve_with chooses versions for a set of packages together with the packages those versions require. The caller passes the packages it can offer; one is part of the answer only when a chosen version requires it, and it constrains nothing while it is not. A version whose requirements cannot be met, because the required package has no version that fits or rules the version out itself, is passed over for an older one. A caller that added required packages to the set and solved again could alternate between two answers without ever finishing. solve is unchanged.

Documentation

  • The documentation is restructured. The single user guide is split into getting-started pages (install, quickstart, concepts), eleven task guides, and reference pages for the CLI, hpm.toml, configuration, the lock file, on-disk files, environment variables and registry formats, with troubleshooting and upgrade notes on their own pages. Links to user-guide.html on hpm.readthedocs.io redirect to the quickstart.
  • Corrected where the docs disagreed with hpm: the store layout (~/.hpm/packages/<slug>@<version>/), that hpm install installs exact versions and does not install a dependency’s own dependencies, that [python_dependencies] take PEP 440 specifiers (no ^, no bare version) and are not pinned by hpm.lock, the release file names, and the error messages quoted in troubleshooting.
  • The [stage] examples in the manifest reference and the README excluded build/** while placing files from build/. An exclude wins over a place rule, so a package copied from them shipped without its plugin. The examples and the HDK guide now show a layout that works.
  • The documentation names no registry or product. Examples use one invented studio registry throughout, the one “Run a studio registry” sets up, and the publishing guide no longer points at a specific registry. Earlier entries in this changelog were reworded to match.
  • A test (crates/hpm-cli/tests/docs.rs) checks the docs against the code: both site indexes list every page, links and anchors resolve, toml examples load, and the flags in the CLI reference match the real ones.

[0.40.2] - 2026-11-14

Fixed

  • [stage] place rules: to = "" and a to ending in /. now name a directory, so each file keeps its name under it. Before, to = "" put matched files at the image root itself (a nameless zip entry in hpm pack, a failed copy in hpm build) and lib/. became a file named lib.
  • Two files placed at the same archive path now fail hpm pack, hpm build and dev installs with an error naming both files. hpm pack used to stop on a duplicate zip entry, and hpm build and dev copies silently kept whichever file came last.

[0.40.1] - 2026-11-13

Fixed

  • Windows: installing an archive with files in subfolders failed with “Archive contains path traversal attempt” (for example otls/a.hda). The path check read zip entries as native Windows paths, whose \ separators it refuses; it now reads each entry’s own /-separated name. 0.40.0 shipped no Windows binary because of this.

[0.40.0] - 2026-11-13

Security

  • A git registry’s url is checked before it reaches git, and git runs with only the https, ssh and file transports, no credential prompt and none of the inherited variables that redirect it to another repository. A registry declared in a project’s hpm.toml could otherwise make hpm install run commands or clone into directories outside hpm’s cache.

  • Git registry indexes are cached by a digest of their remote URL instead of their display name, so a project registry that reuses the name of one of yours can no longer seed or replace its index; a clone whose origin no longer matches is cloned again.

  • A project’s .hpm/config.toml can no longer set [storage], [projects] or [signing]. A cloned repository could use them to move hpm’s home into its own tree, so that hpm install ran a tool the repository shipped, to redirect where packages are stored, or to choose the key hpm pack signs with.

  • Archive extraction confines every entry to the install directory. A tar.gz package whose member named an absolute path (in the header, a GNU long-name record or a PAX path) was written to that path at install time. Entries with a root, drive or .. component, or a backslash, colon or NUL in a name, are now refused on every platform.

  • A [stage] place rule’s to must stay inside the install image. A path dependency’s to with .. or an absolute path made hpm install write its file anywhere the user could write; hpm build and hpm pack had the same flaw.

  • Package names and versions from manifests, lockfiles and registries can no longer name paths outside the store, archive cache or fetch staging: every such path is built from a checked name (letters, digits, ., _, -; at most creator/slug) and a semantic version. A registry entry that names a different package or version than was asked for, or carries a version that is not semver, is refused.

  • A downloaded package must declare, in its own hpm.toml, the package and version it was requested as. An archive claiming another package’s identity was stored in that package’s slot and served to every project on the machine that later asked for it.

  • hpm install reproduces hpm.lock: every package the lock pins at the manifest’s version must match its locked checksum, whether freshly downloaded (checked before it reaches the store) or reused from the store. A registry or mirror that served different bytes for a locked version was installed, and the lock rewritten to match. ProjectManager::sync_dependencies applies the same check for embedders.

  • A project with a committed hpm.lock now installs on a machine whose store has never held its packages; it used to fail with “recorded in the lock file but is not installed”.

  • Saves of lockfiles, config, Houdini package files and records stage to a temporary file created exclusively under a fresh name, so a link planted at <file>.tmp in a cloned project no longer makes a save overwrite the link’s target.

  • A project whose .hpm or .hpm/packages is a link is refused before hpm writes or deletes package files there; the stale-manifest sweep removes only regular files.

  • An embedder’s bearer token is sent only to https API registries, and for a project’s registries only to the https origins of the registries configured for the user. A project that declared its own registry, or any plain-http registry, received the token.

  • hpm fetches registry answers and package archives only over https, or plain http to this machine (localhost, 127.0.0.0/8, ::1); redirects follow the same rule and never step down from https to http. Plain http to another host let anyone on the path replace what was installed.

  • A package’s [python_dependencies] entry is one plain requirement: names and extras must be PEP 508 names and versions only version-specifier characters. A version holding a line break could add pip options such as --index-url to the requirements file shared by every installed package, or a direct URL to build from. A - that does not follow a letter or digit is refused too, since >=1 --config-settings=... would pass a per-requirement option.

  • The bundled uv moves from 0.5.9 to 0.13.6, past the advisories against 0.5.9 (wheel entry points and RECORD files writing or deleting outside the venv, archive-parsing differentials, a distrusted CA in uv’s bundled roots). The download is checked against a SHA-256 pinned in hpm for each platform before it is extracted, only a regular file is accepted as the binary, and it is installed under tools/uv-<version>/, so a version bump replaces it; the unversioned tools/uv of older hpm is removed.

  • Bounds on what a registry or package can make hpm consume: an archive may expand to at most 1,000,000 entries and 256 GiB, a registry answer may be at most 64 MiB, and connections must open within 30 s. Downloads no longer have a 5-minute cap on the whole transfer (large packages on slow links were cut off); a download that sends nothing for 2 minutes fails.

  • Extracted package files no longer take setuid, setgid or sticky bits, or group or world write permission, from the archive.

  • hpm pack and hpm build refuse to package a PEM private key (however it got into the tree) and a link that points outside the package; such a link used to be packed as the file it pointed at.

  • On Windows, hpm run -- <args> refuses a forwarded argument holding a double quote or a line break: cmd.exe ends its quoting at either, so the rest of the argument could run as a second command.

  • Text from registries and package manifests (search results, package descriptions, warnings and errors carrying them) is printed without control characters or Unicode bidirectional controls, so it cannot inject terminal escape sequences (hidden or recoloured output, hyperlinks, a changed window title).

  • Release binaries are published with a .sha256 file, and a binary already on a release is never replaced (a rerun with identical bytes is a no-op; different bytes need a new version tag). A tag that does not match the workspace version fails CI.

  • Package archives are decoded only as Stored or Deflated zip entries (and tar.gz); the bzip2, deflate64, LZMA, PPMd, XZ, zstd and AES decoders are no longer built into hpm, removing their code (zstd’s in C) from what an untrusted archive can reach. Archives hpm pack writes are unchanged.

Changed

  • Upgrade note: a zip package archive whose entries use a compression method other than Stored or Deflated now fails to extract; repack it with hpm pack or a standard zip tool.
  • Upgrade note: on Windows, hpm run arguments may not contain ", line breaks, or a %NAME% variable reference (cmd.exe would expand it before quoting); %04d-style frame patterns, a lone %, &, |, <, > and ^ still pass through inside quotes.
  • Upgrade note: a package containing a symlink to a file outside the package directory no longer packs or dev-installs; replace the link with the file.
  • Upgrade note: the first Python install after upgrading downloads uv 0.13.6 into ~/.hpm/tools/uv-0.13.6/.
  • Upgrade note: [python_dependencies] entries with direct URLs (name @ url), environment markers, or characters outside version specifiers now fail the manifest load.
  • Upgrade note: API registries, registry download URLs and URL dependencies on plain http to another host are refused; serve them over https.
  • ApiRegistry::with_auth_token refuses a token for a registry that is not https.
  • Upgrade note: a project whose .hpm or .hpm/packages directory is a symlink or junction no longer syncs; make it a real directory.
  • Upgrade note: hpm install stops when hpm.lock exists but cannot be read, instead of warning and regenerating it; delete the file to resolve and lock again.
  • Upgrade note: --frozen-lockfile fails when a registry or URL dependency has no lock entry with a checksum at the manifest’s version.
  • ProjectManager::sync_dependencies reads the project’s hpm.lock and fails when it exists but cannot be read; sync_dependencies_with_lock takes the lock explicitly.
  • Upgrade note: a URL dependency whose key or version differs from the package path and version in the archive’s hpm.toml now fails to install (a bare-slug key still matches the slug).
  • API: StorageManager::install_into_cas takes the requested name and version and refuses a package that declares a different identity.
  • Upgrade note: a URL dependency’s version must be a semantic version.
  • API: StorageManager::get_package_path, storage::layout::cas_dir, download_key, and StoreLayout::{cas_dir, dev_container, staging_dir} now return a Result; embedders add ?.
  • Upgrade note: a [stage] place rule whose to has a .. component, a leading /, a drive, a backslash or a colon now fails the manifest load.
  • Upgrade note: hpm pack, hpm build and dev copies of path dependencies refuse a staged file whose name contains a colon or a backslash (such a name means a drive, a stream or a separator on Windows, so the same package would install differently there); rename the file.
  • Upgrade note: [storage], [projects], [signing] and [[registries]] in a project’s .hpm/config.toml are now ignored with a warning; set them in ~/.hpm/config.toml instead, or declare a project’s registries in its hpm.toml. [install] still applies from a project config.
  • Upgrade note: git registry urls starting with - or naming a host that starts with -, using the <transport>:: helper syntax, or the git:// or http:// schemes are now rejected when config.toml or hpm.toml is loaded, naming the registry. Use https://, ssh://, file://, git@host:path or a local path.
  • Git registry indexes are now cloned under ~/.hpm/registry/<digest>/; each is cloned once more after upgrading, and the old ~/.hpm/registry/<name>/ directories can be deleted.
  • hpm_config::Config::registry_cache_path is removed: the cache directory is derived from the remote URL, not the registry name.
  • API: GitRegistry::new(name, remote_url: &str, registry_cache_root: &Path) returns a Result (the URL is validated) and takes the root holding every git registry’s clone, appending a digest of the remote itself, instead of the registry’s own cache directory.

[0.39.1] - 2026-11-13

Fixed

  • On Windows, a dev copy could be removed while a project still pointed at it, so Houdini lost the package until the next sync. The likeliest cause: another process (an antivirus scanner, a search indexer) briefly holding a just-written file made the write of the project’s claim on the copy fail, the sync only logged it, and the next cleanup saw a copy nobody claimed. Writes hpm stages and renames (lockfiles, config, Houdini package files, claims) now retry briefly when Windows refuses them that way; a claim that still cannot be written fails the sync instead of being logged; and a claim in the middle of being written always keeps its copy.
  • 0.39.0 shipped no Windows binary: its Windows test run failed with this symptom (a project’s dev copy gone while the project used it). 0.39.1 is the first Windows build of 0.39; see 0.39.0 for what changed.

[0.39.0] - 2026-11-13

Fixed

  • Project discovery no longer skips a project whose folder name merely starts with an ignore pattern. [projects] ignore_patterns matched prefixes, so the default temp skipped temporal-fx/ and template/, archive skipped archive-tools/, and so on; hpm clean then saw that project’s packages as unused and removed them. A pattern now matches a whole folder name. Upgrade note: a pattern written to skip a family of folders by prefix (backup for backup-2025/) now skips only the folder with exactly that name; list the others too.
  • The checksum hpm.lock records for a package now frames each file’s path and contents with their lengths. The old digest concatenated them, so two different package trees could hash the same (file a holding bc and file ab holding c). New entries are written as v2:<hex>; an entry without the prefix, as every existing lockfile holds, is still verified the old way, so no lockfile breaks. Breaking (hpm-core API): tree_hash::hash_tree returns the v2: digest; tree_hash::hash_tree_as recomputes a tree in the format a lock recorded.
  • Installing a package whose slug and version match another creator’s package already in the store (acme/tools@1.0.0 and studio/tools@1.0.0) failed silently: the store keys packages by slug, and the install handed back the other creator’s copy. It now stops with an error naming both. Keeping both at once needs a store layout change, which is not part of this release.

Changed

  • hpm pack names the archive after the package slug instead of its display name: {slug}-{version}[-{platform}].zip (studio-tools-1.0.0.zip rather than Studio Tools-1.0.0.zip). A display name could hold characters Windows refuses in file names (:, ?, *, …), and two packages sharing one could overwrite each other’s archive. Read the path from hpm pack --json’s archive field rather than guessing it.

[0.38.2] - 2026-11-13

Fixed

  • A sync could fail with “create dev copy target … Invalid argument” (seen on macOS) when it installed a new version of a path dependency while an earlier sync’s background cleanup was removing that version’s then-empty folder. The install now recreates the folder and carries on.
  • 0.38.1 shipped no Windows binary: a test of this cleanup failed once on the Windows build (an older version’s copy was gone while a project still used it). It has not recurred and its cause is not yet known; the test now reports what it found. 0.38.2 is the first Windows build of 0.38; see 0.38.0 for everything that changed.

[0.38.1] - 2026-11-12

Fixed

  • hpm builds on Windows again. 0.38.0’s Windows build failed (a logging import was compiled only on Unix), so 0.38.0 shipped no Windows binary; 0.38.1 is the same release with that fixed. See 0.38.0 below for what changed.

[0.38.0] - 2026-11-12

Fixed

  • hpm add creator/slug@1.0.0 writes the dependency as creator/slug. It wrote the key "creator/slug@1.0.0", which nothing could install.

  • hpm clean no longer removes a version of a package that another kept package depends on when the project itself pins a different version of it; whether it was kept used to depend on the order of the project’s dependencies. A package depending on another version of a package already in its chain is also kept now.

  • hpm add resolves against the project’s [[registries]] when it declares any, as hpm install does, instead of always the configured registries.

  • A [compat].houdini range semver cannot read (==21, or an operand with a leading zero such as 22.00) no longer counts as matching every Houdini. hpm global add and dependency solving now judge a range the way Houdini evaluates the package’s enable (checked against Houdini 22.0’s own evaluation: a version is compared over the operand’s components, so 21.0.445 equals 21 and is below 21.1). The emitted enable strings are unchanged.

  • A range written with a single = (=21) has a lower bound again, so the project’s Python version is chosen from it instead of skipped.

  • Installing one version from two places at once (hpm and an embedding application, or two syncs) no longer corrupts the store copy. Each fetch now extracts into a directory of its own, and a store copy is copied into a private staging directory and renamed into place, so the store never shows a half-copied tree.

  • A download whose extraction failed (a crash, or an entry refused as a path traversal) is no longer installed on the next attempt as it stood, unverified. Nothing in fetch staging is reused.

  • An archive with a root-level file whose name begins like a directory beside it (a next to ab/) no longer loses that file on extraction.

  • fetch_manifest (used by embedders) finds a package already in the store when asked by its scoped creator/slug name. It looked in the wrong directory, missed, and downloaded and re-copied the package over a live store copy. It also stages downloads under home_dir like every other install, instead of beside packages_dir.

  • fetch_manifest with "latest" picks the highest non-yanked release instead of the highest version outright.

  • hpm init writes a valid python/__init__.py. It used to begin with an empty string literal followed by bare text, which Python rejects.

Changed

  • Python venvs, the bundled uv, uv’s cache and config, and the managed CPython it downloads now live under the configured [storage] home_dir (venvs/, tools/, uv-cache/, uv-config/, uv-python/). They always went to ~/.hpm whatever it said. Upgrade note: with a custom home_dir, the copies an older hpm left in ~/.hpm are not moved or cleaned up; the first sync rebuilds venvs under the new home, and the old directories can be deleted by hand. With the default home nothing moves. prepare_script_env reads the user’s configuration for the same home.

  • [install] parallel_downloads now bounds how many packages a sync installs at once (it was read but never used), and must be at least 1: a config file with parallel_downloads = 0 (which meant nothing before) now fails to load until the line is removed or raised. [install] path, which was never used, is gone from the config; an existing file holding it still loads, with a warning. Any other unknown key in a config file is now an error that names it (a misspelt [registry] or paralel_downloads used to be ignored). Config files written by Config::save (as embedders do) still load.

  • More of hpm.toml is checked when it is read rather than by validate() later: the package version must be semver, a python selector must be a Python version (a script’s python pin was never checked), platform keys in [stage.platform], profile platforms and per-platform operator sources must be known platforms, and a script’s when may only use os (and a conditional cmd must not be empty). Errors name the bad key or value instead of “did not match any variant”.

  • Stricter hpm.toml: a dependency table with an unknown or misplaced key is now an error that names it, instead of the key being dropped (registy = ... and optinal = true used to give an unpinned, required dependency; a path dependency’s version vanished; {} parsed). The same holds for [python_dependencies] tables, which must give version and/or extras. Every installable package published on the registry this was checked against still parses. Upgrade note: the rule applies to every hpm.toml hpm reads, including packages from url = ... dependencies and copies already in the store. A store copy whose manifest is now refused is skipped (with a warning) when listing installed packages, and reinstalling it names the manifest error; move the copy and its .files.json aside (as for a repair) once a fixed version is available.

  • hpm list --output json: a path or URL dependency’s spec no longer carries "optional": false.

  • hpm.lock no longer records url = "unresolved" for a registry dependency that was already installed when no previous lock entry knew its source. hpm now looks the download URL up in the project’s registries (only in that case), and stops with an error when it cannot. Existing lockfiles holding "unresolved" still pass --frozen-lockfile, which compares versions only and never contacts a registry, and the next lock rewrite replaces the placeholder.

  • hpm clean stops with an error, instead of deleting more, when it cannot read something that decides what is in use: the global-install directory or an entry in it, a dev copy’s user records, or an entry in a project search root. A dev copy whose records cannot be read is kept.

  • An install never replaces a store copy that is already there (a running Houdini may have it loaded); hpm global add used to. To repair a damaged copy, move it and its .files.json aside first. A tree without hpm.toml or a stale link is still replaced.

  • [storage] cache_dir is honoured: downloaded archives are cached there. They used to go to <home_dir>/cache whatever it said. Archives an older hpm left in <home_dir>/cache, and extracted downloads left in <packages_dir>/../fetch when packages_dir is outside home_dir, are still reclaimed by the fetch-staging sweep and by evict_download.

  • hpm check (and the check hpm pack runs first) measures package size over what pack would ship, so a gitignored build/ or target/ tree no longer triggers “Package size is large” or “Large file detected”. A file in the package that cannot be read is now an error instead of silently skipping the size check.

  • hpm init prints its package tree sorted, with correct └── / │ connectors.

  • hpm install no longer draws a spinner (which ignored --quiet).

  • -v, -q, --color and -C work after the subcommand too (hpm update -v). --output <format> still goes before it.

  • -C <dir> now means “run in <dir>” for every command: add, remove, update, list, install and audit used to ignore it. Relative paths in other arguments resolve against it, as with git -C. check, pack and run take -m/--manifest like the other project commands.

  • Without -v, stderr carries only warnings and errors: the timestamped INFO lines that preceded every result (and the JSON error document) are gone. Warnings the user should act on (an old or unreadable lockfile, an existing dependency being replaced, a skipped update requirement) go through the normal warning output.

  • Invalid values are refused with a usage error (exit 2) instead of being accepted: init --vcs takes git or none (--vcs gti used to skip git silently), registry add --type takes api or git, build/pack --platform a known platform, global --houdini a Houdini version, and clean --python-only conflicts with --comprehensive.

  • Exit codes: hpm audit exits 1 when a checksum or installed-file check fails, or hpm.lock cannot be read (printed as FAIL; the advisories still only warn). hpm registry update exits 1 when a registry could not be refreshed, after reporting each one; it used to print “complete” and exit 0. hpm --output json update needs --dry-run or --yes; it used to apply the updates without asking. Scripts that relied on exit 0 from these now see the failure.

  • hpm update stops on an hpm.lock it cannot read instead of treating the project as unlocked, and on a package name that is not a dependency instead of ignoring it.

  • The JSON error document honours --output json-compact and json-lines (one line) instead of always being pretty-printed.

  • hpm pack refuses a host platform missing from [compat].platforms with the message hpm build gives, and both list the declared platforms by name (linux-x86_64, macos-aarch64). A package directory that cannot be listed while looking for {slug}.json or README.md is now an error instead of counting as “not there”.

  • hpm init no longer writes a root package.json. Nothing read it: hpm writes each dependency’s Houdini package file at install time, and hpm pack generates the shipped {slug}.json. Existing files are left alone, and hpm init in a directory that has one still works.

  • hpm check no longer reports the two “[OK] Generated … package.json” lines in info; they checked output from an emitter nothing else used.

Removed

  • Breaking (hpm-core API): ProjectManager::add_dependency and ProjectManager::remove_dependency, storage::PackageSpec, storage::VersionReq, InstalledPackage::is_compatible_with and ProjectError::NoMatchingVersion. Nothing called them; they also wrote ranges into hpm.toml that install then looked up as exact versions, and read a bare version as ^x.y.z. Edit dependencies with project::manifest_edit (what hpm add / hpm remove use) and run sync_dependencies.
  • Breaking (hpm-package API): PackageManifest::generate_houdini_package, ManifestEnvEntry::to_houdini_env_value, HoudiniEnvValue::replace and DependencySpec::validate. generate_houdini_package emitted a different file from the one hpm installs; use generate_houdini_native_package(_for) for the shipped {slug}.json.
  • Breaking (hpm-core API): ProjectManager::generate_houdini_manifests. It emitted without the package’s venv; sync_dependencies writes the manifests.
  • ProjectManager::lock_file builds hpm.lock from a sync (the CLI’s lock building moved into hpm-core), and PythonDependencySpec::version_req and Platform::host_id replace copies of the same logic.
  • Breaking (hpm-config API): InstallConfig::path is removed and parallel_downloads is a NonZeroUsize.
  • Breaking (hpm-package API): Condition::python and ScriptEnv::python are PythonTags; PlatformStaging::entries and OperatorSource::PerPlatform are keyed by Platform; ScriptEnv::cmd is a ScriptCommand (ScriptVariant/ScriptCondition, os only); Platform::os_key returns OsKey; ManifestEnvEntry::lower and lower_conditional take an InstallSource instead of is_dev.
  • Breaking (hpm-package API): PythonDependencySpec::Detailed’s optional is a bool and extras a Vec<String> (they were Options), and PythonDependencySpec::extras() returns a slice.
  • Breaking (hpm-package API): the free functions in env_value (compile_houdini_req, houdini_req_lower_bound, houdini_req_has_upper_bound, normalize_hpackage_houdini_req). Use the methods of HoudiniRange. Breaking (hpm-core API): python::collect_python_dependencies is no longer async; a Houdini version with a non-numeric minor (21.x) is now an error.
  • hpm_core::packer::pack_package does everything hpm pack does except signing-key resolution and rendering, so embedders get the same archive, gates and warnings; CompatConfig::resolve_target_platform (hpm-package) picks the target platform for pack and build. Breaking (hpm-core API): PackResult::platform is an Option<Platform> (it was a string; it serializes the same).
  • Package validation moved into hpm_core::check (check_package returns a Report of typed findings), for pack and embedders to share.
  • Breaking (hpm-core API): LockFile::has_changes. What it checked (--frozen-lockfile) is ProjectManager::lock_is_current, which compares a sync’s outcomes with the lock without building a new one.
  • Breaking (hpm-core API): python::get_venvs_dir. The Python subsystem takes a python::PythonHome (PythonHome::for_storage(&config.storage), or PythonHome::of_user() for ~/.hpm): initialize, resolve_dependencies, resolve_combined, ensure_script_venv, bundled::ensure_uv_binary / ensure_managed_python / run_uv_command, VenvManager::new (now infallible) and VenvManager::with_venvs_dir, and PythonCleanupAnalyzer::new (now infallible) take one. prepare_script_env(entry) keeps its signature and resolves the home from the user’s configuration; prepare_script_env_in(home, entry) takes it explicitly.
  • Breaking (hpm-core / hpm-config API): archive_fetcher::cas_install_dir, archive_fetcher::fetcher_install_dir, StorageConfig::package_dir and FetchManifestError::NoVersionsAvailable. Use storage::StoreLayout (StorageManager::layout()) or storage::layout::cas_dir / download_key; StorageManager::get_package_path and package_exists are unchanged and now accept a scoped name too.

[0.37.0] - 2026-11-11

Fixed

  • Dev copies no longer pile up. A path dependency that is installed as a copy (any package with [compat].platforms, or link = false) gets a new copy under ~/.hpm/packages/_dev/ each time one of its shipped files changes, and only hpm clean ever removed the old ones. One machine collected about 490 copies and 500 GB. Every hpm install / sync now removes the copies it supersedes, once no project’s packages point at them and no process recorded as using them is still running. Copies made by an earlier hpm are removed by hpm clean, which now checks what every project points at first. When a project moves to a new version of a dev package, the old version’s copies go too, once no other project still uses that version.
  • A dev copy cut short (hpm crashed or was killed mid-copy) no longer leaves its unfinished staging directory behind for good: it is removed once the process that was copying is gone.
  • On Windows, a dev install no longer fails with “The process cannot access the file because it is being used by another process” (os error 32) while something else has the package’s _dev folder open: another install, a clean-up pass, or Explorer showing the folder.
  • hpm clean no longer leaves a half-deleted dev copy behind when a running Houdini has files open in it on Windows, and can delete read-only files (older dev copies carried a .git directory).

Added

  • For embedders: hpm_core::process_users (a process record and the rule for whether it still runs), and hold_project_dev_copies, record_project_process, record_process_user / release_process_user to name a process as a user of the dev copies it reads.

[0.36.1] - 2026-11-08

Added

  • Installs record their files, and hpm audit checks them. A package installed from a registry or URL now gets <slug>@<version>.files.json beside its directory, listing the path, size and SHA-256 of every file the archive installed. hpm audit compares each locked package with that record and warns about every file that is missing, cut short or changed. Files Houdini and Python add to a package while it is used (__pycache__, HDA backups) are not in the record and are never reported. Packages installed by an earlier hpm have no record until they are next installed. For embedders: hpm_core::install_manifest::verify and StorageManager::verify_installed.

[0.35.2] - 2026-11-06

Fixed

  • The user guide no longer points dev installs at the build tree. Its HDK plugin pattern gated HOUDINI_DSO_PATH on install_source = "dev" with a path into build/Release. Since 0.35.0 a dev install is a copy of the staged image, which has no build tree, so that setting left a dev launch with no operators. The guide now points both kinds of install at the directory [stage] places the binaries into, and keeps install_source for values that really differ between them.

[0.35.1] - 2026-11-02

Added

  • StorageManager::installed_at(dir) returns the installed package rooted at a directory inside the store, dev installs under _dev/ included (which list_installed hides). It never chooses between versions; it is for callers that already know which install they want.

Fixed

  • ProjectManager::list_dependencies reports a path dependency’s dev install. It chose each dependency’s copy by version from the store listing, which hides _dev/, so a path dependency (a dev override) was handed the newest registry copy of the package. An embedder that runs hooks from that copy ran the released build’s hook instead of the dev build’s. The copy is now the install the package’s emitted Houdini manifest points hpath at, which is what Houdini loads. Without a readable hpath, a registry dependency still falls back to its pinned version, and a path dependency reports no copy rather than a different build.

[0.35.0] - 2026-11-02

Added

  • StorageManager::evict_download(name, version) forgets a version’s cached archive and any extracted copy left in fetch staging, so an embedder that found an installed copy damaged can reinstall it from a fresh, verified download. A reinstall otherwise reuses a leftover staging copy as it stands, which would reproduce the damage. An embedder can use it to repair a package whose program the OS refuses to start.
  • StorageManager::sweep_fetch_staging removes what earlier installs left in fetch staging, skipping entries younger than a given age so it never races an extraction in flight.
  • hpm_core::disk_full recognises a full disk from an io::Error, an error’s source chain, or a child process’s message, with the per-platform codes that collide across platforms kept apart.

Changed

  • StorageError has a new Stage variant, returned when a dev copy’s file set cannot be built from the workspace’s ignore files and [stage] rules (a bad glob, an unreadable .hpmignore). Code that matches StorageError exhaustively needs an arm for it.

Fixed

  • A dev copy installs the package’s image, not its whole workspace. A path dependency installed as a copy (including a link = true one that declares native platforms) cloned the entire workspace: .git/, cargo target/ dirs, CMake build trees and virtualenvs. On a native package that came to 19 GB and 62,000 files, so an embedder’s dev launch took longer than the request that asked for it. The copy now stages the same files hpm pack / hpm build would: .gitignore and .hpmignore (with ! re-includes), [stage] include/exclude and the host’s place rules, plus hpm.toml. The content hash covers only those files, so a rebuild in an ignored tree no longer forces a recopy. When the ignore files have no ! rules, pack, build and dev copies also skip ignored directories instead of walking every file inside them. The dev copy’s hashing and copying no longer block an async worker thread.

  • A managed Python damaged by a full disk repairs itself. When the disk filled while uv was rewriting a fresh CPython’s _sysconfigdata, the truncated file stayed behind, and every later uv python install stopped on it with Unexpected end of file, so no project with Python dependencies could resolve until someone deleted the copy by hand. A failed install check now reinstalls the managed interpreter once (it lives in HPM’s own tree and is re-downloadable), unless the failure is the disk being full, which a reinstall cannot fix.

  • hpm clean keeps the version a project uses. The collector looked an installed package up by bare slug in a map that kept one arbitrary version per slug, so with several versions in the store it protected whichever the scan met last and removed the one the project depended on, and a scoped creator/slug key matched nothing, so every package of a project written with scoped keys was classified orphaned. A dependency now resolves to the installed copy at the version it names (read as the solver reads it: a bare 1.2.3 is exactly that version), else the highest one its range admits; a path dependency protects only its _dev/ install.

  • A download is no longer kept twice. Every install extracted its archive into ~/.hpm/fetch/, copied that into the store, and left the extracted copy behind, so each installed version took twice its size and the staging copy outlived the store’s when the version was removed. Both fetch-and-install paths now go through one sequence that removes the staging copy once the store holds the package.

[0.34.1] - 2026-10-19

Fixed

  • A project’s dependency reports the installed copy the project uses. ProjectManager::list_dependencies matched an installed package by path alone, so with several versions in the store it returned whichever the scan met first. A project on a package’s 1.76.0 with 1.40.1 also installed was handed 1.40.1: an embedder then ran that release’s hooks, which it did not declare, and generate_houdini_manifests could point Houdini at the old copy. The copy is now the version the project manifest names, else the highest installed.

[0.34.0] - 2026-10-19

Added

  • Registry entries carry deps, and registry::solve chooses a set of versions that works together. The registry index has always had Cargo’s deps field, but RegistryEntry dropped it, so nothing could see that a package’s 1.74 declares acme/core = ">=0.47, <0.48", and a client taking each package’s newest version paired it with acme/core 0.48, which removed an API 1.74 calls. RegistryEntry::deps reads the field, and registry::solve::solve picks one version per package given the target Houdini and any pins: a pin stands, an unpinned package takes its newest non-yanked version whose houdini_compat admits the target and whose requirements agree with the rest of the set, backtracking until they do. A conflict names the package and the requirement that could not be met. It is pure over version lists the caller fetched, and is checked against a brute-force search by property.

Changed

  • Dependencies refreshed. zip 8 → 9 is the only semver-major move; the rest is a lockfile refresh within existing ranges. The tree went from 308 to 301 crates.
  • An archive entry whose name is flagged UTF-8 but is not valid UTF-8 now fails the install instead of extracting. zip 8 decoded such a name lossily, so the entry landed under a filename with U+FFFD in place of the bad bytes — a file that existed on disk under a name nothing in the package referred to. zip 9 reports the name as undecodable, and hpm surfaces that as an extraction error. Archives from ordinary tools are unaffected: names that are not UTF-8 are written without the flag and decode as CP437, as before.
  • Minimum supported Rust version raised from 1.85 to 1.89. The declared 1.85 had already stopped being true — time and zip 8.6 required 1.88 — and aes 0.9.3 now requires 1.89. Builds from the pinned stable toolchain are unaffected.

[0.33.1] - 2026-09-22

Fixed

  • hpm pack --sidefx now checks the descriptor it ships, not just the one it generates. A package directory holding a hand-written {slug}.json has that file shipped verbatim, and it never passed through the generator — so the stricter path was the one hpm controls and the looser one was the one an author writes by hand, and --sidefx silently did nothing on exactly those packages. The descriptor that reaches the archive is now checked whichever way it got there: a bounded or object enable, an operand hpackage cannot read as major.minor, a clause it does not match (>, ==), and a version it cannot store each fail the pack with the constraint named, instead of being refused at upload time by whatever tool publishes, in a message that does not say why. A hand-written file is still shipped byte for byte — the check only reads it, and never rewrites what an author wrote — and it reads only the fields it constrains, so a descriptor may carry Houdini keys hpm does not model. Generated descriptors go through the same check, which is what keeps the generator and the check from drifting apart unnoticed. A hpackage.version SideFX will store differently is reported rather than refused: 0.1.0 uploads as 0.1, and the served archive’s URL uses the trimmed form.
  • Forwarded hpm run arguments are quoted correctly on Windows. Per-argument quoting escaped embedded quotes but ignored the backslash rule CommandLineToArgvW and the MSVC CRT parse argv with, where a run of backslashes before a " is halved. A trailing separator — hpm run x -- C:\out\ — came out as "C:\out\", whose closing quote the child reads as literal data, so the argument never terminated and swallowed the rest of the command line; an argument already containing \" was escaped into a sequence that ended the argument early instead. Arguments that worked before are quoted byte-identically. One case has no fix at this layer and is now documented rather than attempted: cmd.exe expands %NAME% inside double quotes and its command-line parser, unlike a batch file’s, offers no way to suppress it. The Windows and POSIX quoting are also no longer behind #[cfg] at their definition, so both are compiled and tested on every host — the Windows path had not been built by CI on Linux or macOS at all.

[0.33.0] - 2026-09-10

Added

  • hpm pack --sidefx emits the bundled {slug}.json in the form SideFX’s hpackage repository accepts, so an archive can be uploaded exactly as packed. Publishing there previously meant rewriting that json and re-zipping, which invalidated the SHA-256 and the Ed25519 signature hpm pack had just reported. The flag trims hpackage.version the way SideFX’s Version does (0.1.0 becomes 0.1, which is also the version in the served archive’s URL) and rewrites the enable expression’s version operands to major.minor, padding a one-segment bound and keeping a three-segment one only when its build is zero. It changes nothing about an hpm install: the extractor skips this file and generates its own.
  • --sidefx refuses rather than emit a descriptor whose meaning changed. A build-level bound such as >=20.5.445 has no two-segment form, and truncating it to >=20.5 would enable the package on builds [compat].houdini excludes — on hpm-managed installs too, since the same expression ships to both. A bounded range is refused outright, ^21 included: hpackage matches the whole enable value against one clause, and the per-clause object form its own docstring suggests is not a narrower gate but no gate at all. Houdini reads an object enable as a conditional map, loading the package when any key matches and warning Unsupported value for enable when none does, single-key objects included — measured with hconfig on 21.0.729 and 22.0.368. A missing [compat].houdini, a range compiling only to <, >, == or !=, and a missing or placeholder-only README.md are refused for the same reason: hpackage rejects each on upload with a message that does not name the cause.

Fixed

  • The bundled Houdini descriptor is matched by exact filename. hpm pack ships a hand-written {slug}.json verbatim instead of generating one, and chose between them with Path::exists — which APFS and NTFS answer case-insensitively. A package holding FLOPs.json for slug flops therefore shipped the author’s file as the root descriptor when packed on macOS or Windows (in one real case carrying a hardcoded G:/ drive letter) and shipped the generated descriptor when packed on Linux, so the same source tree produced a different archive depending on who built it. It also shipped that file twice, since the staging skip compares against the injected name byte-for-byte, and it bypassed --sidefx entirely, because a hand-written file is shipped without normalization. Lookups now compare directory entries, and a file differing only by case is reported and skipped rather than silently used.
  • hpm check recognises limited-commercial and non-commercial digital assets. The otls scan accepted only .hda and .otl, so a package whose operators are all .hdalc was warned as containing no assets at all. All six extensions Houdini loads are now accepted — .hda, .otl, .hdalc, .otllc, .hdanc, .otlnc — and the warning names them instead of claiming only two exist. The lc and nc variants are ordinary HDAs saved under a restricted license.
  • Two doc comments described integrity checks hpm does not perform. The archive extractor claimed archives are “checksum- and signature-verified” before extraction, and RegistryEntry.sig described the signature as covering the checksum rather than the archive bytes that packer::sign_archive actually signs. Signature verification is still unimplemented; the comments and the docs/security.md note now agree on that, re-verified at 0.32.0.

[0.32.0] - 2026-08-26

Fixed

  • A version released for more than one platform is no longer listed once per platform. A registry answers /packages/<name> with one row per build, and RegistrySet::get_versions passed those rows straight through as if they were versions, so a package shipping a Windows and a Linux archive had every such version appear twice in any version listing. get_versions and RegistrySet::search now collapse a version’s builds to one entry, preferring the host’s build.
  • An unpinned range on a multi-platform package could resolve to another platform’s archive. resolve for a requirement like ^1 went through highest_matching, which compares version strings only: given several equal-version build rows it kept whichever the registry served last, with no host filtering at all. Collapsing builds before the comparison means it now sees the host’s build, matching what an exact-version lookup has always done via select_build_for_host.

Security

  • anyhow moved off 1.0.102, which carries RUSTSEC-2026-0190 (unsoundness in Error::downcast_mut(), patched in 1.0.103). cargo audit is clean again.

Changed

  • Breaking (library consumers only): hpm_core::packer::SigningKey is now ed25519_dalek 3.0’s type. It is a public re-export, so anything constructing a SigningKey to hand to pack must move to dalek 3 with us. The CLI is unaffected — key files are PKCS#8 PEM either way, and existing keys keep working untouched. This is what makes the release a minor rather than a patch.
  • Dependencies refreshed. ed25519-dalek 2.x → 3.0, base64 0.22 → 0.23 and petgraph 0.7 → 0.8 are the semver-major moves; the rest is a lockfile refresh within existing ranges. Signatures are byte-identical across the dalek bump, now pinned by a known-answer test over a fixed key and message so no future crypto or encoding bump can change the wire format unnoticed — every sig/kid already published stays verifiable. The tree lost 42 crates (350 → 308): dalek 3 drops the old digest/generic-array chain and the second copy of sha2 that came with it, and refreshing the lock pruned duplicate windows-sys and wit-bindgen trees.
  • petgraph’s graphmap feature is no longer requested. The graph is a DiGraph and never was a GraphMap, so the feature only ever pulled code that went unused.
  • hpm-cli no longer declares ignore. It calls hpm_core::packer’s build_ignore_rules and passes the result straight back, never naming the crate itself.

[0.31.1] - 2026-08-05

No functional change over 0.31.0 — the library and CLI behave identically. 0.31.0’s macOS binary was never published: a property test generated a path terminating in .., which has no file name, and asserted one anyway, so the macOS release worker failed on the test rather than on anything it was testing. The generator now produces the <scope>/<slug>@<version> shape an install actually creates, and the no-file-name case is pinned as its own test. Use this release rather than 0.31.0 if you are on macOS.

[0.31.0] - 2026-08-05

Fixed

  • A package that was already installed when its executable bit went missing is now repaired, instead of staying broken forever. 0.30.2 restores a lost executable bit as it extracts an archive, which only ever helps content hpm is about to extract. A package at a version you already have is never extracted again, so an affected install kept its programs at 0644 through every later install, sync, and hpm upgrade — the package’s own [scripts] entry went on failing with Permission denied (os error 13) on macOS and Linux, and the fix looked like it had done nothing.

    Reusing an installed tree now sweeps it with the same content-driven, additive rule (ELF / Mach-O / #! and no execute permission → mirror the read bits). The sweep runs once per installed version, recorded in a <name>@<version>.exec-modes file next to the package directory — outside the tree, since a package’s checksum is computed over its contents.

Added

  • StorageManager::repair_exec_modes() sweeps every installed package in one call and reports (swept, repaired). For an embedder that wants a user’s store repaired as part of its own update, rather than whenever something next happens to touch a given package. Cheap to call unconditionally — a tree already swept costs one small read.
  • exec_mode::mirror_read_bits(mode) exposes just the widening the repair applies (0o644 → 0o755, 0o640 → 0o750). For an embedder about to spawn a path its manifest declares as a program: the manifest is proof no content sniff can produce, it covers what a sweep structurally cannot reach (a dev copy, a file that appeared after the tree was swept), and the widening must match the sweep’s.

[0.30.2] - 2026-08-02

Fixed

  • A packaged program no longer arrives without its executable bit, so packages that ship a binary work on macOS and Linux. hpm pack wrote every archive entry as 0644 regardless of the file it came from, which quietly stripped the executable bit off anything a package ships as a program — a [scripts] entry pointing at bin/<platform>/<tool>, a bundled configure.sh. Installing such a package produced a tree whose own declared programs could not be run: the script failed at spawn with Permission denied (os error 13) on every Unix host, while the identical package worked on Windows, where executability is not a file mode. Pack now carries the source file’s executable bit into the archive. It is normalised to exactly 0755 / 0644 rather than copied verbatim, so the packing user’s umask cannot change the archive bytes — and therefore the package checksum — for an otherwise identical tree.

    Two consequences worth knowing. Existing published archives are unaffected until they are re-packed with this version; and because Windows has no file mode to read, an archive carrying a Unix program must be packed from a Unix host. Per-platform CI that builds each archive on its own worker already satisfies this.

  • A symlink in a package’s source tree no longer disappears from the archive, and a symlink in someone else’s archive no longer installs as a corrupt file. Two halves of one gap. Packing tested the link itself rather than what it points at, so every symlink was dropped without a word — a package laying out libfoo.so -> libfoo.so.1.2.3, the ordinary Unix convention, simply shipped without libfoo.so. A link to a file is now packed as a regular entry holding the target’s bytes; a link to a directory is skipped with a warning (its contents were never walked), and a broken link is skipped instead of failing the pack later with an unhelpful message. Extracting had the mirror-image fault: zip records a symlink as an entry whose payload is the target path, flagged only in mode bits nothing inspected, so it was written out as a regular file containing a path string. Such entries are now skipped, matching what tar extraction already did. Skipping rather than recreating the link is deliberate — a link is the one entry type that can redirect a later entry’s write outside the target directory, which validating the link itself would not prevent. Since packing now resolves links, hpm’s own archives never contain one.

  • Install now restores a lost executable bit rather than propagating it. hpm installs from arbitrary hosts — GitHub Releases, SideFX hpack, a studio’s own bucket — and a great many zip producers drop Unix modes entirely, so the problem above is not limited to archives hpm packed. Extraction now restores the executable bit on a file whose leading bytes identify it as a program (an ELF or Mach-O object, or a #! script) when the archive declares no execute permission for it. The repair is additive and content-driven: a mode the archive does declare is applied untouched, a restrictive mode is not widened past its read bits (0640 becomes 0750), and a file that is not a program is never made executable.

Security

  • Updated two transitive dependencies flagged by cargo audit: quinn-proto to 0.11.16 for RUSTSEC-2026-0185 (remote memory exhaustion from unbounded out-of-order QUIC stream reassembly, severity 7.5) and crossbeam-epoch to 0.9.20 for RUSTSEC-2026-0204 (invalid pointer dereference when formatting an invalid pointer). Lockfile only — no API change.

[0.30.1] - 2026-07-27

No functional change over 0.30.0; the hpm binaries are identical. The v0.30.0 tag’s Windows leg went red, so that release published only its Linux and macOS assets — 0.30.1 is the first 0.30.x carrying all three.

Fixed

  • The new manual-install conformance test compared paths with the native separator and so failed on Windows only. Houdini reports resolved variables with forward slashes on every platform (C:/Users/.../packages/manual-tool), while Path::display uses \ on Windows, so the assertion that the package root resolves to the extracted content folder compared C:/Users/... against C:\Users\.... The behaviour under test was correct — the same run shows Houdini 22.0.368 loading the package, warning about the absent recommended dependency, and reporting Disabled Packages (0) — only the assertion was wrong. It now normalises separators on both sides.

[0.30.0] - 2026-07-27

Fixed

  • A manually extracted package with dependencies loaded nothing at all. The {slug}.json bundled in a packed archive exists so a user can download one archive, unzip it into a Houdini packages directory, and have it work without HPM. It listed the package’s [dependencies] under Houdini’s requires, which is a hard gate: for any absent entry Houdini logs Package <dep> is required by <slug> but is either missing, disabled or invalid and then Package <slug> will be disabled — so the package contributed nothing, no HDAs, no environment, no toolbar. Nothing in that path could ever satisfy the entry: there is no resolver, and each dependency is a separate download the user has no automated way to obtain, so every package with a dependency was affected. Dependencies are now emitted as recommends, which keeps the diagnostic — Houdini warns, naming the missing package — while letting what the archive does ship load normally. HPM-managed installs are unchanged: they emit neither field, because HPM guarantees the dependency is installed before Houdini starts. Verified against Houdini 21.0.729, and pinned by a conformance test that drives the real generator output through hconfig.

  • Packed archives were not actually “usable by Houdini even without HPM” — the promise the generated {slug}.json exists for. hpm pack zipped content flat (bin/, otls/, … next to {slug}.json) while the generated json points at $HOUDINI_PACKAGE_PATH/{slug}/... — one level down. A user extracting the archive into a Houdini packages directory got a package that registers (env vars set) but loads nothing: every hpath/HOUDINI_PATH/ HOUDINI_DSO_PATH entry dangled, so OTLs, DSOs, and toolbars were silently absent (reported by SideFX for a published package; reproduced headless — flat layout registers 0 of the package’s 96 SOP operator types, wrapped layout registers all 96). Archives now use the Houdini “hpackage” layout the json expects: {slug}.json at the root next to a {slug}/ content folder. A hand-written {slug}.json ships once, at the root. hpm install detects the new layout, strips the {slug}/ wrapper (installed trees stay flat, hpm.toml at the root as before), and skips the root json (HPM generates its own package jsons); legacy flat archives and Git-style single-root archives extract exactly as before. The pack-time [[operators]] asset verification resolves declared sources at their prefixed archive paths.

  • hpm pack --output <dir> failed when the directory did not exist yet. It aborted with `Package error: failed to create archive

    /-.zip: No such file or directory (os error 2)` — the path in the message being the *archive*, not the missing directory, so the error read as "the archive couldn't be written" and gave no hint that a `mkdir -p` was all it wanted. This bites release scripts that pack into a `dist/` directory on a clean checkout. The output directory is now created if absent, and a genuine failure to create it reports that path.
  • A successful package download could fail with a bogus checksum mismatch. Installing or syncing occasionally aborted with Checksum mismatch: expected <...>, got e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 — the second value being the SHA-256 of no bytes at all. The archive had in fact downloaded correctly; the write to the download cache was only queued, not yet on disk, so the verification step that runs immediately afterwards read an empty file. The download is now flushed and made durable under a temporary name and renamed into place only once complete. This also fixes a second, longer-standing problem: a download interrupted partway (network drop, process killed) left a truncated file in ~/.hpm/cache/ that every later run treated as a complete cache hit, so the package stayed broken until the cache was cleared by hand. Partial downloads are no longer visible under the final name and can’t be mistaken for finished ones.

[0.29.5] - 2026-07-21

Fixed

  • Windows release-upload verification still failed after the 0.29.4 fix. The 0.29.4 change (assign the parsed JSON to a variable, then @(...) | Where-Object | Select-Object) did not actually cure the Windows PowerShell 5.1 array handling: ConvertFrom-Json emits a JSON array as a single non-enumerated object, so wrapping it in @() produced a one-element array containing the asset array, and the name filter leaked the whole array through — $asset.size was then an Object[] and the size check threw Cannot convert ... Object[] ... to Int64. As on 0.29.3, the upload itself succeeded and all three binaries were present on the release; only the verification read-back failed. The asset lookup now iterates the parsed result with foreach, which enumerates a ConvertFrom-Json array’s elements identically on PowerShell 5.1 and 7 and returns a single object.

[0.29.4] - 2026-07-21

Fixed

  • Windows release upload reported a false failure when verifying the uploaded asset. Under Windows PowerShell 5.1 an inline ConvertFrom-Json | Where-Object does not enumerate the parsed array, so the post-upload size check read the whole asset list instead of the matching asset and failed even though the upload had succeeded (this is why v0.29.3’s Windows leg went red despite all three binaries being present on the release). The asset lookup now assigns the parsed JSON to a variable and selects a single match, which enumerates correctly on both PowerShell 5.1 and 7.

[0.29.3] - 2026-07-21

Fixed

  • Re-running a release pipeline could publish a stale binary. The upload step appended || true (Linux, macOS) or wrapped curl.exe in try { ... } catch {} (Windows) so that re-running a tag would survive the HTTP 422 GitHub returns for an asset that already exists. That is not idempotence: GitHub rejects the upload and keeps the old binary, so a rerun after a code change republished the previous artifact while reporting success. Uploads now delete an existing asset of the same name before uploading, and verify afterwards that what landed on the release matches the file that was built.
  • The Windows upload step failed the pipeline on a re-run. PowerShell try/catch does not catch a native executable’s exit code — curl.exe sets $LASTEXITCODE rather than throwing — so the catch {} intended to swallow the duplicate-asset 422 was dead code and the step exited 1. This is why v0.29.2’s pipeline showed a Windows failure despite all three binaries being present on the release.

[0.29.2] - 2026-07-20

Fixed

  • Documentation audit: the registry examples pointed at a domain that no longer resolves. Every doc and doc-comment example used https://api.3db.dk/v1/registry with the alias houdinihub. api.3db.dk does not resolve at all, so the examples were not merely off-brand — they were broken. Replaced throughout with a registry URL that resolves.
  • --help referenced hpm sync, which was removed in favour of hpm install. Fixed in add --link’s help text and two internal doc comments.
  • hpm init --houdini’s help claimed the template default was >=20.5; it is ^21.
  • docs/security.md overstated hpm’s guarantees. It listed “unknown signer” as a mitigated threat and implied installs fail on a bad signature. hpm signs but never verifies: no install path reads the registry’s sig/kid fields, and SHA-256 is the only integrity check on download. The threat is now documented under “Not addressed”, with an explicit note that verification is the consumer’s responsibility.
  • docs/security.md’s lockfile example did not match the schema. It showed a type = "registry" source; LockedSource has only Url and Path variants.
  • Corrected registries.md (API registries are uncached and searched sequentially, not cached and parallel; yank filtering applies to range requirements but not exact pins), python-guide.md and architecture.md (the venv content hash is truncated to 16 hex chars, not 12, and hashes only names and versions — both files also carried a fabricated hash function that never existed), api-overview.md (GlobalDependencyGraph, ResolvedDependencies, ResolvedPackage and DEFAULT_SCRIPT_PYTHON do not exist; CliError has four variants, not six; exit code 2 is never emitted), testing.md (the documented CI matrix and proptest regression paths were fictional), and user-guide.md (hpm run --project is not a flag, --bare emits only hpm.toml, [install].path and parallel_downloads are inert, and prepend emits a JSON list).

Added

  • docs/manifest.toml, so the docs can be assembled into a second site alongside the existing mdBook build on Read the Docs. Contributor docs (architecture, API overview, testing) are now listed in SUMMARY.md too, so they render on both sites instead of being silently dropped.

[0.29.1] - 2026-07-18

No functional change over 0.29.0. The v0.29.0 tag failed CI and published no binaries, so 0.29.1 is the first release carrying that work — see the 0.29.0 entry below for what it contains.

Fixed

  • The Houdini conformance test no longer pins its fixtures to Houdini 21.x, which had been blocking every release since 0.28.0. The test builds fixture packages with PackageManifest::new, which defaults [compat].houdini to ^21; that lowers to an enable clause excluding Houdini 22, so Houdini skipped the fixture manifests entirely and only the never-gated project overrides manifest contributed. The env-merge assertions then failed with a diff that looked like broken merge semantics but meant “the fixtures never loaded”.

    The build workers carry both Houdini 21 and 22 and the test targets the newest, so this failed in CI while passing on a developer machine with only Houdini 21 installed. Because all three build-* workflows declare depends_on: check, the failure skipped every platform build — v0.28.0, v0.28.1 and v0.29.0 were all tagged without producing binaries.

    Houdini’s env merging is identical across 21 and 22; this was never an hpm emission bug. Verified by running the same emitted manifests through hconfig on 21.0.729 and 22.0.368. The fixtures now declare >=20, and a guard reports “package manifests did not load” instead of a misleading value diff if this regresses.

[0.29.0] - 2026-07-18

Changed (breaking)

Behavioral, for everyone:

  • A dependency’s registry = "<name>" pin now constrains resolution. A manifest that pins a registry previously resolved across all of them, so a package could have been coming from a different registry than the pin names. After upgrading, such a dependency resolves only from the pinned registry and fails if it is not there — which is the point, but it can turn a previously “working” install into an error that was always misconfigured. Pinning a registry that is not configured is likewise now an error.

  • Houdini manifests are named <creator>.<slug>.json. Migration is automatic (see Fixed), but it happens on the next hpm install per project, not at upgrade time.

Library API, for embedders (the desktop client):

  • ProjectPaths::package_manifest_path takes &PackagePath instead of &str, so a caller cannot pass something that is not a package identifier. Call sites pass &pkg.manifest.package.path.
  • StorageError gains a GlobalLedger variant; exhaustive matches need a new arm.
  • HoudiniRange::matches_version takes a third build: Option<u32> argument (new in this release, but noted since it is public).

Fixed

  • hpm clean --python-only no longer proposes deleting every venv on the machine, including in-use ones. VenvMetadata.used_by_packages was never written by any production code path — add_package_reference had no callers outside a proptest — so the “is this venv still used?” check compared the active package list against a permanently empty vec, matched nothing, and classified every venv as orphaned. Venv creation now records the packages that contributed Python dependencies, and a venv with no recorded owners is kept rather than collected, since empty means “provenance unknown” (a per-script venv, or one created by an earlier hpm) rather than “unused”.

    A venv with no recorded owners cannot be matched against the installed set at all, so it is collected only once it has been idle for 30 days. That covers both [scripts] venvs (which belong to a script, not a package) and venvs created by earlier hpm versions, without deleting anything in active use. Collecting a venv is never destructive — it is a content-addressed cache, rebuilt on demand — so this only trades rebuild time against disk.

    Owner references are scoped (creator/slug@version). The previous comparison used the bare slug, which would have let an unrelated package sharing a slug keep another creator’s venv alive once the list was populated.

  • Houdini manifests are now named <creator>.<slug>.json instead of <slug>.json. The slug alone is not a unique package identifier, so two dependencies from different creators sharing a slug (creator-a/tools and creator-b/tools) wrote the same file and the second install silently overwrote the first — Houdini loaded only one of the two packages, with no error. . separates the segments because both may contain -, which would make a - join ambiguous (a-b/c vs a/b-c).

    Migration is automatic: manifests written by an older hpm under the bare slug name are cleared by the existing stale sweep on the next hpm install and rewritten under the new name. No action required, but note the sweep only runs on install, so run hpm install once per project to clear the old files rather than leaving both names present.

  • hpm remove now actually deletes the dependency’s Houdini manifest. It built the path from the scoped dependency key, producing .hpm/packages/<creator>/<slug>.json — a nested path that never exists — so the removal was a silent no-op. It only appeared to work because the command re-syncs afterwards and the stale sweep caught the file.

  • A dependency’s registry = "<name>" pin is now honoured. The field parsed and round-tripped through hpm.toml, but nothing ever read it: every registry dependency resolved first-match-wins across the whole configured set. A manifest that pinned one registry could therefore be served the package from a different one, silently, with no diagnostic. Resolution, install, and hpm update now consult only the named registry, and pinning an unconfigured name is a hard error instead of a fallback to the rest of the set.

Added

  • hpm global add|list|remove — install a package into Houdini’s user preferences directory so it loads in every session of one Houdini version, with no project and no launcher wiring. Resolution goes through the configured registries exactly like hpm add, including --registry pins, and the emitted manifest is byte-identical to what a project install produces.

    --houdini <X.Y> is required rather than detected: hpm has no Houdini installation discovery, and the preferences directory is per-version, so a guess could write where Houdini never looks. HOUDINI_USER_PREF_DIR is honoured when set, with __HVER__ expanded as Houdini expands it.

    Houdini’s user packages/ directory is not hpm’s — it holds files from SideFX, other tools, and the user. So unlike a project install, which owns its output directory and sweeps unrecognized files from it, hpm global never scans that directory to decide what to delete. Installs are recorded in a ledger at ~/.hpm/global/houdini-<X.Y>.json, and removal deletes only the exact file the ledger records writing.

    The ledger is also a hpm clean GC root. A globally installed package belongs to no project, so the project-rooted mark-and-sweep would otherwise classify it as unreferenced and delete its store directory while the manifest kept pointing at it. An unreadable ledger aborts hpm clean rather than being read as “nothing is installed globally”.

    A package whose [compat].houdini excludes the target version is rejected before anything is written; installing it would emit a manifest whose enable expression is false, which Houdini ignores silently.

    Scope of this first cut: public packages only (the standalone CLI has nowhere to store credentials, so it resolves anonymously), and no hpm global update — with no manifest to rewrite, updating is hpm global add at the new version, which replaces the entry in place.

  • hpm add --registry <name>. Resolves from a single configured registry and records the pin in hpm.toml. Previously hpm add always wrote registry = None, so a pin could only be created by editing the manifest by hand. Not valid alongside --path. An unpinned hpm add is unchanged: it still resolves across the whole set and stays unpinned, since recording whichever registry answered first would silently narrow future resolution.

[0.28.1] - 2026-07-15

Fixed

  • method = "set" now emits a flat string, so it overwrites path-registered variables instead of appending onto them. Houdini seeds path-registered variables (OCIO, PYTHONPATH, HOUDINI_*_PATH) flat-first from its own $HFS/packages/*.json and then treats them as always-merge-able, so hpm’s previous list-form replace for set appended onto the seed (e.g. OCIO became builtin;project), which crashed Main Preferences on H22.0.367. A set value is now written as a bare string that overwrites the seed cleanly and load-order-independent — which is what set promises. prepend / append still emit single-element lists (they must stay merge-able). A genuinely conditional set ({ when, set } list) still lowers to list-form replace, since Houdini’s conditional-object array cannot be a flat string. Verified against real Houdini (H21.0.729 / H22.0.367).

[0.28.0] - 2026-07-13

Removed (breaking)

  • Pre-0.16 (“Manifest 1.x”) manifest support and hpm migrate. The read-side compatibility was scheduled for removal in 0.20.0 and is gone; old-format manifests now fail with a normal parse error.
  • Git registry flat-name index layout. Only scoped creator/slug index paths resolve; a non-scoped package name is an error.
  • Bare-OS registry platform tags ("LINUX", "WINDOWS"). These carried a silent x86_64 assumption; only canonical arch-suffixed tags (and universal) are recognized. Verified against a live registry: all current and historical entries already use canonical tags.
  • -p/--package manifest flag. The manifest path is -m/--manifest on every command (add, remove, update, list, install, build, audit).
  • Lockfile format-version gate and never-populated lockfile fields (per-dependency dependencies, python checksum/source/markers). Old lockfiles containing them still parse.
  • Dead API surface: ConfigBuilder, ConfigError alias, hpm migrate, the unused progress-bar framework, and ~30 other items with no callers (net -730 lines).

Changed (breaking)

  • Unknown fields and sections in hpm.toml are now parse errors (deny_unknown_fields); a misspelled section no longer vanishes silently.
  • Config files are layered as presence-aware overlays. Each layer (user, project) overrides exactly the values it sets; a project config that omits a section no longer resets it to defaults, setting only storage.cache_dir works, and a custom storage.home_dir re-derives its sub-directories. hpm registry add/remove edit the user config file directly instead of re-dumping the resolved config.
  • Silent degradations are now hard errors: malformed user config, a registry that cannot be constructed, a failed git pull (no more silently serving the stale cache), a corrupt git-registry cache, pack-time Houdini package.json or asset-index failures, and a failed post-remove lock regeneration.
  • DependencySpec::Simple merged into Registry. The pkg = "1.0.0" shorthand still round-trips byte-for-byte.
  • Typed errors in hpm-core: the python subsystem and script runner return PythonError/ScriptRunError instead of anyhow::Error; RegistrySet::from_configs* returns Result; RegistryEntry.platform is a typed PlatformTag; Condition.os/install_source are enums.
  • --output is never silently ignored: commands honor JSON output (list, check, update, search, pack) or reject non-human formats with a clear error; hpm check -q now reports failures on stderr.

Added

  • Archive checksum verification on install. Registry downloads are verified against the entry’s cksum before extraction; a corrupt cached archive is removed and the install fails with a checksum mismatch instead of installing tampered bytes. Entries without a checksum install with a warning.
  • Git registries now perform host-platform build selection, matching the API registry: host build first, then universal, else a no-compatible-build error.
  • hpm search reports registries that were unreachable instead of silently returning partial results.

Fixed

  • Installs no longer silently skip unreadable files during the copy into the package store; walk errors abort the install.
  • A malformed project [compat] no longer silently drops the Houdini version used for Python ABI selection (which could pin a venv to the wrong CPython).
  • Checksums are always computed from the actual tree. The on-disk .hpm-checksum cache (never invalidated, so silently stale) is gone, and one shared tree hasher backs both install-time recording and lockfile verification.
  • hpm add/remove/update preserve comments and formatting in hpm.toml (formatting-preserving toml_edit editing, atomic writes).
  • hpm add without a version now picks the highest non-yanked semver instead of relying on registry response order.
  • One default Python version (3.11): bare resolution previously defaulted to 3.9, which the Houdini ABI mapping refuses and could pin an ABI-mismatched venv.
  • hpm build and hpm pack share one staging walk and can no longer disagree on what ships where.
  • Project [runtime] append/prepend overrides no longer clobber the package values they were meant to extend. Houdini only honors method on a custom (non-registered) variable when the variable’s first definition uses a JSON list value; with the flat strings hpm emitted, every later entry silently overwrote the variable (WARNING: var X overwritten), so the override — emitted last — won everywhere. The 0.19.0 override fix appeared to work because it was validated on PYTHONPATH, a registered path variable where methods work regardless. Every emitted value is now a single-element JSON list, making all hpm variables mergeable. Verified against a real Houdini (21.0.688 / 21.0.729) with a new license-free hconfig conformance test.
  • method = "set" now emits Houdini’s replace. Houdini has no set method (WARNING: Unsupported method value: set); it only appeared to work because flat strings overwrote anyway.
  • Conditional [runtime] values now deliver the documented first-match semantics. Houdini applies every matching element of a conditional-object array, not the first match, so emitted branches are now compiled mutually exclusive — each branch’s expression AND-s on the negation of every earlier branch (by comparison-flipping joined with or; the expression grammar has no not).
  • Unconditional conditional branches (when = {} fallbacks and install_source-only gates) actually apply now. They were emitted as {"true": value}, but Houdini’s expression grammar has no boolean literals — that object silently defines a stray variable named true instead. A leading unconditional branch now collapses the value to a plain (list) value, and a trailing fallback’s expression is exactly “no earlier branch matched”. In particular the canonical HDK pattern (dev-gated build path plus published dso/ fallback) now works: a dev install gets exactly the build path, a registry install exactly the fallback.
  • = version comparators (houdini = "=21") parse. They were documented as an alias of == but fell through to the bare-version parser and errored.
  • Generated package files no longer draw WARNING: Unsupported value for requires (and friends) from Houdini. Absent optional fields are omitted instead of serialized as null.

Changed

  • Project [runtime] entries are emitted once, in a dedicated ~hpm-project-overrides.json. Houdini processes package files in byte-wise ascending filename order and ~ sorts after every slug character, so the overrides manifest always applies last: an append/prepend override lands after (or before) all package contributions and is applied exactly once, no matter how many packages declare the same variable (previously it was emitted into every declaring package’s file). Consequences: a project [runtime] entry now takes effect even when no package declares the variable, and $HPM_PACKAGE_ROOT in a project-level entry — which has no owning package — is passed through with a warning instead of being substituted against an arbitrary package.

Added

  • License-free Houdini conformance test. Generates real package files and asserts the values a real Houdini resolves, via HOUDINI_PACKAGE_VERBOSE=1 hconfig. Auto-discovers the install ($HFS, then platform-standard locations) and skips when none is found; HPM_REQUIRE_HOUDINI=1 (set in the CI check pipeline) turns the skip into a failure. A model-based property test additionally runs randomized emission output through an executable model of the verified Houdini env semantics.

[0.27.1] - 2026-07-08

Fixed

  • Concurrent dev launches of the same path dependency no longer fail with PackageInUse. Dev (path-dep) copies are now content-addressed: a copy installs into _dev/<slug>@<version>/<source-hash>/ and the generated Houdini manifest points hpath there, instead of clearing and recopying one shared _dev/<slug>@<version>/ directory in place. A rebuild writes a new hash directory while a concurrently-running Houdini keeps mapping the one it was launched from, so nothing is ever removed out from under a live process. This eliminates the Windows ERROR_ACCESS_DENIED (os error 5) hard-failure that a second open session triggered during the rebuild-then-relaunch loop, and makes overlapping dev sessions of the same package safe on all platforms. An unchanged workspace resolves to the existing hash directory and is reused untouched.

Changed

  • hpm clean reclaims superseded dev copies. With copies now content-addressed, each rebuild leaves a directory behind; cleanup prunes every hash directory except the current source’s for a still-referenced install (whole containers are still removed for orphaned installs). Reclamation is best-effort and expects Houdini sessions to be closed — a copy still mapped by a live process is skipped rather than force-removed. The internal .hpm-devsrc fingerprint sidecar and content-digest freshness check are removed, superseded by the content-addressed layout.

[0.27.0] - 2026-07-07

Added

  • HPM_HOUDINI_MAJORS is now part of the hpm build prepack environment. A package that builds one native artifact per Houdini major (a compiled USD resolver, say) can restrict the matrix by reading this variable: space-separated major numbers (e.g. 21 22), unset/empty meaning “build the full declared matrix”. hpm build sets it from a new --houdini-majors flag and forwards the value verbatim without interpreting it. When the flag is omitted an HPM_HOUDINI_MAJORS already present in the environment passes through unchanged, so an out-of-process producer (e.g. a desktop launcher that discovers the machine’s installed majors) can set it while an explicit --houdini-majors still overrides. This promotes the previously ad-hoc, unprefixed HOUDINI_MAJORS convention into the first-class HPM_* build-env contract alongside HPM_BUILD_PROFILE and HPM_PLATFORM.

[0.26.3] - 2026-07-04

Fixed

  • Dev launches of a native path dependency no longer fail with os error 5 when another Houdini is open. A copy-mode path dep (including a link = true native package, which is installed as a copy) was cleared and recopied on every sync. For a native package the copy holds the DSOs a concurrently-running Houdini has memory-mapped, so on Windows the removal step failed with ERROR_ACCESS_DENIED and surfaced as “Package <name>@<version> is in use by another process” — even when the package content was unchanged and the user simply had a sibling Houdini open. Dev copies now record a fingerprint of the source workspace (relative path + length + mtime per file) in a .hpm-devsrc sidecar; a re-sync whose source is unchanged skips the clear-and-recopy entirely, matching the “already installed” short-circuit the registry/URL specs already had. A genuinely changed workspace still recopies, and a truly loaded, changed DLL still reports PackageInUse (you can’t overwrite a mapped binary). Linux/macOS were never affected — open files unlink cleanly there.

[0.26.2] - 2026-07-02

Fixed

  • Link-mode dev installs no longer break in-place native (DSO) rebuilds. A path dependency installed with link = true (hpm add --path --link, or a { path, link = true } spec) that declares concrete [compat].platforms (anything other than universal) is now installed as a copy instead of a symlink/junction. Previously the junction made the workspace build output the same physical file Houdini had memory-mapped, so rebuilding the DSO/DLL while a session started from that dev install was running failed with Windows LNK1104 / ERROR_SHARING_VIOLATION. Link-mode buys nothing for native code (a mapped DSO needs a relaunch to reload regardless), so native packages are transparently copied; the rebuilt binary is picked up on the next dev launch. Pure-data / pure-Python / universal-only link installs are unaffected and keep live-edit behavior.

[0.26.1] - 2026-06-30

Changed

  • script_run::ScriptSink now requires Send (pub trait ScriptSink: Send). Lets embedders drive run_prepack / run_script from a multi-threaded executor (e.g. a Tauri application awaits the runner inside tauri::async_runtime::spawn, which requires Send + 'static futures). Every real sink is already Send, so this is a no-op for existing implementations including the CLI’s Console sink.

[0.26.0] - 2026-06-30

Added

  • Shared [scripts] runner in hpm-core (script_run module). The prepack/script-running loop that previously lived only in the hpm binary is now a library entry point: run_prepack, run_script, and prepare_script, parameterized over a ScriptSink (spawn + diagnostics). Embedders that build install images out-of-process can run a package’s scripts through the exact same env contract (HPM_PACKAGE_ROOT, per-script venv, package-env, PATH/VIRTUAL_ENV/PYTHONPATH) as hpm run / hpm build, instead of re-composing it and drifting. The CLI’s hpm run and hpm build prepack now both route through it.

Changed

  • Prepack scripts now go through the full script-env composition. As a side effect of the shared runner, table-form [scripts] used as prepack steps get their per-script uv interpreter on PATH like any other hpm run script. No manifest or CLI-behavior change for existing packages.

[0.25.0] - 2026-06-29

Added

  • hpm pack --verify-assets. Fails the pack (and deletes the produced archive) when any [[operators]] source is missing from the archive, instead of only warning. Recommended in CI so a package never publishes an asset index that advertises a file it doesn’t ship.
  • Per-platform [[operators]] source. source may now be a platform-keyed table (mirroring [stage.platform.*]) as well as a single path, so a DSO operator whose binary differs per platform (.so/.dll/.dylib) declares one entry per platform. Each per-platform pack resolves and emits the concrete path for the platform it targets; operators not shipped for that platform are omitted from its index. Keys are validated against [compat].platforms.

Changed

  • [[operators]] hdk kind renamed to dso. The kind value now names the shipped file artifact — dso parallels hda and matches Houdini’s own dso/ plugin directory — rather than the HDK toolkit used to build it. The emitted asset kind in hpm pack --json changes accordingly (hdk_operator → dso_operator). The [[operators]] index is new in 0.24.0 and not yet consumed by any registry, so this is a safe rename.

[0.24.0] - 2026-06-29

Added

  • Package asset index from hpm pack. Authors can declare the operators (node types) their package bundles in a new [[operators]] manifest array (kind = "hda"|"hdk", type_name, category, plus optional label, tab_submenu, icon, source). hpm pack --json now emits these as an assets array alongside the existing checksum/signature fields, so a registry can offer node-level search (“which package ships an rbd_configure SOP?”) without ever downloading or opening an archive. Pack warns when a declared source file is missing from the produced archive. HPM uses author declarations rather than parsing HDA/DSO files because the HDA container format is officially undocumented and may change between Houdini versions, and a compiled DSO does not expose operator names offline.

Fixed

  • Diagnostic logs no longer pollute stdout. Tracing output and the hpm check spacer lines now go to stderr, so machine-readable output is clean: hpm pack --json (and any --output json* command) emits only its JSON payload on stdout. Previously the pre-pack check logged [OK] lines and blank spacers to stdout ahead of the JSON, forcing consumers to parse the last line.

[0.23.0] - 2026-06-25

Added

  • Optional label and description metadata on table-form [scripts] entries. Package authors can attach a human-readable display name and a one-line summary to a script, for tools that present a package’s scripts to end users (menus, buttons, tooltips). The fields are purely informational — HPM never acts on them (hpm run ignores them; hpm check only echoes them back) — and are omitted from round-tripped manifests when unset. Consumers fall back to the entry key when label is absent.

[0.22.2] - 2026-06-16

Fixed

  • hpm run no longer passes script arguments with literal quotes on Windows. Forwarded args (e.g. hpm run task -- foo 1001 1010) arrived in the script’s sys.argv wrapped in extra double quotes — 1001 became the 6-character string "1001" — which broke any script that parses its args (int conversion, argparse, path opening). The args were quoted once for the shell and then re-escaped a second time by Rust’s command spawner, so the quotes survived into the child’s argv. The Windows command line is now built verbatim and handed to cmd /S /C so the per-arg quoting reaches the child unchanged. Affects all script execution, including package-env scripts.

[0.22.1] - 2026-06-16

Fixed

  • Package archives are now byte-for-byte reproducible. hpm pack stamped each zip entry with the current time, so repacking an unchanged tree could produce a different archive — and a different checksum — whenever two packs straddled the 2-second MS-DOS timestamp boundary. This intermittently broke the determinism the package checksum relies on (it surfaced as a Windows CI test failure). Entry timestamps are now pinned to a fixed epoch.

[0.22.0] - 2026-06-16

Added

  • package-env = true for [scripts] entries. A script can now opt into running inside the package’s full resolved environment instead of an isolated per-script venv. hpm run <script> then builds the same environment hpm install materialises for Houdini — a merged uv venv resolved from [python_dependencies] across the project and its installed dependencies, with every package’s python/ on PYTHONPATH — so a script that ships in the package (e.g. a render-farm task) can import the package and its deps without re-implementing the venv/deps/PYTHONPATH dance. The interpreter is the project’s Houdini-mapped CPython (a per-script python is ignored); any requirements on the entry are layered on top. Resolved read-only from hpm.lock + the global store, so it never fetches packages or rewrites generated Houdini manifests; run hpm install first.

[0.21.0] - 2026-06-15

Added

  • hpm registry add --if-not-exists. Adding a registry whose name already exists is still an error by default, but --if-not-exists turns that into a no-op (exit 0) so provisioning scripts can re-run safely.

Fixed

  • hpm install now surfaces the real reason a dependency failed to resolve, instead of collapsing every cause into a generic Failed to sync project dependencies. The CLI prints the full error chain, so the three common failures read distinctly:
    • No registries configured: Cannot install <pkg> <ver>: no package registries are configured. Run 'hpm registry add <url>' to add one. (Previously the install/sync path resolved against an empty registry set and reported a misleading “not found”.)
    • Package/version not found: Failed to resolve <pkg> <ver> from registry: Version '<ver>' of package '<pkg>' not found in registry.
    • The full cause chain is also included in --output json error output, which previously emitted only the category label (Package error).

[0.20.0] - 2026-06-11

Added

  • Build profiles for hpm build. A second axis orthogonal to --platform, for packages whose native binaries can be built more than one way — typically an optimized release (the default) and a symbol-bearing debug variant for attaching a debugger to an HDK plugin.
    • hpm build --profile <name> (default release). The selected profile is exposed to [stage].prepack scripts as HPM_BUILD_PROFILE, so one script can do cmake --build --config $HPM_BUILD_PROFILE instead of duplicating per-build-type scripts. The resolved target platform is exposed alongside it as HPM_PLATFORM. Both are set only on the hpm build prepack path, not for a standalone hpm run.
    • Optional [stage.profile.<name>] manifest tables make a profile build reproducible from hpm.toml. A profile layers its own prepack/include/exclude/place rules onto the base [stage]: prepack replaces the base when non-empty, include/exclude append, and per-platform place rules append (so e.g. the debug profile can ship Windows PDBs alongside the DSO). Profile platform keys validate against [compat].platforms like the base [stage.platform.*] tables.
    • hpm pack, archive naming, and the registry format are unchanged; profile selection is a build-time concern only.

[0.19.1] - 2026-06-10

Fixed

  • Houdini 20.5 now maps to Python 3.11, not 3.10. SideFX’s Houdini 20.5 platforms page states the main builds are built against Python 3.11, with a Python 3.10 build available only as a separate download. HPM was mapping 20.5 to the alternate 3.10 interpreter, so for a stock 20.5 install it resolved dependencies and built venvs against 3.10 while the embedded interpreter was 3.11 — risking wheel/ABI mismatches at import time inside Houdini. map_houdini_to_python_version now returns 3.11 for 20.5+. Source: https://www.sidefx.com/docs/houdini/news/20_5/platforms.html

[0.19.0] - 2026-06-02

Fixed

  • Project [runtime] append/prepend overrides now combine with the package value instead of replacing it. When a project’s [runtime] override targeted a key that an installed package also declared, HPM took the project’s entry wholesale (project_override.or(pkg_entry)), dropping the package’s own contribution. This made method = "append" and method = "prepend" behave exactly like set — picking either in the project config silently overrode the package-provided value (most visibly PYTHONPATH). The override loop in create_houdini_package_with_python now branches on the override’s method: set still replaces, while append/prepend emit the package’s original entry first and then the project’s entry into the generated package.json, so Houdini merges them in load order with the requested method.

Changed

  • Behavior change for existing projects. Any project that set an append/prepend [runtime] override expecting it to replace the package value will now combine instead. Switch such overrides to method = "set" to keep the old replace behavior.

[0.18.1] - 2026-06-01

Fixed

  • One corrupt cached manifest no longer wedges the whole CAS. A package cached with an invalid platform (the real-world trigger was macos-universal, which is not a valid Platform) made PackageManifest::from_path return a parse error. StorageManager::parse_installed_package propagated that Err up through collect_installed_packages -> list_installed, aborting the entire listing. Because reconcile, hpm_list_packages, env-var discovery, and project sync/launch all funnel through list_installed(), a single broken cached package broke all of them — even for projects that did not depend on it. A malformed manifest is now warned and skipped (mirroring the existing not-found skip), so the rest of the store stays usable and the broken package simply will not resolve from CAS.

[0.18.0] - 2026-05-29

Added

  • Backwards-compatible reading of pre-0.16 (Manifest 1.x) hpm.toml files. The 0.16.0 “Manifest 2.0” rename ([houdini] -> [compat].houdini, [env] + [dev.env] -> [runtime], [native] -> [compat].platforms + [stage], [scripts.platform.<os>] -> conditional cmd) meant the new parser silently dropped the old top-level sections — a package published with the old schema would install with its Houdini range, env vars, and native placement gone. Old-format manifests are now detected and converted to the current shape on load (transparently, so installs of already-published packages keep working), with a deprecation warning pointing at hpm migrate. Read-side legacy support is removed in 0.20.0 (hpm_package::LEGACY_MANIFEST_SUNSET).

  • hpm migrate command. Rewrites a pre-0.16 hpm.toml to the current schema in place, backing the original up as hpm.toml.bak. --stdout previews the result without writing; --check reports whether migration is needed (non-zero exit if so) and writes nothing — useful as a CI gate. The [native] -> [stage] step is best-effort: the old files globs were filters, while [stage.platform].place rules need a destination, so the derived to paths are flagged for review both in the terminal and as a comment block atop the rewritten file.

[0.17.1] - 2026-05-28

Fixed

  • Windows _dev/ install handling. is_link_entry propagated ERROR_NOT_A_REPARSE_POINT (Windows error 4390) from junction::exists as a hard IoOp, breaking every code path that inspected a DevCopy install (plain directory, not a junction). Symptoms on Windows: dev installs never showed up in orphan detection (cleanup_comprehensive_reports_dev_orphans, unreferenced_dev_install_is_orphan, unresolvable_path_dep_does_not_block_cleanup), and switching a dev install from copy to link raised an IoOp instead of replacing the entry. Regression introduced when 0.17.0’s b756c36 refactor: remove silent-fallback patterns that hid bugs tightened the prior junction::exists(path).unwrap_or(false) into a propagating call — the tightening dropped a legitimate negative answer along with the failure cases. Fix: match on junction::exists, route 4390 to Ok(false), propagate everything else. Linux and macOS were never affected.

[0.17.0] - 2026-05-28

Added

  • hpm check warns when a native-binary package leaves its Houdini range unbounded above. A package declaring [compat].platforms ships DSOs whose ABI is coupled to one Houdini major; an unbounded range like ">=21" lets the package install cleanly on a newer Houdini and then crash at load. The warning suggests either a bounded form ("^21") or an explicit tested range (">=20.5, <22"). Pure-data / pure-Python packages (no [compat].platforms) are unaffected.
  • hpm-cli now exposes a library target. Cli, Commands, ColorChoiceArg, OutputFormatArg, RegistryAction, and the dispatch entry pub async fn run() -> ExitCode live in hpm_cli so integration tests and embedded hosts can drive the CLI without spawning the binary. The hpm binary is now a six-line #[tokio::main] wrapper.
  • hpm_package::ValidationLevel / ValidationReport lift the soft publish-quality checks out of hpm check. PackageManifest::validate() still returns the first structural error; the new validate_with(level) returns a report that separates errors from advisory warnings. Publish level adds warnings for missing description, authors, keywords, and [compat].houdini. hpm check now consumes the report; future hpm publish can promote those warnings to errors.
  • hpm_package::IoOp shared across error enums. Every IO-shaped variant in StorageError, ProjectError, and DiscoveryError collapses to a single Io(IoOp) carrying { op, path, source }. The verbose .map_err(|e| DirectoryRead(e.to_string())) pattern is replaced by IoOp::wrap("read directory", &path, e) at call sites; the underlying io::Error is preserved as #[source] for chain walkers.

Changed

  • hpm init default [compat].houdini is now "^21" (Houdini 21.x only) instead of ">=20.5". The previous default left the upper bound open, which is the wrong default for any package that ships native binaries. Authors of pure-data packages can widen the range explicitly after hpm init.
  • PackageManifest collection fields drop Option. dependencies, python_dependencies, runtime, registries, compat, stage, and scripts are now bare collections / section structs with #[serde(default, skip_serializing_if = ...)]. An absent TOML section and an empty one round-trip to the same in-memory representation, which is what every caller already assumed. PackageInfo.authors, keywords, and categories similarly drop the Option<Vec<_>> wrapper. API break: PackageManifest::new now takes authors: Vec<String> instead of authors: Option<Vec<String>>; pass Vec::new() for the no-authors case. Callers matching on these fields no longer pattern-match Some/ None — read the collection (or section) directly and check is_empty() / is_none() on inner Option<_> fields where they remain.
  • [compat].platforms is now Vec<Platform> instead of Vec<String>. Unknown identifiers ("linux-arm64", "macos-universal", etc.) are rejected at TOML parse time by Platform’s TryFrom<String> rather than bubbling out of a separate validate pass.
  • StorageManager install methods renamed for clarity: install_from_path → install_into_cas, install_from_path_dev → install_as_dev_copy, install_from_path_dev_link → install_as_dev_link. The path source is the same in all three; the renames highlight the dimension that actually varies (CAS vs _dev/ and copy vs link).
  • Type renames in hpm-package: EnvValueSpec → EnvValue, EnvValueVariant → EnvValueBranch, WhenSelector → Condition, compile_when → compile_condition. The serde-facing when field name in hpm.toml is preserved — no manifest schema change.
  • relative_path_to_forward_slash moved from hpm-core::path_util to hpm-package::path_util. Path normalization for archive entries, content hashes, and glob matching is now part of the package-format layer; hpm-core depends on it rather than owning it.
  • DependencyError::StorageRead(String) is now Storage(Box<StorageError>) carrying the typed source error, and StorageError::ProjectDiscovery(String) is now ProjectDiscovery(#[from] DiscoveryError). Callers can now match on the underlying error type instead of inspecting a stringified display.

Internal

  • Source files split for readability. hpm-config/lib.rs, hpm-package/manifest.rs, hpm-core/storage.rs, and hpm-core/project.rs each grew past 1000 lines covering several independent concerns. Section types now live in per-section submodules; the parent files keep only the top-level type and its impl. No public-API change beyond the renames already listed.
  • #[cfg(test)] mod proptest_helpers; and mod cli_validation_tests moved to integration tests at crates/hpm-package/tests/properties.rs and crates/hpm-cli/tests/cli_validation.rs. The strategies and harnesses no longer compile as part of the library.

Refactor pass (post-0.16.0)

Workspace-wide consolidation pass — structural cleanup, no behavioural regressions intended. Item-by-item changes:

Removed

  • hpm-python crate. Its only consumers were hpm-core and hpm-cli, both internal to this workspace. Folded into hpm-core as the hpm_core::python submodule. External callers rewrite use hpm_python::X to use hpm_core::python::X. The workspace goes from five crates to four; ProjectError::PythonResolution keeps its Box<dyn Error> source but the dep-graph rationale for it (avoiding anyhow in hpm-core) no longer applies.
  • .pre-commit-config.yaml. Duplicated the .githooks/pre-commit native hook with a Python tool prerequisite. The native hook is now self-contained (no just dependency either) and remains the one install path: git config core.hooksPath .githooks.
  • Unused workspace tokio-test and thiserror-in-hpm-config deps (cargo machete).

Renamed

  • hpm_config::ProjectConfig → ProjectPaths, file crates/hpm-config/src/project.rs → project_paths.rs. The type carries per-project derived paths (packages_dir, lock_file, manifest_file), not user-facing config; the new name says so. Config::load_project_config(root) → Config::project_paths(root) (no load_ because it derives paths from a project root, no disk read).
  • hpm_python::dependency → hpm_core::python::collection and hpm_core::dependency → hpm_core::graph. Three crates each had a dependency.rs module covering different concerns (manifest specs, Python collection, runtime graph). Renames eliminate the grep collisions; hpm_package::dependency (the foundational spec module) keeps its name.

Changed

  • LockError reshape. The Read/Parse/Serialize/Write variants — structurally identical to ConfigError’s — collapse into a single File(#[from] hpm_package::TomlFileError) variant. Callers matching LockError::Read { path, source } etc. must now match LockError::File(TomlFileError::Io(IoOp { path, source, .. })) or similar; the underlying data is unchanged.
  • hpm_config::ConfigError is now a name re-export of hpm_package::TomlFileError. The four old variants are gone for the same reason; same migration path.
  • RegistryError::IoError(std::io::Error) and PackError::Io(io::Error) now wrap hpm_package::IoOp for consistency with the rest of the workspace’s IO error shape. Display goes from "I/O error: ..." to "failed to <verb> <path>".
  • DependencyGraph::nodes() returns impl Iterator<Item = &PackageNode> instead of &HashMap<PackageId, PackageNode>. Internally backed by petgraph::DiGraph; cycle detection switched to petgraph::algo::tarjan_scc and now reports each cycle once as an SCC. add_node is idempotent on PackageId; mutating an existing node goes through the new node_mut(&id). add_dependency for a missing endpoint is a no-op (formerly created a phantom edges entry).
  • ResolvedDependencySet::add_package now canonicalizes the name per PEP 503 on insert. Previously two paths could feed Foo-Bar and foo_bar and produce two entries with two distinct content hashes (one of them mismatched against the dist-info on disk). The fix closes that latent venv-rebuild bug.

Added

  • hpm_package::TomlFileError — shared Read/Parse/Serialize/ Write shape for TOML-on-disk files; consumed by ConfigError and by LockError’s File variant.
  • hpm_package::atomic_write(path, content) -> Result<(), IoOp> — stage-and-rename helper. Four pre-existing crash-safe writes (Config, LockFile, Houdini manifest, venv metadata) collapse to one implementation site.
  • hpm_package::user_home() — $HOME/%USERPROFILE% lookup. Replaces byte-identical pub(crate) helpers that lived in hpm-config and (formerly) hpm-python.
  • hpm_core::python::pep503::normalize — exposed PEP 503 name canonicalization (used by add_package and venv presence checks).
  • ResolvedDependencySet::from_pip_compile_output(output, py_version) — named constructor parsing uv pip compile stdout. Replaces two near-identical parsers in resolver and script_env.
  • hpm_cli::error::CliResultExt — extension trait with .cli_package(cmd) / .cli_network(cmd) / .cli_config(cmd) / .cli_io(cmd) that lift a Result<T, E> into a CliResult<T> with the standard Use 'hpm <cmd> --help' … hint. Fifteen identical map_err blocks in the CLI dispatch loop collapse to one method call each.

Internal

  • All #[cfg(test)] mod tests { ... } blocks longer than ~300 lines pulled into sibling <file>_tests.rs files, included via #[cfg(test)] #[path = "<file>_tests.rs"] mod tests;. Source files now reflect actual code surface: manifest.rs 1850 → 492, storage.rs 1761 → 766, project.rs 1606 → 969, env_value.rs 822 → 521 lines.
  • time crate replaces hand-rolled date math. lock.rs had ~70 lines of leap-year accounting in ymd_to_days / days_to_ymd / is_leap_year. Replaced with time::Date::from_calendar_date + OffsetDateTime::now_utc() and format_description!.
  • .githooks/pre-commit is now self-contained (cargo fmt --check
    • cargo clippy directly), no just prerequisite. The pre-commit recipe in justfile stays as a manual-invocation CLI.

[0.16.0] - 2026-05-28

Manifest 2.0. Five sections of hpm.toml change shape; older manifests will not parse. The redesign was driven by making the source/built distinction first-class — the underlying motivation is documented in the user guide’s [stage] and “Workflow notes” sections.

Added

  • [stage] section: how the install image is derived from the workspace. Replaces the [native]-only filter model with a more general placement model. Fields: output_dir (default "dist"), prepack (list of [scripts] entries run before staging), include / exclude (gitignore-style globs on top of .gitignore and .hpmignore), and [stage.platform.<plat>].place = [{ from, to }] per-platform placement rules. Each from is a workspace-relative glob; to is either a directory (ends with /, basename appended) or a literal archive path. Useful for HDK plugins whose .dylib lives at build/Release/foo.dylib in the workspace but should ship at dso/macos-aarch64/foo.dylib. See [stage] in the user guide.

  • hpm build command. Materialises the install image into a directory. Runs [stage].prepack scripts in sequence, then copies workspace files into the output dir using the same rules hpm pack applies. --output <dir> overrides [stage].output_dir per invocation — users running multiple Houdini sessions in parallel point each at its own --output <tmpdir>, so rebuilding one session’s image never fights another session’s loaded DSOs on Windows. Other flags: --platform, --no-prepack, --no-clean.

  • [compat].platforms field. Declares the platforms this package supports. [stage.platform.<plat>] entries must reference a platform listed here.

  • install_source axis on [runtime] conditional variants. Filters a branch by install context: "dev" matches path-installed packages, "registry" matches registry/URL installs, absence matches both. The axis is hpm-side: branches gated to a non-matching install source are filtered out before the Houdini package.json is generated, so they never appear in the runtime expression.

Changed

  • [houdini] → [compat].houdini. The min_version / max_version pair collapses into a single Cargo-style range string (">=20.5", "^21", ">=20.5, <22"; bare versions alias caret). Same grammar when = { houdini = ... } already used inside conditional [runtime] values, so the manifest now speaks one Houdini-version vocabulary. Python ABI selection extracts the lower bound. CLI: --houdini-min / --houdini-max collapse into --houdini <range>.

  • [env] + [dev.env] → [runtime]. A single table. The dev/registry distinction now lives on the when.install_source axis of each conditional variant. A typical HDK pattern:

    [runtime.HOUDINI_DSO_PATH]
    method = "prepend"
    value = [
      { when = { install_source = "dev" }, set = "$HPM_PACKAGE_ROOT/build/Release" },
      { when = {}, set = "$HPM_PACKAGE_ROOT/dso" },
    ]
    
  • [native] → [stage]. Per-platform filtering moves into [stage.platform.<plat>].place rules with explicit from / to paths. The platforms list moves to [compat].platforms.

  • [scripts.platform.<os>] → conditional cmd inside the script entry. Per-host script variation uses the same when-grammar as [runtime], restricted to the os axis:

    [scripts.register]
    cmd = [
      { when = { os = "windows" }, set = "tool.exe register" },
      { when = {}, set = "tool register" },
    ]
    

    Other axes on a script when are rejected at manifest validate time — HPM has no Houdini-version or Python context at hpm run time.

Removed

  • [houdini] section. Use [compat].houdini.
  • [env] and [dev.env] tables. Use [runtime] with install_source on conditional variants.
  • [native] section. Use [compat].platforms and [stage].
  • [scripts.platform.<os>] sub-tables. Use conditional cmd values on individual script entries.
  • HoudiniConfig, NativeConfig, NativePlatformFiles, DevSection, and PlatformScripts types are gone from the public API. The replacements are CompatConfig, StageConfig, PlatformStaging, StagePlatformRules, and PlaceRule.
  • ScriptEntry::cmd() -> &str. Conditional entries need a host OS to resolve; use ScriptEntry::resolve_cmd(host_os) instead.
  • --houdini-min and --houdini-max flags on hpm init. Use --houdini <range>.

Migration

As of the Unreleased section above, old-format manifests are read automatically and hpm migrate rewrites them to the new shape; this note stands for the 0.16.0–0.17.1 window, where migration was manual. Each section’s rewrite is mechanical:

OldNew
[houdini] min_version = "20.5"[compat] houdini = ">=20.5"
[env] entry + [dev.env] entry on the same keyOne [runtime] entry whose conditional value has one variant per install_source.
[native] platforms = [...] + [native.<plat>] files = [...][compat] platforms = [...] + [stage.platform.<plat>] place = [{ from, to }].
[scripts.platform.<os>] name = "cmd"[scripts.<name>] cmd = [{ when = { os = "<os>" }, set = "cmd" }].

[0.15.0] - 2026-05-27

Added

  • [dev.env] table in hpm.toml for dev-only environment contributions. Mirrors the [env] value shape (flat string, conditional { when, set } variants, $HPM_PACKAGE_ROOT substitution, per-OS / per-Houdini-version gating) but only fires when the package is loaded via a path dependency ({ path = "..." } or { path = "...", link = true }). Motivating case: HDK plugin development, where a package’s build output lives in its own source tree but HOUDINI_DSO_PATH = "$HPM_PACKAGE_ROOT/build/Release" is a personal-machine path that must not ship in the published archive’s Houdini manifest. Precedence (highest first): project-level [env] override, package [dev.env] (only when dev-installed), package [env]. Replacement semantics for shared keys — [dev.env] substitutes for the matching [env] entry rather than emitting both. Inert for any install resolved from the registry CAS, so the table stays in the published hpm.toml without leaking into downstream Houdini manifests.

[0.14.1] - 2026-05-22

Changed

  • Per-platform test execution in release pipelines. The Woodpecker build-{linux,macos,windows}.yml jobs are now split into three steps — build → test → upload — so cargo test --release --workspace runs on each platform before any artifact is uploaded to GitHub Releases. Previously only the Linux check job ran the test suite, so platform-specific regressions (e.g. the Windows junction bug above) could ship in a release without ever being exercised. macOS tests run against the x86_64 host slice only; aarch64 stays cross-compile-only.

Fixed

  • Repeated dev-link installs no longer fail on Windows with ERROR_ALREADY_EXISTS (os error 183). remove_dev_link previously called junction::delete alone, which strips the reparse point but leaves the now-empty directory stub in place — the next junction::create at the same path then failed because the entry already existed. The Windows branch now follows junction::delete with std::fs::remove_dir so the path is fully free for the next link. Manifested as a sync failure on every second-and- onward project launch with a link = true path dep; the only workaround was deleting ~/.hpm/packages/_dev/<slug>@<version> between launches.

[0.14.0] - 2026-05-20

Added

  • Garbage collection for dev (_dev/) installs. hpm clean (and hpm clean --comprehensive) now sweeps stranded entries in ~/.hpm/packages/_dev/. The _dev/ subtree was previously invisible to orphan collection because it’s filtered out of list_installed, so removing a { path = "..." } dep from hpm.toml left its snapshot or link entry behind forever. A new parallel cleanup pass walks every discovered project’s path-dependencies, reads each source manifest for its (slug, version), and treats anything in _dev/ outside that union as orphan. Link installs are unlinked safely via the existing remove_install_entry primitive (no remove_dir_all traversal into a workspace). Projects with an unresolvable path-dep source log a warning and don’t block cleanup. ComprehensiveCleanupResult gains a removed_dev_installs: Vec<String> field whose entries are prefixed _dev/<slug>@<version> so CLI output keeps the two cleanup scopes distinct.
  • Link-mode installs for path dependencies. A new opt-in link = true on [dependencies] my-dep = { path = "...", link = true } installs the package into ~/.hpm/packages/_dev/<slug>@<version>/ as a symlink (Unix) or NTFS junction (Windows) instead of copying. Working-tree edits to .apex / .hda / .py / .shelf files are picked up by a live Houdini session immediately, with no re-sync needed. Junctions (vs NTFS directory symlinks) are used on Windows because they don’t require Developer Mode or admin. Surfaced through hpm add --path <dir> --link. The legacy snapshot-copy behavior remains the default for path deps so existing manifests are unaffected.

Fixed

  • Symlink-aware target removal in StorageManager::install_from_path_* and remove_package. Both removal paths now distinguish link entries from real directories via symlink_metadata (plus junction::exists on Windows) and remove symlinks/junctions through remove_file / junction::delete rather than remove_dir_all. Prevents the catastrophic case where a stale Windows junction at a package path would have caused remove_dir_all to recurse into and delete the user’s workspace on the next sync or orphan-cleanup. Defensive even without link mode, since a junction could have been created out-of-band.

[0.13.0] - 2026-05-15

Changed

  • Platform identifiers aligned with the registry API. Platform now carries arch-suffixed variants — linux-x86_64, linux-aarch64, macos-x86_64, macos-aarch64, windows-x86_64, windows-aarch64 — plus an OS-agnostic universal, matching the registry’s build.platform enum verbatim. hpm pack --platform and the [native].platforms list in hpm.toml accept any of these. Platform::current() reports the arch-suffixed variant for the host, so auto-detect on Apple Silicon now returns macos-aarch64 instead of the old fat-binary identifier.

Removed

  • macos-universal platform identifier. The legacy hpm-only “fat binary” tag was dropped — the API rejects it, and the new macos-x86_64 / macos-aarch64 (or universal for OS-agnostic content) cover both meanings explicitly. Existing hpm.toml manifests carrying macos-universal in [native].platforms or any [native.macos-universal] section fail to parse and must be migrated to the arch-suffixed names. Platform::os_key() now returns Option<&'static str> (None for Universal).

[0.12.3] - 2026-05-14

Added

  • prepare_script_env and ScriptEnvHandle in hpm-python. Promotes per-script venv preparation from a private helper inside hpm run to a shared, spawn-strategy-agnostic API. Given a ScriptEntry, the function lazily bootstraps bundled uv, materializes the venv if needed, and returns a ScriptEnvHandle that carries the env-var mutations (VIRTUAL_ENV, prepended PATH) the caller must apply before spawning. apply_to(&mut HashMap<String,String>) folds those mutations into a caller-staged env map, so outside embedders — hpm run (shells via cmd /C / sh -c) and an embedder’s hook runner (direct-spawn via CreateProcessW / execvp) — consume the same handle through their own spawn primitives. Plain string entries and table-form entries with neither python nor requirements get a default no-op handle. ensure_script_venv + venv_bin_dir remain exported as lower-level escape hatches.

Changed

  • hpm-cli run.rs routes its env-prep through prepare_script_env instead of its own ensure_script_venv_for / prepend_path helpers, so a manifest-handling change in hpm-python is picked up by every embedder without per-caller drift.

[0.12.2] - 2026-05-13

Added

  • ProjectManager::new_with_auth. Closes the parallel gap to the 0.12.1 RegistrySet::from_configs_with_auth work: ProjectManager builds its own RegistrySet internally inside sync_dependencies and resolve_and_install_from_registry, and those previously went through the no-auth constructors regardless of how the embedder built its own registry sets. For visibility-gated registries (an API registry that shows private packages only to signed-in callers), that meant a desktop pre-flight could resolve a PRIVATE dep correctly via an authenticated set, then hpm install’s Simple/Registry → registry-lookup branch would fire its own anonymous get_version for the same dep and 404. The new constructor stashes an Option<String> on the manager; both internal sites now build their RegistrySet via from_configs_with_auth(..., self.auth_token.as_deref()). ProjectManager::new becomes a one-line delegate with None, so existing callers (hpm-cli, every other embedder) keep working as anonymous. Token semantics mirror the registry variant: callers tracking a refreshing token rebuild the ProjectManager per operation. Static-token API on RegistrySet and on ProjectManager is now a matched pair.

[0.12.1] - 2026-05-13

Added

  • ApiRegistry::with_auth_token and RegistrySet::from_configs_with_auth. Embedded callers can now build a registry set that attaches Authorization: Bearer <token> to every API-registry request. Required for visibility-gated registries: server-side, such a registry shows anonymous callers only PUBLIC packages, so an org member trying to install their own org’s PRIVATE package previously got a 404 from get_versions and the package was silently dropped from the generated hpm.toml. The token header is marked sensitive (reqwest won’t log it). Git registries ignore the token — there is no auth story for the git index yet. Both ApiRegistry::new and RegistrySet::from_configs are unchanged (delegate to the new entry points with None), so existing callers including the CLI keep working as anonymous.

[0.12.0] - 2026-05-13

Added

  • hpm update actually does something now. The previous implementation was a placebo — find_available_updates synthesised version numbers (format!("{}.1", current_version)), query_pypi_latest returned a hardcoded string. Real impl: parse each registry dep’s spec as semver::VersionReq, query the registry for all versions, pick the highest non-yanked match, compare against hpm.lock. Dry-run prints the diff (human, JSON, JSON-lines, JSON-compact). Apply rewrites the manifest spec to the resolved exact version and re-runs install. Honours --packages filtering, warns when a locked version has been yanked, prompts before applying unless --yes.
  • InstallOutcome is now part of the public hpm-core API. Returned per-dep from ProjectManager::sync_dependencies, carries the install path plus the lockfile-relevant checksum / source (both Option because CAS short-circuits don’t refetch). Library consumers that want to drive their own lockfile build can do so from these outcomes.
  • RegistrySet::from_config(&Config) convenience constructor. Was previously a free function inside the CLI’s registry command module.

Changed

  • ProjectManager::new now takes an Arc<Config> parameter (breaking change for library consumers). The constructor used to call Config::load() internally, and so did resolve_and_install_from_registry / sync_dependencies — so a single embedded “install package” operation triggered three disk reads of ~/.hpm/config.toml per click, each with a [hpm_config] Loaded user configuration from … log line drowning out unrelated warnings. Callers now load Config once and share it via Arc<Config>; internal methods read from self.config. hpm-cli was updated in lockstep: each command loads Config exactly once via load_cli_config() and passes &Config down, eliminating the redundant second load inside install and the third load hpm add → install used to trigger. Config is now re-exported from hpm-core.
  • Config::load success path is now debug!, not info!. Embedded callers that legitimately load config once per operation no longer get a [hpm_config] Loaded user configuration from … line per call. The malformed-config warn! is unchanged.
  • ProjectManager::sync_dependencies returns Vec<(String, InstallOutcome)> instead of (). Two reasons: (1) callers (the CLI, the desktop client) can now build a lockfile from sync’s output; (2) the same call site now does parallel installs internally via a JoinSet — the parallel install path was previously duplicated in hpm-cli::commands::install.
  • hpm install is now a thin shell over ProjectManager. The command goes from 1118 lines to ~315: it loads + verifies the existing lockfile, constructs a ProjectManager, calls sync_dependencies, builds a fresh lockfile from the returned outcomes (backfilling short-circuited entries from the prior lockfile), and writes it. --frozen-lockfile semantics tightened: previously the flag just skipped lockfile regeneration; now install aborts when the freshly-resolved set differs from the prior lockfile.
  • ProjectError variants carry typed source chains. The stringly-typed DirectoryCreation(String), DirectoryRead(String), PackageInstallation(String), StorageRead(String), InvalidDependency(String), PythonResolution(String) were replaced with #[from] / #[source] variants: DirectoryCreation { path, source: io::Error }, Storage(Box<StorageError>), Fetch(Box<FetchError>), InvalidPackageSource(PackageSourceError), NoRegistriesConfigured { name, version_req }, RegistryResolution { name, version_req, source: Box<RegistryError> }, NoMatchingVersion { name, version_req }, PythonResolution(Box<dyn Error + Send + Sync>). Downstream match arms that read the old String payload need rewriting against the typed variants.
  • hpm-cli::commands::clean collapsed 6× duplicated control flow. The dry-run / automated / interactive × packages / python / comprehensive matrix is now a (Scope, Mode) parametrisation; 401 lines down to 240, six functions down to three.
  • hpm init --vcs=git propagates git init failures instead of warning and reporting success. If the user asked for a VCS and git is missing or fails, the whole init fails.
  • Top-level Cargo.toml is now a pure workspace manifest. Was a hybrid [package] + [workspace] with a stub src/lib.rs “documentation- only crate” — removed.

Removed

  • hpm-resolver crate (~2,330 lines). Claimed to be PubGrub but skipped conflict-driven clause learning (“Simplified conflict resolution”); zero external callers. The install path picks the highest matching version per package, which doesn’t need a constraint solver. Re-add when transitive resolution becomes a real requirement.
  • hpm publish subcommand. The body was a help blurb pointing users at the registry publishing workflow that lives elsewhere (with the registry). A command that pretends to be documentation is worse than no command.
  • hpm clean --package <name> flag. Declared, parsed by clap, and tested, but execute_clean never read it — pure CLI fiction.
  • Fake disk-space estimates. "Estimated disk space freed: ~NMB" was removed.len() * 10MB regardless of actual content. ComprehensiveCleanupResult::format_total_space_* is gone.
  • Registry::config() trait method + RegistrySet::refresh_all(). Both had zero callers anywhere. The RegistryConfig type backing config() is also gone.
  • .hpmref / symlink legacy sweep. install.rs used to clean up an earlier install layout that doesn’t exist anymore.
  • ProjectError::ConfigLoad and ProjectError::PackageNotFound variants. Both unused after the typed-error refactor.

Fixed

  • Stub hpm update no longer lies. Even before the real implementation landed, the placebo body was replaced with a bail! pointing users at the manual workaround.

[0.11.3] - 2026-05-11

Fixed

  • API registry no longer installs the wrong-platform archive when the registry returns non-canonical platform names. ApiRegistry::get_version previously compared builds[].platform against the canonical long form ("windows-x86_64" / "linux-x86_64" / "macos-universal") with strict string equality, then fell through to builds.first() when no entry matched. A registry that emitted the short OS form (e.g. "WINDOWS", "LINUX") would silently get an arbitrary archive — on Windows hosts installing multi-platform packages, the Linux .so build could be unpacked instead of the Windows .dll build, with no error surfaced until Houdini failed to load the plugins.

    The selector now (1) accepts both the canonical long form and the short OS form ("windows"/"linux"/"macos", case-insensitive), (2) treats a missing platform field or "universal" (case-insensitive) as a universal fallback, and (3) returns a new RegistryError::NoCompatibleBuild error when every build is platform-tagged and none match the host — instead of silently picking the first one. Issue #3.

[0.11.2] - 2026-05-11

Tagged but not released — the check workflow failed clippy on Rust 1.95 (needless_lifetimes lint) before any platform binaries were built. The fix and the platform-selection change ship together in v0.11.3.

[0.11.1] - 2026-05-08

Fixed

  • hpm pack on Windows now writes ZIP entry names with / separators, as required by the ZIP spec (APPNOTE 4.4.17.1). Previously the entry name went through Path::to_string_lossy(), which uses the OS separator — so packs produced on Windows contained entries like config\.gitkeep. Most consumers tolerated this, but strict ones (e.g. SideFX hpackage upload) rejected the archive outright. Packs produced on Linux/macOS were already correct.
  • hpm pack on Windows now correctly excludes other-platform files from [native] packages. The platform filter compared manifest globs (e.g. lib/windows-x86_64/*) against Path::to_string_lossy(), which on Windows produced backslash-separated strings the globs could not match — so platform-specific archives ended up bundling files from every platform. Packs produced on Linux/macOS were already correct.
  • Cached directory checksum is now host-OS-independent. The per-package digest used by ArchiveFetcher’s on-disk checksum cache hashed Path::to_string_lossy() of each relative entry, producing different digests on Windows vs. Unix for the same tree. Now normalized to /. Existing Windows caches are recomputed once on first access; Unix caches are unaffected.

[0.11.0] - 2026-05-06

Added

  • hpm run <script> [args...] executes [scripts] entries. Sets HPM_PACKAGE_ROOT to the manifest directory, honours [scripts.platform.<os>] overrides, and forwards trailing arguments to the script. Replaces the previous placeholder that printed “not yet implemented”.

  • Per-script Python venvs. [scripts] entries can opt into a uv-managed virtual environment by switching to the table form with cmd, optional python, and optional requirements:

    [scripts.setup]
    cmd          = "python scripts/setup.py"
    python       = "3.11"
    requirements = ["PySide6>=6.6"]
    

    hpm run resolves requirements through the same uv pipeline that backs [python_dependencies], materializes a content-addressable venv at ~/.hpm/venvs/<hash>/, and prepends its bin/ (or Scripts/ on Windows) to PATH so python in the command resolves to the pinned interpreter. Two scripts whose python + requirements resolve to the same closure share one venv. Plain string entries keep their prior behaviour. Resolves [#2].

Changed

  • PackageScripts.commands and PlatformScripts.{linux,macos,windows} are now IndexMap<String, ScriptEntry> (was IndexMap<String, String>). ScriptEntry is an untagged enum: a bare string keeps the shorthand form, the table form carries the new python / requirements hints. PackageManifest::resolved_scripts and script_for return ScriptEntry values; use .cmd() to get the command string. Plain manifests are wire-compatible.

[0.10.2] - 2026-05-05

Fixed

  • Project Houdini version now drives Python venv ABI. Previously HPM derived the target Python from each dependency package’s [houdini].min_version, so a project pinned to Houdini 22 (Python 3.13) consuming a min_version = "21.0" package would silently get a 3.11 venv — wheels resolved against 3.11 then crashed on import inside Houdini 22’s interpreter. The project’s own root-manifest [houdini].min_version is now authoritative; per-package values describe compatibility floors only. Two or more dependency packages declaring conflicting min_version values (e.g. 21 + 22) used to fail resolution outright; with a project context they now resolve cleanly against the project’s Houdini.
  • Python resolution no longer hard-fails on machines without any Python installed. uv pip compile requires an interpreter, and on a clean Windows install (no system Python, no managed CPython yet) it errored with No interpreter found in virtual environments, managed installations, search path, or registry. HPM now invokes uv python install <version> ahead of resolution and venv creation, pins UV_PYTHON_DOWNLOADS=automatic, and routes managed CPython installs into ~/.hpm/uv-python/ to keep them inside HPM’s tree.

Changed

  • hpm_python::collect_python_dependencies signature now takes project_houdini_version: Option<&str> as its first argument. Pass the project’s [houdini].min_version to override per-package mapping (recommended); pass None to keep the legacy per-package behaviour.

[0.10.1] - 2026-05-05

Added

  • hpm-core::packer exposes byte-based checksum and signing helpers. compute_bytes_checksum(&[u8]) -> String and sign_bytes(&[u8], &SigningKey) -> (String, String) join the existing path-based compute_archive_checksum / sign_archive (which now call through to the byte versions). SigningKey is re-exported from hpm_core::packer so downstream callers don’t need a direct ed25519-dalek dependency. Lets tooling that mutates archive bytes after pack — e.g. a SideFX upload flow, which reshapes the flat hpm pack archive into hpackage’s expected {slug}.json-at-root + content-under-{slug}/ layout — recompute the SHA-256 and re-sign without round-tripping through disk.

[0.10.0] - 2026-05-04

Added

  • [env] values can now be conditional on Houdini version, OS, or Python. A value may be either a flat string (today’s case, unchanged) or an ordered list of { when, set } variants. hpm lowers each branch into the expression-object array form that Houdini’s package.json documents, so a single archive can ship per-major resolver builds — e.g. resolver/houdini21/, resolver/houdini22/ — and Houdini picks the matching one at startup. when accepts houdini (Cargo-style req: ^21, ~21.5, >=21,<22, bare-major shorthand), os (linux/ macos/windows), and python (3.11, etc.); axes combine with and and unknown keys are rejected. $HPM_PACKAGE_ROOT is substituted in each branch; any other $VAR passes through verbatim for Houdini’s own expansion. Malformed selectors fail at manifest validation time. New types in hpm-package: EnvValueSpec, EnvValueVariant, WhenSelector, plus ManifestEnvEntry::lower as the single substitution-and-emit path.

Changed

  • hpm install now writes to the same canonical CAS as hpm sync/ProjectManager::sync_dependencies. Previously the two commands maintained parallel storage layouts in ~/.hpm/packages/ — <safe_name>-<version>/ (install) vs <slug>@<version>/ (sync) — and several latent bugs lived in the divergence. After this change:
    • ArchiveFetcher extracts into a staging dir at ~/.hpm/fetch/, not the CAS.
    • URL/registry deps copy into ~/.hpm/packages/<slug>@<version>/ via StorageManager::install_from_path.
    • Path deps bypass the fetcher and go straight to ~/.hpm/packages/_dev/<slug>@<version>/ via install_from_path_dev, matching sync_dependencies’ isolation guarantees.
    • The per-project <.hpm>/packages/<name> symlinks (Unix) and <name>.hpmref reference files (Windows fallback) are gone — Houdini JSON manifests already carry absolute CAS paths. The sweep introduced earlier still cleans up these legacy entries on upgrade.
  • Breaking (library API): new hpm_core::cas_install_dir(packages_dir, name, version) returns the canonical install path (<packages_dir>/<slug>@<version>) for a lockfile dependency name. LockFile::verify_checksums now uses it; the existing fetcher_install_dir helper documents itself as the staging path.
  • Breaking (library API): PackageSource is no longer an enum with Url and Path variants — it’s a URL-only struct { url, version } consumed exclusively by ArchiveFetcher. Path dependencies bypass the fetcher entirely now and don’t need a PackageSource. The previous PackageSource::path, PackageSource::is_url/is_path/local_path, the cache_key() helper, and seahash_simple are gone. FetchError::PathNotFound is removed (no longer constructible) and ArchiveFetcher::fetch no longer takes a path branch.
    • The lockfile retains both shapes via a new hpm_core::LockedSource enum (Url { url, version } / Path { path }), used by LockedDependency.source. Same TOML wire format (type = "url" / type = "path") — existing lockfiles continue to deserialise.

Added

  • hpm_package::PackagePath — validated newtype for the canonical creator/slug package identifier. Validates kebab-case at deserialization, so creator() and slug() return &str (no Option) and downstream consumers can stop defending against malformed paths.

Changed

  • Breaking (library API): PackageInfo.path is now PackagePath instead of String. PackageManifest::new takes PackagePath; callers can use PackagePath::new("creator/slug").unwrap() for static identifiers in tests, or propagate the parse error in production code. PackageInfo::creator() and slug() no longer return Option. The is_valid_package_path and is_valid_slug helpers on PackageManifest are gone — validation lives on PackagePath.
  • Breaking: InstalledPackage drops three fields:
    • name: String (the bare-slug shadow of manifest.package.path). Use installed.slug() or installed.manifest.package.slug().
    • installed_at: SystemTime. Field was set on every construction and read nowhere; the metadata.created().unwrap_or_else(now) fallback that masked filesystem-level errors is also gone.
    • With name and installed_at removed, the struct is now just { version, manifest, install_path }.
  • Breaking: PackageSpec drops registry: Option<String> and PackageSpec::with_registry. Both were only set/read in tests.
  • Breaking: VersionReq::new returns Err for any input semver::VersionReq::parse rejects (instead of silently storing parsed: None and falling back to literal string equality in matches). VersionReq::parse (the alias for new) is removed.
  • Breaking: Five string-typed ProjectError variants (ManifestRead, ManifestParse, ManifestWrite, ManifestRemoval, JsonSerialization) replaced with typed siblings: ManifestIo { op, path, source }, ManifestEdit { path, source }, ManifestStructure { path, message }, and HoudiniManifestSerialize { path, source }. The “no hpm.toml” pre-edit case in update_project_manifest now reuses ManifestLoadError::NotFound.
  • ProjectManager.fetcher is no longer Option<ArchiveFetcher>. The “No fetcher available” arm of ProjectError::PackageInstallation is gone (it was unreachable — fetcher was set to Some(...) at construction).
  • CLI commands hpm search, hpm clean, and hpm update no longer silently fall back to Config::default() when Config::load fails. Config::load already handles malformed user-config internally; these wrappers were swallowing project-config parse errors.

Fixed

  • hpm update now uses PackageManifest::from_path (one of the four spots collapsed in this release) instead of its own read_to_string + toml::from_str boilerplate.
  • PackageManifest::is_valid_semver now delegates to semver::Version::parse. The prior hand-rolled split-on-. + parse-as-u32 check rejected valid pre-release identifiers like 1.0.0-alpha.1 and build metadata like 1.0.0+build.5, so manifest.validate() would fail on perfectly legitimate package versions. The version field on PackageInfo is still a String on the wire (matching what’s in hpm.toml); this only changes what validate() accepts.
  • ProjectManager::sync_dependencies now sweeps stale per-package Houdini manifests in <project>/.hpm/packages/. Previously, a <slug>.json written by a prior sync was left on disk after its slug dropped out of the dependency set (path-dep override removed, registry yank, manual edit), and Houdini kept loading the orphaned package on launch. Non- .json entries in the directory are not touched.
  • StorageManager::install_from_path_dev now isolates path-installed (“dev”) packages under ~/.hpm/packages/_dev/<slug>@<version>/ instead of clobbering the shared registry CAS at the same (slug, version). list_installed skips the _dev subtree, so an ensure_installed cache lookup from another project resolving the coordinate from a registry can no longer be silently served the dev content. The Path arm of sync_dependencies is the only caller; registry/URL installs continue to use install_from_path.
  • hpm install now sweeps stale entries in <project>/.hpm/packages/ after writing manifests. The CLI command duplicates much of sync_dependencies and was missing the same sweep — a <name>.json, symlink, or .hpmref left over from a previous install kept loading the orphan dep on Houdini launch. Files with unrecognised extensions (e.g. user-authored README.md) are left alone.
  • Four call sites now use PackageManifest::from_path instead of hand-rolled read_to_string + toml::from_str: discovery.rs::check_project_path, manifest_utils.rs::load_manifest, install.rs::load_package_manifest, and pack.rs. They get the same path-attached ManifestLoadError already used by ProjectError/StorageError, and discovery.rs drops its parallel DiscoveryError::ManifestRead/ManifestParse(PathBuf, String) variants in favour of Manifest(ManifestLoadError).
  • LockFile::verify_checksums now actually verifies. The previous implementation looked for <packages_dir>/<name>@<version> while ArchiveFetcher extracts to <packages_dir>/<safe_name>-<version> (where safe_name replaces / with -), so the inner branch never ran and every install / hpm audit reported “Package checksums verified” without comparing a single byte. The path computation now flows through a shared fetcher_install_dir helper, and a missing package surfaces as the new LockError::PackageMissing variant rather than a silent skip.

[0.9.5] - 2026-05-01

Added

  • hpm_core::fetch_manifest(name, version, registry_set, storage) — fetch a parsed PackageManifest by (name, version) without project context. Reads from CAS when the package is already installed; otherwise resolves via RegistrySet, downloads via ArchiveFetcher, and installs into CAS as a side effect. Pass "" or "latest" as the version to resolve the highest semver across configured registries. The companion FetchManifestError wraps StorageError/RegistryError/FetchError and is re-exported from hpm-core. Intended for tools that need to inspect a package’s [env], [scripts], or [houdini] sections before the user installs it into a project.
  • hpm_package::PackageManifest::from_path(path) constructor and a ManifestLoadError enum with NotFound/Read/Parse variants. Each variant carries the offending PathBuf, so a corrupted or missing manifest is now reported with its source path instead of a bare TOML diagnostic. Replaces four duplicated read_to_string + toml::from_str sites in hpm-core.

Changed

  • Breaking (library API): StorageError::ManifestRead(String) and StorageError::ManifestParse(toml::de::Error) are replaced by a single StorageError::Manifest(ManifestLoadError) variant. Same change for FetchManifestError. Match arms on the old variants need to migrate to Manifest(ManifestLoadError::{NotFound, Read, Parse} { path, .. }). ProjectError keeps its existing ManifestRead/ManifestParse string variants (still used by the toml_edit-based edit paths in update_project_manifest and remove_from_project_manifest) and adds a Manifest(ManifestLoadError) variant for the typed-parse path.

Fixed

  • test_deprecated_commands in hpm-cli no longer inherits the developer’s $HOME and read the real ~/.hpm/config.toml. The test now overrides HOME/USERPROFILE to a TempDir via a new hpm_binary_isolated() helper, so it passes regardless of whether the developer has registries configured locally.

[0.9.4] - 2026-04-30

Fixed

  • Project sync no longer redundantly re-fetches and re-installs every registry dependency. The ensure_installed short-circuit compared the scoped dependency name from hpm.toml (e.g. creator/slug) against InstalledPackage.name, which only carries the bare slug, so the lookup never matched and every sync fell through to remove-and-recopy the CAS entry. Both ensure_installed and ensure_installed_from_url now route through matches_spec_name, which bridges scoped and bare forms. On Windows this also prevents os error 5 aborts when a running Houdini process held open handles into a package directory that another project was about to redundantly reinstall.
  • StorageManager::install_from_path now maps PermissionDenied from the pre-install removal step into a dedicated StorageError::PackageInUse variant with an actionable message (“close any running Houdini that depends on it and try again”) instead of leaking a raw os error 5.

[0.9.3] - 2026-04-29

Added

  • RegistryEntry.created_at: Option<String> (ISO 8601). Populated by API registries that emit it; git registries deserialize to None. Lets clients surface per-version publish timestamps.

Removed

  • RegistryEntry.license. The field was unused by hpm-core and never populated by any registry implementation.

[0.9.2] - 2026-04-29

Fixed

  • ArchiveFetcher now extracts both ZIP and gzipped tar archives, dispatching on the file’s leading magic bytes (50 4B 03 04 → ZIP, 1F 8B → tar.gz) rather than assuming ZIP. Previously every fetched archive was unconditionally read as ZIP, so a registry entry whose URL pointed at a .tar.gz (e.g. produced by tar -czf in package CI) failed extraction with a misleading “Could not find EOCD” error and blocked the entire project install. The download cache key no longer carries a .zip extension since format is determined by content. Path-traversal validation runs in both extractors.

[0.9.1] - 2026-04-28

Fixed

  • hpm pack --platform <X> no longer drops files that are listed under multiple platforms in [native.<plat>].files. The per-platform filter previously assembled an exclude set from every other platform’s globs without consulting the target’s own globs, so a glob listed identically under all platforms (e.g. a shared install path used by every binary flavour) was excluded from every archive. The filter now treats the target’s globs as an inclusion override: a path matched by both the target and another platform is kept in the target’s archive. Distinct per-platform globs continue to behave as before.

[0.9.0] - 2026-04-27

Added

  • [env] entries in hpm.toml accept required = true. A package can declare an env var without a value to mark it as a placeholder that the consuming project’s [env] must override; hpm install and project sync error out with MissingRequiredEnv when no value is supplied (by either the package’s default or the project override), so packages aren’t silently launched without env vars they depend on.

Changed

  • ManifestEnvEntry::value is now Option<String> (was String) to support required-without-default placeholders. TOML manifests are backward compatible — existing value = "..." entries still parse — but Rust API consumers that read the field directly need to update.

[0.8.2] - 2026-04-23

Fixed

  • VenvManager::ensure_virtual_environment now treats a venv whose metadata.json fails to deserialize as stale and rebuilds it, instead of propagating the parse error as a hard launch failure. This self-heals venvs written by pre-0.8 hpm (ISO 8601 timestamp strings) when launched by 0.8+ (i64 epoch seconds), without users needing to manually delete ~/.hpm/venvs/<hash>/.
  • Config::load no longer aborts when ~/.hpm/config.toml is malformed. It warns and falls back to defaults, so a corrupted user config can be repaired with any hpm command instead of requiring a manual file edit. Project .hpm/config.toml still fails hard.
  • hpm install --frozen-lockfile now fails loudly when hpm.lock exists but can’t be parsed, instead of silently skipping checksum verification and defeating the reproducibility guarantee the flag promises.
  • Config::save, LockFile::save, the per-package Houdini manifest writer, and venv metadata.json updates now stage writes to <path>.tmp and atomically rename into place, so a crash mid-write can’t leave a truncated config.toml, hpm.lock, .hpm/packages/*.json, or ~/.hpm/venvs/<hash>/metadata.json. The venv self-heal still covers any legacy truncation that slipped in before this change.

[0.8.1] - 2026-04-23

Fixed

  • ProjectManager::add_dependency now resolves first-install packages through the configured registries (mirroring sync_dependencies) instead of calling a stub that always returned PackageNotFound. Scoped names like creator/slug are also matched correctly against already-installed packages.

Removed

  • StorageManager::install_package (the unimplemented stub). Callers should go through ProjectManager::add_dependency or StorageManager::install_from_path.

[0.8.0] - 2026-04-22

Breaking Changes

  • Dropped support for Houdini 19.x (Python 3.7) and Houdini 20.0–20.4 (Python 3.9). Both Python interpreters are past upstream end-of-life. hpm install now errors out on these versions instead of creating a venv against a dead ABI. The new minimum is Houdini 20.5.
  • Default [houdini].min_version generated by hpm init is now "20.5" (was "19.5"). Same for the fallback templates in hpm-package.
  • Removed the hpm-error workspace crate. Its HpmError type was never produced by any code path. Domain errors now live in their producing crate (StorageError, ResolverError, ConfigError, …) and surface through hpm_cli::error::CliError.
  • Removed the hpm_python::update module and its PythonUpdateManager facade. hpm update now calls VenvManager::ensure_virtual_environment directly after resolving dependencies. The stub methods (check_python_updates, query_latest_python_version, link_package_to_venv, is_venv_used_by_other_packages) always returned Ok(false)/Ok(()) and are gone.
  • Removed the system-uv fallback in hpm_python::bundled. HPM now always uses its bundled uv; if the bundled binary cannot be downloaded, hpm errors out instead of silently running against a system uv that may not match the expected cache layout.
  • Removed unsafe { env::set_var } global mutation in hpm_python::bundled. UV environment variables are now applied per-command via std::process::Command::env.
  • VenvMetadata.created_at / last_used and OrphanedVenv.created_at / last_used now serialise as Unix-epoch seconds (i64) instead of chrono’s RFC 3339 string. Existing venv metadata files will fail to parse and should be removed; HPM will rebuild them on next use.
  • StorageManager::cleanup_comprehensive now takes a dry_run: bool argument and replaces the old cleanup_comprehensive_dry_run method.
  • Removed the unused PythonError, PythonResult, RegistryProvider and RegistryClient types. Custom PackageProvider impls no longer need #[async_trait] — the trait now uses native async-fn-in-trait.

Added

  • Support for Houdini 22.x → Python 3.13.
  • [scripts.platform.<os>] sub-tables (linux/macos/windows) for per-OS overrides of package scripts. Top-level [scripts] entries still apply on every platform; platform-specific entries win for the matching host. New helpers PackageManifest::resolved_scripts and script_for expose a single resolution rule for desktop / CLI / CI consumers.

Changed

  • map_houdini_to_python_version error message now lists the new supported range (20.5+, 21, 22) and explicitly names 19.x and 20.0–20.4 as EOL-dropped.
  • Config::load() errors are now propagated in ProjectManager::new, ProjectManager::sync_dependencies, and several CLI subcommands (add, install, registry …, search). Previously malformed config.toml files were silently swallowed and replaced with defaults.
  • Config deserialisation now relies on #[serde(default)] on every field instead of the PartialConfig → into_config() machinery, cutting ~120 lines of boilerplate.

Security

  • Picked up rustls-webpki 0.103.12+ (via cargo update) which fixes RUSTSEC-2026-0098 and RUSTSEC-2026-0099 (name-constraint bypass).

Removed (dependency cleanup)

  • Dropped the following direct/indirect dependencies: miette, owo-colors, anstream, futures, dirs, home, which, chrono, async-trait (from hpm-resolver; retained in hpm-core where Box<dyn Registry> still needs it).
  • Transitive crate count went from 377 to 345.

[0.7.2] - 2026-04-19

Fixed

  • VenvManager::ensure_virtual_environment now self-heals venvs left half-installed by earlier hpm versions. Previously, if a pre-0.7.1 run had created a venv directory whose metadata.json claimed the packages were installed but whose site-packages/ was empty (the --target bug), upgrading to 0.7.1 wasn’t enough — ensure_virtual_environment trusted the existing directory and skipped the install. It now checks that each resolved package has a dist-info in site-packages/ before reusing the venv, and deletes + rebuilds when the check fails.

[0.7.1] - 2026-04-19

Fixed

  • hpm install now actually installs Python dependencies into the shared venv. The installer had been running uv pip install --target {venv}/lib/python/site-packages — a path no real venv uses — so uv planted files where the venv’s own interpreter never looked, leaving ~/.hpm/venvs/<hash>/Lib/site-packages empty while metadata.json claimed success. Installs now use uv pip install --python {venv}/bin/python (or Scripts/python.exe on Windows) and verify a dist-info directory lands for at least one resolved package before writing metadata.
  • VenvManager::get_python_site_packages_path returns the real per-version Unix layout (lib/pythonX.Y/site-packages) instead of the fictional lib/python/site-packages, so generated PYTHONPATH entries point at a directory Python will actually import from. Callers pass the resolved Python version through.

Changed

  • Updated docs/user-guide.md and docs/architecture.md to match the current Houdini manifest shape (hpath + HoudiniEnvValue prepend) and the real venv layout. The old examples showed hpm_managed/hpm_package fields and a generate_houdini_manifest function that were removed in 0.7.0.

[0.7.0] - 2026-04-19

Breaking Changes

  • hpm install now errors out when [houdini] min_version is unparseable or outside the supported range (Houdini 19/20/21) instead of silently falling back to Python 3.9. This previously masked the Houdini-21 mapping bug below.

Fixed

  • Houdini 21 with min_version = "21" (bare major) now correctly resolves to Python 3.11. Before, a bare major fell through to the default arm and produced a Python 3.9 venv, so C-extension packages (pymongo, watchdog, etc.) couldn’t load under Houdini’s Python 3.11 ABI.
  • hpm install now writes per-package Houdini manifests to .hpm/packages/{name}.json with the shared venv’s site-packages prepended onto PYTHONPATH. The previous implementation built the config in memory and discarded it, so import qtpy (and any other declared Python dependency) failed inside Houdini despite a successful install.
  • Generated PYTHONPATH entries use HoudiniEnvValue::prepend and let Houdini pick the path separator, fixing the hardcoded Unix-only : / $PYTHONPATH that emitted malformed values on Windows.

Changed

  • VenvManager::with_venvs_dir and PythonCleanupAnalyzer::with_venv_manager let callers (primarily tests) route at an isolated venvs directory instead of the developer’s real ~/.hpm/venvs/. Flaky test_end_to_end_python_workflow and test_cleanup_system_comprehensive now use tempdirs.

Removed

  • hpm_python::integration module (generate_houdini_package_json, update_package_json_with_python, extract_python_env_from_package_json). The module produced a non-Houdini JSON shape and was only exercised by its own tests; Houdini manifest generation now lives in the install command.

[0.6.0] - 2026-04-16

Breaking Changes

  • hpm pack --key (and HPM_SIGNING_KEY, and signing.key_path in global config) now expects a PKCS#8 PEM file instead of a 32-byte raw seed. Regenerate keys with openssl genpkey -algorithm ed25519 -out signing.pem.

Added

  • HPM_SIGNING_KEY accepts inline PEM content (detected by a leading -----BEGIN marker) in addition to a file path, so CI secret stores can inject the key as a plain string without writing a temp file.
  • Documented the package-signing wire format in docs/security.md: Ed25519 over the archive bytes, signature emitted as standard base64 (RFC 4648), keyId = first 8 bytes of the public key hex-encoded.

[0.5.2] - 2026-04-10

Fixed

  • Generated per-package Houdini manifest hpath now points at the package root instead of <root>/otls, so Houdini auto-discovers convention subdirectories (desktop/, toolbar/, radialmenu/, python_panels/, viewer_states/, python3.11libs/pythonrc.py, keymaps, etc.) instead of only loading HDAs

[0.5.1] - 2026-04-05

Fixed

  • Flaky CLI tests that mutated the process-wide current directory now serialize via a shared mutex, eliminating races under parallel test execution

[0.5.0] - 2026-04-05

Added

  • hpm pack now auto-generates a Houdini-native {slug}.json in the archive if one doesn’t already exist, making HPM packages directly usable by Houdini’s built-in package system
  • HoudiniNativePackage and HpackageMetadata types for representing Houdini-native package metadata

[0.4.0] - 2026-03-31

Breaking Changes

  • Package identity is now a scoped path (creator/slug) instead of a flat name
  • PackageInfo has a new required path field and name is now a freeform display name
  • PackageManifest::new() requires a path parameter
  • PackageTemplate::new() no longer takes a name parameter
  • Existing hpm.toml files without a path field will fail validation

Added

  • Scoped package paths: packages are identified by creator/slug (e.g. acme/rock-tools)
  • Version-qualified paths use @: creator/slug@1.0.0
  • PackageInfo::identifier(), creator(), slug() helper methods
  • PackageManifest::is_valid_package_path() and is_valid_slug() validation
  • Git registry index supports scoped paths (creator/slug.json layout)
  • API registry encodes scoped path segments individually in URLs
  • Storage supports nested creator/slug@version/ directory layout

Changed

  • Dependencies in hpm.toml use scoped paths as keys: "creator/slug" = "1.0.0"
  • Archive and cache filenames replace / with - for flat naming
  • hpm init generates both path and name fields in hpm.toml

[0.3.2] - 2026-03-26

Fixed

  • Handle platform-specific builds in registry get_version
  • Make asset uploads idempotent, improve unwrap safety

[0.3.0] - 2026-03-25

Added

  • [native] section in hpm.toml for declaring platform-specific files
  • hpm pack --platform flag for producing per-platform archives
  • Platform type with support for linux-x86_64, macos-universal, windows-x86_64
  • Auto-detection of host platform when packing native packages
  • platform field on registry entries for future install-time platform selection

[0.1.0] - Initial Release

Package Management

  • hpm init - Package initialization with standard and bare templates
  • hpm add - Add dependencies (registry, path sources) with version specifications
  • hpm remove - Remove dependencies from manifest
  • hpm install - Install all dependencies with lock file support (--frozen-lockfile for CI)
  • hpm update - Update dependencies to latest compatible versions
  • hpm list - List dependencies with tree view
  • hpm check - Validate package configuration
  • hpm pack - Create signed package archives
  • hpm clean - Remove orphaned packages and virtual environments
  • hpm audit - Security audit on dependencies
  • hpm completions - Shell completion generation (bash, zsh, fish, powershell)

Dependency Resolution

  • PubGrub-based resolver with conflict learning and backtracking
  • Lock file (hpm.lock) with pinned versions and checksums
  • Registry, path, and URL dependency sources

Python Integration

  • Virtual environment isolation with content-addressable sharing
  • UV-powered dependency resolution
  • Automatic Python version mapping based on Houdini version
  • PYTHONPATH injection via generated Houdini package.json

Storage

  • Global package storage in ~/.hpm/packages/
  • Content-addressable Python venvs in ~/.hpm/venvs/
  • Project-aware cleanup with orphan detection

Security

  • SHA-256 checksums for package verification
  • Ed25519 package signing and verification
  • Pure Rust TLS (rustls) for all network communication

How Houdini loads hpm packages

Houdini finds packages by reading package files: small JSON files in the directories it scans at startup. hpm never patches a Houdini installation. It writes package files, and you tell Houdini where they are. This page describes those files: the ones hpm install generates, the one hpm pack puts in an archive, and how each behaves inside Houdini.

What hpm install writes

One file per dependency, in <project>/.hpm/packages/, named {creator}.{slug}.json:

{
  "hpath": ["/home/me/.hpm/packages/utility-nodes@1.0.0"],
  "env": [
    { "PYTHONPATH": { "method": "prepend", "value": ["/home/me/.hpm/venvs/a1b2c3d4e5f60718/lib/python3.11/site-packages"] } },
    { "PYTHONPATH": { "method": "prepend", "value": ["/home/me/.hpm/packages/utility-nodes@1.0.0/python"] } },
    { "HOUDINI_SCRIPT_PATH": { "method": "prepend", "value": ["/home/me/.hpm/packages/utility-nodes@1.0.0/scripts"] } }
  ],
  "enable": "houdini_version >= '21' and houdini_version < '22'"
}
  • hpath is the absolute path of the package in the store. It puts the package root on HOUDINI_PATH, so Houdini discovers the convention folders beneath it (otls/, toolbar/, desktop/, python_panels/, viewer_states/, dso/, python3.11libs/, …).
  • env holds, in order: the shared venv’s site-packages on PYTHONPATH (only for a package that declares [python_dependencies]), the package’s python/ folder on PYTHONPATH and its scripts/ folder on HOUDINI_SCRIPT_PATH (when those folders exist), then the package’s [runtime] entries.
  • enable is the package’s [compat].houdini range compiled to a Houdini expression. A Houdini outside the range skips the package silently.

method: "prepend" leaves the path separator to Houdini, so the same file works on Unix (:) and Windows (;).

Pointing Houdini at a project

Add <project>/.hpm/packages to HOUDINI_PACKAGE_PATH in the environment Houdini starts from.

# Linux, macOS
HOUDINI_PACKAGE_PATH="$PWD/.hpm/packages" houdini
# Windows (PowerShell)
$env:HOUDINI_PACKAGE_PATH = "$PWD\.hpm\packages"
houdini

For a studio-wide setup, set the variable in your launcher. Houdini reads package files once, at startup: restart it after an install that changes them.

To confirm what Houdini resolved, without opening a session:

HOUDINI_PACKAGE_PATH="$PWD/.hpm/packages" HOUDINI_PACKAGE_VERBOSE=1 hconfig

Project installs and global installs

The two differ only in where the package file lands and what may be deleted around it:

hpm install (project)hpm global add
Package file location<project>/.hpm/packages/Houdini’s user preferences packages/
Loaded whenHoudini is pointed at the project via HOUDINI_PACKAGE_PATHEvery session of that Houdini version
Version scopingenable expression onlyenable plus a per-version directory
Reproducible via hpm.lockYesNo. Global installs are user state, not project state
Unrecognized files in the target directoryRemoved; hpm owns that directoryLeft alone; hpm owns only files it recorded

Use a project install for anything a team needs to reproduce. Use a global install for tools you want in your own everyday Houdini.

How [runtime] methods are emitted

In the generated file, prepend and append are written as single-element JSON lists. The list form matters for them — Houdini only honors method on a custom variable when the variable’s first definition uses a list value; with a flat string every later entry silently overwrites the variable regardless of its declared method.

set is emitted as a bare flat string instead (Houdini’s package system has no set method). This is deliberate: a path-registered variable that Houdini seeds itself — OCIO, PYTHONPATH, HOUDINI_*_PATH — is always merge-able, so a list-form replace appends onto Houdini’s seed (you’d get builtin;project, which breaks OCIO) instead of replacing it. A flat string overwrites the seed cleanly and load-order-independent, which is exactly what set promises. (A genuinely conditional set value — a { when, set } list — can’t be a flat string, so it falls back to the list replace form; gate the whole package on the condition, or set such a path variable flat, if you need the overwrite there.)

Project overrides

An install writes the project’s [runtime] entries into a dedicated ~hpm-project-overrides.json in the project packages dir. Houdini processes package files in byte-wise filename order and ~ sorts after every slug character, so the overrides file always applies last — after every per-package file — and each override is applied exactly once, no matter how many packages declare the same variable. This also means a project [runtime] entry takes effect even when no package declares the variable. Since a project-level entry has no owning package, $HPM_PACKAGE_ROOT is undefined there (sync warns if a project entry references it).

Installing an archive without HPM

The archive unzips to {slug}.json beside a {slug}/ content folder. Keep those two together. Every path in the json is written relative to the json’s own location — $HOUDINI_PACKAGE_PATH means the directory holding this package file — so the pair is movable as a unit but not separable.

Given that, there are three ways to register it, none of which require editing anything:

  1. Move both into a Houdini packages directory — $HOUDINI_USER_PREF_DIR/packages, $HSITE/houdini<ver>/packages, $HOUDINI_PACKAGE_DIR, or $HFS/packages. You get packages/{slug}.json + packages/{slug}/..., exactly where the json’s paths point.

  2. Keep both wherever you like and point Houdini at that folder. Put a one-line file in a packages directory:

    { "package_path": "/path/to/where/you/unzipped" }
    

    Houdini processes every package file directly in that folder, and $HOUDINI_PACKAGE_PATH inside {slug}.json resolves to it. Note that package_path cannot use variables set by any env block — only variables from the environment Houdini was launched with.

  3. Register it from the Package Browser. Drag the shipped {slug}.json into the Package Browser pane — the .json, not the .zip and not the content folder. Houdini writes a {slug}_autoload.json into your packages directory that points back at the file, which behaves like option 2.

Separating the two — json in a packages directory, content somewhere else — is the only arrangement that needs the file edited, because the paths are no longer relative to anything useful. Option 2 exists to avoid exactly that.

The Package Browser’s File > Install Package Archive does not use the shipped json at all. Houdini honours a bundled package file only when it is named <archive-stem>.json; hpm pack names the archive {slug}-{version}-{platform}.zip, so ours is not merely ignored — it is never written to disk. Only the {slug}/ folder is extracted. Houdini then writes its own package file into a packages directory holding enable and hpath only, with hpath pointing at the extracted folder.

That still loads everything Houdini finds by convention under a HOUDINI_PATH entry — otls/, toolbar/, scripts/, python_panels/, viewer_states/, and dso/. What it cannot load is anything reachable only through a [runtime] variable, since no env block survives. A package whose native plugins sit in a version-keyed tree such as bin/$HOUDINI_MAJOR_RELEASE.$HOUDINI_MINOR_RELEASE/dso loses them silently; one that keeps them in a plain dso/ folder is unaffected. Verified against Houdini 21.0.729.

Dependencies in a hand-installed archive

An archive contains one package, not its dependency tree. The generated {slug}.json lists the manifest’s [dependencies] under Houdini’s recommends, never requires: requires is a hard gate, so a dependency that isn’t present would make Houdini disable the package outright and it would load nothing at all — no HDAs, no environment, no toolbar. With recommends, Houdini instead logs

WARNING: The recommended package <dep> for <slug> is either missing,
disabled or invalid.

and loads what the archive does ship. If the package genuinely needs that dependency at runtime, install it too — either with hpm install, which resolves the whole tree, or by unpacking each dependency’s archive into the same packages directory. Packages installed by HPM are unaffected: their manifests declare neither field, because HPM has already installed every dependency before Houdini starts.

Python environments

How hpm provides Python packages to Houdini: which Python they are built for, how the virtual environment is put together, when it is shared, and when it is removed. For the steps to add a dependency, see Add Python dependencies to a package; for the manifest syntax, see [python_dependencies].

The problem

Houdini embeds its own Python interpreter. A package that imports numpy or requests needs those installed for exactly that interpreter’s version, without installing into Houdini itself, and without disturbing the system Python or other packages.

hpm’s answer is a virtual environment per set of resolved packages, kept under ~/.hpm/venvs/, and put on PYTHONPATH by the package files Houdini reads at startup. Houdini’s own Python runs the code; the environment only supplies site-packages.

Which Python

Houdini ships one Python per release:

HoudiniPython
20.53.11
21.x3.11
22.x3.13

hpm takes the lower bound of the project’s [compat].houdini and builds for the matching Python. ">=20.5, <22" uses 20.5; "21" and "21.0" mean the same.

The project decides, not the packages. A package’s own [compat].houdini says which Houdini versions it supports. If it chose the Python, a project on Houdini 22 using a package that declares >=21 would get Python 3.11 packages, and compiled modules would fail to import in Houdini 22’s Python 3.13.

A lower bound hpm has no mapping for (>=23, >=19, or something that is not a version) is an error at install time. Houdini 19.x and 20.0 to 20.4 are not supported; their Python versions are past end of life.

How an environment is built

During hpm install, after the packages are in the store:

  1. Collect [python_dependencies] from every installed package. The same Python package declared twice must carry the identical constraint; optional entries are dropped.
  2. Make sure a CPython of the right version exists under ~/.hpm/uv-python/, downloading it if not.
  3. Resolve the constraints to exact versions with uv pip compile.
  4. Hash the Python version and the resolved name: version pairs. The first 16 hex characters of the SHA-256 name the environment: ~/.hpm/venvs/<hash>/.
  5. If that directory already holds every resolved package, use it. Otherwise create it and install into it.
  6. Record the packages that use the environment in its metadata.json.
  7. Add the environment’s site-packages to PYTHONPATH in the package file of each package that declares Python dependencies.

Resolution in step 3 runs on every install. hpm.lock does not pin Python packages, so a loose constraint can resolve to a newer release later, which produces a different hash and a new environment beside the old one.

Sharing

The environment’s name depends only on what was resolved, so any two projects whose packages resolve to the same set use the same directory:

Project A: numpy 2.1.3, requests 2.32.3     -> a1b2c3d4e5f60718
Project B: numpy 2.1.3, requests 2.32.3     -> a1b2c3d4e5f60718  (same directory)
Project C: numpy 2.2.0, requests 2.32.3     -> f6e5d4c3b2a19008

Extras affect the name only through the packages they pull in.

Within one project, all packages share one environment. That is why two packages cannot ask for incompatible versions of the same Python package: Houdini has one sys.path.

Environments for scripts

[scripts] use the same machinery outside Houdini:

  • A script with python or requirements gets an environment holding only those requirements.
  • A script with package-env = true runs in the project’s full environment: the Python dependencies of the project’s own manifest and of its installed packages, with each package’s python/ folder on PYTHONPATH.

Note the difference from what Houdini gets: the project’s own [python_dependencies] are part of the package-env environment, and not part of the environment built for Houdini.

Isolation

hpm runs its own pinned uv, downloaded on first use to ~/.hpm/tools/uv-<version>/ and checked against a SHA-256 compiled into hpm. Its cache, configuration and CPython builds live under ~/.hpm/ too. A uv you installed yourself is neither used nor affected, and nothing is installed into the system Python or into Houdini.

All of these paths follow [storage] home_dir.

Cleanup

Environments are a cache. Deleting one is always safe; the next install rebuilds it.

hpm clean --python-only and hpm clean --comprehensive remove environments nothing uses:

  • An environment that records its users is removed when none of those packages is installed any more.
  • An environment with no recorded users, which is what a script’s own environment looks like, is removed once it has gone unused for 30 days.

See Keep disk usage down.

Resources

Registries

A registry is where HPM looks up package metadata — names, versions, download URLs, checksums, and dependency lists. HPM supports two flavors:

  • API registries speak HTTP and serve JSON from a handful of endpoints.
  • Git registries are Cargo-style indexes: a Git repository with one JSON-lines file per package.

This page covers how to add and manage registries, how HPM resolves through them, and how to configure them per user or per project. To host one, see Run a studio registry and Registry formats.

Adding a registry

hpm registry add <URL> [--name <alias>] [--type api|git] [--if-not-exists]

Examples:

# Git-index registry
hpm registry add git@git.studio.example:pipeline/hpm-index.git --name studio --type git

# API registry
hpm registry add https://registry.vendor.example/v1/registry --name vendor

# No --name: HPM infers an alias from the URL
hpm registry add https://api.vendor.example/registry
# → added as "registry"

# Idempotent add: succeed silently if a registry with this name already
# exists, instead of erroring. Useful in provisioning scripts.
hpm registry add git@git.studio.example:pipeline/hpm-index.git --name studio --type git --if-not-exists

By default, adding a registry whose name already exists is an error. Pass --if-not-exists to treat that as a no-op (exit 0) so automated setup can re-run safely.

This writes to ~/.hpm/config.toml:

[[registries]]
name = "studio"
url = "git@git.studio.example:pipeline/hpm-index.git"
type = "git"

[[registries]]
name = "vendor"
url = "https://registry.vendor.example/v1/registry"
type = "api"

A git registry’s url may be an https://, ssh:// or file:// URL, an scp-style git@host:path, or a local or network path to the index repository. HPM refuses git:// and http:// (unauthenticated plaintext), the <transport>::<address> remote-helper syntax, anything starting with -, and a host starting with - (which ssh would read as an option), both in config.toml and in a project’s hpm.toml. Git runs with only the https, ssh and file transports enabled.

Listing

hpm registry list

Per-user vs per-project

Registries can be declared in two places:

  1. Per-user — ~/.hpm/config.toml. Managed by hpm registry add/remove/list. Applies to every project you work on.
  2. Per-project — hpm.toml under [[registries]]. Applies only to that project. Additive to per-user registries.

Per-project registries are useful when a studio wants each project to pin the registries it resolves against:

# hpm.toml
[[registries]]
name = "studio"
url = "git@git.studio.example:pipeline/hpm-index.git"
type = "git"

[[registries]]
name = "vendor"
url = "https://registry.vendor.example/v1/registry"
type = "api"

[dependencies]
"acme/rock-tools" = { version = "0.1.0", registry = "studio" }

Every team member who clones the project gets the same registry set, without needing to run hpm registry add themselves.

Targeting a specific registry from a dependency

By default, HPM resolves a dependency by querying every configured registry in order and taking the first match. To pin a dependency to one registry, use the detailed dependency form:

[dependencies]
"acme/rock-tools" = { version = "0.1.0", registry = "studio" }

Or from the command line, which records the pin in hpm.toml for you:

hpm add acme/rock-tools@0.1.0 --registry studio

The pin is authoritative. Resolution, install, and hpm update consult only the named registry — there is no fallback to the rest of the set, since falling back is exactly what a pin exists to prevent. Naming a registry that is not configured is an error rather than a silent search elsewhere.

This is useful when:

  • A package exists under the same name in multiple registries and you want to be unambiguous.
  • A private registry should always win over a public one for specific packages.
  • You want a dependency’s source to survive someone else adding a registry that happens to carry the same name.

Note the lock file does not record which registry a dependency came from — it pins the version, checksum, and resolved URL. The registry key in hpm.toml is what makes the source reproducible.

Refreshing and removing

hpm registry update           # refresh every configured registry's cache
hpm registry remove studio    # drop a registry from the config

hpm registry update does the right thing for each type:

  • API registries: nothing to do — API registries are always queried live, so there is no cache to invalidate. HPM reports OK (live).
  • Git registries: git pull the index repository to pick up new packages and versions.

Run hpm registry update after a new version is published to a Git registry. For API registries a newly published version is visible immediately, with no refresh step.

Auto-detection of registry type

If you don’t pass --type, hpm registry add infers it from the URL:

URL patternInferred type
Ends with .gitgit
Contains github.comgit
Contains giteagit
Anything elseapi

Override with --type api or --type git when the heuristic gets it wrong, for example for a Git index on a host not named above, or a local path.

Searching

hpm search <query>

hpm search queries each configured registry in turn, in the order they appear in the config. If no registries are configured, HPM prints a hint to run hpm registry add and exits cleanly (emitting [] under --output json).

With --output json, results are emitted as a JSON array suitable for piping into other tooling:

hpm --output json search geometry | jq '.[].name'

Each entry includes the package name, version, optional description, and optional Houdini compatibility string — one entry per version, even for a package published for several platforms (see Multi-platform packages). A yanked: true entry signals that the maintainer pulled that version; HPM still shows it in search results.

How a yank affects resolution depends on how you asked for the version:

  • A range requirement (^1, *, >=2, <3) skips yanked versions when picking the highest match.
  • An exact pin (1.2.0) still resolves, yanked or not. This is deliberate, so that a lockfile pinning a version that was later yanked keeps installing rather than breaking.

Multi-platform packages

A package that declares [compat].platforms publishes one archive per platform, and the registry stores each as its own record. HPM shows you versions, not archives: a release built for Windows and Linux appears once in hpm search and in any version listing, not twice.

Which archive you get is decided at install time, from the host: an exact platform match first, then a universal build, and otherwise NoCompatibleBuild rather than a silent fall back to some other platform’s archive. A version that has no build for your platform still lists — you can see it exists, and see its Houdini compatibility — it just won’t install here. When hpm install chooses a version for a package the project does not pin, it passes over such a version.

Use --platform on hpm pack to build for a platform other than the host; see hpm pack.

Caching

HPM caches Git registry indexes under ~/.hpm/registry/<digest>/, where the directory name is a digest of the registry’s remote URL. The cache is per-remote, not per-project, so every project using the same remote shares one clone, while two registries that share a display name but not a URL never read each other’s index. A clone whose origin no longer matches its remote is discarded and cloned again.

  • Git cache: a local clone of the index repository. Updated by hpm registry update.
  • API registries are not cached. Every resolution and search hits the API live, so there is nothing under ~/.hpm/registry/ for them.

The cache is advisory — if it’s corrupted or deleted, HPM re-fetches on the next operation. Never edit it by hand.

Security Guide

This guide covers HPM’s security features, the threat model, package signing, and operational best practices.

Integrity and reproducibility

HPM protects against tampering and drift through three layers.

SHA-256 checksums

Every package HPM installs is hashed as installed — a SHA-256 over the installed tree’s relative paths and file contents, each framed by its length — and the hash is recorded in hpm.lock as v2:<hex>. Lockfiles written before this format record a bare <hex> digest of the same paths and contents without the framing; hpm still verifies those as they are:

# hpm.lock (excerpt)

[package]
name = "acme/my-tools"
version = "1.0.0"

[dependencies."acme/utility-nodes"]
version = "1.2.0"
checksum = "v2:a3f2b8c9..."

[dependencies."acme/utility-nodes".source]
type = "url"
url = "https://packages.studio.example/utility-nodes-1.2.0.zip"
version = "1.2.0"

[metadata]
generated_at = "2026-03-14T10:30:00Z"
hpm_version = "0.40.2"
platform = "linux-x86_64"

Verification happens at two points:

  • On download: the archive bytes are hashed and compared against the registry entry’s cksum before anything is extracted. A mismatch removes the corrupt cached archive and aborts the install. Registry entries without a checksum install with a warning.
  • On every hpm install: each package hpm.lock pins at the version the manifest asks for is verified against its locked checksum, whether it is freshly downloaded (before it is stored) or reused from ~/.hpm/packages/. A machine that has never installed the package fetches it and verifies it the same way.

A mismatch at either point aborts with a clear error — corrupted or tampered packages never silently reach Houdini.

Lock file pinning

hpm.lock pins the exact version and a checksum of every registry and URL package installed, including the ones installed because another package requires them. It does not pin Python packages: it records their constraints, and uv resolves them again on each install (see the lock file reference). Commit it to version control. In CI, use --frozen-lockfile to fail the build if the lock would need to change:

hpm install --frozen-lockfile

This catches three failure modes:

  • The lock file is missing entirely.
  • A dependency’s constraint or a registry’s contents have drifted since the lock was written.
  • A registry or URL dependency is not pinned with a checksum: under --frozen-lockfile every one must be, so a frozen install reproduces exact bytes.

Staleness detection

Lock files include a generated_at timestamp. HPM warns on install and audit if the lock is older than 90 days — a heuristic for “you probably haven’t checked for security fixes in a while”. The warning is advisory; it does not block the install.

Package signing

hpm pack can sign the archive it produces with an Ed25519 key.

hpm signs, but does not verify. Signing is a produce-only feature. hpm emits a signature and keyId, and the registry entry carries sig/kid fields, but no hpm install path reads or checks them — the only integrity check on download is the SHA-256 checksum. Verifying a signature is currently the responsibility of whoever consumes the artifact (your registry, your CI, or a manual openssl check). Everything in this section describes the wire format such an external verifier needs; none of it describes a check hpm performs on your behalf.

Wire format

PropertyValue
Signature algorithmEd25519 (RFC 8032).
Private key formatPKCS#8 PEM (a BEGIN PRIVATE KEY block). Generated by openssl genpkey -algorithm ed25519.
Public key formatSubjectPublicKeyInfo PEM (-----BEGIN PUBLIC KEY-----). Extracted with openssl pkey -pubout.
Signature encodingStandard base64 (RFC 4648, alphabet A–Z a–z 0–9 + /, = padding). Emitted as fileSignature. Verifiers must use the standard alphabet, not base64url.
Key identifierFirst 8 bytes of the Ed25519 public key, hex-encoded (16 characters). Emitted as keyId. Lets registries index multiple keys per creator without transmitting the full public key on every artifact.
Signed payloadThe raw bytes of the produced .zip archive.

Generating a key pair

openssl genpkey -algorithm ed25519 -out signing.pem
openssl pkey -in signing.pem -pubout -out signing.pub.pem

Keep signing.pem private and outside the package directory (hpm pack refuses to package a PEM private key, or a link pointing outside the package). Publish signing.pub.pem through your registry or creator dashboard so consumers know what to verify against.

Signing a package

Three equivalent ways, tried in this order:

# 1. Explicit flag
hpm pack --key ~/.hpm/signing.pem

# 2. Environment variable. Either a path, or inline PEM content
#    (detected by a leading "-----BEGIN" marker). The inline form is meant
#    for CI systems that inject secrets as plain strings.
export HPM_SIGNING_KEY="$(cat signing.pem)"
hpm pack

# 3. Configured fallback in ~/.hpm/config.toml
# [signing]
# key_path = "/Users/me/.hpm/signing.pem"
hpm pack

The resolution order is flag → env → config. The first that’s set wins.

Output

With --json, hpm pack emits a machine-readable record suitable for CI pipelines and registry upload tooling:

{
  "archive": "dist/my-tools-1.0.0-linux-x86_64.zip",
  "sha256": "a3f2b8c9...",
  "signature": "base64-standard-encoded-ed25519-signature",
  "key_id": "7a1c3e5f9b2d4860",
  "platform": "linux-x86_64"
}

signature and key_id are present only when a signing key was supplied. platform is present only when the manifest declares [compat].platforms.

The wire format described above — PKCS#8 PEM keys, Ed25519 signatures, standard base64, key_id as the first 8 bytes of the public key in hex — is pinned by a known-answer test over a fixed key and message. Ed25519 is deterministic (RFC 8032), so a signature is reproducible byte for byte, and an upgrade of ed25519-dalek, sha2 or base64 that changed the encoding fails that test rather than silently invalidating every signature already published.

Operational guidance

  • Store the private PEM in a secret manager (Vault, Infisical, GitHub Actions secrets) rather than on disk in CI runners.
  • Treat keyId as public — it leaks nothing about the private key, but anchors verification to a specific key version.
  • Rotate by generating a new key pair, publishing the new keyId, and re-signing future releases. Your verifier should accept both the old and new keyId during the overlap window.
  • A keyId mismatch at verification time means either the wrong public key is configured, or the signer rotated without updating the registry. Note that this check happens in your verifier — hpm does not perform it (see the note under Package signing).
  • A registry that stores signatures should also publish its signers’ public keys; that is the key source an external verifier resolves keyId against.

hpm audit

hpm audit

Audit runs against the current project and reports:

CheckEmits
HTTP URLs in [dependencies] (only the url = … form)WARN per offending dependency.
hpm.lock presencePASS or WARN (No lock file found).
hpm.lock stalenessPASS (recent) or WARN (Lock file is N days old) when N > 90.
hpm.lock readableFAIL (Failed to load lock file: ...) when it cannot be parsed.
Package checksum verificationPASS or FAIL (Checksum verification failed: ...).
Installed files against their install recordsPASS (Installed files match their install records) or a FAIL per recorded file that is missing, truncated or changed. Packages installed before hpm 0.36.0 have no record and are skipped.

HTTP URLs and a missing or stale lock are advisory warnings. A checksum mismatch, a missing, truncated or changed installed file, or an unreadable hpm.lock is an integrity failure: it prints FAIL and hpm audit exits 1, so it can gate CI.

Example output:

HPM Security Audit
========================================

  PASS All URLs use HTTPS
  PASS Lock file exists (hpm.lock)
  PASS Lock file is recent
  PASS Package checksums verified
  PASS Installed files match their install records

No security issues found.

Transport security

  • HPM uses rustls for all HTTPS (no OpenSSL). Certificates are verified against the operating system’s trust store (through rustls-platform-verifier), so which roots are trusted is whatever each machine trusts: a root added to a studio’s machines is trusted by HPM too.
  • Registry answers and package archives are fetched only over HTTPS, or plain HTTP to this machine (localhost, 127.0.0.0/8, ::1) for local mirrors. Redirects follow the same rule and never step down from HTTPS to HTTP. Git registries accept https://, ssh://, file://, git@host:path or a local path, never git:// or http://, and never a URL or host starting with -.
  • TLS and checksums protect different things. A download is checked against the registry’s checksum and, when the project has a lockfile entry for that version, against the locked tree checksum. On a first resolve with no lockfile, the checksum arrives from the same registry over the same connection, so it detects corruption, not a compromised registry or a TLS-level attacker; a registry entry without a checksum installs with only a warning. Commit hpm.lock so later installs are pinned to bytes you have already seen.

What hpm does to an archive before trusting it

A package archive comes from wherever its registry entry or URL points, so hpm treats its contents as untrusted input:

  • Identity. The archive’s own hpm.toml must declare the package and version that were requested. An archive claiming to be another package is refused, so it cannot occupy that package’s place in the store.
  • Confinement. Every entry is extracted inside the install directory. Names with an absolute path, a drive, a .. component, a backslash, a colon or a NUL are refused, and symlink entries are skipped.
  • Permissions. Extracted files never receive setuid, setgid or sticky bits, or group or world write permission.
  • Size. An archive may expand to at most 1,000,000 entries and 256 GiB.
  • Formats. Only stored and deflated zip entries, and tar.gz, are decoded.

Names and versions from manifests, lock files and registries are checked before they are used in a path, so none of them can address a location outside the store, the cache or the staging directory.

Text from registries and manifests is printed with control characters and Unicode bidirectional controls removed, so it cannot inject terminal escape sequences.

Where hpm writes

hpm writes under ~/.hpm/, in the project’s hpm.lock and .hpm/, and, for hpm global, one file per package in Houdini’s preferences directory. Files and directories lists every path.

Houdini’s packages/ directory is the only one hpm writes to without owning it. It is shared with SideFX’s files, other tools, and anything you put there by hand. hpm therefore never scans it to decide what to delete: writes are confined to the hpm- prefixed file for the package being installed, and deletions to the exact file recorded in the ledger at ~/.hpm/global/houdini-{X.Y}.json.

A cloned project is untrusted too. Its .hpm/config.toml may set only [install]; it cannot move hpm’s home, choose a signing key, or redefine your registries. A project whose .hpm or .hpm/packages is a symlink is refused, and a Git registry URL a project declares is validated before it reaches git.

If you relocate the home with [storage].home_dir, pick a path that only your user account can write. hpm does not sandbox itself against other local users.

Best practices

Use HTTPS registries

# Good
[[registries]]
name = "vendor"
url = "https://registry.vendor.example/v1/registry"
type = "api"

# Refused — plaintext leaks names and lets attackers swap archives in flight
[[registries]]
name = "vendor"
url = "http://registry.vendor.example/v1/registry"
type = "api"

HPM refuses the second form; only a registry on this machine may use plain HTTP.

Commit hpm.lock

Treat hpm.lock like Cargo.lock or package-lock.json — check it in, review diffs, and merge conflicts carefully.

Use --frozen-lockfile in CI

- name: Install HPM dependencies
  run: hpm install --frozen-lockfile

Fails fast if the lock is missing or stale. Catches unintended resolver drift before it reaches production.

Run hpm audit in pre-release checks

Cheap, fast, and flags the easy mistakes (HTTP deps, missing or stale lock, checksum drift). Add it to your release workflow.

Review new dependencies

Before adding a dependency:

  • Verify the package is from the creator you expect.
  • Check the repository’s recent activity — is it maintained?
  • Skim the manifest for scripts, native binaries, and [runtime] entries that do more than you want.

HPM gives you reproducible, verifiable installs of whatever you asked for. It cannot tell you whether what you asked for is trustworthy.

Rotate signing keys periodically

Ed25519 keys don’t expire, but a key that leaked a year ago is still a leak. Rotate at studio-appropriate cadence and publish the new keyId.

Threat model

Mitigated

ThreatAttack vectorMitigation
Cache tamperingAttacker modifies a package under ~/.hpm/packages/.SHA-256 verification against hpm.lock before use.
Man-in-the-middleAttacker intercepts a download.TLS (HTTPS only, no downgrade on redirect). The lockfile’s checksum catches substituted bytes for a locked version; a first resolve relies on TLS alone.
Lockfile poisoningAttacker rewrites hpm.lock checksums.Install verifies packages against the lock, so a rewritten checksum fails against the real bytes; a lock rewritten to match substituted bytes is only caught in review. Review lockfile diffs in code review.
Swapped bytes for a locked versionRegistry or mirror serves different bytes for a version the lock pins.Install fails: fetched and stored copies must match the locked checksum.
Dependency driftSame project produces different installs over time.Exact version + checksum pinning for Houdini packages; --frozen-lockfile. Python packages are not pinned by the lock (see below).
Stale dependenciesOld versions with known CVEs.90-day staleness warnings; hpm update surfaces newer versions.
Replay of a vulnerable versionRegistry serves an older artifact than expected.Version and tree checksum are pinned in the lockfile; a registry answering for a different version than asked, or with different bytes for a locked version, is refused. Without a lockfile, the registry’s answer is taken as given.

Not addressed

HPM does not protect you against:

  • Malicious code in a legitimate package. If the author intends to do harm, HPM will faithfully distribute that harm.
  • Unknown signer. An unknown party uploading an archive that claims to be from a creator is not something hpm detects. hpm pack --key produces an Ed25519 signature and keyId, but hpm never verifies them on install — mitigation depends entirely on a verifier your registry or CI runs. See Package signing.
  • Compromised upstream sources. If the registry or Git server itself is compromised, HPM trusts what it serves. Checksums pin the bytes to what the lockfile recorded, but a first-time resolve takes the registry at its word, and there is no signature check to fall back on.
  • Python packages. [python_dependencies] are resolved by uv from the Python package index on each install. hpm.lock pins neither their versions nor their hashes, so a new or replaced release on the index can change what is installed. Pin with == to fix versions; hpm offers no hash pinning for them.
  • Scripts. hpm run and [stage].prepack execute commands a package’s manifest declares, with your permissions. hpm install runs none of them.
  • Zero-day vulnerabilities in dependencies. Use your organization’s security scanning.
  • Supply-chain attacks at the package author. Sign your own releases, encourage consumers to verify, and rotate on suspicion.
  • Local privilege escalation on shared machines. ~/.hpm/ lives in your home directory; anyone with write access to that directory can tamper. Use per-user home directories.

For these threats, layer defenses: code review, dependency scanning (cargo-audit for Rust deps, pip-audit/similar for Python deps), and signature verification at your registry.

Reporting vulnerabilities

Do not open a public issue for security problems. Instead:

  1. Open a private security advisory on GitHub.
  2. Include a reproducer, affected versions, and the impact you observed.
  3. Allow a reasonable window for a fix before public disclosure.

Security releases

Use hpm 0.40.1 or newer. 0.40.0 hardened how hpm treats cloned projects, registries and archives (most of the checks on this page), and 0.40.1 fixes a Windows regression in it. Security-relevant changes are listed under a Security heading in the changelog, and Upgrade notes lists what they require of you.

Design notes

Why hpm behaves the way it does in a few places where the behaviour is surprising until you know the reason. Nothing here is needed to use hpm; the reference pages state the rules, and this page explains them.

File modes on install

An archive’s declared Unix modes are applied as-is, with one repair. Packages are fetched from wherever their version record points — GitHub Releases, SideFX hpack, a studio’s own bucket — and many zip producers drop Unix modes entirely, stamping every entry 0644. Extracting such an archive faithfully would yield a package whose own declared programs cannot be run, failing at spawn with Permission denied (os error 13) on macOS and Linux while working on Windows, where executability is not a file mode.

So when an archive grants a file no execute permission but the file’s leading bytes identify it as a program — an ELF or Mach-O object, or a #! script — install restores the executable bit, mirroring the read bits (0644 becomes 0755, 0640 becomes 0750). The repair is additive: a mode the archive does declare is applied untouched, and a file that is not a program is never made executable. hpm already runs [scripts] programs out of the installed tree, so this grants nothing a well-formed archive could not claim for itself. (A registry archive is checked against the entry’s SHA-256 when the registry supplies one; signatures are not verified yet, and URL dependencies are not checked. See Security.)

The same repair reaches trees that are already installed. A package at a version you already have is never re-extracted, so a tree installed by an older hpm would otherwise keep its broken modes forever — upgrading hpm would appear to change nothing. Instead, whenever hpm reuses an installed tree (install or add finding the version already present) it sweeps it once with the rule above and records that in a <name>@<version>.exec-modes file beside the package directory. The file lives outside the tree deliberately: a package’s checksum is computed over its contents, so a marker inside would change it.

Two limits worth knowing. The sweep is content-driven, exactly like the extraction repair, so it fixes any program in the tree — including a helper binary a script shells out to — but it only ever adds execute where read is already granted, and it will not guess at a file whose bytes don’t identify it. (A shell script with no #! line is not rescued by any of this and cannot be: the kernel refuses to execute it whatever its mode. Ship a shebang, or declare an interpreter in the script’s cmd.) And a tree is swept once: if you deliberately strip a bit afterwards, hpm will not put it back.

Symlink entries are skipped on install. Neither the zip nor the tar.gz extractor creates a link, and a skipped entry is logged. A link is the one entry type that can redirect a later entry’s write outside the target directory — validating the link’s own target would not prevent that — so refusing them is what keeps path-traversal checking sufficient. Archives hpm pack produces never contain one (links are resolved at pack time; see hpm pack); a third-party archive that does will install without them, so a package must not depend on a link existing after install.

Why a bounded range cannot be published to SideFX

hpm pack --sidefx refuses a package whose [compat].houdini has both a lower and an upper bound. SideFX accepts one enable clause, so the natural repair is to split the range into one object key per clause — which is also what hpackage’s own documentation suggests. Do not. Houdini reads an object enable as a conditional map, not a conjunction: every key whose expression matches contributes its boolean, and when no key matches Houdini logs Unsupported value for enable and leaves the package enabled.

Measured with hconfig on 21.0.729 and 22.0.368. Against a range the running Houdini sits above, the object form loads the package and appends its hpath to HOUDINI_PATH; against one it sits below, it loads with the warning. A single-key object behaves the same way, so there is no safe subset. The equivalent string form was correctly disabled in every case.

So the multi-clause string Houdini honours is exactly the one hpackage cannot read, and the form hpackage can read is not a gate. To publish to SideFX, declare a single lower bound such as >=21.0. To keep an upper bound, host the archive somewhere else — the range is unaffected there.

Architecture

Technical overview of HPM — system design, dependency resolution, cleanup, storage, and Python integration. Intended for contributors and integrators.

Table of contents

  1. System overview
  2. Crate layout
  3. Core types
  4. Dependency resolution
  5. Install flow
  6. Project-aware cleanup
  7. Storage architecture
  8. Python integration
  9. Security and performance
  10. Extension points

System overview

HPM is a modular monolith. A single binary (hpm-cli) drives a handful of focused library crates. Responsibilities are split along stable seams: manifest parsing, configuration, resolution, storage, Python, and errors all live in their own crates so they can be reused (e.g., a desktop app can depend on the library crates and skip the CLI entirely).

┌────────────────────────────────────────────────────────────────────────┐
│ CLI (hpm-cli)                                                          │
│   • subcommands: init, add, remove, install, update, list, search,     │
│     run, check, build, pack, audit, clean, registry, global,          │
│     completions                                                        │
│   • output formats: human, json, json-lines, json-compact              │
│   • shell completions: bash, zsh, fish, powershell, elvish             │
└───────────────────────────────────┬────────────────────────────────────┘
                                    │
┌───────────────────────────────────▼────────────────────────────────────┐
│ Core orchestration (hpm-core)                                          │
│   • StorageManager: global package install/remove/list                 │
│   • ProjectDiscovery: scan configured paths for active projects        │
│   • LockFile / LockedDependency / PackageSource                        │
│   • Registry trait + ApiRegistry, GitRegistry                          │
│   • ArchiveFetcher, packer                                             │
└─────────┬──────────────────┬──────────────────┬─────────────────────────┘
          │                  │                  │
┌─────────▼────────┐   ┌───────────────┐   ┌───────────────┐
│ hpm-package      │   │ hpm-assets    │   │ hpm-config    │
│   PackageManifest│   │   Asset       │   │   Config      │
│   DependencySpec │   │   AssetKind   │   │   Storage/    │
│   StageConfig    │   └───────────────┘   │   Projects/   │
│   Platform       │                       │   Signing     │
│   HoudiniPackage │                       └───────────────┘
└──────────────────┘

Python tooling — bundled uv, content-addressable venvs, the Houdini→Python ABI mapping, and per-script venv resolution — lives in hpm_core::python.

hpm-package and hpm-assets are the workspace leaves — neither depends on another HPM crate. hpm-config depends on hpm-package (for the registry types and the shared TOML-file error and atomic-write helpers), so it is not a leaf despite sitting alongside them in the diagram above.

Each crate defines its own error type (e.g. StorageError, LockError) via thiserror; hpm-config has none and returns hpm_package::TomlFileError. Errors surface to the user through CliError in hpm-cli, which converts them to exit codes and help hints.

Key non-functional properties:

  • Language: Rust, edition 2024, MSRV 1.89.
  • Async runtime: Tokio, multi-thread.
  • Configuration: TOML throughout (manifests, lock file, global config).
  • Testing: unit, integration, and property-based (proptest) tests.

Crate layout

CrateResponsibility
hpm-cliCommand-line frontend (clap). Turns command-line invocations into calls on the library crates.
hpm-coreStorage, project discovery, lock file, registry trait + two implementations, archive fetching/packing, Python tooling (python submodule: bundled uv, venvs, cleanup).
hpm-packagehpm.toml parsing and validation, dependency/Python dependency types, Houdini package.json generation, platform enum.
hpm-assetsOperator asset-index model (Asset, AssetKind) emitted by hpm pack from [[operators]] declarations.
hpm-configGlobal and project configuration loading and merging.

Dependencies flow downward: hpm-cli depends on everything else, hpm-core depends on package, assets, and config, and so on. No crate depends upward. Domain errors (StorageError, LockError, …) live in the crate that produces them.

Core types

Selected public types. See cargo doc --workspace --no-deps --open for the full list.

hpm-package

#![allow(unused)]
fn main() {
pub struct PackageManifest {
    pub package: PackageInfo,
    pub compat: CompatConfig,
    pub stage: StageConfig,
    pub registries: Vec<RegistryConfig>,
    pub dependencies: IndexMap<String, DependencySpec>,
    pub python_dependencies: IndexMap<String, PythonDependencySpec>,
    pub runtime: IndexMap<String, ManifestEnvEntry>,
    pub scripts: PackageScripts,
    pub operators: Vec<OperatorDecl>,
}
// All collections and section structs use `#[serde(default,
// skip_serializing_if = ...)]` so an absent TOML section round-trips to
// the same in-memory representation as an empty one.

pub struct PackageScripts {
    pub commands: IndexMap<String, ScriptEntry>,  // flat entries under [scripts]
}

// Untagged: serialises as either a bare string ("cargo build") or a table
// form { cmd, python?, requirements?, label?, description?, package-env? }.
// The table form opts the script into
// a uv-managed venv resolved on demand by `hpm run`, and supports
// conditional cmd values via the same `when` grammar `[runtime]` uses.
pub enum ScriptEntry {
    Plain(String),
    WithEnv(ScriptEnv),
}

pub struct ScriptEnv {
    pub cmd: ScriptCommand,            // flat string or [{ when = { os }, set }, ...]
    pub python: Option<PythonTag>,     // e.g. "3.11"
    pub requirements: Vec<String>,     // e.g. ["PySide6>=6.6"]
    pub label: Option<String>,         // display name for UIs; hpm never acts on it
    pub description: Option<String>,   // one-line description for tooltips/help
    pub package_env: bool,             // run inside the package's full resolved env
}

pub struct PackageInfo {
    pub path: PackagePath,         // "creator/slug", validated kebab-case
    pub name: String,              // freeform display name
    pub version: String,           // semver
    pub description: Option<String>,
    pub authors: Vec<String>,      // empty vec encodes "no authors declared"
    pub license: Option<String>,
    pub readme: Option<String>,
    pub homepage: Option<String>,
    pub repository: Option<String>,
    pub documentation: Option<String>,
    pub keywords: Vec<String>,
    pub categories: Vec<String>,
}

pub enum DependencySpec {
    // The bare-string shorthand `pkg = "1.0.0"` (de)serializes as
    // Registry { registry: None, optional: false }.
    Registry { version: String, registry: Option<String>, optional: bool },
    Url { url: String, version: String, optional: bool },
    Path { path: String, optional: bool, link: bool },       // link=true → symlink/junction install
}

pub enum Platform {
    LinuxX86_64,       // "linux-x86_64"
    LinuxAarch64,      // "linux-aarch64"
    MacosX86_64,       // "macos-x86_64"
    MacosAarch64,      // "macos-aarch64"
    WindowsX86_64,     // "windows-x86_64"
    WindowsAarch64,    // "windows-aarch64"
    Universal,         // "universal" — OS-agnostic (pure-Python / data)
}
}

hpm-core

#![allow(unused)]
fn main() {
pub struct LockFile {
    pub package: LockPackageInfo,
    pub dependencies: BTreeMap<String, LockedDependency>,
    pub python_dependencies: BTreeMap<String, LockedPythonDependency>,
    pub metadata: Option<LockMetadata>,
}

pub struct LockedDependency {
    pub version: String,
    pub checksum: Option<String>,    // "v2:<hex>" SHA-256 of the installed tree (tree_hash); bare <hex> in older locks
    pub source: LockedSource,        // Url { url, version } | Path { path }
}

#[async_trait]
pub trait Registry: Send + Sync {
    async fn search(&self, query: &str) -> Result<SearchResults, RegistryError>;
    // One entry per *build*, not per version — see below.
    async fn get_versions(&self, name: &str) -> Result<Vec<RegistryEntry>, RegistryError>;
    async fn get_version(&self, name: &str, version: &str) -> Result<RegistryEntry, RegistryError>;
    async fn refresh(&self) -> Result<(), RegistryError>;
    fn name(&self) -> &str;
}
}

A RegistryEntry is one published archive, so a version released for Windows and Linux is two entries differing in dl, cksum and platform. The trait deliberately exposes them all: get_version picks the host’s with select_build_for_host, and it needs the full set to choose from.

RegistrySet::get_versions and RegistrySet::search are the version views on top of that. They collapse each (name, version)’s builds to a single entry — the host’s build, then a universal one, then the first row — so a version picker shows a two-platform release once rather than twice, and highest_matching (which compares version strings and nothing else) resolves an unpinned range to an archive this host can actually run. A version with no build for this host still lists, carrying its own metadata; deciding it is uninstallable stays select_build_for_host’s job at install time. search collapses per registry, so a package served by two registries still shows both.

hpm-core::python

#![allow(unused)]
fn main() {
pub struct PythonVersion {
    pub major: u8,
    pub minor: u8,
    pub patch: Option<u8>,
}

pub struct ResolvedDependencySet {
    pub python_version: PythonVersion,
    pub packages: BTreeMap<String, String>,   // name → exact version
}

pub struct VenvManager { /* … */ }

impl VenvManager {
    pub async fn ensure_virtual_environment(
        &self,
        resolved: &ResolvedDependencySet
    ) -> Result<PathBuf, PythonError>;
}
}

hpm-config

#![allow(unused)]
fn main() {
pub struct Config {
    pub install: InstallConfig,
    pub storage: StorageConfig,
    pub projects: ProjectsConfig,
    pub registries: Vec<RegistrySourceConfig>,
    pub signing: SigningConfig,
}

pub struct StorageConfig {
    pub home_dir: PathBuf,            // default: $HOME/.hpm
    pub cache_dir: PathBuf,
    pub packages_dir: PathBuf,
    pub registry_cache_dir: PathBuf,
}
}

Configuration is layered: defaults → ~/.hpm/config.toml → <cwd>/.hpm/config.toml. Files are parsed as presence-aware overlays (ConfigOverlay), so each layer overrides exactly the values it sets — a file that omits a section leaves the lower layers untouched.

Dependency resolution

hpm install installs the project’s dependencies and every package their versions require (ProjectManager::sync_dependencies_with): an exact version is a pin, a range takes the newest version in it that fits, and hpm add / hpm update write the version they choose back as an exact one. The set is chosen by registry::closure::select_closed, the same loop an application that embeds hpm runs, so the two install the same packages for the same project. A path dependency takes part as registry::closure::working_copy: the version its hpm.toml declares, held like a pin, requiring that file’s registry dependencies. A package the project does not list keeps the version hpm.lock recorded while the set still fits it (the lock’s versions are offered as pinned supplied packages); when it does not fit, or under SyncOptions::refresh (hpm update), it is chosen anew, and --frozen-lockfile fails instead (registry::closure::select_keeping). A pinned package already in the store contributes its requirements from its installed hpm.toml, so a project that is installed and locked syncs without asking a registry. SyncOptions::excluded names packages the sync must leave out unless the manifest lists them (an embedding application passes the ones it excluded when choosing the set: switched off, or not available to the account); a requirement on one is left unmet, so it is never looked up, installed, locked or loaded.

Choosing which versions a set of packages should use is hpm_core::registry::solve. A registry entry carries deps, the version ranges that version requires of other packages (its manifest’s [dependencies], as the registry stores them), and houdini_compat. solve takes the registry’s version lists for a set of packages, the target Houdini, and any pins, and returns one version per package such that every chosen version’s deps on the others hold: a pin stands as written, and an unpinned package takes its newest non-yanked version that supports the Houdini and has a build for the host (or a universal one), backtracking when that version cannot coexist with the rest. The platform rule is install’s, and registry::has_build_for is that rule on its own for an application that ranks versions itself: the version views list a version with no build for the host, and a solver that chose it would fail the install with NoCompatibleBuild even when an older version would have installed. A requirement on a package outside the set constrains nothing; it does not add the package.

solve_with also takes packages that are available. One of those is part of the answer exactly when a chosen version requires it, directly or through another available package, and it constrains nothing while it is not. A version whose requirements cannot be met, because the required package has no version that fits or rules that version out itself, is passed over for an older one. registry::closure::select_closed offers the required packages, and offers again whatever the answer’s versions require that it had not fetched yet, until nothing is missing; where versions come from is a VersionSource (the registries for hpm install). The choice has to be made inside the search: adding a required package to the set and removing it when the next answer no longer requires it can alternate between two answers and never finish.

When no set of versions works, the error is SolveError::Conflict, and it says in data, not only in its text, what went wrong. It names the package the search could not place and how that package came into the set, and for each version the package could have taken, every requirement that rules it out against the versions selected at the time (a Cause): a selected package that requires this one at versions this one is not, this version requiring a selected package at versions that package is not, or this version requiring a package that has no usable version at all. Each selected package carries its Origin: listed by the project (and whether pinned), or pulled in through a chain of requirements that starts at a listed package. An application can therefore tell a user which of the packages they listed to update or pin, even when the conflict is in a package they never listed. The selected versions are one witness that the package cannot be placed, not the only one.

An embedding application can write a project’s manifest from these selections, which is what keeps a release that breaks an older version of a dependent package from reaching projects on that version.

Version requirement grammar

HPM manifest values accept the usual semver constraint operators:

FormMeaning
=1.2.3, 1.2.3Exact.
^1.2.3Compatible with the given major (>=1.2.3, <2.0.0).
~1.2.3Patch updates allowed (>=1.2.3, <1.3.0).
>=1.0.0, <2.0.0Explicit range.

Install flow

The install command itself is a thin shell — it loads the manifest + lockfile, builds a ProjectManager, and calls sync_dependencies(). Embedding clients use the same ProjectManager entry point, so every client runs the same flow.

 ┌──────────────────────────────────────────────────────────────────────┐
 │ hpm install (CLI)            ── ProjectManager::sync_dependencies ── │
 ├──────────────────────────────────────────────────────────────────────┤
 │  1. Load hpm.toml                                                    │
 │  2. If hpm.lock exists (unreadable → stop):                          │
 │       each locked checksum is the expected tree digest: checked      │
 │       on the extracted archive before it reaches the store, and on   │
 │       a store copy before it is reused (--frozen-lockfile requires   │
 │       one per registry/URL package installed, required ones too)     │
 │       warn if metadata.generated_at > 90 days                        │
 │  3. Install URL deps; read path deps' hpm.toml                       │
 │  4. Choose the set: registry::closure::select_closed over the        │
 │     registry deps, path/URL deps as working copies, the lock's       │
 │     required versions supplied (unless refresh); a set that no       │
 │     longer fits the lock is chosen again unless --frozen-lockfile    │
 │  5. Fetch + install in parallel (one task per package, JoinSet):     │
 │       Registry        → query registry, chosen-version lookup        │
 │                       → ArchiveFetcher → ~/.hpm/fetch/               │
 │                       → install_into_cas → ~/.hpm/packages/<slug>@<v>/ │
 │                         (refused unless its manifest declares the    │
 │                         requested name and version)                  │
 │       Url             → ArchiveFetcher (no registry query)           │
 │                       → install_into_cas                             │
 │       Path            → install_as_dev_copy (or install_as_dev_link  │
 │                         if { link = true })                          │
 │                       → ~/.hpm/packages/_dev/<slug>@<v>/             │
 │                         (real dir for copy, symlink/junction for     │
 │                         link mode — both honor _dev/ CAS isolation)  │
 │     Already-in-CAS deps short-circuit (avoids the install_into_cas   │
 │     remove-and-recopy that breaks on Windows when Houdini is open),  │
 │     but still get one exec_mode::ensure_repaired sweep — nothing     │
 │     else ever revisits a tree installed by an older hpm.             │
 │  6. Merge [python_dependencies] from every installed dep manifest    │
 │     (the root manifest's own are used by package-env scripts only)   │
 │     Python ABI = root manifest's [compat].houdini lower bound        │
 │  7. Ensure managed CPython installed under ~/.hpm/uv-python/         │
 │     (uv python install <ver>) — auto-downloads on clean machines     │
 │  8. Resolve with bundled uv, hash the resolved set, pick or          │
 │     rebuild ~/.hpm/venvs/<hash>/                                     │
 │  9. uv pip install --python <venv>/bin/python                        │
 │ 10. Write <project>/.hpm/packages/{creator}.{slug}.json per package  │
 │ 11. Sweep stale <project>/.hpm/packages/ entries                     │
 │ 12. CLI step: build new lockfile from sync's InstallOutcomes         │
 │     (backfilled from the prior lockfile for short-circuited entries) │
 │     and write hpm.lock                                               │
 └──────────────────────────────────────────────────────────────────────┘

A registry dependency written as a full version is a pin; a range takes the newest version in it that fits the rest of the set (see Dependency resolution). hpm update rewrites each spec to the version it chose and installs with SyncOptions::refresh.

--frozen-lockfile aborts if loading the existing lockfile fails, if any cached checksum mismatches, or if the freshly-resolved set differs from the prior lockfile.

Project-aware cleanup

hpm clean removes packages and venvs no active project depends on. The identity of “active projects” comes from the [projects] config section.

  I = installed packages in ~/.hpm/packages/
  P = active projects discovered via ProjectDiscovery
  D(p) = deps declared by project p, plus every registry/URL package
         p's hpm.lock records, at the locked version
  T(I) = transitive closure over the dependency graph

  orphans = I \ T( ⋃ D(p) )

Implementation outline:

#![allow(unused)]
fn main() {
// crates/hpm-core/src/graph.rs
impl DependencyGraph {
    /// BFS from each root, returning every `PackageId` reachable along
    /// dependency edges. The roots themselves are included.
    pub fn mark_reachable_from_roots(&self, roots: &[PackageId]) -> HashSet<PackageId> {
        let mut reachable = HashSet::new();
        for root in roots {
            let Some(&start) = self.index_of.get(root) else {
                continue;
            };
            let mut bfs = Bfs::new(&self.graph, start);
            while let Some(idx) = bfs.next(&self.graph) {
                reachable.insert(self.graph[idx].id.clone());
            }
        }
        reachable
    }
}
}

DependencyGraph wraps a petgraph graph; its fields are private and it exposes no orphans() of its own. Taking the set difference against what is actually installed on disk is the cleanup plan’s orphan_packages (crates/hpm-core/src/storage/cleanup.rs, reached through cleanup_unused and cleanup_unused_dry_run), which calls mark_reachable_from_roots, adds the global ledger’s roots and subtracts the result from the installed set.

Project discovery scans explicit_paths plus recursive walks of search_roots, respecting max_search_depth and skipping directory names that match ignore_patterns. Only directories containing an hpm.toml are considered projects.

Python venv cleanup uses the same principle against the metadata.json files in each venv, which list the HPM packages using that venv.

Storage architecture

Files and directories is the reference for the on-disk layout. This section explains how the store is written. Two details of the layout matter below: the store is keyed <slug>@<version>/ with the .exec-modes stamp and .files.json install record beside each tree (the package checksum covers the tree’s contents, so nothing hpm adds may live inside it), and fetch/ is where ArchiveFetcher extracts an archive before install_into_cas copies it into the store.

hpm install routes URL/registry deps through a two-step flow: ArchiveFetcher downloads + extracts into ~/.hpm/fetch/, then StorageManager::install_into_cas copies into the canonical CAS at ~/.hpm/packages/<slug>@<version>/. Path deps skip the fetcher entirely and go straight to ~/.hpm/packages/_dev/<slug>@<version>/ via install_as_dev_copy.

Global packages are shared across projects; each project holds only the per-dependency Houdini manifest and a lockfile. This keeps disk usage sane across a studio’s worth of projects. The Houdini JSON manifests carry absolute CAS paths, so the project tree contains no symlinks pointing into the global storage.

Each per-package manifest is named <creator>.<slug>.json. The creator segment is part of the filename because the slug alone is not unique: two creators may publish the same slug, and keying the file on the slug let the second install silently overwrite the first, so Houdini loaded only one of them. . is the separator rather than - because both segments may themselves contain - (a-b/c and a/b-c would collide), while . is not a legal segment character.

sync_dependencies sweeps stale per-package manifests at the end of every install run: any .json in <project>/.hpm/packages/ whose stem is no longer in the resolved dependency set is removed. Without this, a manifest written by a previous run (e.g. for a path dependency that has since been removed) would keep loading the package on Houdini launch even though hpm.toml no longer asks for it. Manifests written by an older hpm under the bare <slug>.json name are not in the current scheme, so the same sweep clears them on the next install — otherwise the package would load twice, once per filename. Note this makes <project>/.hpm/packages/ an hpm-owned directory: unrecognized .json files placed there by hand do not survive a sync.

Global installs

hpm global writes the same Houdini manifest into Houdini’s per-user preferences directory (hpm_core::houdini_prefs resolves it per platform, honouring HOUDINI_USER_PREF_DIR and its __HVER__ placeholder) instead of into a project. It reuses the whole install path — the same RegistrySet, the same CAS, the same shared venvs, and the same manifest builder (build_houdini_package, a free function precisely so both callers produce byte-identical output).

The one structural difference is directory ownership, and it inverts the sweep described above. <project>/.hpm/packages/ belongs to hpm, so the project installer may delete anything it does not recognise there. Houdini’s user packages/ directory belongs to the user: it holds files written by SideFX, by other tools, and by hand. Applying the sweep there would delete them. So global installs are tracked in a ledger at ~/.hpm/global/houdini-<X.Y>.json, and every operation is driven off it — list reads it, remove deletes exactly the filename it records, and nothing ever scans the directory to decide what to delete.

The ledger is also a GC root. The cleanup plan marks reachability from discovered projects, and a globally installed package belongs to no project; without its ledger entry it is unreferenced by construction, so cleanup would delete the store directory while the manifest in Houdini’s preferences kept pointing at it. An unreadable ledger aborts cleanup rather than being treated as empty — “no global installs” and “cannot tell” must not look the same to a collector.

Compatibility is checked before anything is written. The emitted enable expression is evaluated by Houdini at startup, so a package whose [compat].houdini excludes the target version would install successfully and then load nothing, silently. check_compatible turns that into an install- time error.

Path dependencies install into ~/.hpm/packages/_dev/<slug>@<version>/ rather than the registry CAS at ~/.hpm/packages/<slug>@<version>/. The _dev subtree is invisible to list_installed, so a dev install of foo@1.0.0 cannot be served as the cached install for a registry resolution at the same coordinate from a different project.

_dev/ entries are garbage-collected by a parallel cleanup pass driven directly off project path-dependencies (since the CAS-orphan logic deliberately can’t see them). For each discovered project, dev_needs resolves every { path = "..." } dep’s source manifest to its (slug, version) and unions those into the “needed” set. An entry outside it is collected: a link install is unlinked through remove_install_entry (without traversal); a copy container is reclaimed copy by copy under the users rule (reclaim_dev_copies: a copy a running process or recorded project still uses is kept), and the container itself goes only once empty (remove_empty_container). A still-needed container loses only its superseded copies.

Path deps come in two install styles, selected by the link field on the manifest’s { path = "...", link = ? } spec:

  • Copy (default, link = false): install_as_dev_copy snapshot-copies the workspace’s install image into a content-addressed _dev/<slug>@<version>/<source-hash>/ directory (see below). The image is the file set hpm pack / hpm build would stage for the host platform (dev_copy_image): .gitignore + .hpmignore with ! re-includes, the [stage] include/exclude globs of the release profile, and the host’s [stage.platform.*] place rules, plus hpm.toml always. .git/, build trees and virtualenvs are never copied. The walk is the packer’s collect_stage_entries, shared with pack and build so the three cannot disagree (two files placed at one image path are refused by all three); it skips ignored directories without descending into them, but only when the ignore files have no ! rules, because a ! rule can re-include a file under an ignored directory (the nearest matching rule wins). Subsequent working-tree edits don’t reach the install until the next hpm install.
  • Link (link = true): install_as_dev_link creates a symlink (Unix) or NTFS junction (Windows) at _dev/<slug>@<version>/ pointing at the canonicalized workspace. Edits are live; Houdini’s HPATH resolution follows the link transparently. Junctions on Windows side-step the Developer Mode / admin requirement that NTFS directory symlinks carry, so the workflow is viable on a stock Houdini workstation.

Native-binary packages are the exception: when a link = true path dep declares concrete [compat].platforms (anything other than universal), install_inner downgrades it to a copy — see CompatConfig::declares_native_platforms. A junction/symlink would make the workspace’s build output the very DSO/DLL a running Houdini has memory-mapped, so an in-place rebuild fails (Windows LNK1104 / ERROR_SHARING_VIOLATION), and link-mode buys nothing for native code anyway — a mapped DSO can’t hot-reload into a live session; it needs a relaunch, which re-copies and re-runs prepack. Pure-data / pure-Python / universal-only link installs are unaffected.

Dev copies are content-addressed so a re-sync never clears a directory a running Houdini has mapped. dev_copy_image fingerprints the staged file set (destination path + length + mtime of every staged file, stat-only, so churn in ignored build trees does not force a recopy) and that hash names the install directory: the copy lands at _dev/<slug>@<version>/<source-hash>/, and the generated Houdini manifest points hpath there. install_inner stages the copy into a hidden .stage-<pid>-<n> directory and commits it with an atomic, race-tolerant rename (a concurrent install that loses the race drops its stage, since the content is identical by construction). If the target hash directory is already present and complete, the existing install is reused untouched — the copy-mode analogue of the “already installed” short-circuits the registry/URL specs have in install_one_dep.

The payoff is that a rebuild produces a new hash directory rather than overwriting the old one: a concurrently-running Houdini keeps mapping the directory it was launched from, so install_inner never remove_dir_alls a live copy. Before content addressing, an in-place clear-and-recopy of a package a second session still had mapped failed on Windows with os error 5 / StorageError::PackageInUse; that failure is now structurally impossible on all platforms. At install time only a stale link left by a prior link = true install is cleared (clear_container_link, link-safe); the directory of live hashes is left in place.

A copy is kept while something uses it, and removed once nothing does (storage::dev_users). Each user is a small record beside the copy, under <container>/.users/<hash>/, never inside it, so an embedder that copies the install onwards does not carry the records along:

  • A project, recorded when its Houdini manifest is written with hpath pointing at the copy. The record names the manifest, and counts for as long as that file still points there, so a later sync that repoints the manifest retires it without removing anything.
  • A process, recorded with its PID and the OS’s start time for it (a recycled PID is a different process; process_users). The install records its own process from before the copy exists until the project’s manifest points at it. Embedders record what they run against a project (hold_project_dev_copies for a run they wait on, record_project_process for a detached one), because such a run can outlast the project’s next sync.

Every sync_dependencies ends by reclaiming the containers it installed into (reclaim_dev_copies), and the same package’s other version containers (sibling_containers), removing a version’s container once nothing is left in it (remove_empty_container, non-recursive deletes only, so an install that has just started keeps it). This runs on a blocking thread the sync does not wait for, one reclaim at a time per process. A copy is renamed to a hidden tombstone before it is deleted: on Windows a directory with a file open inside cannot be renamed, so a copy read by a process nobody recorded stays whole. On macOS and Linux nothing blocks the rename, which is why the records, not the OS, are the rule. Just before the move the pass decides again, with the records listed afresh, under the lock holds are taken under: an install in the same process either shows there, or takes its hold after the move, finds no copy and makes a new one. An install in another process shares no lock, so the pass asks once more when the copy is aside, and a claimed copy goes back. A project record matches its copy by the canonical container and the hash, never by resolving the copy, which is not there at that moment. A tombstone left behind (a deletion or a move back that failed) is put back by the next pass when its copy is in use again and its place is free, and deleted otherwise. Anything that cannot be judged (an unreadable record, a process the OS cannot be asked about) keeps the copy. On Windows a record or Houdini package file that reads as missing is read again for a moment before it counts as gone, since Windows can report a file that exists as missing. The same pass removes the .stage-<pid>-<seq> directory a crashed or killed copy left behind, once the process its name records is gone.

Copies made before records existed have none, and that means unknown, not unused. The pass after a sync knows one project only and leaves them (Unrecorded::Keep). hpm clean (cleanup_unused_dev_installs) first records the copies every discovered project’s manifests point at, then removes the unrecorded rest, and removes the container of a version no project depends on once no copy in it is in use. It keeps the copy matching the current source, so an unchanged relaunch does not recopy.

Both install replacement (clear_existing_install) and orphan cleanup (remove_package) are symlink-safe: each checks symlink_metadata (is_link) before choosing between remove_dir_all (real dir) and remove_dev_link (remove_file on Unix; junction::delete plus remove_dir on Windows), via a shared remove_install_entry primitive. Without this, a remove_dir_all on a Windows junction would recurse into and delete the user’s workspace on the next sync or orphan sweep.

Both styles set InstalledPackage::is_dev = true. That flag flows through to build_houdini_package, which forwards it, as an InstallSource, to ManifestEnvEntry::lower. The install_source axis on each conditional [runtime] variant is filtered there: variants gated to "dev" only survive for path-installed packages, variants gated to "registry" only survive for registry/URL installs, and variants with no axis fire in both contexts. A registry-fetched install whose every matching variant is install_source = "dev" produces no entry for that key in the generated package.json, so dev-only paths never leak to a published consumer.

Emission targets Houdini’s actual env semantics, as verified with the hconfig conformance harness (hpm-core/src/houdini_conformance_tests.rs) and modeled executably in hpm-core/src/houdini_env_model.rs: prepend / append values are single-element JSON lists (a flat-string first definition makes a custom variable non-mergeable — every later entry overwrites it, whatever its method), set is emitted as a bare flat string (Houdini has no set method; a list-form replace appends onto a path-registered variable Houdini seeded flat-first, e.g. OCIO, so only a flat string overwrites it cleanly — a genuinely conditional set still falls back to replace since it can’t be flat), and conditional branches are compiled mutually exclusive because Houdini applies every matching conditional-array element, not the first match. Project-level [runtime] entries are written once to ~hpm-project-overrides.json in the project packages dir; Houdini processes package files in byte-wise ascending filename order and ~ sorts after every slug character, so that file always applies last — an override lands exactly once, after (or, for set, replacing) every package contribution.

Python integration

The Python layer runs on four ideas, in descending order of importance:

  1. Content-addressable venvs. Hash the resolved dependency set, use it as the venv directory name. Same hash → same venv → shared across packages.
  2. Bundled uv. HPM runs one pinned uv release, downloaded on first use to ~/.hpm/tools/uv-<version>/ and accepted only when it matches the SHA-256 compiled into HPM for that platform; a version bump installs the new release beside the old directory, and the unversioned ~/.hpm/tools/uv older HPM versions used is removed. Its cache (~/.hpm/uv-cache/), config (~/.hpm/uv-config/), and managed CPython installs (~/.hpm/uv-python/, pinned via UV_PYTHON_INSTALL_DIR) are isolated from any system uv so HPM never perturbs your other Python work. These paths, and the venvs, are under the configured [storage] home_dir (~/.hpm by default); in code the Python subsystem takes it as a python::PythonHome.
  3. Self-bootstrapping Python. uv pip compile and uv venv need an interpreter. Before invoking either, HPM runs uv python install <ver> to ensure a managed CPython matching the project’s Houdini ABI exists. This is what makes a clean Windows install (no system Python anywhere) Just Work — without it pip compile errors with No interpreter found in virtual environments, managed installations, search path, or registry. The ensure step is process-cached, so it costs one fast filesystem probe per resolution.
  4. Houdini manifest generation. For each HPM package that declares Python dependencies, HPM writes <project>/.hpm/packages/{creator}.{slug}.json with PYTHONPATH prepended at the shared venv’s site-packages.

Hash function

ResolvedDependencySet::hash (crates/hpm-core/src/python/types.rs) is a SHA-256 over python:<version> followed by each name:version pair, truncated to 16 hex characters. packages is a BTreeMap, so iteration is sorted without an explicit sort. Only names and versions are hashed; extras are not part of the resolved set.

Houdini→Python mapping

map_houdini_to_python_version (python/collection.rs) holds the table shown in Python environments. It is applied to the lower bound of the root manifest’s [compat].houdini; a dependency’s own range is not consulted. Unsupported versions return an error rather than a fallback. Adding a Houdini major means adding an arm there and updating the table in the user docs.

Generated Houdini manifest

How Houdini loads hpm packages shows the emitted file.

method: "prepend" delegates path-separator handling to Houdini so the same manifest works on Windows (;) and Unix (:) without embedding an OS-specific joiner. The generator is hpm_core::project::houdini_emit::build_houdini_package, a free function shared by the project installer and hpm global so both emit identical manifests.

Security and performance

Security

  • Transport: TLS through rustls (pure Rust, no OpenSSL). Certificate verification against the platform trust store. HTTPS only, or plain HTTP to this machine; redirects never step down to HTTP (http::check_transport).
  • Integrity: the archive is checked against the registry’s SHA-256 when it is downloaded (a missing checksum only warns); the SHA-256 of the installed tree is recorded in hpm.lock, and a sync verifies every package the lock pins, fetched (before it reaches the store) or reused, against it (ProjectManager::sync_dependencies_with_lock).
  • Signing: hpm pack --key signs archives with Ed25519 over PKCS#8 PEM private keys. keyId = first 8 bytes of public key, hex-encoded. See Security for the wire format.
  • Isolation: bundled uv runs out-of-process with its own cache and config, never touching system state.

Performance

  • Concurrent downloads: registry-fronted installs run in parallel, bounded by [install].parallel_downloads (default 8).
  • Content-addressable dedup: both HPM packages (keyed by slug@version in the global CAS) and Python venvs (keyed by resolved-set hash) are deduplicated globally.
  • Cache hits: uv’s cache eliminates wheel re-downloads across projects; HPM’s venv cache eliminates install work when a matching set is found.
  • Atomic filesystem ops: packages are extracted to a temp directory and renamed into place to avoid partial states.

Extension points

Programmatic configuration

The library crates can be used without the CLI. Embedders (desktop apps, pipeline tools) build a Config in-memory by starting from Config::default() and setting the fields they need:

#![allow(unused)]
fn main() {
use hpm_config::{Config, RegistrySourceConfig, RegistryType};

let mut config = Config::default();
config.add_registry(RegistrySourceConfig {
    name: "studio".into(),
    url: "git@git.studio.example:pipeline/hpm-index.git".into(),
    registry_type: RegistryType::Git,
});
config.install.parallel_downloads = std::num::NonZeroUsize::new(4).unwrap();
}

Registry trait

Any type that implements the Registry async trait can be plugged into a RegistrySet and used for resolution. The built-in ApiRegistry and GitRegistry are reference implementations.

For visibility-gated API registries (e.g. private packages an authenticated user is entitled to see), embedders can pass a bearer token through RegistrySet::from_configs_with_auth — the token is attached as Authorization: Bearer <token> on every API-registry request and marked sensitive so reqwest won’t log it. The token is baked into the HTTP client at construction, so callers tracking a refreshing token rebuild the RegistrySet per operation rather than mutating one in place. Git registries currently ignore the token.

ProjectManager mirrors that contract via ProjectManager::new_with_auth(.., Option<String>). The token is stashed on the manager and forwarded to every RegistrySet it builds internally (RegistrySet::for_project, used by sync and by lock resolution), which constructs them through from_configs_with_auth. ProjectManager::new delegates with None, so anonymous use is unchanged. As with the RegistrySet variant, refreshing tokens are handled by rebuilding the ProjectManager per operation.

API Overview

This document maps HPM’s crate layout to its key public types. For full API docs with signatures and examples, generate rustdoc locally:

cargo doc --workspace --no-deps --open

Crate graph

hpm-cli         binary; clap dispatch, output formatting, exit codes
  ├── hpm-core         storage, discovery, lock, registry, fetch, pack, python
  │     ├── hpm-config
  │     ├── hpm-package
  │     └── hpm-assets
  ├── hpm-config       layered config loading and merging
  │     └── hpm-package
  ├── hpm-package      manifest parsing, Houdini integration, deps  (leaf)
  └── hpm-assets       operator asset-index model for `hpm pack`     (leaf)

Python tooling (bundled uv, content-addressable venvs, Houdini→Python mapping) lives in the hpm_core::python submodule.

Leaves are hpm-package and hpm-assets — neither depends on anything in the workspace, so they can be embedded by external tools without dragging in the rest of HPM. hpm-config is not a leaf: it depends on hpm-package for the registry types (RegistryType, RegistryConfig) and the shared TOML-file error and atomic-write helpers.

Each crate defines its own error type via thiserror (e.g. StorageError, LockError); hpm-config has none and returns hpm_package::TomlFileError. hpm-cli converts these into a single CliError with exit codes and help hints.

Key types by crate

hpm-core

TypePurpose
StorageManagerGlobal package install/remove/list. Backed by ~/.hpm/packages/.
ProjectDiscoveryScans [projects] paths to enumerate active HPM projects.
DependencyGraphDependency graph over PackageIds; mark_reachable_from_roots powers orphan detection for hpm clean (the set difference against what is installed is the cleanup plan’s orphan_packages in storage/cleanup.rs, reached through cleanup_unused / cleanup_unused_dry_run).
LockFile, LockedDependency, LockedPythonDependency, LockMetadatahpm.lock types.
LockedSourceOrigin recorded in the lockfile for each dep — Url { url, version } or Path { path }.
LockErrorFile (a transparent hpm_package::TomlFileError covering read, parse, serialize and write failures), ChecksumMismatch { package, expected, actual } and PackageMissing { package, expected_dir }.
PackageSourceURL-only struct { url, version } — what ArchiveFetcher downloads. Path deps bypass the fetcher and use LockedSource::Path in the lockfile.
storage::StoreLayout, storage::layout::{cas_dir, download_key}The one owner of store paths: <packages_dir>/<slug>@<version> for a registry install (a scoped creator/slug reduces to the slug), <packages_dir>/_dev/<slug>@<version> for a dev container, <cache_dir>/<download key> for an archive and <home_dir>/fetch/<download key> for its extracted staging copy. StorageManager::layout() returns it; ArchiveFetcher::for_storage builds a fetcher from it.
Registry (async trait)Registry abstraction. ApiRegistry and GitRegistry implement it. Note get_versions returns one entry per build, not per version — a version released for two platforms is two entries — because get_version needs the full set to pick the host’s via select_build_for_host. Callers wanting one row per version go through RegistrySet, not this trait.
RegistrySetComposite that fans requests out to every configured registry. *_in variants (resolve_in, get_version_in, get_versions_in) restrict the lookup to one named registry, honouring a dependency’s registry pin; an unconfigured name is UnknownRegistry rather than a fallback to the rest of the set. get_versions and search collapse each (name, version)’s per-platform builds to one entry, preferring the host’s build then a universal one — so these are version views, unlike the Registry trait method underneath. A version with no build for this host still lists (ruling it uninstallable is select_build_for_host’s job at install time, and registry::solve does not choose it for an unpinned package), and a live build always wins over a yanked one at the same version so highest_matching still sees it. search collapses per registry, so a package served by two registries still shows both.
registry::solve, registry::solve::solve_with, HoudiniTarget, Root, Selection, Rejection, Cause, Selected, Origin, PackageVersion, SolveErrorPicks one version per package so that every chosen version’s registry deps on the others hold, for a target Houdini. Pins stand as written; an unpinned package takes the newest non-yanked version that supports the Houdini and has a build for the host platform (or a universal one), with backtracking; SolveError::NoVersionForPlatform when none has. solve and solve_with hold versions to Platform::current(); solve_for_host names the platform. registry::has_build_for(entry, host) is that rule on its own, for a caller that ranks versions itself: on a get_versions entry it answers for the version. solve_with also takes available packages and chooses one only when a chosen version requires it. Earlier roots get their newest fitting version first; a version’s deps are taken by name, then requirement, so the order they are listed in changes neither the answer nor a conflict’s explanation. Pure: callers pass each package’s version list. SolveError::Conflict says in data what ruled out each version of the package it could not place: a Cause per failed requirement, naming the selected package and version (Selected) and the requirement, and an Origin for each package that says whether the project lists it or which chain of requirements pulled it in, so an embedding application can name only the packages a user can act on. hpm install reaches it through registry::closure.
registry::closure, select_closed, select_keeping, Kept, select, Candidates, working_copy, entry_of, registry_requirements, VersionSource, Unsupplied, ClosureError, AbsentPackage, MAX_ROUNDSA project’s whole package set: select_closed(listed, supplied, houdini, source, excluded) solves the listed packages, asks source (a VersionSource: registries online, installed versions offline, a map in tests) for every package the answer requires that nobody has fetched, and solves again until nothing new is required. supplied packages are chosen only when required, at their pin, without asking the source (a dev override the project does not list, a version the lock recorded). excluded packages are never fetched or chosen unless listed, even when supplied, and a requirement on one constrains nothing. working_copy turns a package directory’s hpm.toml into a pinned single-version Candidates requiring its registry_requirements (registry dependencies only; path/url ones are not followed). select_keeping(kept, fresh, houdini, source, frozen, excluded) is the lock policy hpm install uses: it solves with the lock’s versions (Kept: listed packages pinned at their locked version, locked required packages supplied) and, when no set fits them and frozen is false, solves fresh instead. ClosureError is typed (Solve, Unsupplied, Absent, Unsettled); wording is the caller’s. Shared by hpm install and applications that embed hpm.
global, global::ledgerhpm global installs into Houdini’s user preferences. build_houdini_package is shared with the project emitter; Ledger records what was installed per Houdini version and doubles as a hpm clean GC root.
houdini_prefsPer-platform Houdini user-preferences directory resolution, including HOUDINI_USER_PREF_DIR and its __HVER__ placeholder. The only hpm module that knows a Houdini installation’s conventions.
ArchiveFetcherDownloads and extracts registry-hosted archives.
exec_modeThe executable-bit rule, in one place for its two callers. repaired_mode(mode, path) / looks_executable(path) answer “is this a program that lost its bit?” per entry as an archive extracts; ensure_repaired(package_dir) applies the same rule across a tree that is already installed — the case extraction can never reach, since a package at a version you already have is never extracted again. ensure_repaired sweeps once per tree, stamping <name>@<version>.exec-modes beside (never inside) the package directory, because a package’s checksum is computed over its contents. Embedders that spawn programs out of an installed tree without going through a sync should call it — or StorageManager::repair_exec_modes() to sweep the whole store at once, which is what an embedder wants at startup so a user’s installs are repaired by its update rather than by their stumbling onto the right screen. mirror_read_bits(mode) exposes just the widening (0o644 -> 0o755) for an embedder about to spawn a path its manifest declares as a program — proof no content sniff can produce, covering what a sweep structurally cannot reach (a dev copy it doesn’t walk, a file that appeared after the tree was stamped). forget_repair drops the stamp when a tree is removed.
fetch_manifestFree function: returns the parsed PackageManifest for (name, version) without project context. CAS hit reads from disk; CAS miss resolves+fetches+installs. Pass "" or "latest" to pick the highest semver.
ProjectManagerOne project’s operations, built with new(project_root, storage, config) or new_with_auth(.., token): sync_dependencies / sync_dependencies_with(lock, options) install, resolve_package_env builds a script’s environment, load_project_manifest reads hpm.toml, and project_root() returns the directory it was built for.
SyncOptionsHow ProjectManager::sync_dependencies_with(lock, options) treats hpm.lock: frozen requires every registry and URL package it installs, listed or required, pinned by the lock with a checksum, and keeps the lock’s versions or fails; refresh chooses every package the project does not pin anew instead of keeping the locked version (what hpm update installs with); excluded names packages the sync must neither install nor require unless the manifest lists them (an embedding application passes the names it excluded when choosing the set: switched off, or not available to the account), so a requirement on one is left unmet, needs no registry, and gets no Houdini package file. sync_dependencies_with_lock(lock, frozen) is the former with refresh: false.
PackageRunEnvResolved runtime environment for a package-env script, produced by ProjectManager::resolve_package_env(extra_requirements): the merged venv (venv_bin, virtual_env) plus python_paths (each package’s python/ then the venv site-packages) for PYTHONPATH. Read-only — built from hpm.lock + the global store, mirroring what sync_dependencies resolves for Houdini. hpm run applies it for package-env = true scripts.
script_runThe shared [scripts] runner — the single place the script-env contract (HPM_PACKAGE_ROOT, caller extra_env, and per-script-venv or package-env PATH/VIRTUAL_ENV/PYTHONPATH) is composed. Embedders implement ScriptSink (spawn + diagnostics) and drive run_prepack(manifest, names, package_root, extra_env, sink) (a [stage].prepack sequence, fail-fast) or run_script(manifest, name, package_root, extra_args, extra_env, sink) (one entry, returns the exit code). prepare_script(...) exposes just the env+command-line composition as a PreparedScript { command_line, working_dir, env } for embedders that own their spawn loop. hpm run and hpm build’s prepack both route through here, so a manifest feature picked up by one is picked up by all — no per-embedder drift. Prefer this over re-composing prepare_script_env by hand: the lower-level handle is easy to half-wire (e.g. forgetting to put the venv interpreter on PATH).
install_manifestThe per-file install record and the check against it. A store install (StorageManager::install_into_cas) records every file of the extracted archive as FileRecord { path, size, sha256 } and writes <slug>@<version>.files.json beside the tree as its last step; removal drops it first (forget). verify(package_dir) / StorageManager::verify_installed(&InstalledPackage) return Verification::Unrecorded (installed before 0.36.0, or a dev install) or Verification::Checked(IntegrityReport { files, problems }), each FileProblem a recorded path with a ProblemKind: Missing, Truncated { expected, actual }, Changed or Unreadable { error }. Only recorded files are checked: what Houdini and Python write into a package as it is used (__pycache__, HDA backups) is never reported. A record that is garbled, names a path outside the package, or comes from a newer format is an error, not Unrecorded.
checkPackage validation behind hpm check and the hpm pack gate: check_package(dir) -> Report, a list of Finding { severity, message } (Severity::Error/Warning/Passed/Info). Report::is_valid() is the absence of an error; messages(severity) lists one kind. Rendering is the caller’s.
packerProduces signed/unsigned .zip archives for hpm pack. pack_package(PackRequest { dir, output_dir, key, platform, target, verify_assets }) is the whole of hpm pack short of key resolution and rendering: the validation gate, target-platform resolution (CompatConfig::resolve_target_platform), the --sidefx README and descriptor checks, the exact-name {slug}.json (authored verbatim or generated) at the archive root, the archive and the operator index; it returns a PackOutcome { result, manifest, asset_index, warnings } and removes the archive when indexing fails or verify_assets finds a source missing. Embedders should call it rather than composing the lower-level helpers. Lower-level helpers: pack, create_archive, compute_archive_checksum/compute_bytes_checksum (SHA-256), sign_archive/sign_bytes (Ed25519, returns (base64_signature, hex_key_id)), load_signing_key / load_signing_key_from_pem. The byte-based variants are for tooling that mutates archive bytes after pack (e.g. third-party hosting that requires reshaping) and needs to recompute the hash + re-sign without round-tripping through disk. SigningKey is re-exported so callers don’t need a direct ed25519-dalek dep.
collect_assets, AssetIndex, AssetIndexErrorBuilds the hpm pack operator asset index from a manifest’s [[operators]] declarations for a target platform (asset_index module). Maps each declaration to an hpm_assets::Asset (deriving namespace/version from the type name), resolving per-platform source tables to the target platform and dropping operators not shipped there. Verifies each resolved source exists in the produced archive — any that don’t are returned in AssetIndex::missing_sources for the caller to warn on or, with hpm pack --verify-assets, treat as fatal.

hpm-package

TypePurpose
PackageManifestParsed hpm.toml (every section). PackageManifest::from_path reads + parses, returning ManifestLoadError with the offending path. validate() returns the first structural error; validate_with(ValidationLevel) returns a ValidationReport { errors, warnings } separating hard errors from publish-quality advisories.
ValidationLevel, ValidationReportStrict runs structural checks only; Publish adds advisory warnings on missing description / authors / keywords / [compat].houdini. hpm check consumes the report; a future hpm publish can promote warnings to errors.
ManifestLoadErrorNotFound { path } / Read { path, source } / Parse { path, source }. Re-exported by hpm-core’s StorageError, ProjectError, DiscoveryError, and FetchManifestError.
IoOpShared IO-error shape { op: &'static str, path: PathBuf, source: io::Error } used as the single Io(IoOp) variant in StorageError, ProjectError, and DiscoveryError. Construct via IoOp::wrap("read directory", &path, e) at call sites.
atomic_write, retry_transientatomic_write(path, content) stages to a fresh sibling and renames it onto path, so a crash never leaves a half-written lockfile, config or record. retry_transient(op) reruns op briefly on Windows while it fails with access denied or a sharing or lock violation, the errors a scanner or indexer causes by holding a file for a moment; elsewhere, and for any other error, the first result stands. atomic_write uses it, and so does hpm-core’s dev-copy reclaim when it moves a claimed copy back.
PackagePath, PackagePathErrorValidated creator/slug newtype. Kebab-case enforced at deserialization, so creator() and slug() return &str — no Option.
PackageInfoContents of [package]. path: PackagePath is the canonical identifier; name, version, etc. are user-facing metadata.
CompatConfigContents of [compat]. houdini: Option<HoudiniRange> parses and validates at deserialize time; houdini_min() extracts its lower bound for Python ABI selection. platforms: Vec<Platform> declares the native platforms this package supports — unknown identifiers fail at TOML parse via Platform::TryFrom<String>. Must reference platforms used in [stage.platform.*] entries.
DependencySpecEnum: Registry {..} | Url {..} | Path {..}. The bare-string shorthand pkg = "1.0.0" round-trips as Registry { registry: None, optional: false }.
PythonDependencySpecUntagged enum: Simple(String) | Detailed {..}.
ManifestEnvEntry, EnvMethod[runtime] entries (method, optional value, required flag) and methods (set/prepend/append). value is Option<EnvValue> — flat string or ordered variant list. lower(substitutions, InstallSource) is the single emit path; install-source-gated variants are filtered before lowering.
EnvValue, EnvValueBranch, ConditionConditional [runtime] value support. Variants compile to Houdini’s expression-object array via compile_condition / lower_conditional. Axes: houdini (Cargo-style req), os, python (all runtime-evaluated by Houdini), plus install_source (typed InstallSource: dev / registry, filtered by hpm at install time). os is a typed OsKey; unknown axis values fail at manifest load.
PackageScripts[scripts] table. commands: IndexMap<String, ScriptEntry> — one entry per script, with per-host variation expressed inside ScriptEntry::cmd via the same when-grammar that [runtime] uses.
ScriptEntry, ScriptEnvUntagged enum: Plain(String) for the shorthand form, WithEnv { cmd: ScriptCommand, python?, requirements?, label?, description?, package_env } for the table form. resolve_cmd(host_os) picks the matching variant when cmd is conditional. Accessors python(), requirements(), label(), description(), needs_venv(), uses_package_env() work on both arms. package_env (package-env in TOML) opts the script into the project’s full resolved environment — see ProjectManager::resolve_package_env. label/description are optional, consumer-agnostic display metadata that HPM itself never acts on.
StageConfig, PlatformStaging, StagePlatformRules, PlaceRule, ProfileStaging, StageProfileRules[stage] table. output_dir (default "dist"), prepack script list, workspace include / exclude globs, and per-platform place = [{ from, to }] rules. from is a workspace-relative glob; to is either a directory (ends with / or /., or names the image root: "", ., ./) or a literal archive path; two files placed at one archive path are refused. [stage.profile.<name>] tables (StageProfileRules) layer per-profile prepack/include/exclude/place overrides onto the base; StageConfig::resolved_for_profile(name) returns the merged config a build uses.
PlatformCanonical platform enum, as registries spell it: LinuxX86_64, LinuxAarch64, MacosX86_64, MacosAarch64, WindowsX86_64, WindowsAarch64, Universal. os_key() returns Option<OsKey> (None for Universal).
RegistryConfig, RegistryType[[registries]] entries in manifests.
OperatorDecl, OperatorKind, OperatorSource, SourceResolution[[operators]] entries — the operators (node types) a package bundles, declared by the author so hpm pack can emit a searchable asset index. kind (Hda/Dso), type_name, and category are required; label, tab_submenu, icon, and source are optional. OperatorSource is either a single archive path or a per-platform table; OperatorDecl::resolved_source(platform) resolves it to a SourceResolution (Path / Unspecified / NotForPlatform).
PackageTemplateScaffolding for hpm init (standard and --bare).
HoudiniPackage, HoudiniNativePackage, HoudiniEnvValueHoudini package.json output types.
NativePackageTarget, normalize_hpackage_version, validate_hpackage_descriptorWhich consumer the bundled {slug}.json is generated for. generate_houdini_native_package_for(SideFxHpackage) (behind hpm pack --sidefx) emits the form SideFX’s hpackage repository accepts — the trimmed version and major.minor enable operands — and errors instead of emitting a bound whose meaning the rewrite would change. Generic is what generate_houdini_native_package emits. validate_hpackage_descriptor checks a descriptor hpm pack --sidefx is about to ship against the same rules from the other end — needed because a hand-written {slug}.json is shipped verbatim and never passes through the generator. It reads named fields out of the JSON rather than deserializing into HoudiniNativePackage, since a hand-written descriptor exists to express what hpm does not model, and returns the hpackage.version SideFX will store.

hpm-assets

TypePurpose
Asset, AssetKindThe wire model hpm pack --json emits in its assets array. One flat object per bundled operator with a kind discriminator (hda_operator/dso_operator); None fields are omitted. Built from [[operators]] declarations by hpm_core::collect_assets.
split_type_name(type_name)Best-effort split of a namespaced operator type name into (namespace, base, op_version) following Houdini’s namespace::name::version grammar (version detected as digits-and-dots). Used to populate an Asset’s namespace/op_version from the declared type_name.

hpm-core::python

TypePurpose
PythonHomeWhere the Python subsystem keeps uv, its caches, the managed CPython and the venvs: the hpm home. PythonHome::for_storage(&config.storage) follows [storage] home_dir; PythonHome::of_user() is ~/.hpm. initialize, the resolvers, VenvManager::new and PythonCleanupAnalyzer::new take one.
VenvManagerCreates and reuses content-addressable venvs under a PythonHome.
PythonVersionHoudini-to-Python version value.
ResolvedDependencySetUV-resolved dependency set (BTreeMap<name, version> plus the Python version) with a hash() content hash.
PythonDependencies, PythonDependency, VersionSpecDeclared (pre-resolution) Python dependency types.
VenvMetadata, OrphanedVenvPer-venv metadata.json model and the orphan-analysis result type.
PythonCleanupAnalyzerDetects orphan venvs for hpm clean --python-only. A venv that records owners is orphaned when none is still installed; one with no recorded owners (a [scripts] venv, or one predating owner recording) is collected only after 30 days idle. Owners are recorded by VenvManager::ensure_virtual_environment_for.
prepare_script_env(entry)Per-script-venv building block: bootstraps bundled uv, materializes the venv if needed, and returns a ScriptEnvHandle carrying the env-var mutations to apply before spawning. Plain string entries return a default (no-op) handle. Covers only the python/requirements venv path — not package-env, HPM_PACKAGE_ROOT, or the command line. Most embedders should reach for hpm_core::script_run (above), which wires this plus the rest of the contract; use prepare_script_env directly only when you specifically need just the venv handle. The venv goes under the home of the user’s configuration; prepare_script_env_in(home, entry) takes the home explicitly.
ScriptEnvHandleSpawn-strategy-agnostic env-var bundle (path_prepend, env). apply_to(&mut HashMap<String,String>) folds it into a caller-staged env map ready for Command::envs or any other spawn primitive.
ensure_script_venv(home, python, requirements)Lower-level free function: resolves raw PEP-508 requirement strings via uv pip compile and defers to VenvManager, returning the venv root. Prefer prepare_script_env for the full flow.
venv_bin_dir(path)Returns the executable directory inside a uv-created venv (bin/ on Unix, Scripts/ on Windows). prepare_script_env already prepends this to PATH; use directly only when bypassing the handle.
DEFAULT_PYTHON_VERSION"3.11". The Python version ensure_script_venv uses when a script omits python.

hpm-config

TypePurpose
ConfigTop-level config. Config::load layers defaults < ~/.hpm/config.toml < <cwd>/.hpm/config.toml, each parsed as a ConfigOverlay; a malformed file or an unknown key is an error.
ConfigOverlayThe presence-aware partial config a file parses as (every field optional, unknown keys refused). Writing one writes only the fields that are set. The legacy [install] path is still accepted, with a warning.
StorageConfighome_dir, cache_dir, packages_dir, registry_cache_dir.
InstallConfigparallel_downloads (NonZeroUsize): how many installs a sync runs at once.
ProjectsConfigexplicit_paths, search_roots, max_search_depth, ignore_patterns.
RegistrySourceConfig, RegistryTypeRegistry entries from [[registries]].
SigningConfigkey_path fallback for hpm pack.
ProjectPathsPer-project paths (.hpm/packages/, hpm.lock, hpm.toml).

hpm-cli

TypePurpose
CliErrorCLI-facing error enum with categorised variants (Config, Package, Network, Io). Carries optional help text.
ExitStatusProcess-exit code abstraction; converts &CliError -> ExitStatus -> ExitCode.

Exit codes used by hpm-cli:

CodeMeaning
0Success.
1Any hpm-originated failure — bad configuration, missing manifest, network or I/O error.
2A usage error, raised by clap before any command runs: an unknown flag, or a value a typed flag refuses.
NPass-through exit code from an invoked external tool (ExitStatus::External).

Design principles

  • Minimal coupling. Each crate owns one concern; no upward dependencies.
  • Async by default. Everything I/O-bound runs on Tokio.
  • Content-addressable storage. Both HPM packages (<slug>@<version> under ~/.hpm/packages/, with path-installed packages isolated in _dev/) and Python venvs (SHA-256 over the resolved set) deduplicate globally.
  • Safety by construction. Cleanup never removes a package an active project needs; cached packages are verified against hpm.lock before every install, and downloads against the registry checksum when one is provided; signing is opt-in but standard when used.
  • TOML-first configuration. Every persistent config — manifest, lock file, global config — is TOML and hand-editable.

Testing Guide

HPM uses several layers of tests: traditional unit tests, integration tests, property-based tests with proptest, and a Houdini conformance test that checks generated package files against a real Houdini. This guide covers how to run them, how to write new ones, and how to debug failures.

Table of contents

Test layers

LayerToolsPurpose
Unitbuilt-in #[test]Exercise a specific function or edge case.
Integration#[tokio::test] + tempfileEnd-to-end workflows: CLI command invocation, filesystem layout, manifest roundtrips.
PropertyproptestGenerate inputs at random and assert invariants. Catches edge cases a human wouldn’t think of.
Docrustdoc examplesKeep public API snippets compiling.
Houdini conformancehconfig from a real Houdini installAssert the values Houdini actually resolves from generated package files — the only layer that can catch wrong assumptions about Houdini’s semantics.

Houdini conformance test

hpm-core/src/houdini_conformance_tests.rs writes package files through the real emission path, runs HOUDINI_PACKAGE_VERBOSE=1 $HFS/bin/hconfig (license-free), and asserts the merged env values from the verbose package log. It exists because the emission layer was once validated only against its own JSON output while Houdini silently ignored method on flat-string custom variables. Two scenarios are covered:

  • houdini_resolves_generated_packages_per_method — packages sharing a variable plus project overrides in every method (set / prepend / append) and conditional (version/OS-gated) values.

  • houdini_set_overwrites_path_registered_ocio_seed — the OCIO crash on H22.0.367: a project set on a path-registered variable must OVERWRITE Houdini’s own $HFS/packages/ocio.json seed, not append onto it. It reads the real seed via a baseline hconfig run (skipping with a note on builds that don’t seed OCIO), then asserts set replaces it wholesale rather than resolving to the two-path builtin;project value that crashes OCIO.Config.CreateFromFile. The path-registered-append behavior is invisible to the executable model below (it starts from an empty variable set), so only this real-Houdini layer can catch it.

  • The Houdini install is auto-discovered: $HFS first, then the platform-standard locations (/opt/hfs*, /Applications/Houdini/..., C:\Houdini *).

  • Without an install the test skips (passing, with a SKIPPED note). Set HPM_REQUIRE_HOUDINI=1 to turn the skip into a failure — the CI check pipeline does, since the workers all have Houdini.

The semantics the emission layer targets are also captured as an executable model (hpm-core/src/houdini_env_model.rs); a property test (houdini_emission_model_tests.rs) runs randomized packages and project overrides through the real emission code and the model, asserting that package values survive overrides, overrides apply exactly once, and nothing emitted uses a method or value shape Houdini rejects. When a new question about Houdini’s package semantics comes up, extend the conformance test to settle it empirically, then encode the answer in the model.

Known-answer tests for wire formats

A round-trip test cannot catch a changed format. sign → verify in the same build passes whatever the bytes are, so it holds even if a dependency upgrade silently re-encodes the output — and for a signature that would invalidate every artifact already published, with the failure surfacing on a user’s machine at install time rather than in CI.

Anything whose bytes leave the process and are read back by someone else — a signature, a checksum, an index line — gets a known-answer test instead: fixed input, expected output written out literally. signing_matches_the_published_wire_format pins the base64 signature and key_id for a fixed key and message; it is what makes an ed25519-dalek, sha2 or base64 bump a mechanical change rather than a leap of faith.

This only works where the computation is deterministic. Ed25519 is (RFC 8032), so there is no nonce to make the vectors flaky: a changed value means the format changed. Where output legitimately varies, pin the invariant part rather than reaching for a round-trip.

Property test distribution

Property tests sit wherever a rule can be stated over generated inputs. Exact counts shift over time — grep -rc "proptest!" crates/*/src crates/*/tests lists the files that hold them (one proptest! block may hold several properties, and not every property is named prop_*).

CrateFocus
hpm-cliEvery global flag parses on either side of every subcommand, and refused argument values (tests/cli_flags.rs); name@version parsing in add; text from a package or registry reaches the terminal without control or bidirectional characters (console.rs).
hpm-coreStore layout and staging, the cleanup plan (dry run equals real run), what hpm clean keeps equal to what the roots reach, and cycle reporting (graph.rs), store coordinates that never leave their root (storage/layout.rs) and store identity (storage_tests.rs), dev copies living exactly as long as a project or process uses them, including under concurrent syncs and late background reclaims, tombstones an earlier reclaim left behind, claims made while a reclaim runs (before the move a copy is never moved, after it the copy goes back), and hpaths that spell the copy’s path differently (project_tests.rs, storage/dev_users.rs), ProjectManager::project_root() returning the root as it was passed (project_tests.rs), lockfile round-trips, lock_is_current and a tampered lock never passing (lock.rs), the lockfile tree digest (tree_hash.rs), the one version-requirement grammar and what it selects (registry/requirement.rs), the solver against brute force, including answers that do not depend on the order deps, versions or available packages are listed in (registry/solve.rs), the required-package loop choosing exactly what offering every package up front would, and keeping a lock’s versions exactly while they fit, falling back to a fresh choice unless frozen (registry/closure_tests.rs), hpm clean keeping exactly the versions a project’s lock and requirements reach (graph.rs), a sync against a git index installing a complete, minimal set that leaves excluded packages out, with a Houdini package file and lock entry exactly for what it installed (project_tests.rs), excluding a package being the same as offering everything but it (registry/closure_tests.rs), tokens sent only to their own registry’s origin (registry/mod.rs), git remotes that cannot become git options, and local paths that never pin to a URL (registry/git.rs), Windows hpm run argument quoting (script_run.rs), [dependencies] edits loading back exactly as written (project/manifest_edit.rs), pack descriptors and archive names, and every staged file getting its own archive path inside the image (packer/), the size check against the pack image (check.rs), project discovery and ignore patterns (discovery.rs), the Houdini env emission model (houdini_emission_model_tests.rs), the executable-bit repair (exec_mode.rs, the one place hpm changes permissions on a user’s installed files), install records, archive extraction, and the python submodule’s versions and content hashes.
hpm-packageManifest validation and TOML round-trips (tests/properties.rs), Houdini range matching against an independent model (tests/houdini_range_matches.rs), dependency specs, name@version splitting, the one path-confinement rule for archive entries and place targets (path_util.rs, manifest/stage.rs), and [python_dependencies] versions that cannot smuggle installer options (python.rs).
hpm-configConfig overlays round-trip through TOML and write only the fields that are set (tests/overlay_properties.rs).
hpm-assetsAsset index serialization.

Documentation checks

crates/hpm-cli/tests/docs.rs tests docs/ against the code:

  • SUMMARY.md and manifest.toml each list exactly the pages in docs/.
  • Every relative link, and every #anchor, points at a page and heading that exist.
  • Every toml block parses, and every block made of hpm.toml sections loads as a manifest.
  • The long flags cli.md mentions are the long flags clap defines, in both directions.
  • Identifiers named in architecture.md, api-overview.md and this page exist somewhere in crates/.

A failure names the page and line. Where a page legitimately names something that is not a Rust item, or a flag of another program, add it to the allow-list beside the test.

Running tests

# everything: cli (single-threaded), rest of workspace, then doctests
just test

# doctests only — public-API examples in //! and /// blocks
just test-doc

# slow / external-dependency tests gated behind `#[ignore]`
# (currently: real-uv venv smoke tests in hpm-core::python)
just test-ignored

# raw cargo equivalents
cargo test --workspace
cargo test --workspace --doc

# one crate
cargo test -p hpm-core

# one test by name
cargo test prop_a_requirement_reads_back_as_written

# property tests only
cargo test prop_

# sequential execution (required when tests touch shared filesystem paths;
# `just test` already does this for hpm-cli via the CwdGuard)
cargo test --workspace -- --test-threads=1

# more proptest cases (default 256)
PROPTEST_CASES=1000 cargo test prop_ --workspace

Configuration

Proptest environment variables

VariableDefaultPurpose
PROPTEST_CASES256Number of cases per property test.
PROPTEST_MAX_SHRINK_ITERS1024Shrinking budget on failure.
PROPTEST_TIMEOUT—Per-case timeout (ms).
PROPTEST_VERBOSE0Dump generated inputs as they run.

A proptest! block that sets its own count (#![proptest_config(ProptestConfig::with_cases(n))]) runs n cases and ignores PROPTEST_CASES; many of the solver’s and path-confinement blocks do.

CI

There is no proptest-specific CI matrix — CI runs the suite at proptest’s default case count and never sets PROPTEST_CASES.

The only test pipeline is .woodpecker/check.yml, which is tag-gated (event: tag, ref: refs/tags/v*) and so does not run on push or pull request. It runs:

cargo fmt --check
cargo clippy --workspace --all-targets -- -D warnings
cargo test --workspace

with HPM_REQUIRE_HOUDINI=1, since the build workers have Houdini installed and the hconfig conformance test must run rather than silently skip.

Raising the case count is therefore a local operation:

PROPTEST_CASES=2000 cargo test --workspace

Writing property tests

A property test defines a strategy for generating inputs and an invariant that must hold for every generated input.

Custom strategies

Constrain generators to the valid input space. Unconstrained any::<String>() mostly generates nonsense and rejects it, which wastes cycles and produces misleading shrinks.

#![allow(unused)]
fn main() {
use proptest::prelude::*;

// Good — produces valid package slugs by construction
fn slug_strategy() -> impl Strategy<Value = String> {
    "[a-z][a-z0-9-]{1,20}"
        .prop_map(|s| s.trim_end_matches('-').to_string())
        .prop_filter("non-empty", |s| !s.is_empty())
}

fn version_strategy() -> impl Strategy<Value = String> {
    (0u32..100, 0u32..100, 0u32..100)
        .prop_map(|(maj, min, pat)| format!("{maj}.{min}.{pat}"))
}
}

Invariants worth testing

Roundtrip — serialize and deserialize and compare:

#![allow(unused)]
fn main() {
proptest! {
    #[test]
    fn prop_manifest_toml_roundtrip(manifest in manifest_strategy()) {
        let toml_str = toml::to_string(&manifest).unwrap();
        let parsed: PackageManifest = toml::from_str(&toml_str).unwrap();
        prop_assert_eq!(manifest.package.path, parsed.package.path);
        prop_assert_eq!(manifest.package.version, parsed.package.version);
    }
}
}

Validation always holds — every value the strategy produces should pass validation:

#![allow(unused)]
fn main() {
proptest! {
    #[test]
    fn prop_valid_manifests_validate(manifest in valid_manifest_strategy()) {
        prop_assert!(manifest.validate().is_ok());
    }
}
}

Determinism — running the same operation twice should produce the same result:

#![allow(unused)]
fn main() {
proptest! {
    #[test]
    fn prop_content_hash_is_deterministic(set in resolved_set_strategy()) {
        prop_assert_eq!(set.hash(), set.hash());
    }
}
}

Additive change — an operation that repairs or upgrades a value should only ever add, never remove. exec_mode’s executable-bit repair is the example: for every mode and every file content, the repaired mode is a superset of the original, nothing outside the execute bits moves, and a file that is not a program is returned untouched. When the code under test widens a permission on a user’s files, this is the shape to reach for — a handful of examples cannot express “and nothing else changed”.

When exhaustive beats sampled

If the input space is small enough to enumerate, enumerate it: a loop over every value is complete, where proptest only samples. A Unix mode is 4096 values, so mirror_read_bits’s invariants are checked with a plain #[test] over 0..=0o7777 rather than a strategy, and the desktop’s spawn-time repair crosses all 512 permission modes with each error kind it can see. Reserve proptest for the dimension that genuinely can’t be enumerated — in the same module, that’s file content, which decides whether a file is a program.

Mixing the two in one module is normal and worth doing deliberately: state in the test’s doc comment which dimension is exhaustive and which is sampled, so the next reader doesn’t “upgrade” a complete check into a weaker one.

Filesystem properties

A property test that writes real files hits cases examples never generate, including ones that break the test: a generated mode of 0o000 makes the file unreadable and unwritable by its own owner, so a test that rewrites a fixture per iteration, or reads content back before asserting on modes, will fail on its own harness rather than on the code. Create the fixture once and chmod per case, and do content assertions last, after granting yourself access back.

Real bug caught by property tests

A whitespace-only version requirement (" ") was once accepted as valid. A property test that fed r"\s*" into the parser surfaced it; the fix was to trim before the empty check. Every such bug gets a regression file that fails until the fix stays in place.

Regression files

Proptest persists failing cases to crates/<crate>/proptest-regressions/. These are source-of-truth regression tests — commit them alongside the fix.

crates/hpm-core/proptest-regressions/
├── check.txt          # Each line is a minimized failing input.
├── discovery.txt
├── packer/package.txt
├── project_tests.txt
├── storage_tests.txt
└── tree_hash.txt

hpm-config and hpm-package keep theirs beside the test file (tests/*.proptest-regressions). A seed recorded while checking that a property catches a deliberately planted bug is worth committing too: it is the smallest input that exposes that bug, and proptest replays it first.

Never delete these by hand unless you’re certain the bug class is gone and the input is no longer meaningful.

Debugging failures

Get a minimal failing input

Proptest automatically shrinks to the smallest input that still fails. To see the shrink trace:

PROPTEST_VERBOSE=1 cargo test failing_prop_test -- --nocapture

Reduce the case count while iterating

PROPTEST_CASES=10 cargo test failing_prop_test -- --nocapture

Inspect the regression file

cat crates/hpm-core/proptest-regressions/project.txt

Each line is a serialized form of the seed that reproduced the bug. Proptest replays these on every subsequent run, so the same minimal case is checked deterministically until you fix it.

Move/borrow issues in assertions

prop_assert_eq! moves its operands. If you want to assert on a field and then on a predicate, clone:

#![allow(unused)]
fn main() {
prop_assert_eq!(value.field.clone(), expected);
prop_assert!(value.is_valid());
}

Running coverage

cargo install cargo-tarpaulin
PROPTEST_CASES=500 cargo tarpaulin --workspace --out html

Resources