- adding ALLOC enum to AgentState and WorkState
- minor internal structure update