*345Opinion
GEORGE, J.In this case we must decide under what circumstances a defendant who has pleaded guilty may obtain relief on habeas corpus when, prior to entry of the plea, the trial court correctly advised the defendant of the length of the potential prison term, but erroneously advised the defendant as to the length of time he or she would remain on parole following release from prison.
As we shall explain, a defendant who has pleaded guilty after receiving inadequate or erroneous advice from the trial court with regard to the potential consequences of a plea generally is entitled to obtain relief only by establishing that he or she was prejudiced by the erroneous advice, i.e., by establishing, in the present context, that but for the trial court’s erroneous advice with regard to the applicable parole term, the defendant would not have entered the guilty plea. Absent such a showing of prejudice, a defendant who has received erroneous advice regarding the length of parole can obtain relief only if the period of parole imposed conflicts with a specific, negotiated term of the plea agreement.
As discussed hereafter, in the present case the proceedings in the superior court on the habeas corpus petition did not focus upon, or resolve, the question whether petitioner was prejudiced by the trial court’s erroneous advice regarding the consequences of the plea, or the question whether the period of parole was a specific, negotiated term of petitioner’s plea agreement. Under these circumstances, we conclude that this matter should be remanded to the superior court to provide both parties the opportunity to present evidence relevant to these issues, and to enable the superior court to consider petitioner’s claim in light of the governing legal principles set forth in this opinion.
I. Factual and Procedural Background
Petitioner, Sandy Lee Moser, initially was charged with first degree murder and a firearm-use enhancement allegation arising from the killing of his former lover. Petitioner ultimately pleaded guilty to second degree murder in exchange for a reduction of the charges and currently is incarcerated in state prison pursuant to a judgment of conviction of second degree murder. In the present habeas corpus petition, he seeks an order that would vacate the judgment of conviction and permit him to withdraw his plea of guilty.
In addressing petitioner’s request for relief, we begin by briefly summarizing the evidence introduced against petitioner at the preliminary hearing in the underlying criminal proceeding.
*346On the evening of September 29, 1985, the victim, Carol Young, was babysitting for the children of a friend, Teri Russell, at Russell’s home in the Humboldt County town of Areata. Young was joined by petitioner, her former lover (with whom she had a child, born in 1982). At 10:45 p.m., Young telephoned Russell, telling her, “It’s time to come home now, there’s going to be trouble.” Russell asked, “Is it Sandy?” Young replied, “Yes.”
Teri Russell returned home approximately 20 minutes later. She found Carol Young dead, the victim of multiple gunshot wounds. Petitioner was gone.
Later that same evening, petitioner awakened an acquaintance, Thomas Stover, at Stover’s residence, located in the Mendocino County town of Redwood Valley. Petitioner, in an excited state, told Stover, “I blew Carol away. ... I blew her away, bam, bam, bam.” Petitioner asked Stover to assist him in concealing his automobile, and mentioned that he wanted to hide for a day. Petitioner also said he was going to kill himself. After siphoning some gasoline for his automobile, petitioner drove away. At some point thereafter, he was arrested for the murder of Young.
Robert Morris, a Humboldt County forensic pathologist, determined that the victim had been shot repeatedly at close range. In the course of the autopsy he performed, he identified a “defensive” bullet wound to the victim’s wrist, and powder marks on her palms, suggesting that the victim had attempted to grab the firearm. Based upon powder burns located near the fatal gunshot wound to the victim’s neck, Morris opined that “the gun [had been] forced hard against the [victim’s] skin, hard enough to cause a ridge to come up,” allowing the bullet to enter, exit, and reenter the victim’s neck. The bullet thereafter pierced the base of the victim’s skull, tearing through her brain.
Following the preliminary hearing, petitioner was held to answer on a charge of first degree murder (Pen. Code, §§ 187, 189)1 and an allegation of personal use of a firearm (§ 12022.5).
In May 1987, petitioner entered a negotiated plea of guilty to second degree murder, a crime punishable by a prison term of 15 years to life. (§ 190, subd. (a).) The trial court described the plea agreement as follows: “[T]he agreement is that you will plead guilty to the [c]ount in the Information agreed or stipulated to be a second degree murder charge. The District Attorney will dismiss the arming [sic] allegation. Is that the agreement?” Petitioner responded affirmatively. The plea agreement nearly halved the *347potential minimum sentence of 27 years to life faced by petitioner (had he elected to proceed to trial on the charge of first degree murder, been found guilty of that charge, and been found to have personally used a firearm, the latter finding at that time invoking an additional two-year prison term). (§ 190, subd. (a); former § 12022.5.)
Before accepting petitioner’s plea of guilty, the trial court fully and accurately advised petitioner of his constitutional rights. The court also accurately advised petitioner that the mandatory penalty prescribed by statute for conviction of murder in the second degree was confinement in the state prison for a term of 15 years to life. In addition, however, the trial court incorrectly advised petitioner, as follows, with regard to the potential parole term: “Do you understand that once you have concluded your term in prison, that there will be a period of parole which cannot exceed forty-eight months, and it works—actually, the term is thirty-six months; but if you add parole violations spaced just correctly, you could serve an additional forty-eight months in prison if the Board [of Prison Terms] determined that there should be a return on each violation.” In fact, the applicable statute provides a maximum lifetime period of parole upon a conviction of second degree murder. (§ 3000.1, subd. (a).)2
The trial court inquired whether petitioner’s plea was freely and voluntarily made, and whether there was a factual basis for the plea, pursuant to section 1192.5, but improperly failed to advise petitioner of his right to withdraw the plea in the event the trial court at the time of sentencing withdrew its approval of the terms of the plea agreement (§ 1192.5).3
Upon the trial court’s acceptance of the negotiated plea, the People, pursuant to the terms of the plea agreement, moved to strike the firearm-use allegation. The parties waived a formal probation report, recognizing that there was only one possible prison term for second degree murder—fifteen years to life in the state prison. (§ 190, subd. (a).)
At the sentencing hearing conducted in June 1987, petitioner submitted a letter to the trial court explaining that he had entered his guilty plea “to spare *348those I love from the emotional pain and indignity of a trial.”4 The trial court thereafter imposed the mandatory sentence of 15 years to life in the state prison and advised petitioner of his appeal rights. In advising petitioner as to the parole consequences of his plea, however, the trial court repeated its earlier error, stating: “Once you have completed the term of imprisonment that I’ve just imposed upon you, there is a period of parole which is thirty-six months but which can extend to forty-eight months if there should be violations that are spaced just right.”
The trial court also informed petitioner that he was obligated to pay a mandatory restitution fine, prescribed by section 13967, subdivision (a), of the Government Code.5 Noting that petitioner had not been advised of this consequence of his plea, the trial court determined that there was “only one equitable thing to do and that is to impose the minimum fine.” The court gave petitioner the option of withdrawing his plea in lieu of accepting the minimum fine, but petitioner accepted the minimum fine.
No appeal was filed, and petitioner was committed to the custody of the director of corrections to serve the term of imprisonment imposed by the court.
Three years later, in July 1990, petitioner filed a petition for writ of habeas corpus in the superior court, seeking leave to withdraw his guilty plea on the ground that the trial court and petitioner’s counsel had advised him improperly as to the consequences of his plea, and that counsel improperly had informed petitioner that the case presented no appealable issues. In the *349memorandum that accompanied his petition, petitioner argued that the trial court had failed to advise him of the correct parole term. He did not specifically allege, however, that he would not have pleaded guilty to second degree murder had he been properly advised.
The superior court issued an order to show cause. The People then filed a return conceding the trial court’s error in incorrectly advising petitioner of the applicable parole term prescribed by statute for second degree murder, but the return failed to note or rely upon petitioner’s failure to allege or demonstrate that he had been actually prejudiced by the error, i.e., that petitioner would not have entered the plea had he been advised accurately of the parole consequences. Indeed, the return did not argue that habeas corpus relief should be denied altogether but instead, noting that the evidence in the case had “scattered to the wind,” urged that “the appropriate remedy is specific performance of the plea bargain to which all parties agreed at the time of the sentence”—a three-year parole term subject to extension to four years. The return asserted that the Board of Prison Terms (BPT), the statutory entity charged with administering the parole process, had assented to such a remedy. The People did not argue that petitioner’s claim was untimely; on the contrary, the People acknowledged that “the writ is the proper remedy and vehicle to redress the wrong.”
The superior court rejected the People’s arguments, concluding that specific performance of the erroneous parole term would result in “a subversion of the appropriate penal statute, [would] impose a sanction not provided in the Penal Code, and [would] impose a created punishment. Such creative sentencing ought not to be countenanced. And will not be.” The court also determined that specific performance might not provide an adequate remedy, observing that the BPT, which possesses the authority to determine when petitioner should be released from prison on his 15 years-to-life term, might be reluctant to release him on parole in view of the shortening of his parole term from life to 36 months. Accordingly, the trial court issued an order setting aside the conviction and permitting petitioner to withdraw his guilty plea.
The People appealed, again arguing that specific performance was the appropriate remedy. The Court of Appeal reversed the judgment of the superior court, determining that the lower court had abused its discretion in failing to consider the prejudice that the People would incur in the event petitioner were permitted to withdraw his guilty plea. Seeking guidance from our decision in People v. Walker (1991) 54 Cal.3d 1013 [1 Cal.Rptr.2d 902, 819 P.2d 861], the Court of Appeal concluded that in view of the conceded error, the BPT’s assent to a minimum parole term, and the detriment to the *350People were the plea agreement to be set aside at such a late date, the appropriate remedy was to order the lower court to enter a new judgment directing the BPT to impose no more than the minimum, five-year term of parole prescribed in section 3000.1, subdivision (b), in the event petitioner is released from prison.6
We granted petitioner’s ensuing request for review, and directed the parties to address the following issue: “[Wjhether a trial court’s misadvice as to the applicable period of parole for a defendant pleading guilty constitutes a violation of the plea agreement or a violation of the court’s duty to advise of the consequences of the plea, and, if the defendant is entitled to relief, what is the appropriate remedy.”7
II. Discussion
Petitioner contends the trial court’s misadvice as to the applicable parole term, and as to the potential period of reincarceration (should petitioner be released on parole and subsequently violate its terms), constituted a violation of the court’s duty to advise petitioner of the consequences of his guilty plea. He also contends that the lower court’s failure to advise him properly as to the parole consequences of his plea resulted in a sentence that significantly deviates from the terms of the negotiated plea. Petitioner argues that, in view of these alleged errors, he is entitled to issuance of an order vacating the judgment of conviction and permitting him to withdraw his plea of guilty.
In response, the People contend that the lower court’s misadvice constituted harmless error, and that even if petitioner is deemed to have been prejudiced by the lower court’s misadvisement, the proper remedy at this juncture is “substantial” specific performance of the plea agreement, resulting in the imposition of a five-year term of parole.
In analyzing the parties’ contentions, we adhere to the framework set forth in our decision in People v. Walker, supra, 54 Cal.3d 1013, 1019-1020, *351where we explained that resolution of the issues presented “requires consideration of two related but distinct legal principles. (See People v. Glennon (1990) 225 Cal.App.3d 101, 104 [276 Cal.Rptr. 1].) ¶ The first principle concerns the necessary advisements whenever a defendant pleads guilty, whether or not the guilty plea is part of the plea bargain. The defendant must be admonished of and waive his constitutional rights. (Boykin v. Alabama (1969) 395 U.S. 238 [23 L.Ed.2d 274, 89 S.Ct. 1709]; In re Tahl (1969) 1 Cal.3d 122 [81 Cal.Rptr. 577, 460 P.2d 449].) In addition, and pertinent to this case, the defendant must be advised of the direct consequences of the plea. (Bunnell v. Superior Court (1975) 13 Cal.3d 592, 605 [119 Cal.Rptr. 302, 531 P.2d 1086].) [¶] The second principle is that the parties must adhere to the terms of a plea bargain. (People v. Mancheno (1982) 32 Cal.3d 855, 860 [187 Cal.Rptr. 441, 654 P.2d 211].) [¶] In any given case, there may be a violation of the advisement requirement, of the plea bargain, or of both. Although these possible violations are related, they must be analyzed separately, for the nature of the rights involved and the consequences of a violation differ substantially. Indeed, much of the confusion engendered by the appellate decisions on this issue results from a blurring of the distinction between these principles.”
Thus, we first consider whether the trial court’s misadvisement regarding the length of petitioner’s term of parole constituted a violation of the court’s obligation to advise petitioner of the direct consequences of his guilty plea, and, if so, whether such a violation entitles petitioner to obtain the relief he now seeks. Thereafter, we consider the separate question whether the imposition upon defendant of the parole term mandated by statute constituted a violation of the parties’ plea agreement.
A. Advisement of the consequences of the plea
Our initial inquiry focuses upon whether the trial court’s misadvisement with regard to the applicable parole term violated its obligation to inform petitioner of the direct consequences of his plea. In Bunnell v. Superior Court (1975) 13 Cal.3d 592, 605 [119 Cal.Rptr. 302, 531 P.2d 1086], we held that a defendant who pleads guilty “shall be advised of the direct consequences of conviction such as the permissible range of punishment provided by statute . . . .” Although this court never has addressed the question whether Bunnell compels a trial court to advise a defendant as to the mandatory parole consequences of a guilty plea, the People do not argue that the parole consequences of such a plea fall outside Bunnell's requirement of a proper advisement, and decisions rendered by the Courts of Appeal uniformly have concluded that a mandatory term of parole is a “direct consequence” of a plea and thus a matter of which a trial court is obligated *352to advise a defendant under Bunnell. (See, e.g., In re Carabes (1983) 144 Cal.App.3d 927, 931-932 [193 Cal.Rptr. 65]; People v. McMillion (1992) 2 Cal.App.4th 1363, 1367-1368 [3 Cal.Rptr.2d 821]; People v. Victorian (1992) 2 Cal.App.4th 954, 957 [4 Cal.Rptr.2d 460]; see also § 1170, subd. (c) [in imposing a determinate sentence, the trial court shall inform the defendant “that as part of the sentence after expiration of the term he or she may be on parole for a period as provided in Section 3000”]; Cal. Judges Benchbook, Criminal Pretrial Proceedings (CJER 1991) Commencing the Action, § 1.34, p. 35 [defendant shall be asked whether he or she understands “that after you have served your prison term you may be subject to a maximum parole period of_years?”].) We agree with this line of authority and therefore conclude that where the trial court fails to advise a defendant of the mandatory parole consequences of his or her guilty plea or, as in the present case, misadvises a defendant as to those consequences, Bunnell error has occurred.
Having found such error, we next must determine whether this error, alone, entitles petitioner to the relief he now seeks. Petitioner claims that, in view of the trial court’s misadvisement, he is entitled to withdraw his plea of guilty. As we explained in People v. Walker, supra, 54 Cal.3d 1013, however, a defendant (even on direct appeal) is entitled to relief based upon a trial court’s misadvisement only if the defendant establishes that he or she was prejudiced by the misadvisement, i.e., that the defendant would not have entered the plea of guilty had the trial court given a proper advisement. (Id.. at pp. 1022-1023.) A fortiori, the defendant must demonstrate prejudice when, as in the present case, the issue is raised on habeas corpus. (See In re Ronald E., supra, 19 Cal.3d at pp. 325-326; In re Yurko (1974) 10 Cal.3d 857, 864 [112 Cal.Rptr. 513, 519 P.2d 561]; In re Saunders (1970) 2 Cal.3d 1033, 1047-1048 [88 Cal.Rptr. 633, 472 P.2d 921]; In re Carabes, supra, 144 Cal.App.3d at p. 933; accord, United States v. Timmreck (1979) 441 U.S. 780, 784 [60 L.Ed.2d 634, 638-639, 99 S.Ct. 2085] [a federal conviction based upon a guilty plea is not subject to collateral attack when the trial court failed to advise the defendant of the mandatory term of parole as required by rule 11 of the Federal Rules of Criminal Procedure (18 U.S.C.) but no actual prejudice is shown].)8
As noted above, in the present case the petition for writ of habeas corpus filed in the superior court did not specifically allege prejudice. In their return *353to the petition, however, the People failed to bring this omission to the superior court’s attention, and thus the question of prejudice never was litigated or resolved at the trial court level.9 Although we do not believe it would be appropriate to grant relief to petitioner in the absence of a showing of prejudice, we conclude that under these circumstances the interests of justice would best be served by a remand of the matter to the superior court for a hearing and determination of the question whether petitioner was prejudiced by the trial court’s misadvisement.10
B. Violation of the plea agreement
In addition to his contention that he was prejudiced by the trial court’s misadvisement regarding the length of his parole term, petitioner contends that under the circumstances set forth above, imposition of a lifetime term of parole constituted a violation of the parties’ plea agreement, entitling petitioner to obtain relief without regard to the question whether he was prejudiced by the trial court’s misadvisement.
Petitioner’s claim as to the asserted breach of the plea agreement is distinct from the question whether the trial court properly fulfilled its duty to advise him regarding the direct consequences of his plea. As we explained in People v. Walker, supra, 54 Cal.Sd 1013, in contrast to a violation of the trial court’s advisement duty (which, as we have seen, entitles a defendant to relief only if the defendant can demonstrate prejudice), “[a] violation of a plea bargain is not subject to harmless error *354analysis. A court may not impose punishment significantly greater than that bargained for by finding the defendant would have agreed to the [additional] punishment had it been made a part of the plea offer. ‘Because a court can only speculate why a defendant would negotiate for a particular term of a bargain, implementation should not be contingent on others’ assessment of the value of the term to defendant. [¶]... [¶] Moreover, the concept of harmless error only addresses whether the defendant is prejudiced by the error. However, in the context of a broken plea agreement, there is more at stake than the liberty of the defendant or the length of his term: “At stake is the honor of the government^] public confidence in the fair administration of justice, and the efficient administration of justice ....’” [Citations.]” CPeople v. Walker, supra, 54 Cal.3d at p. 1026, italics added.)
The distinction between a mere misadvisement with regard to the consequences of a guilty plea and a violation of a plea agreement is perhaps best illustrated by a comparison of two United States Supreme Court decisions, United States v. Timmreck, supra, 441 U.S. 780, and Santobello v. New York (1971) 404 U.S. 257 [30 L.Ed.2d 427, 92 S.Ct. 495].
In Timmreck, as part of a plea agreement in which other charges were dismissed, the defendant pleaded guilty to the charge of conspiracy to distribute controlled substances. Prior to accepting the plea, the federal district court advised the defendant of the maximum possible sentence and fine that lawfully could be imposed on the conspiracy-to-distribute charge, but failed to inform him of the mandatory spevial term of parole carried by such a charge. The defendant thereafter pleaded guilty, and the court accepted the plea. At a subsequent sentencing hearing, the court sentenced the defendant to serve a term of imprisonment, followed by a special parole term of five years, and to payment of a fine. No objection to the sentence was raised at the time, and the defendant did not appeal from his conviction.
Two years later, the defendant moved to vacate the sentence on the ground that the trial court had erred in failing to advise him of the mandatory special term of parole before accepting the plea. While recognizing that the district court had violated rule 11 of the Federal Rules of Criminal Procedure (18 U.S.C.) in failing to advise the defendant of the mandatory special term of parole prior to accepting the plea, the Supreme Court in Timmreck held that such a misadvisement, in itself, did not provide a basis for setting aside the conviction on a collateral attack. Specifically noting that the defendant had not argued “that he was actually unaware of the special parole term or that, if he had been properly advised by the trial judge, he would not have pleaded guilty” (United States v. Timmreck, supra, 441 U.S. at p. 784 [60 L.Ed.2d at pp. 638-639]), the Timmreck court found that the defendant’s “only claim is *355of a technical violation” of the advisement rule (ibid.) which could not reasonably be found to have “resulted in a ‘complete miscarriage of justice’ or in a proceeding ‘inconsistent with the rudimentary demands of fair procedure’ ’’ so as to warrant collateral relief. (Ibid., quoting Hill v. United States (1962) 368 U.S. 424, 428 [7 L.Ed.2d 417, 421, 82 S.Ct. 468].) Thus, the facts of Timmreck provide an example of a simple misadvisement error.
Santobello v. New York., supra, 404 U.S. 257, by contrast, illustrates the circumstances that give rise to a violation of a plea agreement. In Santobello, the defendant, after having been indicted for participating in various gam-, bling activities, entered into plea negotiations with the local prosecutor. Following these negotiations, the prosecutor agreed to permit the defendant to plead guilty to a lesser offense, which carried a maximum prison sentence of one year, and the prosecutor further agreed to make no recommendation regarding the sentence. Numerous delays ensued and, by the date set for sentencing, another prosecutor had replaced the prosecutor who had negotiated the plea agreement. The new prosecutor recommended to the sentencing court that the defendant receive the maximum, one-year sentence. Defense counsel interposed an objection, citing the promise made on behalf of the state by the initial prosecutor, prior to the entry of the defendant’s plea of guilty, that a sentencing recommendation would not be made. The sentencing judge rejected defense counsel’s argument and imposed the maximum prison sentence, on the basis that the defendant’s probation report, reflecting his long criminal history, indicated the defendant was a recidivist unamenable to probationary supervision.
In vacating the judgment rendered by the trial court, the Supreme Court held in Santobello that the plea-negotiating process “must be attended by safeguards to insure the defendant what is reasonably due in the circumstances. Those circumstances will vary, but a constant factor is that when a plea rests in any significant degree on a promise or agreement of the prosecutor, so that it can be said to be part of the inducement or consideration, such promise must be fulfilled. [¶] On this record, petitioner ‘bargained’ and negotiated for a particular plea in order to secure dismissal of more serious charges, but also on condition that no sentence recommendation would be made by the prosecutor. It is now conceded that the promise to abstain from a recommendation was made, and at this stage the prosecution is not in a good position to argue that its inadvertent breach of agreement is immaterial. . . . That the breach of agreement was inadvertent does not lessen its impact.” (Santobello v. New York, supra, 404 U.S. at p. 262 [30 L.Ed.2d at p. 433], italics added.)
The contrast between the Timmreck and Santobello decisions provides a useful guide in evaluating the proper characterization of the error *356that occurred in the present case. Based solely upon the record of the plea proceedings, it would appear that the indicated length of the parole term was not a part of the plea agreement, but simply constituted a misadvisement by the trial court. As set forth above, prior to accepting petitioner’s plea of guilty, the trial court recited on the record the terms of the parties’ plea agreement, noting that petitioner had agreed to plead guilty to the lesser charge of second degree murder in exchange for the People’s agreement to forego a trial on the first degree murder charge and to dismiss the firearm-use allegation. The trial court inquired of petitioner whether the court’s statement was an accurate recitation of the plea agreement, and he responded affirmatively. Nothing in the record indicates that the length of the parole term, improperly described by the trial court, was an element of the parties’ plea negotiations and resulting agreement so as to render imposition of the lifetime period of parole mandated by statute a violation of the plea agreement. (See also In re Chambliss (1981) 119 Cal.App.3d 199, 202 [173 Cal.Rptr. 712].)
Petitioner’s argument that the imposition of a lifetime period of parole should be treated as a violation of the plea agreement is twofold. First, petitioner contends that, because in People v. Walker, supra, 54 Cal.3d 1013, we held that the imposition of a substantial restitution fine that had not been included in the plea agreement constituted a violation of the agreement, the imposition of the statutorily mandated lifetime period of parole similarly should be found to constitute a violation of the plea agreement. This argument rests upon an erroneous, overbroad reading of Walker.
In Walker, the offense to which the defendant had agreed to plead guilty carried a potential seven-year sentence and a $10,000 punitive fine, but under the negotiated plea agreement the defendant was to receive a five-year term of imprisonment and no punitive fine. At the subsequent sentencing hearing, the trial court imposed the agreed-upon five-year sentence but also a substantial ($5,000) restitution fine.
In concluding that the imposition of such a substantial fine constituted a violation of the plea agreement in Walker, we implicitly found that the defendant in that case reasonably could have understood the negotiated plea agreement to signify that no substantial fine would be imposed. Moreover, in reaching this conclusion, we reasoned that, because the amount of an appropriate restitution fine imposed upon a defendant could vary significantly depending upon the specific facts of a given case, “the restitution fine *357should generally be considered in plea negotiations.” (People v. Walker, supra, 54 Cal.3d at p. 1024.)11
Unlike the amount of the restitution fine at issue in Walker, the length of a parole term is not a permissible subject of plea negotiations. The lifetime term of parole challenged in the present case is a statutorily mandated element of punishment imposed upon every defendant convicted of second degree murder. (§ 3000.1, subd. (a).) Neither the prosecution nor the sentencing court has the authority to alter the applicable term of parole established by the Legislature. (See People v. McMillion, supra, 2 Cal.App.4th at pp. 1368-1369; People v. Victorian, supra, 2 Cal.App.4th at p. 959.)12 In the present case, if (as appears from the record) the subject of parole was not encompassed by the parties’ plea negotiations, imposition of the statutorily mandated term of parole would not constitute a violation of the parties’ plea agreement. (See In re Chambliss, supra, 119 Cal.App.3d 199, 202-203.)
Second, at oral argument, petitioner’s counsel argued that, even if the present record fails to indicate that the term of parole constituted an element of the parties’ plea agreement, petitioner’s potential parole term may have been discussed during plea negotiations, and the prosecutor may have made promises or inducements regarding the term of parole. Counsel further argued that it would be unfair simply to assume that no such discussions occurred, when the People’s argument in the superior court appeared to concede that the three-year term of parole was part of the parties’ plea agreement, and petitioner never was put on notice as to the necessity of introducing evidence directed to this issue.
Counsel’s argument is well taken. “In most cases an examination of the record will reveal the truth or falsity of the petitioner’s allegations, thus *358obviating the need for an evidentiary hearing.” (People v. West (1970) 3 Cal.3d 595, 611 [91 Cal.Rptr. 385, 477 P.2d 409].) In light of the nature of the People’s argument in the superior court in response to the order to show cause, however, we believe it would be inappropriate to foreclose petitioner from presenting evidence relating to whether the length of petitioner’s term of parole was an element of the plea negotiations. Under the unusual circumstances presented by this case, we conclude this question should be the subject of further proceedings on remand to the superior court. (See Santobello v. New York, supra, 404 U.S. 257, 262 [30 L.Ed.2d 427, 433].)13
III. Conclusion
The judgment of the Court of Appeal is reversed, and the matter is remanded to the Court of Appeal with directions to vacate the judgment of the superior court and remand the matter to the superior court for further proceedings consistent with the views expressed in this opinion.
Lucas, C. J., Panelli, J., Arabian, J., and Baxter, J., concurred.
All further statutory references are to the Penal Code unless otherwise indicated.
Section 3000.1, subdivision (a), provides: “In the case of any inmate sentenced under Section 1168 for any offense of first or second degree murder with a maximum term of life imprisonment, the period of parole, if parole is granted, shall be the remainder of the inmate’s life.”
The trial court’s error apparently stemmed from its improper reliance upon section 3000, subdivisions (a) and (d), which prescribe a three-year parole term (that can be extended to four years) where a determinate sentence has been imposed.
Section 1192.5 provides in pertinent part: “If the court approves of the plea, it shall inform the defendant prior to the making of the plea that (1) its approval is not binding, (2) it may, at the time set for the hearing on the application for probation or pronouncement of judgment, withdraw its approval in the light of further consideration of the matter, and (3) in such case, the defendant shall be permitted to withdraw his plea if he desires to do so.”
Petitioner’s statement was as follows:
“Your Honor, the reason I’m writing this statement is because of the difficulty I have trying to express my thoughts and feelings verbally. To everyone who has been affected by this tragedy, all that I can say is that I’m sorry for hurting you, especially my daughter Lisa, whom I love with all my heart.
“I plead guilty to this charge in order to spare those I love from the emotional pain and indignity of a trial. Perhaps I would have received a manslaughter if I had went to trial, but I really didn’t see any purpose served by reopening wounds.
“To say that I understand why or what occurred would only be speculation on my part. After all this time, it still seems like a nightmare I can’t wake up from. It just doesn’t make any sense.
“In conclusion, I would like to thank my attorney, Mr. Rael, for all his efforts on my behalf and the Court for the opportunity to present this statement through my counsel. Thank you. Sandy Lee Moser.”
Government Code section 13967, subdivision (a), then provided in pertinent part: “Upon a person being convicted of any crime in the State of California, the court shall, in addition to any other penalty provided or imposed under the law, order the defendant to pay restitution in the form of a penalty assessment in accordance with Section 1464 of the Penal Code and to pay restitution to the victim .... In addition, if the person is convicted of one or more felony offenses, the court shall impose a separate and additional restitution fine of not less than one hundred dollars ($100) and not more than ten thousand dollars ($10,000). . . .”
Section 3000.1, subdivision (b), provides in pertinent part: “Notwithstanding any other provision of law, when any person referred to in [section 3000.1] subdivision (a) has been released on parole from the state prison, and has been on parole continuously for . . . five years in the case of any person imprisoned for second degree murder, since release from confinement, the [BPT] shall, within 30 days, discharge such person from parole, unless the [BPT], for good cause, determines that such person will be retained on parole. . . .”
Notwithstanding the language of our order granting review, the People reiterate an argument, raised for the first time in the Court of Appeal (and impliedly rejected by that court), that the underlying habeas corpus petition, filed three years after entry of petitioner’s guilty plea, is untimely, citing our decision in In re Ronald E. (1977) 19 Cal.3d 315, 321-322 [137 Cal.Rptr. 781, 562 P.2d 684], In view of the People’s failure to raise the timeliness issue in the trial court, we deem that issue to have been waived.
In People v. Walker, supra, 54 Cal.3d 1013, 1023, in addition to explaining that a defendant is required to establish prejudice resulting from the trial court’s misadvisement as to the consequences of a guilty plea, we also held that “the error is waived absent a timely objection.” That procedural bar is inapplicable in the present case, however, because unlike Walker, the present case does not involve a trial court’s imposition at the sentencing hearing of a sentence at variance with the advice given at the earlier plea proceeding—a situation in which a defendant reasonably may be required to bring the discrepancy to the court’s attention by a timely objection at the sentencing hearing. Rather, under the present *353circumstances, where nothing in the record suggests that petitioner had any reason to question the accuracy of the trial court’s advisement, it would be unfair to hold that petitioner should have objected to the trial court’s erroneous description of the applicable period of parole. (See also In re Robinson (1990) 216 Cal.App.3d 1510, 1513-1514 [265 Cal.Rptr. 574] [defendant who was not advised that, as a consequence of an insanity plea, his commitment could be extended indefinitely, was not barred from collaterally challenging the commitment several years later]; People v. McIntyre (1989) 209 Cal.App.3d 548, 558 [257 Cal.Rptr. 271] [same]; see also People v. McMillion, supra, 2 Cal.App.4th at p. 1368 [following a trial court’s failure to advise as to parole, a defendant should not be required “to infer the missing information”].)
At the hearing on the order to show cause, the People (represented by the Humboldt County District Attorney’s office) acknowledged: “[T]his is really a case [in] which the court has two options. The choice of remedy: Whether the plea shall be withdrawn, or whether the court should order specific performance of the [plea] agreement. . . . [W]e concede there is an error here and the writ is the proper remedy and vehicle to redress the wrong.”
A showing of prejudice also is a necessary prerequisite to the establishment of petitioner’s related claim of ineffective assistance of counsel. (See People v. Ledesma (1987) 43 Cal.3d 171, 217-218 [233 Cal.Rptr. 404, 729 P.2d 839].) If petitioner establishes that the trial court’s misadvisement regarding the length of his parole term was prejudicial, however, petitioner would be entitled to relief without regard to whether defense counsel’s performance “ ‘fell below an objective standard of reasonableness . . . under prevailing professional norms.’ ” (Id. at p. 216 [quoting Strickland v. Washington (1984) 466 U.S. 668, 688 [80 L.Ed.2d 674, 693-694, 104 S.Ct. 2052].) Thus, we need not, and do not, reach petitioner’s contention that defense counsel’s performance was constitutionally deficient.
Although we recognized in Walker that, in general, the specific amount of the restitution fine to be imposed on a defendant under Government Code section 13967 is a proper subject of plea negotiations, we also noted that, because the applicable statute then required the court to impose a restitution fine of at least $100 absent an express finding of “compelling and extraordinary reasons” (§ 1202.4, subd. (a)), the minimum fine had to be imposed in that case inasmuch as the trial court had made no such finding. (See People v. Walker, supra, 54 Cal.3d at pp. 1027-1028.)
Contrary to the People’s contention, the provisions of section 3000.1, subdivision (b) (see, ante, p. 350, fn. 6) are incompatible with the People’s proposed “compromise” remedy, adopted by the Court of Appeal, under which petitioner would be guaranteed a maximum parole term of five years. Under section 3000.1, subdivision (b), a person convicted of second degree murder who is released on parole must satisfactorily complete five years on parole before the BPT determines whether or not to discharge that person from parole. In effect, the person must “earn” the right to reduce the lifetime term of parole to a five-year term. Thus, the applicable statute precludes setting the parole term at five years in advance of the person’s release from prison.
The dissenting opinion authored by Justice Kennard criticizes the majority for “providing] no guidance to the trial court in this case, and others like it, regarding the remedy to be afforded. . . .” (See, post, pp. 363-364.) Because the record before us provides no support for petitioner’s claim of prejudice, or for his claim that a lifetime term of parole constitutes a violation of his plea agreement, it is unclear on the present record that petitioner is entitled to any remedy whatsoever. Under these circumstances, we believe it would be unwise to use this particular case as a vehicle for establishing a “bright-line” remedy that might not even apply in the present matter.