A former Manhattan prosecutor is poised to become the new federal watchdog overseeing the city’s embattled Housing Authority, officials told The Post.

The feds are in final discussions with Bart Schwartz — who in the 1980s worked for then-Manhattan US Attorney Rudy Giuliani as the head of his criminal prosecutions division — to fill the role, the sources said.

The apparent selection comes three weeks after City Hall and the feds inked a deal to create the new role, and imposed strict deadlines on NYCHA to fix its crumbling apartments.

Under the terms of the Jan. 31 deal, the monitor will have the power to overhaul the authority’s management, unfettered access to NYCHA’s staff and records, and will be required to make regular reports about the agency’s efforts at reform.

However, the agreement also explicitly says the monitor will not oversee the day-to-day operations of the authority.

NYCHA provides housing to more than 400,000 New Yorkers who live in the authority’s 175,000 apartments.

The authority has been rocked by a series of scandals in recent years that led federal prosecutors in Manhattan to launch a probe.

Their investigation ended with a searing June 2018 lawsuit filed in federal court alleging that NYCHA officials failed to conduct required checks for peeling lead paint and lied about it for years.

It also charged that NYCHA failed to provide its tenants with legally required safe and decent housing, documenting rampant mold and rat infestations at housing developments across the city.

The city, officials from the federal Department of Housing and Urban Development and Manhattan federal prosecutors eventually settled the lawsuit with the January agreement, which ordered the management shake-up, imposed the monitor and new repair deadlines and required City Hall to inject an additional $2.2 billion for repairs over the next 10 years.

Schwartz — who graduated from Stuyvesant High School in 1964 and New York University’s law school in 1971 — has a long history in the city.

He oversaw criminal prosecutions under Giuliani from 1983 to 1986, according to his LinkedIn profile, before founding his own firm in 1991.

Giuliani brought his former aide to City Hall in 2000 to head a task force that aimed to clean up the then-corruption-riddled Buildings Department.

More recently, Schwartz was hired by embattled contractor SAIC to serve as a compliance expert in the wake of the CityTime scandal that rocked the Bloomberg administration, according to his online resume.

And he was brought on by Gov. Andrew Cuomo in 2016 to review the scandal-rocked “Buffalo Billion” economic development deal, leading to friction with then-US Attorney Preet Bharara, who was also probing the program.

Schwartz also maintains ties with the children’s charity founded by controversial activist Dr. Lenora Fulani, who has a history of anti-Semitic remarks and who once wielded political power as New York politicians sought her Independence Party line to run on.

He has been involved with her nonprofit All Stars Project since 2004 and was recently elected to its national board.

The relationship between Fulani and Schwartz was first reported by The City in New York magazine.

Schwartz, City Hall and federal housing officials in Washington declined to comment when contacted by a Post reporter on Thursday.

Reps for the Manhattan federal prosecutor’s office were not immediately available to comment.