The unexpected jail term underscored a breakdown in plea negotiations where defense counsel had anticipated probation only