security: add is_ready flag to context