Opinion for the Court filed by Circuit Judge BROWN.
Appellant Capitol Hill Group (CHG) filed suit in the Superior Court of the District of Columbia against its former counsel, Shaw Pittman (now Pillsbury Winthrop Shaw Pittman LLP) and various associated attorneys, for claims stemming from alleged legal malpractice. Appellees removed the case to federal court, asserting federal jurisdiction under 28 U.S.C. § 1334(b), so-called “arising in” bankruptcy jurisdiction. The district court denied appellant’s motion to remand for lack of jurisdiction, and later granted summary judgment for appellees because CHG’s claims are barred by res judicata. Finding no error, we affirm.
I.
To make a long and already well-documented story short — well, somewhat shorter — we summarize the relevant facts. CHG filed for bankruptcy in February 2002. CHG’s primary asset, commercial property in the District of Columbia, was embroiled in a zoning dispute with the District’s Department of Consumer and Regulatory Affairs regarding the amount of off-street parking required. The controversy continued during the bankruptcy proceedings and Shaw Pittman, CHG’s court-approved bankruptcy counsel, represented CHG in the zoning process.
Initially CHG was told it would have to provide 225 parking spaces, but in March 2003 the Zoning Administrator decided 85 spaces would suffice. In January 2004, after a neighborhood association appealed, the Board of Zoning Adjustment (BZA) affirmed, but then decided to reconsider its ruling. On February 24, 2004, the BZA finally settled on a total of 177 spaces, an announcement it made orally. The ruling was not issued in written form until September 9, 2004, at which time it was transmitted by the BZA to Shaw Pittman, but not to CHG itself. According to CHG, such an expansive parking requirement “effectively precludes CHG from either *488 utilizing a substantial portion of the Property itself, or leasing it to others[.]”
In the interim the bankruptcy court granted Shaw Pittman’s request to terminate its court-approved representation of CHG. Shaw Pittman returned its BZA-related files to CHG but did not tell the BZA it had stopped representing CHG. As a courtesy, Shaw Pittman informed CHG of the BZA’s decision to reconsider its favorable January ruling at a hearing to take place on February 24 — information a Shaw Pittman attorney gleaned while present at the BZA on other business.
CHG and Shaw Pittman’s post-representation relations were rocky. CHG first complained that Shaw Pittman’s fees were unreasonable. After contested hearings, the bankruptcy judge granted summary judgment to Shaw Pittman and “awarded the firm fees based primarily on its conclusion that CHG had agreed not to contest the amount of the fees. The bankruptcy judge also made oral findings that Shaw Pittman’s services were professional and that Shaw Pittman deserved to be compensated for those services.”
Capitol Hill Group v. Pillsbury Winthrop Shaw Pittman, LLP, 574
F.Supp.2d 143, 146 (D.D.C. 2008). The district court affirmed the bankruptcy court’s decision.
In re Capitol Hill Group,
Shaw Pittman then filed an application for fees and costs incurred during the first fee dispute. After a trial on October 21 and 22, the bankruptcy judge orally ruled that CHG was responsible for paying all fees and expenses that were reasonably foreseeable as a result of engaging in the fee litigation with Shaw Pittman. Nevertheless, the cycle of acrimony continued. After a one-day trial on a third fee application on August 1, 2005, the bankruptcy court approved the application. The court later entered a fourth and a fifth fee judgment with the consent of CHG. On April 12, 2006, the parties made one final appearance before the bankruptcy court, after Shaw Pittman filed a motion to compel because it feared CHG was withholding further claims. The bankruptcy court specifically asked CHG whether it had any other claims against the firm. CHG’s counsel stated “[tjhere are concerns that CHG has about the representation that Shaw Pittman provided during its representation of Capitol Hill Group that began in 1999 or whatever. But nothing’s been filed.” CHG also represented it “had no outstanding claims against Shaw Pittman arising out of the bankruptcy proceedings.”
Capitol Hill Group,
In this suit, CHG alleges Shaw Pittman committed malpractice in two respects: by failing to notify CHG when BZA issued the September 2004 order, and by failing to make a particular legal argument to the BZA. Shaw Pittman removed the case to federal court. The district court concluded it had jurisdiction, and granted summary judgment for appellees because CHG’s claims are barred by res judicata.
We have jurisdiction under 28 U.S.C. § 1291 from the final order of the district court granting summary judgment for defendants. After such a final order, the district court’s earlier denial of the motion to remand for lack of subject matter jurisdiction also is reviewable.
See Geruschat v. Ernst Young LLP (In re Seven Fields Dev. Corp.),
II.
CHG insists the district court erred in exercising jurisdiction over this case under 28 U.S.C. § 1334(b), which provides “the district courts shall have original but not exclusive jurisdiction of all civil proceedings arising under title 11, or arising in or related to cases under title 11.” “[Pjroceedings or claims arising in Title 11 are those that are not based on any right expressly created by Title 11, but nevertheless, would have no existence outside of the bankruptcy.”
Grausz v. Englander,
In concluding it had “arising in” jurisdiction, the district court principally relied on two cases:
Southmark Corp. v. Coopers & Lybrand (In re Southmark Corp.),
Appellant argues that claims arising post-petition and post-plan-confirmation are outside the “arising in” jurisdiction of the court, citing
Valley Historic Limited Partnership v. Bank of New York,
In sum, we agree with our sister circuits that malpractice claims against court-appointed professionals stemming from services provided in the bankruptcy proceeding are “inseparable from the bankruptcy context,”
Southmark Corp.,
163 F.3d at
*490
931, and “constitute ... a proceeding ‘arising in’ the bankruptcy,”
Geruschat,
III.
CHG argues res judicata should not bar it from pressing its malpractice claims against Shaw Pittman despite the fee litigation during the bankruptcy proceedings. “Under the doctrine of res judicata, or claim preclusion, a subsequent lawsuit will be barred if there has been prior litigation (1) involving the same claims or cause of action, (2) between the same parties or their privies, and (3) there has been a final, valid judgment on the merits, (4) by a court of competent jurisdiction.”
Smalls v. United States,
CHG’s arguments go to the first element listed, the so-called “identity” element; the existence of the other three elements is not contested. As the district court explained, “there is an identity of the causes of action when the cases are based on the ‘same nucleus of facts’ because ‘it is the facts surrounding the transaction or occurrence which operate to constitute the cause of action, not the legal theory on which a litigant relies.’ ”
Capitol Hill Group,
A.
The district court relied primarily on three cases in granting summary judgment for appellees under the doctrine of res judicata:
Grausz,
CHG argues that, as in the Fourth Circuit’s unpublished decision in
Kronish Lieb Weiner & Hellman, LLP v. Fort,
B.
Res judicata may not bar a later suit where the plaintiff was not aware of its claim at the time of the first litigation.
See, e.g., Grausz,
CHG insists it had no actual knowledge of Shaw Pittman’s failure to forward the BZA order until March 2005, and became aware of Shaw Pittman’s failure to make a particular legal argument on the parking issue in the “Spring of 2006.” CHG quickly goes on to assert, in the next paragraph of its brief, “therefore ... CHG had neither actual nor constructive knowledge.” But, of course, when CHG gained actual knowledge of specific claims tells us nothing about its actual or constructive knowledge of the operative facts.
The district court found CHG’s claims barred for two reasons: CHG (1) had actual knowledge of the general nature of its claims against Shaw Pittman, as evidenced by the arguments it did raise during the fee litigation, and (2) also had constructive knowledge. That is, CHG would have discovered the specifics of each of the two claims, had it acted with due diligence.
Capitol Hill Group,
“[R]es judicata ... bars relitigation not only of matters determined in a previous litigation but also ones a party could have raised[.]”
NRDC v. Thomas,
C.
CHG also argues its claims, which it asserts were permissive rather than compulsory counterclaims, cannot be automatically precluded. The First Circuit has described the principle: the “failure to interpose a counterclaim does not necessarily act as a bar to later actions.”
Iannochino,
In this case, we need not determine whether CHG’s claims against Shaw Pittman were permissive or compulsory counterclaims because they are barred under the second “exception” regardless. The bankruptcy judge repeatedly awarded fees to Shaw Pittman for the services rendered to CHG in connection with its bankruptcy proceedings, and the district court affirmed the awards.
E.g., In re Capitol Hill Group,
To allow CHG to litigate malpractice claims against Shaw Pittman now, based on the same representation, would nullify the initial judgment or impair the rights established by Shaw Pittman in the bankruptcy fee litigation. Unlike in regular civil litigation, “[i]n bankruptcy ... a successful malpractice action could impair rights that [the bankruptcy professionals] had gained from the order awarding them fees. Under the relevant section of the bankruptcy code governing fee awards, a finding of malpractice would mean that the attorneys were not entitled to compensation for those services found to be sub
*493
standard.”
Iannochino,
IV.
The judgment of the district court is Affirmed.
Notes
. CHG also argues there are disputed issues of material fact as to its knowledge, precluding summary judgment. Because the district court accepted CHG’s assertions with respect to the dates on which it gained actual knowledge, and charged CHG with constructive knowledge, there are no factual disputes in this case precluding summary judgment.
