v0.5.1 — hooks-approval unmounted from default bundle
Highlights
hooks-approval is no longer mounted by default. Per the upstream USAGE_GUIDE — "Backward compatible — Tools work without approval hook." — the module is opt-in. The engine's default bundle had been mounting it unconditionally, which caused sub-session delegation to auto-deny any command that fell outside the bundled DEFAULT_RULES auto-approve list (e.g. cat, env, curl).
What changed
- Removed
hooks-approvalfrom the default bundle composition (src/amplifier_agent_lib/bundle/bundle.md) - Updated
admin/doctor.pyto drop thehooks-approvalpresence check (it would have permanently failed post-unmount) - Updated
tests/test_admin_doctor_phase2.pyto match the new doctor expectations - Added
ISSUES.mdtracking the deferred work needed to re-wirehooks-approvalend-to-end in the future (5 concrete pieces — see ISSUE-001) - Bumped
pyproject.toml:0.5.0→0.5.1
The LICENSE is unchanged. Pre-PR 0.5.0-era sessions remain resumable but delegation flows will still hit the old auto-deny behavior on those sessions; start a fresh session to get the new behavior.
How to install
uv tool install --reinstall --force git+https://github.com/microsoft/amplifier-agent@v0.5.1Compatibility
- Wire protocol:
0.3.0(unchanged from 0.5.0) - amplifier-agent-ts wrapper:
>= 0.6.1 - Hosts: any caller using
host_config.approval.mode = "yes"or passing-yworks unchanged
Why this matters
For hosts running headless (paperclip, CI/CD), the engine no longer requires a separate hooks-approval registration step. For interactive CLI use, add hooks-approval to your profile per the USAGE_GUIDE.
Reference
🤖 Generated with Amplifier
What's Changed
- feat(wrapper-ts)!: hardening release 0.6.0 (NDJSON events, configPath, approval, getEngineInfo, +5 more) by @manojp99 in #36
- fix(wrapper-ts): transport test timeout for CI (v0.6.1, supersedes failed 0.6.0 publish) by @manojp99 in #37
- feat(cli): amplifier-agent update subcommand (v0.5.0) by @manojp99 in #38
- fix(bundle): unmount hooks-approval from default mount (v0.5.1) by @manojp99 in #40
Full Changelog: v0.4.1...v0.5.1