This update aligns the codebase with the recent breaking API changes in 'pi-agent-core' 0.65.x, replacing imperative setter methods with direct state property mutations and updating the error state naming convention. These changes ensure full compatibility with the newer core version and keep our internal logic consistent with the upstream agent architecture. Everything has been verified with a full build and test suite run. 
