Verify runtime asset resolution¶
Use this guide to confirm that a Rust amplihack install resolves the legacy Python-era asset names and the current native multitask asset from the same runtime bundle.
Prerequisites¶
amplihackis installed and onPATH- The installed bundle root contains
amplifier-bundle/ - Optional:
amplihack-asset-resolveris installed for child-process checks
Check the installed binary¶
The binary should be the user-local or release binary you expect to test. If a stale system binary appears first, repair the path order with Repair install/update PATH conflicts.
Resolve every parity asset¶
Run the canonical ordered list of runtime assets:
for asset in hooks-dir helper-path session-tree-path multitask-orchestrator; do
path="$(amplihack resolve-bundle-asset "$asset")"
printf '%s -> %s\n' "$asset" "$path"
test -e "$path"
done
Expected output shape:
hooks-dir -> /home/alice/.amplihack/amplifier-bundle/tools/amplihack/hooks
helper-path -> /home/alice/.amplihack/amplifier-bundle/bin/multitask-orchestrator.sh
session-tree-path -> /home/alice/.amplihack/amplifier-bundle/tools/amplihack/session
multitask-orchestrator -> /home/alice/.amplihack/amplifier-bundle/bin/multitask-orchestrator.sh
Check expected file types¶
test -f "$(amplihack resolve-bundle-asset helper-path)"
test -d "$(amplihack resolve-bundle-asset session-tree-path)"
test -d "$(amplihack resolve-bundle-asset hooks-dir)"
test -f "$(amplihack resolve-bundle-asset multitask-orchestrator)"
All commands exit 0 when the installed bundle matches the resolver contract.
Verify a custom bundle root¶
Set AMPLIHACK_HOME when validating a non-default install root:
AMPLIHACK_HOME must point to the directory that contains
amplifier-bundle/, not to amplifier-bundle/ itself.
Resolving an asset only reads the bundle. amplihack install also treats
AMPLIHACK_HOME as a possible source, and refuses it if its version differs from
the binary's. See
Framework source selection.
Check the staged modes¶
Confirm nothing under the bundle is writable by group or others:
A clean bundle prints nothing. Confirm a resolved script is still executable:
Expected output:
Verify child-process resolution¶
Recipe runners and launchers expose the standalone resolver through
AMPLIHACK_ASSET_RESOLVER when the binary is available:
You can also call the resolver binary directly:
Both forms print the same absolute paths as amplihack resolve-bundle-asset.
The standalone resolver also derives its no-argument usage text from the same
Rust named-asset table, so usage output and accepted names stay in sync.
Interpret failures¶
| Symptom | Meaning | Fix |
|---|---|---|
Unknown asset name |
The binary does not know the named asset. | Update amplihack and rerun amplihack install. |
Bundle asset not found |
The name is registered, but the file or directory is missing from every runtime root. | Set AMPLIHACK_HOME to the installed bundle root or reinstall amplihack. |
Exit code 2 |
The argument is an invalid relative path. | Use one of the named assets above or a safe amplifier-bundle/... path. |