Facts

Parties and courts: The appellant ([A.] ), a lawyer then legal adviser to the [B.] Directorate of the State of Fribourg, appeals against the [B.] Directorate (respondent) and the Council of State of the canton of Fribourg (respondent). The matter is brought before the First Social Law Division of the Federal Supreme Court, which rules on three appeals (8D_5/2016, 8C_767/2016, 8C_774/2016) against two judgments of the First Administrative Division of the Fribourg Cantonal Court of 25 August 2016 and 12 October 2016.

Background: Hired in 1984, the appellant was transferred on 27 November 2014 to the [E.] Service (understaffed), under an agreement limited to 31 December 2016, providing for his return to his former duties at its expiry. On 12 September 2014, he was given a qualification. On 17 October 2014, the director of the [B.] Directorate issued him a warning, based on an email of 28 August 2014 sent to the legal advisers of the other directorates to challenge a legislative choice of the Directorate (the Act on the Civil Liability of Public Bodies, LResp).

Cantonal proceedings: By decision of 19 January 2016, the Council of State declared the appeal against the qualification inadmissible and dismissed the appeal against the warning. The Cantonal Court confirmed this on 25 August 2016 (601 2016 40). On 7 March 2016, the Council of State approved the appellant's transfer to the Cantonal Court as clerk-rapporteur, asking the Directorate to follow the procedure for abolition of the position and then transfer. On 2 May 2016, the Directorate terminated the employment relationship with effect from 30 November 2016 and ordered the transfer to the Cantonal Court from 1 December 2016, with early retirement in case of refusal. The Cantonal Court dismissed the actions for performance of the agreement (12 October 2016) and the appeal against the termination and transfer (12 October 2016).

Appeals to the Federal Supreme Court: The appellant lodged a subsidiary constitutional appeal against the warning and the qualification (8D_5/2016), an appeal in public law matters against the judgment on performance of the agreement (8C_767/2016), and an appeal in public law matters against the judgment on termination and transfer (8C_774/2016), seeking in particular a declaration that the decision of 2 May 2016 is void and his reinstatement in his functions. Requests for suspensive effect were dismissed on 16 January 2017. The appellant refused the provisional transfer.

Main questions: (1) admissibility of the subsidiary constitutional appeal against the qualification and the warning, legal interest and formal complaints; (2) current interest in performance of the agreement and procedural complaints; (3) validity of the transfer and abolition of the position in light of the FPA and arbitrariness.

Considerations

Joinder and scope of review: As the three appeals concern the same set of facts, the Federal Supreme Court joins them (consid. 1). It examines admissibility of its own motion (consid. 2). It rules on the basis of the facts established, unless they were established in a manifestly incorrect manner or in breach of the law (art. 105 para. 1, 97 para. 1 FSCA; arts. 118 and 116 FSCA for the subsidiary constitutional appeal). Cantonal law may be reviewed only from the angle of arbitrariness, a plea subject to the qualified reasoning requirement of art. 106 para. 2 FSCA (consid. 3 and 4).

Qualification and warning (8D_5/2016): A simple warning does not affect salary, so only the subsidiary constitutional appeal is relevant (art. 83 let. g, 113 FSCA; consid. 5.1.1). Standing to appeal (art. 115 let. b FSCA) requires a legal interest protected by a rule of federal or cantonal law or by a specific fundamental right; the prohibition of arbitrariness or equal treatment alone is not sufficient. The appellant did not demonstrate a legal interest in having the nullity of the qualification declared, the formal defects alleged not being linked to a right of constitutional rank; the complaints concerning the qualification are inadmissible, and the complaints of inadequate reasoning and arbitrariness in the assessment of evidence require an examination of the merits, which is excluded (consid. 5.2). However, a civil servant has an interest in the annulment of a warning, which is a prerequisite for dismissal under art. 39 FPA/FR (consid. 5.3.1). On the right to be heard (art. 29 para. 2 Cst.), a summary statement of reasons suffices and the cantonal judges did not have to respond to every argument or rule on every item of evidence, the submission running to 42 pages (consid. 5.3.3-5.3.4). On freedom of expression (art. 16 Cst., art. 19 Cst/FR, art. 10 ECHR), the Federal Supreme Court notes that the appellant could express a personal opinion, but the purpose of the email was to bypass the adoption of a draft by the Council of State by having it disavowed by his colleagues; the duty of correct and loyal conduct towards the hierarchy was breached by an employee occupying a position of trust, which could justify the warning in light of the prohibition of arbitrariness (consid. 5.3.5-5.3.7). Appeal 8D_5/2016 is dismissed.

Action for performance of the agreement (8C_767/2016): The amount in dispute (threshold of 15,000 CHF, art. 85 para. 1 let. b FSCA) may be left undecided, as the complaints (arbitrariness of cantonal law, art. 9 Cst.; right to be heard) are examined with the same scope of review in both appeals. The current and practical interest in performance of the agreement is doubtful, as the claim seeks to establish a condition for the right to be reinstated, without independent scope, the question being dealt with in 8C_774/2016; the question may remain undecided (consid. 6.1-6.2). On procedural hearings (art. 226, 228, 233 CPC applied by analogy under art. 101 CPJA/FR), the complaint of arbitrariness is unfounded: the provisions apply by analogy, preliminary hearings fall within the judge's discretion, and main hearings may be waived by mutual agreement. Moreover, under the principle of good faith, an appellant who notices a procedural defect must raise it immediately; having received the letter of 2 August 2016 without reacting, he is no longer entitled to complain about it (consid. 6.3). On the right to be heard, the appellant…