Opinion
J.The novel issue presented is whether and to what extent a waiver of the right to appeal by a juvenile is effective to restrict appellate review. We conclude that, in general, juvenile waivers are subject to the same principles governing waivers by adults. Like an adult criminal defendant, a juvenile can knowingly and intelligently waive or restrict appellate review, particularly when the waiver is part of a plea bargain that includes a stipulated disposition. But where, as here, a juvenile admits the truth of criminal allegations and acknowledges the maximum length of a possible commitment to the California Youth Authority (CYA), without agreement *1155 that the juvenile court’s disposition will in fact be a CYA commitment, the waiver will not preclude the juvenile arguing on appeal that the commitment was an abuse of the juvenile court’s discretion.
Background
It was alleged in petitions filed by the District Attorney of Solano County that 16-year-old Uriah R. had committed possession of marijuana for sale (Health & Saf. Code, § 11359), attempted murder (Pen. Code, §§ 187, 664), 1 first degree robbery producing great bodily injury (§§ 211, 12022.7), assault with a deadly weapon on a public transit employee producing great bodily injury (§§ 245, subd. (a)(2), 245.2, 12022.7), and unlawful possession of a firearm (§ 12021). The juvenile court granted the prosecutor’s motion to join Uriah’s case with those of two other juveniles involved in all but the marijuana charge.
About the time the jurisdictional hearing was to be held, the prosecutor and counsel for Uriah had agreed to a partial negotiated disposition. A new charge, that Uriah had been an accessory (§ 32), was added. Uriah would admit this charge, and the ones of unlawful weapon and marijuana possession; the remaining charges would be dismissed, but they could be considered at disposition
(People
v.
Harvey
(1979)
“Appeal Rights: Even though the court will take jurisdiction (I will be convicted) in this case as a result of my admission, I have the right to appeal the judgment and rulings of the courts. I give up my right of appeal.
“The maximum punishment which the court may impose based upon this admission is a commitment to the California Youth Authority for 5 yrs.
“I understand that if, as a result of my admissions, I am made a ward of the court, the court has many options at its disposal ranging from returning me to my home to placing me in the California Youth Authority. . . .
“Whether or not I will be granted probation is determined solely by the judge. I understand that the court’s order of disposition (my sentence) is solely within the discretion of the court.”
*1156 The court asked Uriah whether he had read the form, whether his attorney had explained it to him, and whether he understood that “your maximum period of confinement is five years.” Uriah answered “Yes” to all three questions. The court then accepted his admissions, which it found were made after Uriah had “knowingly, intelligently, and voluntarily waived [his] rights.”
The court rejected the urging of Uriah’s mother and counsel that the most appropriate disposition would be probation or local placement;' the court agreed with the probation officer’s recommendation for a CYA placement. Uriah was made a ward of the juvenile court and committed to the CYA for a period not to exceed four years and four months. The commitment term was calculated as follows: three years for what the commitment order described as “Accessory to attempted murder,” plus eight months for the weapons charge and another eight months for the marijuana charge.
Uriah filed a timely notice of appeal.
Review
I
In his opening brief Uriah contends: (1) the juvenile court abused its discretion in ordering the CYA commitment; (2) the weapons “sentence” should have been stayed pursuant to section 654 pending completion of the term on the accessory charge; and (3) “because the juvenile court did not specify an intent to sentence consecutively, the maximum period of Youth Authority confinement must be stated to be three years, the maximum term for any single count.” The Attorney General in his brief responded that review of the second and third of these contentions was precluded by Uriah’s waiver of appellate rights, but that his first contention could be examined on its merits. We requested supplemental briefing on the effectiveness and extent of Uriah’s waiver with respect to the issues he raised in his brief. The parties’ supplemental briefing has not only been very helpful, it reveals a surprising area of agreement.
The parties concur that there is no reported decision addressing the issue of juvenile appeal waivers. They further concur — as do we — that the most logical starting point for analyzing the issue of juvenile waivers is the treatment of adult waivers. That area is largely settled.
Proceeding from the premise that the right to appeal is purely statutory, courts have reasoned that if in the course of pleading guilty a
*1157
defendant may validly waive important constitutional rights, the merely statutory right to appeal could also be surrendered. (E.g.,
People
v.
Vargas
(1993)
As a general proposition, a broad or general waiver, such as “I waive my appeal rights,” will include error occurring prior to the waiver, but not subsequent error because the defendant could not make “a knowing and intelligent waiver of the right to appeal any unforeseen or unknown future error . . . .”
(People
v.
Vargas, supra,
Uriah argues in effect that a juvenile should not be allowed to waive the right of appeal. He notes that waiver is not mentioned in either the statute authorizing juvenile appeals (Welf. & Inst. Code, § 800) or the court rule governing admissions of criminal allegations (Cal. Rules of Court, rule 1487) and thus concludes that this omission “is a strong indication that for juveniles, súch a waiver is impermissible.” But there are two statutory recognitions that a juvenile can waive his constitutional right to counsel (Welf. & Inst. Code, §§ 634, 700) and two rule recognitions that a juvenile may waive additional constitutional rights and admit the charging allegations (Cal. Rules of Court, rules 1485(e), 1487(f)). Moreover, just like appeals from adult criminal court, all appeals from the juvenile court have a purely statutory basis. (E.g.,
People
v.
Chi Ko Wong
(1976)
The general validity of juvenile waivers notwithstanding, the pertinent issue becomes the scope of the waiver that Uriah actually made. And here context is crucial. This was not the ordinary criminal prosecution, which almost invariably involves incarceration. Here, however, the venue was juvenile court, with a range of judicial responses extending all the way from release to parents to a CYA commitment. (See Welf. & Inst. Code, §§ 727, 730.) Nothing said on the record by counsel, court, or client at the time Uriah admitted the allegations establishes that the decision to commit Uriah to the CYA had already been made. The same is true of the dispositional hearing. No one — not the probation officer, not the deputy district attorney, not the court — suggested there was no need to consider other alternatives because it was already decided that the minor would be sent to CYA. Further corroboration can be found in the waiver form executed by Uriah. It shows that Uriah was advised that “the court has many options at its disposal ranging from returning me to my home to placing me in the California Youth Authority” and that “disposition,” including probation, “is solely within the *1159 discretion of the court.” The extent of the bargain was that Uriah would admit the three least serious allegations, the four more serious violent charges would be dismissed, and the parties would proceed to the disposi-tional phase where the worst possible result for Uriah would be a CYA commitment not to exceed five years.
Clearly there was no specified disposition that was an integral part of the plea bargain. Because the plea agreement left the ultimate result reserved and unresolved, Uriah could not knowingly and intelligently waive his right to complain of whatever unforeseeable error might occur at the dispositional hearing. (See
People
v.
Panizzon, supra,
The Attorney General concedes that Uriah can challenge the decision to commit him to the CYA, but he argues that the contentions based on section 654 and the terms imposed on the accessory and weapon charges cannot be reviewed because these are matters affecting “the maximum term of confinement to which he consented.” The Attorney General apparently reasons that because Uriah acknowledged that the “maximum punishment” he might receive was five years with the CYA, and the total term of the actual commitment was four years and four months, any claims regarding the configuration or computation of the commitment term is covered by the appellate waiver. In effect, the Attorney General reads the minor’s part of the bargain as “I don’t accept that I am going to CYA, but if I do it will be for no more than five years.”
The Attorney General appears to be proposing that a waiver can be valid in situations where a defendant or juvenile agrees to a disposition with a ceiling or maximum term of possible incarceration. Although one court has intimated that an appellate waiver may be acceptable in exchange for an indefinite term (see
People
v.
Nguyen, supra,
We summarize our conclusions: (1) a juvenile is just as capable as an adult of making an intelligent and voluntary waiver of the purely statutory right to appeal; (2) the relevant statutes governing the proceedings conducted pursuant to the juvenile court law do not prohibit juvenile waivers; (3) a juvenile can agree to what is in obvious effect a plea bargain and, as an integral part of that bargain, the right to appeal may be waived; and, (4) in situations not involving a specified disposition, a juvenile’s general waiver will not preclude attacks on subsequent errors that are unforeseen or unforeseeable at the time the waiver was made.
A final note. The fact that a waiver of right to appeal will only rarely be applied according to its ordinarily brief and general language makes it important that the scope of the parties’ understanding of the waiver be put on the record. This may be done orally by court or counsel; a voluntary and enforceable waiver may also be shown by a writing, such as a change of plea form. (See
People
v.
Panizzon, supra,
*1161 II *
The commitment order is modified to show that appellant was found to be an accessory, within the meaning of section 32, with no further reference to any criminal offense. As so modified, the order is affirmed.
Hanlon, P. J., and Sepulveda, J., concurred.
Notes
Unless otherwise indicated all further statutory references are to the Penal Code.
Section 1237.5 imposes certain procedural requirements an adult criminal defendant who pleads guilty must satisfy before an appeal will be perfected. (See also Cal. Rules of Court, rule 31(d);
People
v.
Mendez
(1999)
See footnote, ante, page 1152.
