Editable Array not keeping the same length

can you show the how the @editable array is done also since when do triggers not pass an optional agent? can you show a bit more of the code?