Facts
By judgment of 22 August 2014, the Criminal Court of the Cantonal Court of the Republic and Canton of Jura convicted [X.] of simple bodily injury, theft, attempted theft, damage to property, putting counterfeit money into circulation, handling stolen goods, fraudulent use of a computer, NarcA offences, misappropriation, RTA offences and sexual acts with children, and sentenced him to a custodial sentence of 13 months, suspended for 3 years, less the pre-trial detention.
The convicted person was subject to probation assistance for 3 years, with the following rules of conduct: comply with the directives of the Probation Office, undergo psychological or psychiatric follow-up, and refrain from consuming narcotics, providing a quarterly medical report.
By judgment of 28 April 2015, the Criminal Judge of the Jura Court of First Instance sentenced the same defendant to a custodial sentence of 6 months, suspended for 3 years, complementary to the first sentence.
Following the report of the Probation Office of 2 August 2016, indicating that supervision had become impossible because no rule of conduct had been complied with, separate judicial decision proceedings were opened. By decision of 16 May 2017, the Criminal Judge of the Jura Court of First Instance ordered the revocation of the suspended sentences. The Criminal Appeals Chamber of the Jura Cantonal Court dismissed the appeal by decision of 11 September 2017.
The appellant, represented by counsel, lodges a criminal appeal with the Federal Supreme Court, primarily seeking non-revocation of the suspended sentence, extension of the probation period by half and lifting of probation assistance, and subsidiarily annulment and remittal. He requests legal aid.
Main points in dispute: (1) the competence of the judge who revoked the suspended sentence under art. 363 para. 1 CrimPC; (2) compliance with the conditions for revoking the suspended sentence under art. 95 para. 5 SCC.
Considerations
On competence (art. 363 para. 1 CrimPC), the complaint is inadmissible for failure to exhaust cantonal remedies (art. 80 para. 1 FSCA), since the appellant did not challenge the competence of the Criminal Judge of first instance before the cantonal court and does not allege a denial of justice.
On the merits, under art. 95 paras. 3 and 4 SCC, in case of evasion of probation assistance or violation of rules of conduct, the competent authority may extend the probation period, lift or order assistance, or modify the rules of conduct. Under art. 95 para. 5 SCC, the judge may revoke the suspended sentence if there is a serious risk that the convicted person will commit new offences. A mere violation of the rules of conduct is only an indication of recidivism; revocation presupposes an unfavourable prognosis and a substantial reduction in the prospects of success of the probation. The judge must exercise restraint, revocation being an ultima ratio, applicable where the convicted person's situation has deteriorated to the point that only enforcement of the sentence appears to be the most effective sanction.
In this case, the cantonal court found that the appellant had violated all three rules of conduct: he missed numerous appointments with the probation officer and refused the proposed measures, did not follow psychological treatment nor take the prescribed psychotropic medication, and consumed cannabis while ceasing to attend urine tests from 6 June 2016, despite a warning from the Criminal Judge of 22 April 2015. He also admitted new offences of sexual acts with a minor committed from August 2016, while minimising his responsibility. His personal situation deteriorated: interruption of his watchmaking training, refusal of professional integration measures, social assistance, loss of…