If the agent wrote it, you own it.
The agent isn't accountable, and it won't answer the phone at 2am. Whoever merges the code owns it: what it does and what happens when it breaks.
Merge = own
Accountability
Whoever approves it into main owns it.
Explain it
Understanding
You can say what it does and why.
Answer for it
Support
You're who gets called when it breaks.
Name a backup
Continuity
Someone else who understands it too.
Can't explain it? Can't merge it.