au where the jedi council gets word that palpatine has a child bride hidden away on naboo so they're asked to arrest him and go in and rescue the child. they don't know much, so they don't really know what to expect they approach the lovely villa that was bought under a fake name, paid for with an off-planet account.
they certainly don't expect to find a surly sixteen-year-old who is VERY pissed off when he finds weird people in his home, who gets even more pissed off when he finds out that they arrested his husband.
(after a few hours of anakin screaming at them, and obi-wan, shaak ti, and mace all trying to calm him down, they find out his name, that palpatine bought him when he was 9, married him on tatooine, where even there he was too young for it to be legal. palpatine has been keeping him in many lovely homes on many lovely planets. anakin insists that palpatine should be released, that he loves his husband, that palpatine has never hurt him, at least not on purpose.)
anakin technically doesn't have legal citizenship for any planet or system except tatooine, since his marriage was never legal, so palpatine's citizenship and diplomatic privileges don't extend to him. anakin tells the jedi that palpatine told him that all his remaining family died after he took anakin off planet. he's never had a job or friends (but he insists his husband is his friend) or any life outside of slavery or marriage. in the end, the jedi bring anakin with the coruscant, and ask obi-wan, who anakin seems to like the most (which isn't saying much, he hasn't stopped glaring at any of them since they found him) to keep an eye on him.
(if this is an a/b/o au then maybe >:] anakin also has a kid with palps. he spends the whole trip back cuddling his baby and snarling at anyone who tries to touch them. it's only after his kid throws up (space motion sickness) that he even THINKS about letting obi-wan touch them, if only to help anakin clean up. this also means that as much as anakin refuses to testify against sheev, everyone knows that he's going to prison. anakin is 16, still underaged, and he has an almost two year old kid. they know the dna will match sheev. as much as anakin fights them when they try to take a sample from his baby, by the time the results come back, he's so numb with fear and despair that he hardly reacts)
anakin ends up staying on coruscant while the trial plays out. obi-wan spends the most time with him, trying to get him set up in an apartment, trying to get him set up with school and friends and helping him figure out citizenship. he's surprised when he finds out anakin can use the force and he often brings anakin back to the temple, sparring with him and letting him use the training sabres that they use for younglings. (and anakin looks so young when he's laughing and having a good time, in the moments between when he remembers how angry and alone and betrayed he feels). obi-wan makes the mistake of letting anakin drive once, before he makes him sign up for a driving test.
in the end, palps is found guilty (as everyone expected, not even the best lawyers in the galaxy could fight the fact that anakin was bought and married younger than any system deems legal) and all the friendship and trust that anakin built with the jedi is shattered again. obi-wan does his best to keep in touch, sending little trinkets and letters and dropping by. but with palpatine in jail, the jedi have other matters to attend to.
basically obi-wan spends a few years just occasionally sending letters and gifts to anakin, hoping that he's alright, and then one day he runs into anakin again, all grown up, and somewhat well adjusted. he's still angry about how everything turned out, but he's not angry at obi-wan, not anymore. and he'd actually really like to be friends with him again, maybe, if obi-wan wants to as well.
(and then they fuck and it cathartic for both of them and they fall in love and obi-wan tries really really really hard not to think that he's having sex with the same person sheev did lmao)