Files
hermes-agent/scripts
Ben Barclay ad90be9b08 fix(scope): terminal policies name their owner; binds copy what they keep
Round-2 review findings:

- A raw terminal mapping could still replace the bound profile's policy with
  another profile's. Raw policies now go through bind_terminal_policy(policy,
  profile_home=...): inside a bound scope only the bound agent's own policy is
  accepted. The four callers pass the session's owning profile.
- A partial bind (home_override=False) inherited the home override from an
  earlier change, so resetting that change took it away. A bind now copies the
  pieces it keeps, so it is whole on its own.
- bind_state switched directly between hosted agents and tenants. Inside a
  hosted scope only a bind of the same tenant and agent is allowed.
- Setters whose tokens are discarded grew the state chain without bound. Changes
  that can no longer be reset fold together on the next push.
- A cross-profile install_profile_terminal_scope dropped its env_overlay.
- HX016 flagged a bare 'from . import set_secret_scope', whose module it cannot
  know.
- The TUI heap-trim ordering test observes the whole-profile release.
2026-11-11 09:44:33 -05:00
..