The only blocks visible in the cell are crying obsidian and netherite blocks, which (with Mining Fatigue 3) take 24 hours to break with a fist. Every 8 hours, TNT drops through the ceiling from a TNT duper and kills the prisoner to interrupt a block breaking cycle. The prisoner respawns via a squilly respawn anchor. When a visitor is about to enter the cell, the prisoner will be temporarily placed in a small enclosure in the cell to prevent any issues.
Outside defence
Most of the prison is placed above the nether roof, meaning it is chorus fruit proof by default and a portal cannot generate inside. Below the prison, a layer of string to detect pearl glitching is observed; if it is updated a massive block of snow will send a signal upwards instantly. That will also detect any portal generation. Above the prison, a mining detector will detect escapes from above. The prison is surrounded by 8 permanent area bans that are protected by millions of anvils.
More security
The guards will check for two players upon entry with a ban test. No redstone lines can be pearl glitched into. Guards can see the entirety of the visiting tunnel through composters. Another two player check will be performed on a visitor or prisoner later on. There is a suicide machine and below it are many layers of various blocks to prevent the machine from being clogged by items. A large amount of lava below the prison is intended to prevent squillying into the main parts of the prison.