Opinion
Pursuant to a warrant issued by respondent superior court, law enforcement authorities seized numerous documents from real *709 parties in interest Gary Laff and Jerry Widawski, who are attorneys suspected of criminal conduct. Real parties in interest (hereafter the attorneys) requested that the superior court conduct an in camera hearing to determine whether any of the seized documents were privileged. The court sealed the documents and refused to proceed with the hearing unless the People, represented by the district attorney’s office, agreed to pay one-half the cost of the services of a special master appointed by the superior court to review the documents. The Court of Appeal denied the People’s petition for writ of mandate, which sought to compel the superior court to conduct the hearing without requiring the People to contribute to the cost of a special master. The appellate court held that Code of Civil Procedure section 639, subdivision (a) (4), 1 which permits a compulsory reference when necessary for the information of the court in a special proceeding, authorizes the appointment of a referee to assist in ruling upon the claims of privilege asserted by the attorneys. The Court of Appeal further determined that the cost of the referee may be apportioned among the parties pursuant to section 645.1, subdivision (b) . 2
We granted review to decide whether the superior court properly refused to proceed with the hearing unless the People agreed to the appointment of a special master compensated in part by the People. In addition, we subsequently obtained supplemental briefing from the parties regarding the threshold issue whether a superior court is authorized to conduct such a hearing.
As we shall explain, we have reached the following conclusions with regard to the numerous issues presented. First, we conclude that the superior court has an obligation to determine claims of privilege regarding materials seized from the attorneys, whether or not the attorneys are suspected of criminal conduct, and that the court properly may conduct a hearing to resolve such claims. Second, although section 639 does not authorize a compulsory reference in a proceeding to determine whether documents seized from a criminal suspect are privileged (because such a proceeding is not the type of “special proceeding” to which section 639 applies), the superior court nonetheless possesses inherent authority to appoint a special *710 master to assist it in examining such documents and ruling upon the claims of privilege. Third and finally, however, the superior court lacks either statutory or inherent power to require the parties to bear the cost of a special master’s services in this context. Thus, the superior court erred in conditioning its willingness to determine the privilege claims asserted by the attorneys upon the People’s agreement to pay for the services of a special master. We shall reverse the judgment of the Court of Appeal.
I
The attorneys are suspected of possible automobile insurance fraud. They have not been charged with any crime, however, and no related criminal action is pending. At the request of the fraud divisions of the California Department of Insurance and the Los Angeles County District Attorney’s Office, the superior court issued warrants authorizing the search of the homes and law offices of the attorneys and the seizure of specified categories of documents. When the warrants were executed, the attorneys each asserted that the materials seized by law enforcement authorities included information protected by the attorney-client privilege and the work-product doctrine. They requested that the search be conducted under the supervision of a special master, or, alternatively, that the seized materials be removed under seal. These requests were denied, and computers and files containing voluminous documents were examined and seized by investigators.
The superior court subsequently ordered that the Department of Insurance and the district attorney’s office cease inspection and copying of the seized materials, that the attorneys be afforded an opportunity to examine and copy these items, and that the files remain under seal pending further order of the court. The attorneys filed a motion, captioned “In the Matter of the Search Warrant for the Premises of’ the attorneys and others, requesting an in camera hearing at which the superior court would determine whether any of the documents were privileged. No opposing party was named in the motion, although the People, represented by the district attorney’s office, appeared in the proceeding to oppose the claims of privilege asserted by the attorneys. The motion requested that the superior court appoint a special master to conduct the in camera inspection of the items and determine the applicability of any privilege. In support of this request, the attorneys stated that examining approximately 220 privileged files, including two computer databases, would be unduly burdensome for the court. A deputy district attorney agreed that a special master should be appointed for this purpose.
At the initial hearing on the attorneys’ motion, the superior court asked the parties whether they would contribute to the cost of the services of a *711 special master. The attorneys agreed to pay one-half of this cost. The People, however, declined to share the cost of a special master, although a deputy district attorney indicated that guidance regarding this issue would be sought from management in the district attorney’s office. Soon thereafter, the People and the attorneys agreed upon the selection of a special master to be appointed by the court. When the superior court again inquired whether the People would contribute to the special master’s fees, however, the district attorney’s office informed the court in writing that it was “not in a position to contribute to the payment of special master fees.” The superior court then issued an order to show cause why the proceeding should not be summarily dismissed. The court observed that the parties previously had stated that approximately 15 to 20 packing boxes of documents must be reviewed, and that a qualified special master reasonably would devote 80 to 100 hours to the task, at an hourly rate of $130 to $150. Thus, the cost of a special master could reach $15,000. The superior court further noted that the record indicated law enforcement authorities already had allocated substantial expenditures of time and money to the investigation that had resulted in the seizure of the documents from the attorneys.
In further briefing, the People agreed that the court has inherent authority to appoint a special master to review the seized documents, and stated that the People never opposed the court’s appointment of a special master for this purpose. The People asserted, however, that the cost of a special master should be paid from county general funds pursuant to Evidence Code sections 730 and 731, which authorize the appointment and payment of an expert selected by the court to testify at the trial of an action, if the court determines that expert evidence may be required by the court or a party.
At a subsequent hearing, the People contended that the cost of a special master, if one is appointed, should be paid from the operating budget of the superior court, because the hearing to determine whether the seized documents are privileged is a judicial proceeding and a judicial function. The superior court, however, concluded that the subject proceeding would be one in aid of a continuing investigation funded by the Fraud Division of the Department of Insurance, and that therefore the cost of the special master should be paid either by the People or by the Department of Insurance. Anticipating that the People would seek appellate review of its determination, the superior court ordered that all material seized from the attorneys remain sealed pending further order of the court. In a motion for reconsideration, the People urged the superior court immediately to unseal the seized materials and to consider the special master as either an expert witness or a quasi-judicial officer, in which case the fees of the special master would be paid from either county funds or the court’s operating budget, respectively. The superior court denied the motion for reconsideration.
*712 The People sought a writ of mandate to compel the superior court to conduct a hearing to determine the claims of privilege asserted by the attorneys, and to refrain from conditioning such a hearing upon the agreement of the parties to pay the cost of the hearing. Abandoning its principal legal argument asserted in the trial court, the People contended in the Court of Appeal that there is no explicit statutory authorization for referring the matter to a special master (i.e., that Evid. Code, §§ 730 and 731 do not apply), and that absent such authorization, the superior court had a duty to determine the attorneys’ claims of privilege without requiring the parties to pay the cost of that determination. The superior court filed a return and answer asserting, among other things, that it has authority to appoint a referee and to allocate the cost of the reference among the parties pursuant to Code of Civil Procedure sections 639 and 645.1.
The Court of Appeal agreed with the superior court’s assertion and held that the cost of a referee could be apportioned among the parties pursuant to section 645.1. We granted the People’s petition for review to decide whether the superior court properly sealed the materials seized from the attorneys and refused to conduct the hearing unless the People agreed to contribute to the cost of a special master. Subsequently, we solicited supplemental briefing from the parties regarding the threshold issue whether the attorneys have a right to a judicial hearing to determine the applicability of the attorney-client privilege and work-product doctrine to the documents seized pursuant to the search warrant.
II
This dispute arose after the attorneys requested a judicial hearing to determine whether certain materials seized pursuant to a search warrant during a criminal investigation were privileged. The People contend that the attorneys have no right to such a hearing, and that neither the attorney-client privilege nor the work-product doctrine precludes disclosure of documents properly seized under a valid search warrant. The People urge us to disapprove the decision in
People
v.
Superior Court (Bauman & Rose)
(1995)
*713
In considering the validity of
Bauman & Rose,
we begin with the general proposition that the custodian of materials protected by an evidentiary privilege owes a duty to the holder of the privilege to claim the privilege and to take actions necessary to ensure that the materials are not disclosed improperly. (E.g., Evid. Code, §§ 955 [attorney], 995 [physician], 1015 [psychotherapist]; see also Bus. & Prof. Code, § 6068, subd. (e) [attorney has duty to maintain client confidences].) Even if the custodian is suspected of a crime, when privileged materials in the custodian’s possession are seized pursuant to a search warrant, he or she still owes a duty to take appropriate steps to protect the interest of the privilege holders in not disclosing the materials to law enforcement authorities or others. As explained by the court in
Bauman & Rose, supra,
Penal Code section 1536 authorizes the superior court to conduct a hearing to determine whether materials seized pursuant to a search warrant should be disclosed to the authorities. This statute states in relevant part: “All property or things taken on a warrant must be retained by the officer in his custody,
subject to the order of the court
to which he is required to return the proceedings before him, or of any other court in which the offense in respect to which the property or things taken is triable.” (Italics added.) “[Penal Code] [s]ection 1536 was enacted in order to provide controls over those officials in possession of property seized pursuant to a search warrant, pending resolution of the disposition of the property, either through an order granting a motion for release of improperly seized materials or an order admitting the items seized into evidence.”
(People
v.
Von Villas
(1992)
*714
Examining seized documents, ruling upon claims of privilege, and precluding disclosure of privileged materials in the constructive custody of the superior court are well within the scope of the court’s statutory and inherent authority. The seizure of files from an attorney’s office often will result in the seizure of privileged documents. The court in
Bauman & Rose, supra,
The People raise three objections to the Bauman & Rose decision, but each lacks merit. First, the People assert that the attorney-client privilege precludes disclosure only during proceedings at which testimony can be compelled by law. The People rely upon the circumstance that statutory provisions regarding evidentiary privileges “apply in all proceedings” (Evid. Code, § 910), and the term “proceeding” is defined as “any action, hearing, investigation, inquest, or inquiry (whether conducted by a court, administrative agency, hearing officer, arbitrator, legislative body, or any other person authorized by law) in which, pursuant to law, testimony can be compelled to be given” (id., § 901). Because execution of a search warrant and inspection of seized materials as part of a criminal investigation do not constitute such a proceeding, the People claim that the privilege cannot be invoked to prevent disclosure of documents pursuant to a search warrant.
The People’s position is contrary to the governing statutes and existing case law. It is doubtful whether the statement in Evidence Code section 910—that statutory provisions regarding evidentiary privileges “apply in all proceedings”—was intended to
limit
the application of those provisions to such proceedings. The Law Revision Commission observed: “The protection afforded by a privilege would be insufficient if a court were the only place where the privilege could be invoked. Every
officer with power to issue subpoenas for investigative purposes,
every administrative agency, every local governing board, and many more persons could pry into the protected information if the privilege rules were applicable only in judicial proceedings.” (Cal. Law Revision Com. com., reprinted at 29B pt. 3 West’s Ann. Evid. Code (1995 ed.) foil. § 910, pp. 150-151, italics added.) An administrative subpoena, like a search warrant, may be issued absent the pendency of a proceeding at which testimony can be compelled. (See, e.g.,
Arnett v. Dal Cielo
(1996)
In any event, neither the definition of “proceeding” in Evidence Code section 901, nor the provision in Evidence Code section 910 that evidentiary privileges “apply in all proceedings,” necessarily establishes the scope of the attorney-client privilege. The definitions set forth in division 8 of the *715 Evidence Code (regarding evidentiary privileges) govern the construction of that division “[u]nless the provision or context otherwise requires(Id., § 900, italics added.) In addition, the specified privileges apply in all proceedings “[e]xcept as otherwise provided by statute.” (Id., § 910, italics added.) An attorney who received or made a communication subject to the attorney-client privilege “shall claim the privilege whenever he is present when the communication is sought to be disclosed.” (Id., § 955, italics added.) The attorney has a duty “[t]o maintain inviolate the confidence, and at every peril to himself or herself to preserve the secrets, of his or her client.” (Bus. & Prof. Code, § 6068, subd. (e).) These statutes do not limit the attorney’s obligation in this regard to protecting client communications only in the course of proceedings at which testimony may be compelled by law.
Nor do the policies underlying the attorney-client privilege support the People’s reading of the statutes. “Protecting the confidentiality of communications between attorney and client is fundamental to our legal system. The attorney-client privilege is a hallmark of our jurisprudence that furthers the public policy of ensuring “the right of every person to freely and fully confer and confide in one having knowledge of the law, and skilled in its practice, in order that the former may have adequate advice and a proper defense.” [Citation.]’ [Citation.]”
(People ex rel. Dept. of Corporations
v.
SpeeDee Oil Change Systems, Inc.
(1999)
Penal Code section 1524 also undermines the People’s contention that the attorney-client privilege applies only in pending proceedings. 4 Pursuant to subdivision (c) of this statute, the superior court must follow certain procedures before issuing a search warrant for any documentary evidence in the possession of or under the control of a lawyer, physician, psychotherapist, or *716 clergyman who is not reasonably suspected of criminal activity. The statute requires that the court appoint a special master to accompany the individual serving the warrant. The specified professionals upon whom the warrant is served are authorized to state to the special master that particular items should not be disclosed, and the special master then must seal such items and take them to a court for a hearing, at which the individual searched “shall be entitled to raise ... a claim that the item or items are privileged, as provided by law.” (Pen. Code, § 1524, subd. (c)(2), italics added.) These passages clearly authorize the specified professionals to raise at such a hearing privileges set forth in division 8 of the Evidence Code and to seek to preclude disclosure of the items to the authorities. Because a search warrant often is issued before any criminal proceeding is commenced, there is no merit in the People’s claim that the attorney-client privilege precludes disclosure of client confidences only in the course of such a proceeding.
As the People concede, existing authority—in addition to
Bauman & Rose, supra,
Second, the People attack the Bauman & Rose decision on the ground that, whatever the rule with regard to the attorney-client privilege, the work-product doctrine has no application to documents seized pursuant to a search *717 warrant. The People claim that the doctrine precludes disclosure of attorney work product only during discovery, and that a search warrant is not a tool of discovery. Therefore, according to the People, a hearing to determine the applicability of the work-product doctrine would serve no purpose. Contrary to the People’s position, however, the work-product doctrine applies outside the context of formal discovery between parties to a pending action.
The work-product doctrine is codified in section 2018. Subdivision (a) of this statute provides: “It is the policy of the state to: (1) preserve the rights of attorneys to prepare cases for trial with that degree of privacy necessary to encourage them to prepare their cases thoroughly and to investigate not only the favorable but the unfavorable aspects of those cases; and (2) to prevent attorneys from taking undue advantage of their adversary’s industry and efforts.” Pursuant to subdivision (c) of section 2018, “[a]ny writing that reflects an attorney’s impressions, conclusions, opinions, or legal research or theories shall not be
discoverable
under any circumstances.” (Italics added.) The work-product doctrine expressly is made applicable to criminal cases by Penal Code section 1054.6, which states: “Neither the defendant nor the prosecuting attorney is required to disclose any materials or information which are work product as defined in subdivision (c) of Section 2018 of the Code of Civil Procedure, or which are privileged pursuant to an express statutory provision, or are privileged as provided by the Constitution of the United States.” (See
Izazaga v. Superior Court
(1991)
In support of the claim that the work-product doctrine applies only during formal discovery, the People rely upon
Arnett, supra,
*718
Unlike the statute considered in
Arnett,
however, section 2018 expressly is intended to restate the common law regarding attorney work product.
(Id.,
subd. (d).) In order to further the policies underlying the doctrine, several decisions have applied the work-product doctrine to preclude disclosure of attorney work product in situations other than formal discovery between parties to a pending action. For example, in
People
v.
Coddington
(2000)
Bauman & Rose, supra,
A determination that the attorney-client privilege and work-product doctrine protect materials from disclosure only during a pending proceeding or in formal discovery would be inconsistent with the purpose of and policies underlying these privileges. If law enforcement authorities were permitted to seize and inspect privileged items that would be protected against discovery in a criminal proceeding, the prosecution simply could delay filing charges until a search warrant for those items is executed. Although the prosecution could riot introduce the privileged information discovered by such a search as evidence in the proceeding, it nevertheless could use the information in preparing its case and thereby gain an unfair advantage over individuals intended to be protected by the privilege. Just as importantly, mere disclosure of client confidences and attorney work product to third parties, in itself, would violate these privileges.
(Geilim v. Superior Court, supra,
Third, the People challenge the validity of Bauman & Rose by claiming that, even if the attorney-client privilege and work-product doctrine apply before charges have been filed, the superior court lacks authority to conduct a hearing to decide whether materials seized from an attorney suspected of criminal activity are protected against disclosure. The People rely upon the circumstance that Penal Code section 1524, subdivision (c), authorizes such a hearing only when materials are seized from privilege holders who are not suspects. According to the People, the Legislature thus intended that only individuals not suspected of criminal conduct have a right to such a hearing. The People further assert that if courts always have had the power to conduct a privilege hearing before charges are filed, there would have been no need for the Legislature to confer a statutory right to such a hearing.
*720 Contrary to the People’s position, Penal Code section 1524 does not reflect a legislative intent to authorize privilege hearings only for individuals not suspected of criminal activity. Subdivisions (c), (d), and (e) of Penal Code section 1524 contain detailed provisions concerning the appointment and duties of a special master who must accompany the individual serving the warrant, supervise and/or conduct the search, and seal items that the party who has been served believes should not be disclosed. Subdivision (c)(2) states that the special master must take the sealed items to the court for a hearing. This subdivision not only provides for a privilege hearing but also (1) imposes a duty upon the special master to take the sealed items to the court; (2) authorizes the party served with the warrant to raise at the hearing issues pursuant to Penal Code section 1538.5, a statute ordinarily available only to a defendant in a criminal proceeding (id., subd. (a)(1)); (3) requires that the parties be given sufficient time to obtain counsel, make motions, and present evidence; and (4) requires an expedited hearing unless impracticable. Thus, the reference in Penal Code section 1524 to a superior court hearing does not reflect a legislative assumption or intention that the court otherwise lacks authority to conduct a hearing regarding privilege issues. Instead the statute sets forth additional rights and procedures that apply at a hearing involving specified individuals who are not suspected of criminal activity. Nothing in Penal Code section 1524 purports to restrict a court’s authority to adjudicate claims of privilege or work product raised by attorneys who are suspects. 7
Accordingly, we conclude that the court in Bauman & Rose correctly held that the superior court has an obligation to consider and determine claims that materials seized pursuant to a search warrant, from attorneys suspected of criminal activity and before charges have been filed, are protected by the attorney-client privilege or work-product doctrine and thus should not be inspected by or disclosed to law enforcement authorities. 8
*721 III
We next consider whether the superior court possesses authority, without the consent of the parties, to order that the review of seized materials and the determination of privilege claims in a Bauman & Rose proceeding be referred to a special master for a report and recommendation.
The California Constitution imposes limitations upon the power of nonjudicial officers to exercise judicial functions. “The judicial power of this State is vested in the Supreme Court, courts of appeal, superior courts, and municipal courts.” (Cal. Const., art. VI, § 1.) To avoid an unconstitutional delegation of judicial authority, the Constitution requires the stipulation of the parties before a trial court may refer a cause to be tried by a referee.
(Id..,
§ 21;
In re Edgar M.
(1975)
In addition, the Constitution specifies that “[t]he Legislature may provide for the appointment by trial courts of record of officers such as commissioners to perform subordinate judicial duties.” (Cal. Const., art. VI, § 22.) Article VI, section 22, was intended to retain constitutional authorization for existing statutes under which court commissioners had exercised their powers (see Code Civ. Proc., § 259), and also to authorize expressly the previously implicit power under article VI for the appointment by trial courts of masters and referees to assist in the factfinding process.
(In re Edgar M., supra,
14 Cal.3d at pp. 733-734.) Masters and referees perform subordinate judicial duties only if their findings and recommendations are advisory and not binding until adopted by the court.
(In re Perrone C.
(1979)
*722
Neither the decision in
Bauman & Rose, supra,
A
The Court of Appeal held that the superior court possesses authority to compel a special reference in a Bauman & Rose hearing pursuant to section 639, subdivision (a)(4), which states: “When the parties do not consent, the court may, upon the written motion of any party, or of its own motion, appoint a referee . . . R0 . . . [ID . . . [w]hen it is necessary for the information of the court in a special proceeding,” 11 The Court of Appeal reasoned that a Bauman & Rose hearing is neither a criminal action nor a *723 civil action, as those terms are defined in the Code of Civil Procedure, and thus by definition the hearing is a special proceeding within the meaning of section 639. In evaluating the Court of Appeal’s conclusion, we shall ascertain whether a Bauman & Rose hearing is a special proceeding, and, if so, whether it is the type of special proceeding in which section 639 authorizes a special reference.
1.
The Code of Civil Procedure classifies the remedies that may be obtained in the courts. “Judicial remedies” are defined as those remedies administered by the courts of justice or judicial officers empowered for that purpose by the Constitution and statutes. (§ 20.) Judicial remedies are divided into two classes: actions and special proceedings. (§ 21.) “An action is an ordinary proceeding in a court of justice by which one party prosecutes another for the declaration, enforcement, or protection of a right, the redress or prevention of a wrong, or the punishment of a public offense.” (§ 22.) “Every other remedy is a special proceeding.” (§ 23.)
Actions are classified as either civil or criminal. (Code Civ. Proc., § 24.) “A civil action is prosecuted by one party against another for the declaration, enforcement or protection of a right, or the redress or prevention of a wrong.” (Id., § 30.) A criminal action is “[t]he proceeding by which a party charged with a public offense is accused and brought to trial and punishment . . . .” (Pen. Code, § 683; see Code Civ. Proc., § 31 [definition of criminal action].) “A criminal action is prosecuted in the name of the people of the State of California, as a party, against the person charged with the offense.” (Pen. Code, § 684.)
The People acknowledge that no criminal action, as defined in Penal Code section 683, has been initiated against the attorneys. The
Bauman & Rose
hearing may not be characterized properly as a criminal action, because it is not a proceeding in which any party has been charged with a public offense. Nor is the hearing
related
to any pending criminal action so as to warrant treating it as an integral part of such an action. In
Bravo v. Cabell
(1974)
The decision in
People v. Superior Court (Memorial Medical Center)
(1991)
The determination in
Memorial Medical Center, supra,
Because the
Bauman & Rose
hearing is not a criminal action, it must be classified as either a civil action or a special proceeding. As established above, a civil action “is prosecuted by one party against another for the declaration, enforcement or protection of a right, or the redress or prevention of a wrong.” (§ 30.) Special proceedings, on the other hand, generally are “confined to the type of case which was not, under the common law or equity practice, either an action at law or a suit in equity. [Citations.]”
(Tide Water Assoc. Oil Co. v. Superior Court
(1955)
The motion of the attorneys for a hearing to determine the applicability of claimed privileges to the seized documents does not include any express request for a declaration that some of the documents are privileged, or for an order enforcing and protecting privileged documents. The motion simply requests that a hearing be held so that the applicability of any privilege “can be determined” in accordance with the decision in
Bauman & Rose,
which characterizes the hearing authorized therein as one to ascertain whether the attorney-client privilege or work-product doctrine applies.
(Bauman & Rose, supra,
On the other hand, it is difficult to characterize the motion of the attorneys as an ordinary action, historically recognized under the common law or *726 equity practice, in which the attorneys are prosecuting the People. The Bauman & Rose proceeding here stems from the People’s criminal investigation against the attorneys that could lead to the prosecution of the attorneys as defendants. No charges yet have been filed, but the attorneys nevertheless are acting defensively. Although the label ascribed to a proceeding by the parties or the court is not determinative, we observe that the motion of the attorneys is captioned simply “In the Matter of the Search Warrant for the Premises of’ the attorneys and others. The People are not named as a defendant but have appeared in the proceeding to oppose the claims of privilege asserted by the attorneys. Indeed, the superior court designated the deputy district attorney as counsel for plaintiff, apparently because the People would be considered the plaintiff in any future criminal action against the attorneys.
In determining whether the
Bauman & Rose
hearing is a civil action or a special proceeding, it is appropriate to consider the essential character of the proceeding and the classification of similar remedies. (See
Bravo
v.
Cabell, supra,
Thus, the essential character of a Bauman & Rose hearing, like the proceedings discussed in the preceding paragraph, is to determine whether property seized pursuant to a search warrant, from an individual who has not been charged with a crime, should remain available to law enforcement authorities or be returned to the individual. In addition, as with the other types of hearings, the Bauman & Rose hearing is authorized by a statute in the Penal Code, even if it has the effect of protecting private rights of individuals not suspected of criminal activity. The hearing has little in common, however, with an ordinary proceeding at common law or in equity in which a plaintiff prosecutes a defendant for the enforcement and protection of private rights. For these reasons, we conclude that a Bauman & Rose hearing is a special proceeding, rather than a civil action.
*727 2.
The People concede that a Bauman & Rose hearing is a special proceeding. According to the People, however, Code of Civil Procedure section 639 does not authorize a reference in a Bauman & Rose hearing, because this statute authorizes a reference only in civil special proceedings, and a proceeding pursuant to Bauman & Rose is a criminal special proceeding. The People rely upon the circumstance that section 639 appears in part 2 of the Code of Civil Procedure (Of Civil Actions), and within title 8 of that part (Of the Trial and Judgment in Civil Actions). Part 2 of the Penal Code, on the other hand, sets forth the provisions governing criminal procedure. The chapter of the Penal Code concerning search warrants, which includes statutes relevant to this proceeding (Pen. Code, §§ 1524, 1536), is located in part 2, title 12, captioned Special Proceedings of a Criminal Nature. As the People observe, no Penal Code section in this chapter authorizes a trial court to compel a reference in a special proceeding.
Because a
Bauman & Rose
hearing is analogous to hearings authorized by Penal Code section 1524 and other statutes in part 2, title 12, of that code, we determine that a
Bauman & Rose
hearing is a criminal special proceeding. This determination is supported by
Memorial Medical Center, supra,
We further conclude that Code of Civil Procedure section 639 does not authorize a reference in a special proceeding of a criminal nature. In
Gonzales
v.
Superior Court
(1935)
*728
apply in a criminal action. The defendant in
Gonzales
claimed that his failure to comply with a rule of court was due to the inadvertence and excusable neglect of counsel, and that Code of Civil Procedure section 473 authorized the court to grant relief from dismissal of his appeal. In rejecting this claim, we first recognized that the Penal Code contains provisions governing procedure in criminal actions, and that, unlike some statutes in the Code of Civil Procedure, section 473 is not made applicable to criminal actions by an express provision of the Penal Code.
(Gonzales, supra,
We recently relied upon
Gonzales
in determining that Code of Civil Procedure section 630, providing for directed verdicts, appears to apply only to civil actions.
(People
v.
Hernandez
(2000)
The Court of Appeal also recently followed
Gonzales
in holding that Code of Civil Procedure section 1008 does not apply in criminal cases. In
People v. Castello
(1998)
Although the foregoing decisions considered criminal actions, rather than criminal special proceedings, Penal Code section 690 specifies that the provisions of part 2 of that code “shall apply to all criminal actions and proceedings in all courts, except where . . . special provision is made for particular courts or proceedings.” (Italics added.) Like Code of Civil Procedure sections 473, 630, 1008, and 1011—considered in the decisions discussed above—section 639 is not incorporated in the procedural provisions of the Penal Code, including those provisions that relate to criminal special proceedings analogous to a Bauman & Rose hearing.
Moreover, nothing in the language or history of section 639 suggests that it was intended to apply in criminal special proceedings. The predecessor to section 639 appeared in California’s first statutes in 1850 and was included in “An Act to Regulate Proceedings in Civil Cases.” (Stats. 1850, ch. 142, § 164, pp. 442-443; cf. Stats. 1850, ch. 119, p. 275 [“An Act to Regulate Proceedings in Criminal Cases”].) The following year, the statute was amended to authorize a reference in a special proceeding and was recodified. (Stats. 1851, ch. 5, § 183, p. 79.) This new section appeared in Statutes 1851, chapter 5, entitled “An Act to Regulate Proceedings in Civil Cases,” title 6, captioned Of the Trial and Judgment in Civil Actions. (Stats. 1851, at pp. 51, 73.) As established above, the current version of section 639 remains in *730 portions of the Code of Civil Procedure with headings expressly referring to civil cases.
Furthermore, as in
Gonzales, supra,
Contrary to the contention of the attorneys,
Holt
v.
Kelly
(1978)
To the extent
Holt’s
references to sections 638 and 639 properly could be construed to suggest that these statutes apply in appellate proceedings, that decision is inapplicable here, because the mandate proceeding considered in
Holt
was not a criminal proceeding. After the disposition of his criminal action, the petitioner sought to compel a public officer to comply with the ministerial duty to “pay and deliver all the remainder of [a prisoner’s] money and valuables to the prisoner or to his order upon his release from jail,” as required by Government Code section 26640. Because a proceeding for a writ of mandate ordinarily is considered to be a civil special proceeding
(Bravo
v.
Cabell, supra,
The attorneys and the superior court do not cite or discuss
Gonzales, supra,
Section 639 provides no remedy, however. Instead, it authorizes a trial court, in limited circumstances, to compel the parties to submit part of a judicial proceeding to a referee. The pertinent question is whether this statute applies in criminal proceedings. We have determined that section 639 applies only in civil matters. As explained in
Gonzales, supra,
In sum, although section 639 authorizes a compulsory reference in a special proceeding, this statute does not apply to special proceedings of a *732 criminal nature. Because a Bauman & Rose hearing is a criminal special proceeding, section 639 confers no power upon a trial court to compel a reference in such a hearing.
B
The parties do not assert that any statute other than Code of Civil Procedure section 639 authorizes the appointment of a special master to assist the court in a Bauman & Rose proceeding. The People contend that, without explicit statutory authorization, the superior court lacks power to refer matters to a special master when the parties do not consent. The superior court answers that it must retain the flexibility to adopt reasonable procedures that will enable it to discharge its responsibilities in Bauman & Rose proceedings, as well as in similar hearings such as those conducted pursuant to Penal Code sections 1524 and 1538.5. Although the People’s position is supported by decisions regarding compulsory references in civil proceedings, we conclude that, in the absence of statutes regulating the appointment of referees or special masters in criminal proceedings, the superior court possesses inherent authority to appoint a special master to assist it in conducting a Bauman & Rose hearing.
In
People v. Hayne
(1890)
Unlike the authority of appellate courts to appoint subordinate judicial officers, the power of trial courts to do so is the subject of a specific constitutional provision: “The Legislature may provide for the appointment by trial courts of record of officers such as commissioners to perform subordinate judicial duties.” (Cal. Const., art. VI, § 22.) A similar provision was included in our state’s first Constitution. From 1849 until 1966, the Constitution provided that the Legislature may authorize trial courts to appoint commissioners to perform specified duties. (Cal. Const, of 1849, art. VI, § 11; Cal. Const, of 1879, art. VI, § 14.) Early drafts of the 1966 revision to article VI proposed eliminating this provision on the ground that “[n]o constitutional authority seems necessary for the use of commissioners . . . .” (Cal. Const. Revision Com., art. VI committee, first working draft (Feb. 28, 1965) p. 48.) “Upon reconsideration, however, it was concluded that the separation of powers doctrine might be construed to prohibit the Legislature from providing for officers to relieve judicial burdens. Rather than taking that risk, [new section 22 of article VI] is recommended in recognition of the necessity for assistance in the performance of some minor but nonetheless ‘Judicial’ duties.” (Id., second working draft (Apr. 26, 1965) p. 48.)
Accordingly, in proposing the present version of article VI, section 22, the California Constitution Revision Commission stated: “Reference to commissioners is needed so that the separation of powers doctrine will not be construed to prohibit the Legislature from providing for officers to assist judges. ... To indicate the subordinate nature of duties that officers such as commissioners should be allowed to perform, the phrase ‘subordinate judicial duties’ was used. The Commission felt that it should not limit the assistants to commissioners and, therefore, the phrase ‘such as commissioners’ appears in the proposed section. fl[| The [Commission draft empowers the Legislature to authorize court commissioners and trial courts of record to make appointments once the Legislature has authorized them.” (Cal. Const. Revision Com., Proposed Revision, art. VI, § 22 (1966) p. 99; see also Grodin et al., The California State Constitution (1993) p. 134 [absent the authorization provided by this section, the Legislature’s provision for the appointment of special commissioners in certain matters might be considered to violate the separation of powers doctrine].) This constitutional provision, which refers to “officers such as commissioners” (Cal. Const., art. VI, § 22, italics added), has been held applicable to commissioners and referees employed by the court on a regular basis, as well as to private referees *734 appointed to render services in a particular proceeding. (See In re Edgar. M., supra, 14 Cal.3d at pp. 733-734 [juvenile court referee employed by court]; Aetna Life Ins. Co. v. Superior Court, supra, 182 Cal.App.3d at pp. 433, 435-436 [private attorney acting as referee in single case].)
As the foregoing history indicates, article VI, section 22, was not intended to circumscribe the inherent power of the courts to appoint subordinate judicial officers, but rather was intended to confirm the Legislature’s authority to provide for such appointments. (See
In re Edgar M., supra,
14 Cal.3d at pp. 733-734.) Despite the circumstance that article VI, section 22, did not limit the inherent authority of courts to appoint individuals to perform subordinate judicial duties, a number of decisions have stated that the power of a trial court to compel the parties to submit an aspect of a judicial proceeding to a subordinate judicial officer is derived from statute, and only those issues particularly described in the statute may be referred without the consent of the parties. (E.g.,
Hastings
v.
Cunningham
(1868)
We believe these decisions are distinguishable from the present case, however, because they were rendered in civil proceedings and concerned section 639 and its predecessor statutes. As established above (pt. III.A.2, ante), these statutes always have been located in portions of the Code of Civil Procedure (or of the former Practice Act) governing civil proceedings, and therefore they do not apply in criminal proceedings. No such provision is found in portions of the Penal Code that apply generally to criminal proceedings, or, for that matter, anywhere else in the Penal Code. Because the Legislature has not “particularly described” the character of issues that may be referred in criminal proceedings, the trial court does not lack, “by necessary implication,” the power to compel a special reference with regard to other issues. (Williams v. Benton, supra, 24 Cal. at pp. 425-426.) 13
Although the judicial branch possesses inherent authority to appoint assistants such as referees to perform subordinate judicial duties, the Legislature—by virtue of article VI, section 22, as well as its inherent legislative
*735
power—properly may regulate the manner in which trial courts exercise this authority, so long as the Legislature does not defeat or materially impair the court’s exercise of its constitutional power or the fulfillment of its constitutional functions. (See
Superior Court v. County of Mendocino
(1996)
C
Having determined that the superior court possesses inherent authority to appoint a special master for the purpose of performing subordinate judicial duties in a Bauman & Rose proceeding, we next consider whether the appointment of a special master under the circumstances of the present case would constitute an appropriate exercise of that authority. We conclude that it would.
As established above, the execution of a search warrant before charges have been filed does not constitute formal discovery in a pending action.
*736
Nevertheless, contested privilege claims raised in connection with materials seized pursuant to a warrant closely resemble one category of discovery disputes that commonly are referred to referees in civil cases. Thus, section 639, subdivision (a)(5), states that the court may compel a special reference “[w]hen the court. . . determines that it is necessary for the court to appoint a referee to hear and determine any and all discovery motions and disputes relevant to discovery in the action and to report findings and make a recommendation thereon.” Discovery disputes properly are directed to a referee if, among other things, “the number of documents to be reviewed (especially in issues based on assertions of privilege) make the inquiry inordinately time-consuming.”
(Taggares v. Superior Court
(1998)
The superior court adequately justified its intention to appoint a special master to assist it in the underlying Bauman & Rose proceeding. Approximately 220 files (15 to 20 packing boxes) were seized from the attorneys, who assert claims of privilege with regard to 179 client files. The People contend that the claims of attorney-client privilege are defeated by the crime/fraud exception. The superior court estimated that the task of reviewing these materials could consume 80 to 100 hours. The review and categorization of voluminous case files seized from attorneys in connection with disputed assertions of privilege with regard to such materials, as in the present case, constitute complex tasks that would consume an inordinate amount of time if performed solely by a superior court judge, who otherwise could devote his or her efforts to performing other judicial duties. These tasks also are the type of subordinate judicial duties routinely performed by commissioners or discovery referees in civil cases. Although the proposed findings and recommendations of a special master in a Bauman & Rose proceeding would not be binding and would be subject to mandatory, independent review by the trial judge before any ruling could be rendered, the assistance of the special master in conducting the initial review and categorization of the documents and in making preliminary findings and recommendations greatly would reduce the time and effort the judge must devote to the matter. We also believe that it is significant that neither the People nor the attorneys objected to the court’s appointment of a special master for this purpose. The People simply seek to avoid liability for the special master’s fees.
*737 We determine that the superior court’s appointment of a special master to assist it in reviewing the materials seized from the attorneys and to make recommendations to the court regarding the claims of privilege they have asserted would constitute an appropriate exercise of the court’s inherent authority.
IV
Finally, we consider whether the superior court possesses legal authority to require the People to pay one-half the fees of a special master appointed pursuant to the court’s inherent power in a Bauman & Rose proceeding. The Court of Appeal held that allocation of this expense to the People is appropriate under section 645.1, subdivision (b), which concerns the fees of referees appointed pursuant to section 639. Because we have determined that section 639 does not authorize the appointment of a referee in a Bauman & Rose proceeding, and because section 645.1 is limited to the compensation of referees appointed pursuant to section 639, section 645.1 does not authorize the imposition of this cost upon the parties in such a proceeding. We determine that no other statute permits the superior court to require the parties to bear the fees of a referee or special master in a Bauman & Rose proceeding, and that the superior court also lacks the inherent authority to do so.
Because of the central role of the judicial system in society, public funding of the courts is an established tradition, and the ability to shift the cost of court operations to the parties is limited, particularly in criminal cases. (See
California Teachers Assn. v. State of California
(1999)
Thus, in enacting laws requiring parties to subsidize a small portion of the cost of court operations, the Legislature has drawn a distinction between criminal and civil matters. In criminal actions and proceedings the cost of court operations related to hearing and deciding the case must be borne entirely by the courts from public funds, with very few and limited exceptions.
16
In light of this statutory scheme and legislative purpose, as well as the established tradition of public funding of the judicial system, the superior court lacks inherent authority to require the parties to pay the cost of court operations in a criminal action or proceeding, in the absence of an express statutory provision to the contrary. (Cf.
Hogoboom v. Superior Court
(1996)
The superior court contends that Government Code section 29601, subdivision (b), authorizes the imposition of the special master’s fees upon the People. This statute provides that expenses of the district attorney incurred in the detection of crime and in the prosecution of criminal cases are county charges. 17 The superior court’s reliance upon this provision reflects a misunderstanding of the court’s role in this context. As we have explained, a court’s duty to conduct a Bauman & Rose hearing is an aspect of its judicial obligations. The judicial determination of privilege claims is not a criminal investigation or prosecution, and the circumstance that the trial court appoints a special master to perform subordinate judicial duties in such a proceeding does not transform this judicial function into a prosecutorial one.
The attorneys adopt a position similar to that of the superior court. They assert that a compulsory reference funded in part by the People is appropriate because the investigation resulting in the Bauman & Rose proceeding is subsidized in large part, if not entirely, by insurers who are required to pay a per-policy annual fee for the purpose of funding increased investigation and prosecution of automobile insurance fraud cases. (See Ins. Code, § 1872.8, subd. (a).) Indeed, at the hearing in the trial court, the primary justification articulated by the superior court for imposing a portion of the cost of a special master upon the People was that the Bauman & Rose hearing is only “an interstice” in an ongoing criminal investigation funded by the insurance industry, and therefore the court should not be burdened with the cost of conducting the hearing. The Court of Appeal similarly stated that the cost of a special master “is properly viewed as a cost of the People’s criminal investigation.” We disagree. Because the duty to conduct a hearing in this context and to rule upon the claims of privilege asserted by the attorneys is a judicial obligation, the investigatory fund created pursuant to *740 the Insurance Code is irrelevant in deciding whether the superior court has authority to compel the People to share liability for the fees of a special master.
The superior court also relies upon Government Code section 29602, which provides that expenses incurred for the support of persons charged with or convicted of a crime “and for other services in relation to criminal proceedings for which no specific compensation is prescribed by law are county charges.”
18
Assuming, for the sake of argument only, that the services of a special master in a
Bauman & Rose
proceeding constitute services in relation to criminal proceedings within the meaning of this statute,
19
the circumstance that a particular expense might be a county charge does not establish that the People, represented by the district attorney, first must pay this expense as a condition of participating in the proceeding, and then seek funds from the county to cover such an expense. Government Code section 29602 authorizes a court to require the
county
to pay for services related to criminal proceedings; it does not authorize the court to seek payment from
the People
or their counsel—even though the People might be represented by a county official (i.e., the district attorney) in the particular proceeding. (See
Corenevsky v. Superior Court
(1984)
When a court lacks the funds necessary to fulfill its constitutional obligations, the solution is not to require one or more of the parties (or their counsel) to fund the cost of discharging the court’s judicial duties, but rather
*741
to seek additional public funds from the appropriate entity responsible for providing funds for that purpose. In
Wilson
v.
Eu, supra,
The superior court seeks further support for its position by contending that its independence will be threatened if the People are not required to pay a portion of the cost of a special master. Thus, the superior court states: “The People are charged with investigating crimes. Having chosen to execute a search warrant, they seized a multitude of items with unilateral control over its resources. The People now seek to burden the Superior Court with all consequences of their previous unilateral decisions including weeks of document review. Such an absurd condition could ultimately result in a court not granting a warrant when an officer comes before it seeking evidence from a professional’s home or office because of budget restraints on the court. The court must be able to maintain its independence and not be subjected to the dictates of the District Attorney.”
The People do not seek to burden the superior court with a responsibility that arises from the People’s unilateral actions, however. The superior court concluded that probable cause existed to believe that the attorneys have engaged in criminal activity, and the court issued a warrant for the search of their offices and homes and for the seizure of specified materials. The People executed that warrant and seized property described therein. The attorneys contend that some of the documents seized by the People are privileged. We have concluded that the attorneys have a right to a judicial determination of their claims of privilege, and the attorneys have sought such a hearing. The People have not requested that the superior court review privilege claims regarding documents outside the scope of the warrant. Thus, the People are not seeking to transfer their responsibilities to the court or to dictate what the court must do. Instead, the attorneys have asserted claims of privilege regarding documents seized pursuant to the warrant issued by the superior court, and it is the superior court’s responsibility to rule upon those claims. We do not understand the superior court’s position as suggesting that the People should review the documents and make a unilateral determination whether they are privileged, thus violating the privileges the attorneys seek to protect. Indeed, the superior court’s action sealing the documents pending *742 a determination of the privilege claims indicates that the court believed the People should not have access to documents seized pursuant to the warrant until a judicial determination of these claims has been completed.
Furthermore, although we are cognizant of concerns regarding the workload of judges and budgetary limitations, we are confident that trial judges, upon an adequate showing, will not hesitate to render a legally appropriate decision regarding whether to issue a search warrant authorizing the seizure of materials from a professional’s home or office, notwithstanding the potential burdens that might be imposed upon the court because of the issuance of such a warrant. As established above, in certain circumstances the trial court properly may appoint a special master to provide assistance in an ensuing Bauman & Rose proceeding, but if the court presently lacks funds to pay the hourly fees of a private special master necessary to review privilege claims with regard to such materials, it should consider alternatives such as appointing a commissioner or referee employed by the court, conducting the hearing itself, or seeking additional public funding for this purpose.
In summary, at least in the absence of an applicable statute, the services of a special master, appointed (pursuant to the court’s inherent authority) to perform subordinate judicial duties in a Bauman & Rose proceeding, constitute an aspect of the court’s operations that must be paid for by the court from public funds provided for such operations. Because statutory provisions such as Code of Civil Procedure sections 645.1 and 1032, authorizing courts to impose certain court-related costs upon parties, do not apply in criminal proceedings, and because we find no statutory or common law basis for requiring the parties to subsidize the cost of the court’s operations in such proceedings, we hold that the superior court possesses neither statutory nor inherent authority to require the parties to pay any portion of the cost of a private special master in a Bauman & Rose proceeding. 21
V
The judgment of the Court of Appeal is reversed with directions to vacate its order denying the petition, and to issue a writ of mandate compelling the *743 superior court to hear and determine the attorneys’ claims of privilege in a manner consistent with the views expressed herein.
Mosk, J., Kennard, J., Baxter, J., Werdegar, J., Chin, J., and Brown, J., concurred.
Petitioner’s petition for a rehearing was denied June 27, 2001.
Notes
Further undesignated statutory references are to the Code of Civil Procedure. Sections 638 through 645.1 were amended effective January 1, 2001, and the subdivision designations were changed. (Stats. 2000, ch. 644, § 1 et seq.) Citations herein are to the amended versions of these statutes.
Section 645.1, subdivision (b), provides in part: “When a referee is appointed pursuant to Section 639, ... the court may order the parties to pay the fees of referees who are not employees or officers of the court at the time of appointment, as fixed pursuant to Section 1023, in any manner determined by the court to be fair and reasonable, including an apportionment of the fees among the parties. For purposes of this section, the term ‘parties’ does not include parties’ counsel.”
Although the attorneys accurately observe that the People failed to challenge the validity of
Bauman & Rose, supra,
Penal Code section 1524, subdivision (c), states in relevant part:
“[N]o search warrant shall issue for any documentary evidence in the possession or under the control of any person, who is a lawyer as defined in Section 950 of the Evidence Code, a physician as defined in Section 990 of the Evidence Code, a psychotherapist as defined in Section 1010 of the Evidence Code, or a clergyman as defined in Section 1030 of the Evidence Code, and who is not reasonably suspected of engaging or having engaged in *716 criminal activity related to the documentary evidence for which a warrant is requested unless the following procedure has been complied with:
“(1) At the time of the issuance of the warrant the court shall appoint a special master . . . to accompany the person who will serve the warrant. Upon service of the warrant, the special master shall inform the party served of the specific items being sought and that the party shall have the opportunity to provide the items requested. If the party, in the judgment of the special master, fails to provide the items requested, the special master shall conduct a search for the items in the areas indicated in the search warrant.
“(2) If the party who has been served states that an item or items should not be disclosed, they shall be sealed by the special master and taken to court for a hearing.
“At the hearing the party searched shall be entitled to raise any issues that may be raised pursuant to Section 1538.5 as well as a claim that the item or items are privileged, as provided by law. The hearing shall be held in the superior court. The court shall provide sufficient time for the parties to obtain counsel and make any motions or present any evidence. The hearing shall be held within three days of the service of the warrant unless the court makes a finding that the expedited hearing is impracticable. In that case the matter shall be heard at the earliest possible time.”
In
People ex rel. Lockyer v. Superior Court
(Pfingst) (2000)
Of course, if a privilege is inapplicable, for example under the crime/fraud exception to the attorney-client privilege (Evid. Code, § 956), disclosure of materials seized pursuant to a search warrant would be permissible. Contrary to the People’s assertion, the probable cause showing necessary to obtain a search warrant authorizing the seizure of an attorney’s case files does not necessarily establish a prima facie case that the attorney’s clients sought or obtained legal services to enable or aid the commitment of a crime or fraud.
(State Farm Fire & Casualty Co. v. Superior Court
(1997)
In a hearing conducted pursuant to Penal Code section 1524, subdivision (c), the court is authorized to require disclosure, in chambers, of materials claimed to be privileged, if the court determines that there is no other feasible means of ruling upon the validity of the claim. (Evid. Code, § 915.) This authorization constitutes an exception to the general rule prohibiting the disclosure of information, claimed to be privileged, in order to rule upon the claim of privilege. (Id., subd. (a).) In the present case, the attorneys do not contend that the superior court lacks authority to review the seized materials in ruling upon their claims of attorney-client privilege, and we have no occasion to consider the application of Evidence Code section 915 to Bauman & Rose hearings.
The People assert that the superior court should not have sealed the documents seized from the attorneys, and instead should have imposed a nondisclosure order but allowed the People access to the documents so that the criminal investigation could proceed unhampered by the litigation concerning privilege. As explained above, however, permitting the People to have access to the documents before the privilege claims are resolved would violate the privilege *721 and defeat the purpose of the hearing. The superior court did not err in ordering that the documents seized from the attorneys remain under seal pending resolution of their claims.
Although the People initially agreed to the appointment of a special master in the trial court, the People apparently contemplated that the special master would make nonbinding recommendations. In addition, the People’s agreement ultimately became conditioned upon the People’s not being liable for the cost of the special master—a condition the superior court refused to accept. Thus, the People did not stipulate to a general reference.
We agree with the attorneys that the People waived the contention that the superior court lacks authority to appoint a special master. In the trial court the People on several occasions expressly agreed that the appointment of a special master is within the inherent power of the court and/or is authorized by statute. A party’s express agreement regarding the appropriate procedure to be followed in the trial court may result in a waiver of the right on appeal to claim that the procedure was erroneous. (9 Witkin, Cal. Procedure, supra, Appeal, §§ 388, 389, pp. 439-440.) Despite the People’s waiver, however, because this issue raises a pure question of law that was briefed fully and decided in the Court of Appeal, and because the superior court’s authority to compel a reference is a prerequisite to any authority it may have to apportion the cost of the referee among the parties, we exercise our discretion to determine whether this legal issue was resolved correctly by the Court of Appeal. (See fn. 3, ante.)
Section 639, subdivision (a), states in full:
“When the parties do not consent, the court may, upon the written motion of any party, or of its own motion, appoint a referee in the following cases:
“(1) When the trial of an issue of fact requires the examination of a long account on either side; in which case the referees may be directed to hear and decide the whole issue, or report upon any specific question of fact involved therein.
“(2) When the taking of an account is necessary for the information of the court before judgment, or for carrying a judgment or order into effect.
“(3) When a question of fact, other than upon the pleadings, arises upon motion or otherwise, in any stage of the action.
“(4) When it is necessary for the information of the court in a special proceeding.
“(5) When the court in any pending action determines that it is necessary for the court to appoint a referee to hear and determine any and all discovery motions and disputes relevant to discovery in the action and to report findings and make a recommendation thereon.”
The opinion in
Castello, supra,
Penal Code section 1524, subdivision (c), authorizes the superior court to appoint a special master to conduct a search and to return allegedly privileged materials to the court for *735 a hearing, but the statute does not authorize the appointment of a special master to perform subordinate judicial duties in connection with such a hearing.
Outside the context of ordinary civil proceedings, the Legislature has authorized commissioners and/or referees to perform specified duties in only limited situations. (E.g., Gov. Code, §§ 72190-72190.2 [under the direction of judges, court commissioners have the same powers as a judge with regard to infractions, and are permitted to conduct arraignments and issue bench warrants], 72401-72402 [traffic referee may act as a judge in infraction matters and perform limited duties in connection with misdemeanor violations of the Vehicle Code]; Welf. & Inst. Code, §§ 247-253 [juvenile court referee is authorized to hear and render orders in juvenile cases, subject to rehearing by a judge].)
The Court of Appeal has held that fees of various court-appointed assistants necessary for the conduct of
civil
litigation constitute statutory costs awarded to the prevailing party pursuant to Code of Civil Procedure section 1032. (E.g.,
Gibson v. Bobroff
(1996)
For example, a court is authorized to require a party in a criminal case, and/or the party’s attorney, to pay monetary sanctions to the county for the violation of a lawful court order. (Code Civ. Proc., § 177.5;
People v. Tabb
(1991)
Government Code section 29601 states in relevant part: “The following expenses of the district attorney ... are county charges: [ID (a) Traveling and other personal expenses incurred in criminal cases arising in the county . . . . HD (b) All other expenses necessarily incurred . . . : fiO (1) In the detection of crime. . . . HQ (2) In the prosecution of criminal cases . . . .”
Government Code section 29602 provides in relevant part: “The expenses necessarily incurred in the support of persons charged with or convicted of a crime and committed to the county jail and the maintenance therein and in other county adult detention facilities of a program of rehabilitative services in the fields of training, employment, recreation, and prerelease activities, and for other services in relation to criminal proceedings for which no specific compensation is prescribed by law are county charges. . . .”
But see
Gibson
v.
County of Sacramento
(1918)
We observe that even if section 645.1, subdivision (b), authorized the trial court to impose the cost of a special master upon “the parties” in a Bauman & Rose proceeding, as the Court of Appeal held, the current version of that statute expressly states that the term “parties” does not include the parties’ counsel. Thus, the district attorney, as counsel for the People (a party to the Bauman & Rose proceeding), could not be ordered to pay for a special master or referee pursuant to this section.
Because we conclude that the superior court lacks statutory and inherent authority to require the parties to pay for the services of a special master in this context, it is unnecessary to decide whether the People are correct in contending that the services of a special master not employed by the court constitute an “official service” for which the district attorney shall not pay any fee. (Gov. Code, § 6103 [no public officer shall pay any fee for the performance of any official service].)
