pembrolizumab, combination chemotherapy, and radiation therapy before surgery in treating adult patients with locally advanced gastroesophageal junction or gastric cardia cancer that can be removed by surgery

Conditions: Gastric Cardia Adenocarcinoma; Gastroesophageal Junction Adenocarcinoma; Stage IB Gastric Cancer AJCC v7; Stage II Gastric Cancer AJCC v7; Stage IIA Gastric Cancer AJCC v7; Stage IIB Gastric Cancer AJCC v7; Stage IIIA Gastric Cancer AJCC v7; Stage IIIB Gastric Cancer AJCC v7

Summary: this phase ib/ii trial studies the side effects and best way to give pembrolizumab with combination chemotherapy and radiation therapy before surgery and to see how well it works in treating adult patients with gastroesophageal junction or gastric cardia cancer that has spread from where it started to nearby tissue and can be removed by surgery. monoclonal antibodies, such as pembrolizumab, may block tumor growth in different ways by targeting certain cells. drugs used in chemotherapy work in different ways to stop the growth of tumor cells, either by killing the cells, by stopping them from dividing, or by stopping them from spreading. radiation therapy uses high energy x-rays to kill tumor cells and shrink tumors. giving pembrolizumab, combination chemotherapy, and radiation therapy before surgery may make the tumor smaller and reduce the amount of normal tissue that needs to be removed.

primary objectives: i. to determine the safety and tolerability of pembrolizumab when combined with radiotherapy plus carboplatin and paclitaxel in locally advanced gastroesophageal junction (gej)/cardia adenocarcinoma. (phase ib) ii. to evaluate the pathological complete response (pathcr) rate of pembrolizumab when combined with radiotherapy plus carboplatin and paclitaxel in locally advanced gej/cardia adenocarcinoma. (phase ii) secondary objectives: i. to determine progression-free survival (pfs), determine time to relapse (ttr), disease-free survival (dfs), r0 rate, and overall survival (os) of pembrolizumab when combined with radiotherapy plus carboplatin and paclitaxel. translational research objectives: i. to identify tissue and/or circulating biomarkers that are associated with pathcr, dfs, and other clinical outcomes in patients with locally advanced gej/cardia adenocarcinoma treated with neoadjuvant pembrolizumab-based therapy. ii. to determine differences in pre-treatment vs post-treatment tissue expression of immune markers, including pdl1 and tumor infiltrating lymphocytes (cd8+, foxp3+ tregs, cd45ro, granzyme b), in patients treated with neoadjuvant pembrolizumab-based therapy. iii. to identify immune markers in pretreatment tissues that correlate with pathcr and long-term outcome in patients treated with neoadjuvant pembrolizumab-based therapy. iv. to explore whether an ebv-associated tumor molecular profile89 is associated with pathcr and long-term outcome in patients treated with neoadjuvant pembrolizumab-based therapy. v. to explore whether a microsatellite-unstable (msi) tumor molecular profile89 is associated with pathcr and long-term outcome in patients treated with neoadjuvant pembrolizumab-based therapy. outline: neoadjuvant treatment: patients receive pembrolizumab intravenously (iv) over 30 minutes on days -7, 15, and 36 and carboplatin iv and paclitaxel iv over 1-96 hours on days 1, 8, 15, 22 and 29. patients also undergo radiation therapy once daily (qd) 5 days per week for 4 weeks and 3 days (23 fractions). patients with progressive disease receive pembrolizumab iv over 30 minutes, paclitaxel iv over 1-96 hours, and carboplatin iv on day 1. treatment repeats every 21 days for 2-4 courses in the absence of disease progression or unacceptable toxicity. neoadjuvant treatment (re-initiated): patients receive pembrolizumab iv over 30 minutes on days 1 and 22 and oxaliplatin iv over 2-6 hours, leucovorin calcium iv over 15 minutes to 2 hours, and fluorouracil iv over 46-48 hours on days 1, 15, and 29. treatment repeats every 21 days for up to 4 courses in the absence of disease progression or unacceptable toxicity. patients with progressive disease receive pembrolizumab iv over 30 minutes on days 1 and 22, oxaliplatin iv over 2-6 hours, leucovorin calcium over 15 minutes to 2 hours, and fluorouracil iv over 46-48 hours on days 1, 15, and 29. treatment repeats every 41 days (6 weeks) for 1-3 courses in the absence of disease progression or unacceptable toxicity. surgery: within 5-8 weeks after completion of radiation therapy or 3-6 weeks after completion of chemotherapy for patients receiving chemotherapy alone, patients undergo curative-intent surgery. adjuvant treatment: patients receive pembrolizumab iv over 30 minutes every 21 days. treatment repeats every 21 days for up to 6 courses in the absence of disease progression or unacceptable toxicity. after completion of study treatment, patients are followed up at 30 days, every 3 months for 1 year, every 4 months for 1 year, and then every 6 months for 1 year.

Eligibility criteria:
inclusion criteria: * histologically or cytologically confirmed adenocarcinoma involving the gastroesophageal junction or gastric cardia * central pathology review to determine evaluability of archived esophagogastroduodenoscopy (egd)/biopsy sample * note: if archived sample was collected \> 8 weeks prior to pre-registration (reg), is not available in a timely manner, or was collected outside of mayo clinic and considered unevaluable, then baseline egd with primary tumor biopsy at mayo clinic must be performed unless clinically contraindicated; patient is allowed to enroll regardless of whether this mayo clinic tissue sample is evaluable; (only 1 egd with primary tumor biopsy performed at mayo clinic =\< 8 weeks prior to pre-reg is required) * note: for both archival or newly obtained tissue, only biopsies are adequate (fine needle aspiration \[fna\] is not adequate) * willing to provide mandatory tissue samples for research purposes * baseline imaging with an fludeoxyglucose (fdg)-positron emission tomography (pet) scan negative for distant metastatic disease must be obtained =\< 28 days prior to registration * surgically resectable (t2n0, t3n0, tany with node positivity, m0), as determined by endoscopic ultrasound (eus) and the following minimum diagnostic work-up: * whole-body pet/computed tomography (ct) (pet/ct of skull base to mid-thigh is acceptable) * eus =\< 21 days prior to registration * note: patients may have regional adenopathy including para-esophageal, gastric, gastrohepatic and celiac nodes; if celiac adenopathy is present, it must be \< 2 cm * note: if patient unable to have pet/ct then ct chest/abdomen/pelvis with contrast (preferred) or mri chest/abdomen/pelvis with contrast * surgical consultation at enrolling site to confirm that patient will be able to undergo curative resection after completion of chemoradiation =\< 56 days prior to registration * tumor is amenable to standard resection and reconstruction * radiation oncology consultation at enrolling site to confirm that disease can be encompassed in a radiotherapy field =\< 56 days prior to registration * note: radiotherapy quality assurance rapid review must be performed before the first fraction of radiation therapy (rt) is administered; if rt constraints cannot be met, the patient will be removed from the protocol prior to treatment * consultation with a medical oncologist at enrolling site =\< 56 days prior to registration, with determination that treatment with neoadjuvant chemoradiotherapy with weekly carboplatin and paclitaxel is considered acceptable * eastern cooperative oncology group (ecog) performance status 0 or 1 * adequate oral intake and nutritional status without current or likely need for enteral or parenteral feeding during chemoradiation or the preoperative period * pre-treatment pulmonary function tests (pfts), collected =\ 60% of predicted * adequate organ function =\< 21 days prior to registration: * aspartate transaminase (ast) level =\< 2.5 x upper limit of normal (uln) and alanine transaminase (alt) =\< 3 x upper limit of normal (uln) * total bilirubin level of =\< 1.5 x uln * creatinine level =\ 60 ml/min/1.73 m\^2 for patients with creatinine levels above or below the institutional normal * hemoglobin (hgb) \>= 9 g/dl without transfusion or epoetin dependency (=\< 7 days prior to assessment) * absolute neutrophil count \>= 1.5 x 10\^9/l * platelets \>= 100 x 10\^9/l * albumin \>= 2.5 g/dl * female patients of childbearing potential must be willing to use 2 methods of birth control or be surgically sterile, or abstain from heterosexual activity for the course of the study through 120 days after the last dose of study medication * note: patients of childbearing potential are those who have not been surgically sterilized or have not been free from menses for \> 1 year * female patients of childbearing potential must have a negative urine or serum pregnancy test =\< 7 days prior to registration * note: if the urine test is positive or cannot be confirmed as negative, a serum pregnancy test will be required * male patients must agree to use an adequate method of contraception starting with the first dose of study therapy through 120 days after the last dose of study therapy * note: abstinence is acceptable if this is the established and preferred method of contraception for the subject * provide signed written informed consent * willing to return to enrolling institution for follow-up * willing to provide mandatory tissue and blood samples for research purposes * note: patients must be willing to provide at the time surgical resection; for patients who do not undergo surgery, any on-study tumor biopsy obtained for clinical purposes subsequent to the baseline biopsy must also be available for analysis exclusion criteria: * tumor characteristics - any of the following are excluded: * evidence of distant metastases * tumors whose location is restricted to the tubular esophagus (i.e., without involvement of the gej or cardia) * tumors whose proximal end are at the level of the carina or higher * invasion of the tracheobronchial tree or presence of tracheoesophageal fistula * palpable supraclavicular nodes, biopsy-proven involvement of supraclavicular nodes, or radiographically involved supraclavicular nodes (\> 1.5 cm in greatest dimension) * t1n0m0, t4nany, or in situ carcinoma * tumor must not extend 5 or more cm into the stomach * received prior treatment or receiving current treatment for this malignancy * prior radiation to chest or abdomen, or to \> 30% of the marrow cavity * inadequate caloric or fluid intake whereby there is a current or likely future need for enteral or parenteral feeding during chemoradiation or the preoperative period * major surgery =\< 4 weeks prior to registration * active autoimmune disorders, including patients known to be human immunodeficiency virus (hiv) positive, or those requiring chronic steroid administration (excluding inhaled steroids) * uncontrolled diabetes (i.e., will interfere with the performance of the fdg pet/ct scans) * prior allergic reactions to drugs containing cremophor, such as teniposide or cyclosporine, or study drugs involved in this protocol, or to a monoclonal antibody or prior hypersensitivity to platinum-containing agents * heart conditions - any of the following: * any atrial fibrillation =\< 3 months prior to registration * unstable angina =\< 12 months prior to registration * prior symptomatic congestive heart failure * documented myocardial infarction =\< 6 months prior to registration (pretreatment electrocardiogram \[ecg\] evidence of infarct only will not exclude patients) * prior significant ventricular arrhythmia requiring medication * prior 2nd or 3rd degree heart block or other types of clinically significant conduction delay =\< 6 months prior to registration * clinically significant pericardial disease (including pericardial effusion, pericarditis) or cardiac valvular disease =\< 12 months prior to registration * note: as part of history and physical, all patients must be assessed for signs or symptoms of cardiac disease, or for prior history of cardiac disease; these conditions include but are not limited to diseases related to cardiac valves, pericardium, myocardium, atrioventricular delays or arrhythmias; it is strongly recommended that signs or symptoms of potentially clinically significant disease be evaluated with comprehensive cardiac echo * prior pancreatitis that was symptomatic or required medical intervention =\< 6 months prior to registration (known toxicity of pembrolizumab) * prior enteritis that was symptomatic or required medical intervention =\< 6 months prior to registration (known toxicity of pembrolizumab) * uncontrolled hyper/hypothyroidism or hyper/hypocorticism =\< 6 months prior to registration (known toxicity of pembrolizumab) * pulmonary conditions - any of the following: * respiratory condition that required any oxygen supplementation =\< 6 months prior to registration * prior or current pneumonitis * clinically significant pulmonary hypertension =\< 12 months prior to registration * lung infection requiring treatment =\< 3 months prior to registration * pulmonary embolism requiring treatment =\< 6 months prior to registration * pleural effusion requiring drainage =\< 12 months prior to registration * prior fistula within thorax, including bronchoalveolar or esophageal * body mass index (bmi) \>= 35 mg/m\^2 =\< 56 days prior to registration * pre-existing motor or sensory neurotoxicity greater than common terminology criteria for adverse events (ctcae) grade 1 * acute bacterial, viral, or fungal infection requiring treatment at the time of registration * active infection or other serious underlying medical condition which would impair the ability of the patient to receive the planned treatment * uncontrolled intercurrent illness including, but not limited to, psychiatric illness/social situations, or other co-morbid systemic illnesses or severe concurrent diseases which, in the judgment of the investigator, would make the patient inappropriate for entry into this study or interfere significantly with the proper assessment of safety and toxicity of the prescribed regimens * prior malignancy =\< 5 years prior to registration (except non-melanotic skin cancer or carcinoma-in-situ of the cervix) (must be disease free for a minimum of 5 years); if there is a history of prior malignancy, patient must not be receiving other specific treatment (other than hormonal therapy) for cancer * dementia or altered mental status that would prohibit the understanding and giving of informed consent * any of the following because this study involves an agent where the genotoxic, mutagenic and teratogenic effects are unknown: * pregnant or breastfeeding * patient of childbearing potential who is unwilling to employ adequate contraception * received live vaccine =\< 30 days prior to registration