Facts

The Public Prosecutor's Office Muri-Bremgarten conducted criminal proceedings against [X.] on various charges. On 2 March 2017 it partially discontinued the proceedings concerning forgery of documents, attempted robbery, threats, coercion and contraventions of the Narcotics Act. The proceedings for violation of the Weapons Act were continued. The Public Prosecutor's Office also decided on the costs of the proceedings (in the main proceedings), any compensation for detention in the further proceedings, approved the fee note of the official defence counsel in the amount of CHF 10'500.-- and ordered the revocation of the official defence after the decision became final.

On 20 June 2017 the Complaints Chamber of the Cantonal Court of Appeal of the Canton of Aargau set aside the revocation of the official defence. For the remainder, it did not entertain the complaint and imposed on [X.] 3/4 of the costs of the proceedings amounting to CHF 1'046.--.

By way of a criminal law appeal, [X.] requested the annulment of the decision and the granting of his prior complaint before the lower instance, alternatively remittal. He also applied for free legal aid and appointment of counsel.

Before the lower instance he had further requested that the fee note of the official defence counsel be set at CHF 16'418.60, that damages of CHF 3'982.-- and redress of CHF 2'600.-- be awarded and that he be exempted from the costs of the proceedings. The lower instance did not entertain these requests, on the ground that the proceedings concerning the Weapons Act had not yet been concluded.

Considerations

The lower instance left open whether this is a final decision or a separately appealable partial decision (Art. 90 and Art. 93 FSCA), as this was not decisive in view of the outcome of the proceedings.

The Federal Supreme Court only enters into the request for relief to a limited extent. A mere application for the granting of the complaint lodged before the lower instance is not sufficient, since the request must relate in substance to the points in dispute before the Federal Supreme Court (Art. 42 para. 1 FSCA). The alternative request for remittal is understood in light of the reasoning as asserting objections to the party remuneration, claims for damages and redress, and exemption from costs. The Federal Supreme Court only examines the complaints that have been adequately raised (Art. 42 para. 2, Art. 106 para. 2 FSCA).

As regards the remuneration of official defence counsel, the Federal Supreme Court holds that this in principle only concerns the own interests of the official defence counsel, who has standing to appeal in his own name (Art. 135 para. 3 CrimPC). The accused person is thereby not affected in his own rights and has no protectable interest in an increase. Art. 135 para. 4 CrimPC does not alter this, since the accused person must ultimately repay the remuneration to the State. Art. 429 CrimPC is not applicable to official defence; its remuneration is governed solely by Art. 135 CrimPC.

As regards the crediting of pre-trial detention, the Federal Supreme Court holds that Art. 51 SCC and Art. 431 CrimPC exclude compensation only if the detention can be credited against other sanctions. The principle of identity of the offence, as applied under the old law (Art. 69 aSCC), was abandoned with the revision of the General Part of the SCC in 2007. All the more so, the principle of comprehensive crediting must apply also in the case of partial discontinuation, so the complaint…