Task-Conditioned Least-Privilege Learning for Executable Terminal and MCP Agents | AIChainDay