idiom

In the bag.

Theme: success Keyword: container

means

Virtually certain to be achieved or secured.

Example

They thought the contract was in the bag before the final interview.