testing the addition of immunotherapy with hu5f9-g4 (magrolimab) to the usual parp inhibitor, olaparib for treatment of metastatic or recurrent breast or castrate-resistant prostate cancer with brca mutations

Conditions: Anatomic Stage IV Breast Cancer AJCC v8; Castration-Resistant Prostate Carcinoma; Stage IVB Prostate Cancer AJCC v8

Summary: this phase i/ib trial studies the side effects and best dose of hu5f9-g4 (magrolimab) when given in combination with olaparib for the treatment of patients with breast or castrate-resistant prostate cancer that have spread from where they first started (primary site) to other places in the body (metastatic) or have come back after a period of improvement (recurrent) and have mutations in the brca1/2 genes. magrolimab is a monoclonal antibody with potential anticancer activity and the cability to stimulate the immune system and may interfere with the ability of tumor cells to grow and spread. a monoclonal antibody is a type of protein that can bind to certain targets in the body, such as molecules that cause the body to make an immune response (antigens). olaparib is an inhibitor of parp, an enzyme that helps repair deoxyribonucleic acid (dna) when it becomes damaged. blocking parp may help keep tumor cells from repairing their damaged dna, causing them to die. parp inhibitors are a type of targeted therapy. combination therapy with magrolimab and olaparib may be safe and effective in treating brca-mutated metastatic or recurrent breast or castrate-resistant prostate cancer.

primary objectives: i. to evaluate the safety, tolerability, toxicity profile (dose-limiting toxicities \[dlts\], maximum tolerated doses \[mtds\]), and phase 2 recommended dose (p2rd) of hu5f9-g4 (magrolimab) combined with olaparib. ii. to evaluate the alteration in the immune microenvironment after combination therapy including alteration of specific immune signatures and pathways related to innate immune response and sting pathway. (dose expansion) secondary objectives: i. to evaluate the status of homologous recombination repair (hr)/dna damage response (ddr) and other genomic mutations. ii. to characterize the pharmacokinetic (pk) profile of olaparib and magrolimab in combination. exploratory objectives: i. to explore the activity of the combination regimen in entire cohort and in the dose expansion cohorts in term of objective response rate (orr), and progression-free survival (pfs). ii. to evaluate the peripheral immune profile. iii. to evaluate alterations in the hr/ddr pathway by circulating tumor (ct)dna. iv. to correlate drug exposure with response and/or toxicity. outline: this is a dose-escalation study of magrolimab in combination with fixed-dose olaparib followed by a dose-expansion study. patients receive magrolimab intravenously (iv) on days 1, 8, 15 and 22 of cycle 1 and days 1 and 15 of subsequent cycles. patients also receive olaparib orally (po) twice a day (bid) during each cycle. cycles repeat every 28 days in the absence of disease progression or unacceptable toxicity. patients also undergo collection of blood samples and computed tomography (ct) and/or magnetic resonance imaging (mri) throughout the trial. patients in the dose-expansion portion of the study also undergo tumor biopsies during screening and on study. patients are followed for 30 days after removal from study treatment, and then followed every 12 months for 36 months or until death whichever comes first.

Eligibility criteria:
inclusion criteria: * presence of metastatic and/or recurrent solid tumors (therapy naïve or those with prior therapy) with pathogenic brca 1/2 mutated cancers where olaparib is indicated as standard of care therapeutic option (not maintenance) as below: * metastatic breast cancer: * germline - yes (y); somatic - no (n): must have had prior chemotherapy (chemo) (adjuvant \[adj\], treatment); or if hormone receptor positive (hr+), must have had prior endocrine therapy or deemed inappropriate for endocrine treatment * metastatic castrate-resistant prostate cancer (cprc) * germline - y; somatic - y: treatment after progressive disease on anti-androgens * brca mutation status must be confirmed in a clinical laboratory improvement act (clia)-certified laboratory (lab) * patients \>= 18 years of age. because no dosing or adverse event data are currently available on the use of hu5f9-g4 (magrolimab) in combination with olaparib in patients \< 18 years of age, children are excluded from this study * patients may not have had prior parp inhibitor in the metastatic setting when given for therapeutic purposes. patients with breast cancer who received adjuvant parp inhibitor (i) are eligible. patients who had prior maintenance therapy are eligible. * at least 4 weeks or 4 prior drug half-lives (whichever is shorter) must have elapsed since completion of the previous systemic therapy * expansion cohort: willingness and feasibility to undergo pre and post treatment biopsy * eastern cooperative oncology group (ecog) performance status =\ = 60%) * absolute neutrophil count \>= 1,500/mcl * platelets \>= 100,000/mcl * total bilirubin =\< 1.5 x institutional upper limit of normal (uln) * aspartate aminotransferase (ast)(serum glutamic oxaloacetic transaminase \[sgot\])/alanine aminotransferase (alt)(serum glutamate pyruvate transaminase \[sgpt\]) =\< 3 x institutional uln * glomerular filtration rate (gfr) \>= 50 ml/min/1.73 m\^2 unless data exists supporting safe use at lower kidney function values, no lower than 30 ml/min/1.73 m\^2 * hemoglobin (hgb) \>= 9 g/dl * patients infected with human immunodeficiency virus (hiv) who are on effective anti-retroviral therapy with undetectable viral load within 6 months may be eligible for this trial * for patients with evidence of chronic hepatitis b virus (hbv) infection, the hbv viral load must be undetectable on suppressive therapy, if indicated * patients with a history of hepatitis c virus (hcv) infection must have been treated and cured. for patients with hcv infection who are currently on treatment, they are eligible if they have an undetectable hcv viral load * patients with treated brain metastases are eligible if follow-up brain imaging after central nervous system (cns)-directed therapy shows no evidence of progression. patients with prior brain metastasis that was treated with evidence of resolution or stable disease for 6 months are eligible. patients are required to be stable and fully tapered off steroids for at least \>= 1 month * patients with a prior or concurrent malignancy whose natural history or treatment does not have the potential to interfere with the safety or efficacy assessment of the investigational regimen are eligible for this trial * patients with known history or current symptoms of cardiac disease, or history of treatment with cardiotoxic agents, should have a clinical risk assessment of cardiac function using the new york heart association functional classification. to be eligible for this trial, patients should be class 2b or better * women of child-bearing potential, and men who are sexually active and their partner who may become pregnant, must use contraception during treatment and at least for 6 months (women) and 4 months (men) after the last dose of magrolimab and olaparib. breastfeeding is not allowed during treatment and for one month after receiving the last dose of therapy * ability to understand and the willingness to sign a written informed consent document. legally authorized representatives may sign and give informed consent on behalf of study participants. exclusion criteria: * previous anti-cd47 therapy * concomitant use of strong cyp3a4 inhibitors/inducers can cause clinically significant drug-interactions; thus, study patients who require the use of these cyp enzymes continuously should be excluded. study patients need to come off 3 eliminated half-lives of moderate cyp3a4 inhibitors and 5 eliminated half-lives of strong cyp3a4 inhibitors * patients who require immunosuppressive treatments for comorbidities are not eligible * gastrointestinal pathology or history that adversely impacts the ability to take or absorb oral medication * inability to comply with the protocol and/or not willing or who will not be available for follow-up assessments * patients who are receiving any other investigational agents * history of allergic reactions attributed to compounds of similar chemical or biologic composition to magrolimab or other agents used in study * patients with uncontrolled intercurrent illness * pregnant women are excluded from this study because hu5f9-g4 (magrolimab) is an anti-cd47 monoclonal antibody agent with the potential for teratogenic or abortifacient effects. because there is an unknown but potential risk for adverse events in nursing infants secondary to treatment of the mother with hu5f9-g4 (magrolimab), breastfeeding should be discontinued if the mother is treated with hu5f9-g4 (magrolimab). these potential risks may also apply to other agents used in this study