delivered the opinion of the Court.
Almost 2000 years ago Juvenal asked: “Sed quis custodiet ipsos custodes ?” 1 Who will watch the keepers themselves is still a question of critical importance, and the need of a proper solution is never more acute than when the rights of the individual are involved. A declared purpose of the federal constitution is to “secure the Blessings of Liberty” to the people and their posterity, 2 and under our philosophy of government the rights guaranteed by the constitution of the people are jealously guarded. Curtailment of them is to be permitted only to the extent necessary to maintain the fine balance between the rights of the individual and the rights of society.
I
The appeal before us concerns persons from whom the demands of society have lawfully taken a fundamental right — freedom, or liberty from incarceration. Each of them through the due processes of the law has been found
*115
guilty beyond a reasonable doubt of the commission of a crime and sentenced to imprisonment. However, none of them is incarcerated in a penal institution. The legislature has established a special category of criminal known as the defective delinquent.
3
Director v. Daniels,
*116 II
During the first six months of 1971 sixteen inmates of Patuxent filed fifteen actions in the Circuit Court for Montgomery County and six actions in the Circuit Court for Howard County. 4 Nine of the actions prayed for the issuance of a writ of habeas corpus and twelve of them sought an “ex parte injunction.” 5 See Appendix A. The habeas corpus actions sought relief from cruel and unusual punishment prohibited by the eighth amendment and denial of the due process of law guaranteed by the fourteenth amendment. The cruel and unusual punishment pertained to conditions and practices to which the inmates alleged they had been subjected, including extended confinement in disciplinary and administrative segregation units. The procedures by which they were transferred to such segregation units were claimed to be lacking in due process of law. They sought declaratory and injunctive relief from censorship practices which they asserted were unconstitutional as violative of their rights under the first, fourth, sixth and fourteenth amendments. The cases were consolidated 6 and it was stipulated *117 that the consolidated cases constituted a class action within the contemplation of Maryland Rule 209 “for all persons within the Patuxent Institution who were in a similar position to these petitioners.” The cases were heard by Miller and Watts, JJ. 7
An evidentiary hearing of thirteen days was held at Patuxent during the period 22 July to 13 August 1971, followed by oral argument on 31 August. The opinion and order of the court dated 11 November was filed 18 November. The court concluded that the three areas of complaint — “the alleged absence of procedural due process, cruel and unusual punishment and mail censorship” — could be “corrected by the adoption of certain prescribed rules and regulations to govern future conduct of the Patuxent Institution and by a change in some of the Institution’s present policies.” It appended the rules in these areas to its opinion and order. However, in addition to the three principal contentions of appellees, it discovered “other matters” which it felt required attention and it also appended rules and regulations in these areas “to correct practices and bring the Patuxent Institution within constitutional bounds.” It pointed out: “Except in a few places where drafted to implement constitutional guarantees covered in the opinion, the following rules [appended] were supplied by counsel for the petitioners, the Attorney General’s office and the Patuxent Institution. * * * Where there has been a conflict in the rules or proposals the Court has selected the rule which is most applicable according to the controlling case law.” The rules appended were under the following main headings: Violations, Punishment, Disciplinary Procedures, Disciplinary Segregation Regulations, Administrative *118 Segregation Regulations, Patient Correspondence Rules, Medical Facilities, Visiting Rules, Searches, Physical Force by Custodial Personnel, Dietary Regulations. The court ordered “the Board of Patuxent Institution to comply in all respects with the matters set forth in this opinion and to promptly adopt the rules and regulations appended hereto and to otherwise discontinue those practices and procedures which violate the inmates’ constitutional rights.” It reserved jurisdiction over the petitions and the subject matter thereof for one year “to see that its orders are complied with.” The rules and regulations were “to be published and furnished to each patient presently in or hereafter coming to the Patuxent Institution.”
On 1 December appellees filed a petition for appellants to show cause why they should not be held in contempt for failure to comply with the order of 11 November. Upon hearing on 20 December the lower court rescinded its order filed 18 November and appellants dismissed without prejudice an appeal they had noted. The order of 20 December directed that appellants “immediately make reasonable effort to adopt and implement procedures that are in substantial compliance with the rules and Court’s opinion, that the opinion of the Court of 11/18/71 is adopted as the Opinion of the Court and that the order of the Court is rescinded subject to the court entering a final order thereafter; that Respondents file with this Court within thirty (30) days from the date of this Order a comprehensive set of rules and regulations which are in substantial compliance with this Court’s opinion and rules appended thereto of November 18, 1971; that Petitioners shall note to this Court any objections to the rules and regulations filed by Respondents within thirty (30) days of the date the rules and regulations are filed with this Court; further, after consideration of the rules and regulations and any objections thereto filed with this Court, a hearing will be ordered at which time argument by counsel will be heard and a final order of this Court will be rendered subsequent to such hearing.” A hearing was held on 17 January 1972 fol *119 lowing a series of conferences in which counsel for all parties participated. Agreement was reached on over two hundred rules and regulations pertaining to the operation of Patuxent and the treatment of its inmates. 8 There was discord on only ten matters. It was agreed that the court would decide the constitutional sufficiency of appellants’ proposals on the disputed matters based on memoranda submitted and without further hearing. The court’s determination was set out in its order of 24 February 1972, filed the next day. Appellants’ proposals as to four of the matters were found to be constitutionally sufficient and the court found no need for further action with regard to them. 9 The court found that there was constitutional deficiency in the failure to require:
(1) an independent hearing officer on the institutional disciplinary committee;
(2) an officer to be stationed full time to service disciplinary segregation areas;
(3) daily visits to the disciplinary segregation areas by the institution’s physicians;
(4) accelerated treatment and therapy for inmates in the administrative segregation unit;
(5) nutritional substitutes to be provided for persons unable because of religious belief to eat the regular institutional fare.
*120 The sixth area of disagreement concerned censorship of inmates’ mail. The court ordered:
(1) that appellants promptly implement those rules and regulations agreed to and found by the court to satisfy constitutional requirements in the areas covered;
(2) that appellants file with the court new rules and regulations in those areas where ordered by this opinion within twenty days of the date of this Order and at the same time furnish copies to the attorneys for the petitioners;
(3) that “the court shall retain jurisdiction of this case for a period of one year from the date of this Order to insure compliance not only with the rules consented to but to hear objections from the petitioners as to any of the new rules ordered to be submitted and further to prepare and implement its own rules and regulations in any area where the respondents fail to substantially comply with this Opinion and Order”;
(4) that “all of the rules and regulations adopted now and hereafter shall be furnished in written form to each patient confined at the Patuxent Institution within twenty-four hours after his confinement there.”
On 17 March 1972 appellants noted an appeal “from the Opinions and Orders entered in this action on the 11th day of November 1971 and the 24th day of February 1972.” 10
*121 On 12 April 1972 appellees filed a petition alleging non-compliance with the court’s orders and praying that the court “take necessary steps to enforce its Orders by requiring Respondents to SHOW CAUSE why this Court should not” hold all “who have failed or refused to comply with the Opinions and Orders of this Court of November 18, 1971, and February 24, 1972” in contempt, and why it should not issue seven designated orders 11 and “order any other relief necessary to insure compliance with the Opinions and Orders of this Court.” In the interim appellants had filed, on 23 March 1972, a *122 motion for stay of execution of the order of 24 February 1972.
A hearing was held on 26 April 1972. The record before us contains a transcript of only that part of the hearing concerning the rules and regulations relating to the six matters in dispute. 12 It shows that appellants offered as compliance with the direction in the order of 24 February 1972 to file rules in the disputed areas as were appended to the order of 11 November 1971. Appellants made clear, however, that they disagreed with the rules so offered. “We feel they are * * * not Constitutionally required; and for the purpose of the record, we cannot abide by the same. * * * And -that the State would submit that if required under the order of February 24 to submit rules in these areas in substantial compliance to the Court’s Opinion, it would have to submit these rules to the Court; and we further state that they cannot agree to them and feel they are not required and state to the Court that we would have to appeal from these rules, but that being required by the Order of February 24 to submit rules to the Court in conformity with its original Opinion, we proffer them as the rules we would submit with the obvious objection to them. * * * [We] feel that (a) they are not Constitutionally required; and (b) there was insufficient evidence in the record to support the implementation of these rules.” The court below “upon the joint oral motion by counsel for Petitioners and Respondents” made in open court on 26 April 1972:
“ORDERED that the attached Rules and Regulations are received by this Court as the submission of Patuxent Institution pursuant to the Order of February 24, 1972; and
IT IS FURTHER ORDERED that this Court accepts and adopts these Rules and Regulations nunc pro tunc as of February 24, 1972, without *123 prejudice to the rights of Respondents to appeal or to any further rights of Respondents; and
IT IS FURTHER ORDERED that Respondents implement the attached Rules and Regulations within a reasonable time; and
IT IS, FURTHER ORDERED that the attached Rules and Regulations and the partial transcript be transmitted to the Court of Appeals of Maryland for inclusion in the Record on appeal without the necessity on the part of Respondents to file a further Notice of Appeal.”
Appellants’ brief sets out:
“Subsequent to the hearing of April 26, 1972, hearings were held at Patuxent Institution on June 2 and 5, 1972, on Appellants’ Motion for Stay of Execution of Order which was denied by the lower court on June 5, 1972. Hearings were further held at Patuxent Institution on June 5, 19 and 20, 1972, on Appellees’ Petition for Contempt. On June 20, 1972, the lower court denied Appellees’ first eight grounds for relief, but required Appellants to file affidavits of compliance with the Rules and Regulations previously agreed to by September 1, 1972, and following Appellees’ subsequent affidavits, the lower court will determine whether to hold further hearings on Appellees’ Petition for Contempt. The lower court further suggested that because of the stay granted by this Court of the six areas on appeal, that Appellants review the admission procedures for the administrative segregation unit with the purpose of revising the same.”
We do not find in the record before us a transcript of any proceedings held after 26 April 1972, or any orders of the court below emanating therefrom. The stay granted by this Court to which appellants refer was by order of *124 9 June 1972 “that the execution of the order of June 5, 1972, of the Circuit Courts for Montgomery and Howard Counties in Mise. Petition No. 4363 et seq., requiring the appellants to immediately implement certain rules and regulations in six disputed areas be, and the same is hereby, stayed until the further order or mandate of this Court, * *
Ill
Appellants challenge only two parts of the order of 24 February 1972 on this appeal:
(1) the mandate that they file with the court new rules and regulations in the six areas in dispute;
(2) the retention by the court for one year of its jurisdiction of the case.
The challenge as to the first is on the basis that the rules and regulations proposed by them were constitutionally sufficient and that rules and regulations complying with the court’s order are not constitutionally mandated. As to the second, appellants assert that “once this Court rules, the work of the lower court in instituting broad changes in the Rules and Regulations at Patuxent Institution will have been completed.” They urge retention of jurisdiction by the court below places an undue burden on the court and appellants, for the effect would be that the lower court would be adjudicating “each and every complaint made by Appellees, including those things which do not raise themselves to the level of a constitutional deprivation,” in short taking control of and governing the day-to-day operations of Patuxent.
Appellants do not question the jurisdiction of the court below or the propriety of the power and authority it exercised. In fact all parties and the lower court itself are content because the jurisdiction of the court was stipulated. At the very beginning of the hearings the Assistant Attorney General, after noting that “there has been some basis in the case law that the Courts have had hands off on the administration, or running institutions,” *125 said that he wanted “to state for the record at this point that the State of Maryland, the Director of Patuxent Institution, and the Patuxent Institution does not intend in these proceedings to raise any question as to the jurisdiction of this Court to hear the case, as to the venue of the case, or any of those questions that we recognize at this time. The time has come for their grievances to be held before a Court, and we will not raise any of those objections, and we feel the issue that lies before this Court, as set forth in the petition, really goes to the question, and we well realize, to administration. We want to have an opportunity to have this heard out in a Court, and to have their grievances resolved. * * * The question here is not whether the defective delinquent law is constitutional or not, but whether it is being applied properly, whether these men in the institution are being given constitutional standards in the limits of the complaint, and we are willing to have this issue before the Court, and I understand the issues are quite clear. We will waive any jurisdiction so these men can have their day in Court and air their differences.” On 20 December 1971, at the hearing which resulted in the court rescinding its order filed 18 November, “all parties, by and through counsel” entered into a written stipulation, the first item of which was “that the Court has jurisdiction to hear and decide the issues in the above captioned matter.” By the second item appellants agreed during the pendency of the case to make “every effort to operate Patuxent Institution for Defective Delinquents in substantial compliance with the provisions of the November 18,1971 opinion and rules appended thereto.” In the third item appellants and appellees through their counsel agreed to consult with each other “as part of their effort to operate Patuxent Institution in substantial compliance with the provisions of the above mentioned opinion and rules appended thereto and as part of their duty to file with this Court a comprehensive set of rules and regulations which are in substantial compliance with said opinion and order.” The fourth and final item read:
*126 “Where parties are unable to agree upon the Constitutional sufficiency of any proposed rules and regulations, the court shall have jurisdiction to determine the minimum requisite standards which such rules and regulations must embody; if respondents [appellants] do not thereafter within a period of time to then be set by the Court, adopt and implement such rules and regulations, the Court shall have jurisdiction to order the adoption of such rules and regulations subject to all rights of appeal.”
We first note that a question of the jurisdiction of the lower court, even though not tried and decided below and neither briefed nor argued, may be raised by this Court,
sua sponte,
as an exception to the general rule established by Maryland Rule 885.
Stacy v. Burke,
IV
The Department of Public Safety and Correctional Services (the Department) is a principal department of the State government, headed by the Secretary of Public Safety and Correctional Services (the Secretary). Code, Art. 41, § 204 (a). The Secretary is directly responsible to the Governor and shall counsel and advise the Governor on all matters assigned to the Department. Among *127 the areas in which he is responsible for carrying out the Governor’s policies is the treatment of defective delinquents, § 204 (b). The Patuxent operation is assigned to the Department. The Patuxent Institution, the Board of Patuxent Institution, the Advisory Board for Defective Delinquents, and Institutional Board of Review are within the Department, § 204A (a). The Secretary shall appoint, with the approval of the Governor, a deputy secretary for correctional services who shall assist the Secretary with respect to and be primarily concerned with the operations, among others, of the Patuxent Institution, the Board of Patuxent Institution and the Institutional Board of Review, § 204B (a). The appointment or removal of personnel of any board, commission, division, or other agency within the jurisdiction of the Department is subject to the approval of the Secretary, § 204B (c). The Secretary is responsible for the budgets of the agencies within the jurisdiction of the Department, § 204C (a). He shall review and shall have the power to approve, disapprove or revise the rules and regulations of the agencies within the jurisdiction of the Department, § 204C (b).
The Patuxent Institution is established by law as part of the Department as an institution for defective delinquents with the powers and duties bestowed upon it by statute, Code, Art. 31B § 1 (a). The Board of Patuxent Institution (the Board) subject to the authority of the Secretary, possesses all of the powers bestowed upon Patuxent, § 1 (b) . 13 The Board has any and all incidental powers and authority appropriate and convenient to enable it to fully discharge the powers of management, control and supervision conferred upon them, § 1 (e). It has, subject to the review and power of approval, disapproval and revision of the Secretary as above noted, *128 “full power and authority to make, repeal or amend such rules and regulations, not inconsistent with law or applicable rules and regulations of other State agencies, for the operation, discipline and conduct of the Institution, the inmates, staff and employees,” under its supervision and control, “as may be necessary or convenient for the proper administration of the power and discretion conferred upon it * * § 1 (f). The chief administrative officer of Patuxent is the Director, serving at the pleasure of the Secretary, and appointed by him from a list of three nominees proposed by a special committee, § 2. The Director shall be “a trained, able and competent psychiatrist with at least five years experience in the practice or teaching of psychiatry,” idem. The advisory board for defective delinquents is a part of the Department. It shall confer with the staff of Patuxent and with the Board from time to time, and shall give to the Institution a general consultative and advisory service on problems and matters relating to its work, § 4 (a) . 14
It is the duty of the institutional board of review to review and thoroughly reexamine every person held in custodial care as a defective delinquent not less frequently than once in every calendar year to determine whether he shall remain classified as a defective delinquent. It shall make a recommendation for the future status and treatment of each person so reviewed and reexamined, in writing, and a copy of every such recom *129 mendation shall be filed with the records of the Institution. Code, Art. 31B, § 13 (b). See §§ 13 (a), (c), (d), (e) and (f) relating to duties of the institutional board of review. 15
By these statutory provisions the legislature has made pellucidly clear that the management, control, and supervision of Patuxent is the exclusive responsibility of the executive branch of the government. In so doing it has also recognized that the comprehensive scheme it has established for examination, commitment, treatment, and release of persons of a medically and legally recognizable class of persons, focusing on the mental and emotional condition of those thought to be members of this statutorily defined class, see
Bailey v. State,
The decisions of this Court have made clear our belief that it is not the function of the judiciary to superintend the treatment and discipline of prisoners in the State penal institutions and by analogy, in Patuxent. We consistently and firmly adhered to the position that “the courts have no function to superintend the treatment of prisoners in the penitentiary, but only to deliver from prison those who are illegally detained there.”
State
*130
ex rel. Renner v. Wright,
The advent of the Uniform Post Conviction Procedure Act, ch. 44, Acts 1958, brought no change in the declared philosophy. The Act established no new means for seeking redress for alleged wrongs to persons while lawfully incarcerated. It empowered prisoners and defective delinquents to institute a collateral proceeding to set aside a sentence upon claim that the sentence or judg
*133
ment was in violation of the federal constitution or the constitution or laws of Maryland, or that the court was without jurisdiction to impose sentence, or that the sentence exceeded the maximum authorized by law, or that the sentence was “otherwise subject to collateral attack upon any ground of alleged error which would otherwise be available under a writ of habeas corpus, writ of coram nobis, or the common-law or statutory remedy.” Code, Art. 27, § 645A (a).
19
So in
Knox v. Director,
We observe that the Defective Delinquents Act, Code, Art. 31B, provides no procedure for judicial review of grievances made by detainees lawfully confined in Patuxent. The powers conferred by it upon the courts concern
*134
determination and redetermination of defective delinquency
vel non
and means of appeal therefrom, §§ 6-11 A. So in
Barnes v. Director,
The short of it is that in this State the courts have steadfastly refused to review the complaints of persons confined in Patuxent and the various penal institutions, for the reason that the redress of grievances of the inmates was for the executive branch of the government.
V
The Maryland courts have not been alone in their reluctance to review the decisions and actions of prison administrators. A dogma labelled the “hands-off doctrine”
20
was established and followed as the unanimous
*135
precedent of a number of courts that “courts are without power to supervise prison administration or to interfere with the ordinary prison rules or regulations.”
Banning v. Looney,
VI
In deciding the cases which have come before us involving the treatment of incarcerated persons, we have never determined them in the frame of reference of the constitutional rights of the individual. Before we can assess our position it is necessary that we consider such rights as they relate to a person lawfully detained at Patuxent. As pointed out herein in quoting
Director v. Daniels,
*138
Coffin v. Reichard,
“A prisoner retains all the rights of an ordinary citizen except those expressly, or by necessary implication, taken from him by law. While the law does take his liberty and imposes a duty of servitude and observance of discipline for his regulation and that of other prisoners, it does not deny his right to personal security against unlawful invasion.”
Until the defective delinquent has improved under psychiatric supervision so that he .can be legally released as no longer a danger to himself or society, he is subject to such restraint as is necessary for his lawful confinement, and as is essential to the furtherance of the purpose of such confinement. Such constitutional rights as follow him into Patuxent are properly to be tempered to this end.
VII
If the only invasion of the rights of a Patuxent detainee were those arising as an inevitable concomitant of the institutional structure and purpose, there would be no problem. The court found in McCloskey v. Maryland, supra, at 74: “In the great mass of instances * * * the necessity for effective disciplinary controls is so impelling that judicial review of them is highly impractical and wholly unwarranted.” However, we do not close our eyes to the fact that an inmate may suffer deprivations which are not a necessary result of his lawful confinement but rather are attributable to arbitrary and capricious decisions by officials or to unduly restrictive regulations. The question is what redress should be provided.
In many jurisdictions today the hands-off doctrine is being eroded. This has come about with the intensified awareness of individual rights and the emphasis on protecting them. In effect, what courts in other jurisdictions
*139
have done is to define the right of a prisoner to personal security against unlawful invasion in constitutional terms and accept judicial review to assure the right. This has been accomplished in some instances by a reversal of prior decisions ruling that relief did not lie in habeas corpus proceedings. So in
Commonwealth ex rel. Bryant v. Hendrick,
In the federal courts the abrogation of the hands-off doctrine, as traced in the Symposium Comment in 21 Buffalo Law Review 891, began with the Supreme Court’s ruling in
Monroe v. Pape,
“Because prison officials must be responsible for the security of the prison and the safety of its population, they must have a wide discretion in promulgating rules to govern the prison population and in imposing disciplinary sanctions for their violation. * * * The remedy of the inmate is through administrative review, which ought to be available always.”
Significantly, however, it noted:
“If a tractable inmate is subjected to cruel and unusual punishment or if his exercise of a constitutional right is denied without semblance of justification arising out of the necessity to preserve order and discipline within the prison, *141 he may have a right of judicial review.”337 F. 2d at 74 .
As authority, it cited its opinions in
Sewell v. Pegelow,
We see no need now for a departure from our prior opinions. Chief Justice Warren E. Burger said in an address to the National Association of Attorneys General at Washington, D. C. on 6 February 1970:
“We need not and should not abandon or even modify habeas corpus. What we need is to supplement it with flexible, sensible working mechanisms adapted to the modern condition of *142 overcrowded and understaffed prisons ... a simple and workable procedure by which every person in confinement who has, or who thinks he has,v a grievance or complaint can be heard promptly, fairly and fully.”
Maryland now has such a flexible, sensible working mechanism. By ch. 210, Acts 1971, effective 1 July 1971 and codified as Art. 41, § 204 F, the Inmate Grievance Commission was established as a separate agency within the Department of Public Safety and Correctional Services. The Act enables “any person confined to an institution within the Division of Correction, or otherwise in . the custody of the Commissioner of Correction, or confined to the Patuxent Institution” to -submit such grievance or complaint he may have “against any officials or employees of the Division of Correction or the Patuxent Institution.” Subsection (d). If on preliminary review the Commission finds the complaint “to be on its face wholly lacking in merit,” it may be dismissed. The order of dismissal shall promptly be forwarded to the complainant and shall constitute the final decision for purposes of judicial review. Subsection (e). If on such review the complaint is not found on its face to be wholly lacking in merit, “the Commission shall as promptly as practicable hold a hearing” thereon. Subsection (f). The inmates shall have the right to appear before the Commission at a hearing, shall have the opportunity to call a reasonable number of witnesses, and shall have a reasonable opportunity to question any witness testifying. “Such rights of the inmate shall not be unreasonably withheld or restricted by the Commission.” Subsection (h). An inmate shall be permitted to be represented by an attorney of his own choosing at his own expense. Ibid. The Commission, with the approval of the Secretary of Public Safety and Correctional Services, shall have access to any documentary evidence of any person or institution being investigated or proceeded against. It “may require by subpoena the attendance and testimony of witnesses and the production of all documentary evidence of any person relat *143 ing to any matter under investigation.” Subsection (g). A record shall be kept and open to public inspection of all complaints and their disposition. Subsection (i).
A record of the testimony presented at the hearing may be kept and the decision shall be issued in the form of an order “which shall include a statement of the findings of fact, the Commission’s conclusions and its disposition of the complaint.” Subsection (f). The types of disposition are spelled out in that subsection:
“(1) If after the hearing, the Commission finds in its order that the complaint is wholly lacking in merit and should be dismissed, such an order of dismissal shall be promptly forwarded to the complainant and shall constitute the final decision of the Secretary of Public Safety and Correctional Services for purposes of any judicial review.
(2) However, if after the hearing, the Commission in its order finds that the inmate’s complaint was in whole or in part meritorious, such order shall be promptly forwarded to the Secretary of Public Safety and Correctional Services. Within fifteen days of the receipt of such an order, the Secretary by order shall affirm the order of the Commission, or shall reverse or modify the order where he disagrees with the findings and conclusions of the Commission* The Secretary shall order that the appropriate official of the institution in question accept in whole or in part the recommendation of the Commission or the Secretary may take whatever action he deems appropriate in light of the Commission’s findings. The order of the Secretary shall be promptly forwarded to the complainant, and the Secretary’s order shall constitute the final decision for purposes of judicial review.”
The Act effectively abrogates the hands-off doctrine by providing for judicial review. Subsection (1). The com *144 plainant shall be entitled to a judicial review of the final decision of the Secretary of Public' Safety and Correctional Services upon exhaustion of the remedies provided in the Act. Proceedings for review shall be instituted in the circuit court of the county in which is located the institution where the complainant is confined or in the Baltimore City Court when such institution is located in Baltimore City. The review shall be on the record before the Commission and “shall be limited to a determination of whether there was a violation of any right of the inmate protected by federal or State laws or constitutional requirements.”
We think that the Inmate Grievance Commission Act and the implementing rules adopted by the Commission provide “a simple and workable procedure by which every person in confinement who has, or thinks he has, a grievance or complaint can be heard promptly, fairly, and fully,” and obtain a judicial review with respect to his constitutional and statutory rights. 27
*145 VIII
We now review the case before us in the light of what we have discussed.
We do not have before us any question as to the two hundred and some rules and regulations now in effect with the apparent blessing of all parties. How they came into being is not now material. Whether the orders of the court below to draft them and adopt them were proper or not, they were ultimately made and adopted within the statutory requirements and, it seems, are in effect. They are not challenged and they stand intact.
We have before us that part of the order of 24 February 1972 which commanded appellants to file new rules and regulations in the six disputed areas. The order made clear that these rules must be in substance the same as those covering the subjects appended to the order filed 18 November 1971. Appellants noted an appeal on 17 March 1972 and perfected it. At that point such jurisdiction as the lower court had over the case ended. “[T]he law is well settled that ordinarily, the trial court’s jurisdiction is ended upon the filing of an appeal to this Court.”
Stacy v. Burke, supra,
at 401. “[W]hen an appeal is taken, it does affect the operation or execution of the order, judgment or decree from which the appeal is taken, and any matters embraced therein. After the appeal has been perfected, this Court is vested with the exclusive power and jurisdiction over the subject matter of the proceedings, and the authority and control of the lower court with reference thereto are suspended.”
Bullock v. Director,
Even though,/ as, we have indicated, the trial court had no jurisdiction in the matters presented to it, the agreement of the parties produced comprehensive rules and regulations, resulting, as appears in the record 1 be *147 fore us, from conferences participated in by representatives of the Patuxent authorities and Patuxent inmates, and, in the main, presenting a concurrence of their thoughts.
Order of 2U February 1972 reversed.
APPENDIX A
The Circuit Court for Montgomery County
Petition No, Caption Case Name
4363 Habeas Corpus Milton McCray, Leon Height, James Carter, The Black Hawks v. Patuxent Institution
4411 Ex Parte Injunction Gilbert R. X. Hall v. State of Maryland
4416 Ex Parte Injunction Hugh Maurice Wade v. State of Maryland
4417 Ex Parte Injunction Quentin A. Whaley v. State of Maryland
4418 Ex Parte Injunction William Andrews v. State of Maryland
4419 Ex Parte Injunction Lascell X. Gallop v. State of Maryland
4420 Ex Parte Injunction John X. Ingram, Walter E. X. Jones, Hugh M. Wade, George A. X. Wells, III, Charles R. Dorsey, Quentin Whaley, Lascell X. Gallop, Alexander Bannerman, James E. Carter, Gilbert R. X. Hall v. State of Maryland
4423 Habeas Corpus George A. X. Wells, III v. Director, Patuxent Institution, Harold M. Boslow
4424 Ex Parte Injunction Hugh M. A. Wade v. State of Maryland
4425 Habeas Corpus James Edward Carter, Jr. v. Harold Boslow, Director, Patuxent Institution
4426 Ex Parte Injunction Charles M. Dorsey v. Director, Patuxent Institution
*148 Petition No. Caption Case Name
4427 Ex Parte Injunction Walter E. X. Jones v. State of Maryland
4428 Ex Parte Injunction John X. Ingram v. State of Maryland
4429 Ex Parte Injunction James Edward Carter v. State of Maryland
4430 Ex Parte Injunction Alexander Bannerman v. State of Maryland
The Circuit Court for Howard County
Petition No. Caption Case Name
A5079 Habeas Corpus Lewis Mitchell v. Patuxent Institution
A5107 Habeas Corpus Milton McCray v. State of Maryland
A5108 Habeas Corpus John Miller, Milton McCray and Leon Height v. State of Maryland
A5139 Habeas Corpus Gilbert R. X. Hall v. Harold M. Boslow, et al
A5319 Habeas Corpus Hugh M. Wade v. Robert Lalley, Secretary of Public Safety and Correctional Services
A5363 Habeas Corpus Eugene Grove, Hugh M. Wade, Quentin Whaley, Lascell Gallop, Charles Dorsey, George Wells, James Carter, Walter Jones and Gilbert R. X. Hall v. Dr. Harold M. Boslow
Notes
. Juvenalis Et Persius, published by Gulielmus Pickering, London, 1835, Sátira, VI, p. 140, line 347. Juvenal (Decimus Iunius Iuvenalis), a Roman satirist and poet, circa A.D. 60-140. See Encyclopaedia Britannica, vol. 13 (1959).
. Preamble to the Constitution of the United States.
. A defective delinquent is defined as “an individual who, by the demonstration of persistent aggravated antisocial or criminal behavior, evidences a propensity toward criminal activity, and who is found to have either such intellectual deficiency or emotional unbalance, or both, as to clearly demonstrate an actual danger to society so as to require such confinement and treatment, when appropriate, as may make it reasonably safe for society to terminate the confinement and treatment.” Code, Art. 31B, § 5.
. Twelve of the inmates were a party to more than one case. Two inmates joined in five cases, one in four cases, seven in three cases and two in two cases.
. Appellants refer to a Consolidated Bill of Complaint filed on 14 July 1971 in the Circuit Court for Montgomery County. They quote from it:
“Habeas Corpus is sought pursuant to Article 42 of the Annotated Code of Maryland, 1971 Replacement Vol. Declaratory relief sought pursuant to Article 31A of the Annotated Code of Maryland, 1967 Replacement Vol. Injunctive relief is sought pursuant to Maryland Rules BB70 thru BB80 of the Maryland Rules of Procedure, 1971 Cumulative Supplement.”
We do not find this document in the record before us and it is not set out in the joint record extract.
. Appellants state in their brief that on 16 July 1971 “the petitions in the Circuit Court for Howard County were ordered consolidated with the petitions in the Circuit Court for Montgomery County” by the Chief Judge of the Court of Appeals. The authority for this assertion is the statement in the opinion of 18 November 1971 of the hearing court to like effect. No such order is in the record before us. There is, however, an order dated 14 April 1972 issued by Watts and Miller, JJ. that the cases he consolidated.
. By three orders dated 21 April 1971 the Chief Judge of the Court of Appeals designated H. Ralph Miller, Associate Judge of the Sixth Judicial Circuit, “To sit either alone or with one or more Judges, as a Judge in the Circuit Court for Howard County” and Robert B. Watts, Associate Judge of the Supreme Bench of Baltimore City, to so sit as a Judge in the Circuit Court for Montgomery County and in the Circuit Court for Howard County, each to participate as a Judge of said courts in the determination and decision of the cases.
. _ The rules and regulations were divided into ten general areas: I Violations; II Actions Available to Disciplinary Committee; III Disciplinary Procedures; IV Administrative Segregation Regulations; V Correspondence; VI Medical Facilities; VII Visiting; VIII Searches; IX Physical Force by Custodial Personnel; X Dietary Regulations. Each was treated with specificity, delineating within those areas the powers and responsibilities of the Patuxent authorities, the rights and obligations of the inmates, and the duties of both.
. As designated by the lower court they were:
(1) The differentiation between major and minor violations.
(2) The right of the Patuxent Institution to relieve patients of their job assignments as a disciplinary measure.
(3) The substitution of sandwiches for meals as a disciplinary measure.
(4) The right of an officer to make an immediate search without contacting a superior officer.
. As to the order of 11 November 1971, not only had the authorized time for appeal elapsed, Maryland Rule 812 a, but, in any event, there was nothing from which to appeal because that order had been rescinded by the court’s order of 20 December 1971. It appears that appellants agreed to dismiss the appeal to the order of 11 November 1971 timely noted on 30 November “while reserving their right to argue subsequently those substantive findings in the Opinion and Order.” Although the order of 20 December so recited, no such reservation appeared in the actual recision of the order of 11 November. However, the opinion of *121 24 February 1972 incorporated by reference so much of the opinion of 11 November 1971 and the rules and regulations appended thereto which related to the matters remaining in dispute. In the opinion of 24 February 1972 the court opined as to the disciplinary committee that appellants should draft a rule providing that one member be “some outside person other than a staff member or employee” of Patuxent. It stated: “The new rule should comply with the Court’s original Opinion and be substantially similar to that rule providing for the disciplinary committee which was previously stricken from the original appendix.” The rule with respect to a full time officer in the disciplinary segregation unit was to be “in accordance with its original Opinion.” With regard to treatment of inmates in the administrative segregation unit, the court made clear that a new rule should be drafted to provide “intensive treatment” as that was the real thrust of its former opinion. As to nutritional _ substitutes, the court found no reason to depart from the requirement of its original order and ordered appellants “to promptly submit a rule which will effect substantial compliance in this area with the Court’s Opinion” of 11 November. On the matter of mail censorship the court found “no reason to adopt anything less than a rule which substantially complies with the original rqles set forth in the appendix of the Court’s Opinion [of 11 November 1971] regarding patient correspondence.” It therefore ordered appellants “to promptly redraft their rules on patient correspondence in substantially the same form as those rules included in the original appendix.” Thus, those parts of the opinion and order of 11 November 1971 so referred to in the opinion and order of 24 February 1972 would necessarily be before us on this appeal in any consideration of the matters covered thereby.
. Including a daily fine or imprisonment or both as to those who have failed to comply with the orders, the release or transfer of all inmates of Patuxent of petitioners’ class, the enjoining of commitment to Patuxent, the appointment of an officer of the court to implement the opinion and orders, the enjoining of the placement of any inmate in segregation, the filing by appellants “at intervals determined by the Court, [of] comprehensive and specific reports showing any steps taken to implement the Opinions and Orders of the Court”, and the placing in immediate effect constitutionally adequate rules and regulations pertaining to the six matters in dispute.
. The partial transcript of the hearing of 26 April 1972 and a copy of an order passed upon that hearing were included as exhibits to appellants’ Answer to a motion of appellees to dismiss the appeal.
. The Board consists of a chairman and four associate members appointed by the Secretary with the approval of the Governor and with the advice and consent of the Senate. Two of the associate members shall' be appointed from the membership of the advisory Board of Patuxent, and one of those two shall be a psychiatrist. Idem.
. The advisory board “shall consist of the professor of psychiatry in the Medical School of the University of Maryland, or someone designated by him; the professor of psychiatry at the Johns Hopkins Medical School, or someone designated by him; two competent sociologists from the University of Maryland and the Johns Hopkins University, one each to be appointed by the respective president of these two institutions; the full-time professor of constitutional law at the University of Maryland School of Law, or if there be no such full-time professor, or if he is unable to serve, such other full-time professor of the University of Maryland School of Law as may be designated by the dean of said school; the Director of Parole and Probation; and two practicing members of the Maryland bar, with at least five years experience in the trial of civil and/or criminal cases.” They are appointed by the Secretary of Public Safety and Correctional Services with the approval of the Governor.
. “The institutional board of review shall consist of the director, the three associate directors, the professor of the University of Maryland School of Law who is a member of the advisory board, either of the members of the Maryland bar who are members of the advisory board and a sociologist to be appointed by the board of Patuxent Institution from the faculty of an accredited institution of higher education in Maryland.” Code, Art. 31B, § 12.
. Thus the Secretary may in his discretion exercise or perform any power, duty, responsibility or function which Patuxent is authorized to perform except for those powers, duties, responsibilities and functions of the advisory board for defective delinquents, and of the institutional board of review and relating to examinations for determination of defective delinquency. Code, Art. 41, § 204C (c).
. This is in accord with the statutory intent. A person detained from his lawful liberty may complain to the court having jurisdiction and power to grant the writ of habeas corpus “to the end that the cause of such * * * detainer * * * may be inquired into * * Code, Art. 42, § 3. Upon inquiry on the return of the writ, the detainer shall be released or discharged “* * * if it shall appear that such person is detained without legal warrant or authority Id., § 14.
In the instant case, the court below did not feel petitioners were entitled to be released. It said in the opinion of 11 November 1971:
“It is the Court’s opinion that the petitions for Writs of Habeas Corpus cannot be granted for the outright release of the petitioners in this case. Courts have not yet reached that day when prisons and facilities such as the Patuxent Institution can be declared invalid under the Eighth Amendment as being cruel and unusual. Even in a maturing society, we have not reached that period in the evolving standards of prison reform where lack of rehabilitative services, lack of trained and concerned personnel, or lack of treatment amounts to cruel and unusual punishment calling for outright release under the law as it exists today.
That day has not arrived. Sas v. Maryland,334 P. 2d 506 , a long and exhaustive opinion, decided that the concept of Patuxent Institution and its general method of treatment was constitutional and the Court is bound by that decision and the decisions of the Maryland Court of Appeals to the effect that Article 31B of the Annotated Code of Maryland, is constitutional on its face.”
. Ch. 401, Acts 1970 repealed former § 204 of Art. 41, creating the Department of Correction, and enacted present § 204 establishing the Department of Public Safety and Correctional Ser *132 vices. For statutory provisions with regard to the Department of Correction see § 667 et seq. of Art. 27 as in effect prior to amendment by ch. 401, Acts 1970.
. Section 645A (e) limited the right of appeal formerly enjoyed in habeas corpus cases, thus explaining the virtual disappearance of such cases from our reported opinions after the passage of the Act.
. So called in Fritch, Civil Bights of Federal Prison Inmates 31 (1961), a document prepared for the Federal Bureau of Prisons. For discussions of the doctrine see Symposium Comment, Incarcerating the Innocent: Pretrial Detention in our Nation’s *135 Jails, 21 Buffalo Law Review 891 (1972); Symposium Comment, Prisoner’s Bights and the Correctional Scheme: The Legal Controversy and Problems of Implementation, 16 Villanova Law Review 1029 (1971) ; Note, Judicial Intervention in Prison Administration, 9 William and Mary Law Review 178 (1967). Much of what follows herein with regard to the hands-off doctrine has been culled therefrom and from Note, Beyond the Ken of Courts: A Critique of Judicial Refusal to Review Complaints of Convicts, 72 Yale L. J. 506 (1963).
. The doctrine was not without criticism. The Note quotes George Bernard Shaw’s comment when reviewing the book of Sidney and Beatrice Webb on English prisons:
“Judges spend their lives in consigning their fellow creatures to prison; and when some whisper reaches them that prisons are horribly cruel and destructive places, and that no creature fit to live should be sent there, they only remark calmly that prisons are not meant to be comfortable^ which is no doubt the consideration that reconciled Pontius Pilate to the practice of erucifixtion.” G. B. Shaw, The Crime of Imprisonment 14 (1946), published as a preface to S. & B. Webb, English Prisons under Local Government (1922).
. It was not always so considered. The Virginia Supreme Court of Appeals in
Ruffin v. Commonwealth,
“Now one of the most effectual means of promoting the common benefit and ensuring the protection and security of the people, is the certain punishment and prevention of crime. It is essential to the safety of society, that those who violate its criminal laws should suffer punishment. A convicted felon, whom the law in its humanity punishes by confinement in the penitentiary instead of with death, is subject while undergoing that punishment, to all the laws which the Legislature in its wisdom may enact for the government of that institution and the control of its inmates. For the time being, during his term of service *137 in the penitentiary, he is in a state of penal servitude to the State. He has, as a consequence of his crime, not only forfeited his liberty, but all his personal rights except those which the law in its humanity accords to him. He is for the time being the slave of the State, lie is civiliter mortuus; and his estate, if he has any, is administered like that of a dead man.
The bill of rights is a declaration of general principles to govern a society of freemen, and not of convicted felons and men civilly dead. Such men have some rights it is true, such as the law in its benignity accords to them, but not the rights of freemen. They are the slaves of the State undergoing punishment for heinous crimes committed against the laws of the land. While in this state of penal servitude, they must be subject to the regulations of the institution of which they are inmates, and the laws of the State to whom their service is due in expiation of their crimes.”
. See
Collins v. Schoonfield,
. For comprehensive discussions with state and federal citations of the trend toward judicial review of prisoners’ rights, see, in addition to the articles mentioned in note 20 herein, Goldfarb and Singer, Redressing Prisoners’ Grievances, 39 Geo. Wash. L. Rev. 175 (1970); Notes, 19 Kan. L. Rev. 139 (1970); Sneidman, Prisoners and Medical Treatment: Their Rights and Remedies, 4 Crim. L. Bull. 450 (1968).
. The misconduct alleged included “heating a named inmate, using mace and practicing brutality on other named inmates, withholding food from inmates because they protested, stealing food of inmates, beating and chaining two other inmates for misconduct and failing to provide medical treatment to inmates who were ill.”
. On remand the District Court in a memorandum opinion and order dismissed as moot the petition for the reasons that Hayes had been released from Patuxent and was “therefore, not subject to the situation, actually or potentially, that he alleges exists, and has not claimed any damages or that he has in fact been injured or prejudiced in any way.” Hayes v. Secretary of Department of Public Safety, Civil Action No. 71-210-w, filed 27 October 1972.
. Commission Rule 12.07.00.05 (2) provides: “Within thirty (30) days of the final decision of the Secretary of Public Safety and Correctional Services, the complainant shall be entitled to judicial review thereof.” See Code, Art. 41, § 204F (1).
In Hayes v. Secretary of Department of Public Safety, supra, the court said, at 800:
“While Maryland has recently established an Inmate Grievance Commission, Ann. Code of Md., Art. 41, § 204F (1971 Supp.), to determine and recommend the proper redress for meritorious grievances of inmates of Patuxent and other correctional institutions, we take judicial notice ' of the fact that the Commission is not yet fully operative. When it is, there will be time enough for the Supreme Court to determine if Monroe v. Pape, and, we, our own decisions, should be re-examined. That time is not the present.”
We take judicial notice that the Commission is now fully operative. It began operation upon the appointment of an executive director on 30 November 1971. Rules and Regulations implementing Code, Art. 41, § 204F were adopted. Public Safety and Correctional Services, 12.07.00.00 — 12.07.00.05. The first hearing session was held on 17 December 1971 and hearings have been held con-j tinually since that time. Almost 600 complaints have been received from inmates and about 100 orders issued. The complaints and the disposition of them are open to public inspection pursuant to Code, Art. 41, § 204F (i).
. We are informed they were adopted by the Board and approved by the Secretary on 28 April 1972. They appear in the “Patuxent Patient Handbook.”
