Agency begins with the next task, not with control.
Joseph's settings keep changing without his consent. He is bought into Potiphar's household, accused, imprisoned, forgotten, then summoned before Pharaoh. The story does not portray him as directing this sequence. Yet in the house and in prison, he becomes useful enough that others place work in his hands.
That is a modest form of agency. Joseph cannot appoint himself free, force the cupbearer to remember him, or make Pharaoh call for him. He can refuse one act, manage another duty, and speak carefully when a moment comes. Responsibility here is local before it is grand.
Doing right does not secure a fair result.
Joseph refuses Potiphar's wife, then is imprisoned because of her accusation. The sequence blocks an easy bargain with morality: do the right thing, and the world will promptly protect you. The account instead lets right action carry a real cost.
That does not make Joseph's refusal pointless. It shows what responsibility can be when reward is absent. He does not control the accusation or its consequences. He does have a choice about what he will participate in. The story leaves the inner cost largely unspoken, so it should not be used to demand cheerful endurance from people facing harm.
Power changes the size of the task, not the need for limits.
Before Pharaoh, Joseph does not present himself as a self-made expert. He says the answer is not his alone, then offers both an interpretation and a plan. When Pharaoh gives him authority, Joseph organizes collection during abundance so Egypt can face scarcity.
The change matters. Agency is not only private resilience. Once Joseph has power, his choices affect a whole country. The passage presents preparation as a response to danger that cannot be wished away. It also keeps Joseph's authority tied to a problem larger than his own advancement.