Trafficking in more than 100 grams of cocaine carries a mandatory ten-year sentence. G. L. c. 94C, § 32E(¿)(3). Confronted by that charge and the severe punishment that would be visited upon them should they be con
*672
victed, Doe and Roe, the plaintiffs, undertook to trade cooperation with the office of the district attorney for the Plymouth District for lesser charges.
3
Doe and Roe claim they have performed their part of the plea bargain but that the government has not. They brought an action in the nature of mandamus (see G. L. c. 249, § 5, and Mass.R.Civ.P. 81(b),
For purposes of appeal, there is essential agreement about the facts to be assumed. The cooperation of Doe and Roe would consist of orchestrating and, if necessary, participating in drug transactions which would enable the government to net bigger fish. In two separate deals which Doe and Roe helped to stage, the government arrested drug dealers and confiscated large quantities (e.g., one pound) of cocaine. That cooperation, the plaintiffs allege, was to result in a reduction of charges which would enable the government to recommend three-year sentences. Thereupon, Doe and Roe insist, the government offered a recommendation of zero days of incarceration if Doe and Roe would cooperate in ensnaring *673 a still larger fish in the narcotics sea. With the assistance of a third party, they enabled the authorities to apprehend a target who possessed five kilograms of cocaine. Doe and Roe complain that, after putting them at considerable risk, the government not only refused to take steps that would diminish their sentences but turned- on them and indicted them for trafficking in the five kilograms found in possession of the target dealer.
1.
Enforceability of the plea bargain.
That the government is required to abide by the terms of plea agreements it has entered into is settled. It is, perhaps, more compelling that a public pledge be redeemed than a private one.
Santobello
v.
New York,
Before principle turns into sanction, i.e., before a court enforces a plea agreement, the court is to determine that the accused had reasonable grounds to rely on the plea bargain and that the accused relied on the plea bargain to his detriment.
Commonwealth
v.
Tirrell,
Whether Doe and Roe had entered into a plea agreement, whether they had reasonably relied on it to their detriment, and whether the government has delivered what was reasonably due them under the agreement, were questions which required an evidentiary hearing.
United States
v.
Calabrese,
2.
Appropriateness of mandamus.
An action in the nature of mandamus is not an appropriate choice of procedural means by Doe and Roe to attempt to establish the terms of their plea bargain and the extent of the government’s performance of that bargain. Although, in a rough sense, Doe and Roe seek to have a public official, the district attorney, do his duty, and mandamus is a proceeding to secure the performance of a public duty,
Parrotta
v.
Hederson,
Equitable remedies, if available, are among those to which a party must turn before resorting to an action in the nature
*675
of mandamus.
Parrotta
v.
Hederson,
For sixteen years the writ of mandamus has been dead, see Mass.R.Civ.P. 81(b),
3. Appropriateness of a separate civil proceeding. Significant consequences do attach, however, if Doe and Roe may maintain an independent civil action in any form to probe the boundaries of an alleged plea bargain made in connection with a criminal proceeding.
The advantage of a civil proceeding to Doe and Roe is the wider scope of discovery under the rules of civil procedure, compared with that available under the rules of criminal procedure. Compare Mass.R.Civ.P. 26-34,
The disadvantages of a separate civil proceeding to the government are: the delays in the primary criminal proceedings which a secondary civil proceeding will infallibly produce; and the risk that Doe and Roe’s discovery might expose confidential material which would jeopardize police investigations and would expose agents and informers. From the standpoint of the courts, it is wasteful of judicial resources to have the bundle of facts from which the criminal action arose generate more than one litigation. One may imagine a worse case scenario in which multiple defendants conduct multiple civil proceedings collateral to a primary criminal proceeding. Beyond simple efficiency, justice will be better served if the judge who sits on the primary criminal case deals with disputed issues growing out of it which involve the proof or the parties.
With the single exception of
Blaikie
v.
District Attorney for the Suffolk Dist.,
We are of opinion that whether there was a plea bargain among Doe and Roe and the government, what the scope of the bargain was, what performance and detrimental reliance there was by either party, and how the bargain, if there was one, should be enforced are issues to be tried within the framework of the underlying criminal proceeding. Rule 12(c)(1) of the Massachusetts Rules of Criminal Procedure suggests the time and manner of the inquiry. If a defendant offers to plead guilty, the judge is to ask, and the parties are to inform the judge, of the substance of any agreements. Mass.R.Crim.P. 12(c)(1),
Either way, the judge in the criminal case then proceeds to an evidentiary hearing about the circumstances of the plea
*678
bargain, including exploration of whether a failure by the defendant to live up to the bargain relieves the government from its side of the deal.
Ibid.
In recognition of the essentially contractual rights which Doe and Roe seek to vindicate, the judge may authorize the use of interrogatories, notices to produce documents, and depositions, i.e., methods that have overtones of civil procedure. Unlike the civil context, however, use of discovery methods will be more constrained, and Doe and Roe will have the burden of articulating a connection between information they seek and facts they expect to establish. The judge shall have the usual discretion to curb discovery that is excessively broad or burdensome. The judge will wish to be specially alert to tailor discovery so as to prevent Doe and Roe from foraging generally in the Commonwealth’s evidence or in such a way as will expose agents and informers. Although the norm should be to inquire into the agreement in open court, see Wright, Federal Practice and Procedure § 175.1, at 642-644 (2d ed. 1982), the judge may examine in camera material over which there is contention to assure that the government’s legitimate interests are not jeopardized. Cf.
Commonwealth
v.
Lugo,
The judgment dismissing Doe and Roe’s civil action is affirmed. The underlying case shall proceed to trial, and the plea bargain issues may be explored along the lines described in this opinion.
So ordered.
Notes
Both the brief of the plaintiffs and that of the government (as did the plaintiffs’ complaint) speak of an exchange of cooperation for “leniency in sentencing.” When there is a mandatory minimum sentence, however, there is no scope, as a practical matter, for lenient sentencing. We assume that the agreement was that the Commonwealth, in exchange for cooperation, would reduce the charges against Doe and Roe. We may infer that indictments were brought because the plaintiffs refer to a pending criminal action in which they are the defendants. Doe and Roe have obscured the docket number or numbers of the pending criminal case or cases because they desire and — for reasons which will become apparent — need to preserve their anonymity.
The complaint also asked for preliminary injunctive relief against continuation of the prosecution against Doe and Roe and against any disclosure of their identities and the nature of their cooperation.
References to where amendments to those rules subsequent to 1974 appear in the reports of Massachusetts decisions are omitted.
Should the judge ultimately conclude that there was no plea bargain, that the accused had not relied on it to his detriment, or that the government was excused from performance by the accused’s failure to perform, the accused ought to have an opportunity to withdraw the guilty plea offered and to substitute a plea of not guilty. See Mass.R.Crim.P. 12(d),
